@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251017.0 → 0.0.0-nightly-20251019.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 _0x4bfaa6=_0xfe22;(function(_0x4f5700,_0x539cc9){const _0x411340=_0xfe22,_0x5cbd13=_0x4f5700();while(!![]){try{const _0x31559f=-parseInt(_0x411340(0x11c))/0x1*(parseInt(_0x411340(0x137))/0x2)+-parseInt(_0x411340(0x10e))/0x3*(parseInt(_0x411340(0x131))/0x4)+parseInt(_0x411340(0x14b))/0x5+parseInt(_0x411340(0x134))/0x6*(-parseInt(_0x411340(0x152))/0x7)+-parseInt(_0x411340(0x138))/0x8*(parseInt(_0x411340(0x14a))/0x9)+-parseInt(_0x411340(0x151))/0xa*(-parseInt(_0x411340(0x154))/0xb)+-parseInt(_0x411340(0x156))/0xc*(-parseInt(_0x411340(0x118))/0xd);if(_0x31559f===_0x539cc9)break;else _0x5cbd13['push'](_0x5cbd13['shift']());}catch(_0x5bbe7f){_0x5cbd13['push'](_0x5cbd13['shift']());}}}(_0x2174,0xceb19));function _0xfe22(_0x1710de,_0x424c24){const _0x21740a=_0x2174();return _0xfe22=function(_0xfe2202,_0x1fc1c3){_0xfe2202=_0xfe2202-0x10d;let _0x1ab42c=_0x21740a[_0xfe2202];return _0x1ab42c;},_0xfe22(_0x1710de,_0x424c24);}import{Plugin as _0x59c0b5}from'ckeditor5/src/core.js';import{Dialog as _0x27add7}from'ckeditor5/src/ui.js';import{createElement as _0x396df9,global as _0x3bcb79,uid as _0x5915e2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2603e9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x31d30d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x41fe45}from'./utils/editingutils.js';function _0x2174(){const _0x3f0644=['_initCtx','_ctxElement','true','remove','requires','getAttribute','data-uc-image-id','_configElement','extend','editing','editor','closeMax','isPremiumPlugin','868671qNfMuY','1687855AOeMQV','pluginName','document','contentLanguage','conversion','schema','30dRkCdk','760865DHjLMq','view','2076954pntPls','uc-upload-ctx-provider','240BsCild','imageBlock','for','destroy','getSelectedElement','iconHrefResolver','PictureEditing','once','ctxElement','attributeToAttribute','elementToAttribute','configElement','uploader-','uploadcare.uploader','downcast','_initSchema','324AjSDHe','_initConfig','execute','querySelector','uploadcare','join','render','upcast','insertImage','\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','1657604YGWvdj','model','appendChild','selection','1187oEOZBa','get','imageInline','ucContextId','locale','map','#uc-icon-arrow-down','listenTo','uploadcareImageReplace','config','input[uploadcare-file-input]','fromCharCode','isRegistered','_initImageProcessingIndicator','replaceImageSource','add','_initConversion','UploadcareEditing','uc-config','isOfficialPlugin','href','28312iOPhBD','afterInit','uploadcareImageId','6WGIxSj','body','removeAttribute','1784jeDKXL','56BDTJga','commands','uploadcare.pubkey','cleanupImage','init'];_0x2174=function(){return _0x3f0644;};return _0x2174();}export class UploadcareEditing extends _0x59c0b5{[_0x4bfaa6(0x144)]=null;[_0x4bfaa6(0x13e)]=null;static get[_0x4bfaa6(0x14c)](){const _0x3fa17d=_0x4bfaa6;return _0x3fa17d(0x12d);}static get[_0x4bfaa6(0x141)](){const _0x33b4da=_0x4bfaa6;return[_0x33b4da(0x15c),_0x31d30d,_0x27add7];}static get[_0x4bfaa6(0x12f)](){return!0x0;}static get[_0x4bfaa6(0x149)](){return!0x0;}[_0x4bfaa6(0x11f)];get[_0x4bfaa6(0x161)](){const _0x52d30b=_0x4bfaa6;return this[_0x52d30b(0x144)];}get[_0x4bfaa6(0x15e)](){const _0x47e0a9=_0x4bfaa6;return this[_0x47e0a9(0x13e)];}constructor(_0x546e21){const _0x1a6507=_0x4bfaa6;super(_0x546e21),this[_0x1a6507(0x11f)]=_0x5915e2();}[_0x4bfaa6(0x13c)](){const _0x53ce7b=_0x4bfaa6,_0x37e655=this[_0x53ce7b(0x147)];_0x37e655[_0x53ce7b(0x139)][_0x53ce7b(0x12b)](_0x53ce7b(0x112),new _0x2603e9(_0x37e655));}[_0x4bfaa6(0x132)](){const _0x1f541d=_0x4bfaa6;this[_0x1f541d(0x10d)](),this[_0x1f541d(0x12c)](),this[_0x1f541d(0x10f)](),this[_0x1f541d(0x13d)](),this[_0x1f541d(0x129)](),this[_0x1f541d(0x123)](this[_0x1f541d(0x147)],_0x1f541d(0x159),()=>{const _0x1e277c=_0x1f541d;this[_0x1e277c(0x144)]&&(this[_0x1e277c(0x144)][_0x1e277c(0x140)](),this[_0x1e277c(0x144)]=null),this[_0x1e277c(0x13e)]&&(this[_0x1e277c(0x13e)][_0x1e277c(0x140)](),this[_0x1e277c(0x13e)]=null);const _0x480ab5=_0x3bcb79[_0x1e277c(0x14d)][_0x1e277c(0x111)](_0x1e277c(0x126));_0x480ab5&&_0x480ab5[_0x1e277c(0x140)]();}),async function(_0x4ec5cf){const _0x24bab0=_0x1a701a([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]),_0x4cfdf9=0x535f8c3a,_0x12ea2f=0x5358fa4a^_0x4cfdf9,_0xc8c2f8=window[_0x1a701a([0x44,0x61,0x74,0x65])][_0x1a701a([0x6e,0x6f,0x77])](),_0x3ec3fa=_0x4ec5cf[_0x1a701a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cde24=new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x169adc=>{_0x3ec3fa[_0x1a701a([0x6f,0x6e,0x63,0x65])](_0x1a701a([0x72,0x65,0x61,0x64,0x79]),_0x169adc);}),_0x3ccd18={[_0x1a701a([0x6b,0x74,0x79])]:_0x1a701a([0x45,0x43]),[_0x1a701a([0x75,0x73,0x65])]:_0x1a701a([0x73,0x69,0x67]),[_0x1a701a([0x63,0x72,0x76])]:_0x1a701a([0x50,0x2d,0x32,0x35,0x36]),[_0x1a701a([0x78])]:_0x1a701a([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]),[_0x1a701a([0x79])]:_0x1a701a([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]),[_0x1a701a([0x61,0x6c,0x67])]:_0x1a701a([0x45,0x53,0x32,0x35,0x36])},_0x58cd49=_0x3ec3fa[_0x1a701a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a701a([0x67,0x65,0x74])](_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19e1bb(){let _0x2f780e,_0x2caf1c=null,_0x1866b1=null;try{if(_0x58cd49==_0x1a701a([0x47,0x50,0x4c]))return _0x1a701a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f780e=_0x11bbff(),!_0x2f780e)return _0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f780e[_0x1a701a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1866b1=_0x389877(_0x2f780e[_0x1a701a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f780e[_0x1a701a([0x6a,0x74,0x69])])),await _0x11b986()?_0x134ec9()?_0x43363f()?_0x1a701a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a39b5()?(_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a701a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2caf1c=_0x71a388(_0x1a701a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a701a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2caf1c=_0x71a388(_0x1a701a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4087e9()):_0x1a701a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a701a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43363f(){const _0x90d9d2=[_0x1a701a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a701a([0x74,0x72,0x69,0x61,0x6c])][_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc8c2f8/0x3e8:0xe10*_0x12ea2f;return _0x2f780e[_0x1a701a([0x65,0x78,0x70])]<_0x90d9d2;}function _0x134ec9(){const _0x235cc8=_0x2f780e[_0x1a701a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x235cc8&&(!!_0x235cc8[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x2a]))||!!_0x235cc8[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x55,0x50,0x4c,0x43])));}function _0x4a39b5(){const _0x1817d0=_0xfe22,_0x39ee2f=_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39ee2f||0x0==_0x39ee2f[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f4b44}=new URL(window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1817d0(0x130)]);if(_0x39ee2f[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4b44))return!0x0;const _0x40c82e=_0x5f4b44[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e]));return _0x39ee2f[_0x1a701a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e9a4b=>_0x5e9a4b[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x2a])))[_0x1a701a([0x6d,0x61,0x70])](_0x43ce12=>_0x43ce12[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e])))[_0x1a701a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5bcd=>_0x1b5bcd[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40c82e[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a701a([0x6d,0x61,0x70])](_0x5d06e2=>Array(_0x40c82e[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d06e2[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a701a([0x66,0x69,0x6c,0x6c])](_0x5d06e2[0x0]===_0x1a701a([0x2a])?_0x1a701a([0x2a]):'')[_0x1a701a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d06e2))[_0x1a701a([0x73,0x6f,0x6d,0x65])](_0x17f616=>_0x40c82e[_0x1a701a([0x65,0x76,0x65,0x72,0x79])]((_0x110ec8,_0x34296d)=>_0x17f616[_0x34296d]===_0x110ec8||_0x17f616[_0x34296d]===_0x1a701a([0x2a])));}function _0x4087e9(){return _0x2caf1c&&_0x1866b1?new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x309f6d,_0x4e2c7f)=>{_0x2caf1c[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x309f6d,_0x4e2c7f),_0x1866b1[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x1f15fe=>{_0x1f15fe!=_0x1a701a([0x56,0x61,0x6c,0x69,0x64])&&_0x309f6d(_0x1f15fe);},_0x4e2c7f);}):_0x2caf1c||_0x1866b1||_0x1a701a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x389877(_0x538e1b,_0x48b826){return new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x208413=>{if(_0x28fdb3())return _0x208413(_0x1a701a([0x56,0x61,0x6c,0x69,0x64]));_0x4112ff(),_0x3ec3fa[_0x1a701a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f63bd=!0x1;const _0x40ae40=_0x5915e2();function _0x35b8e4(_0x249fe4){return!!_0x249fe4&&(typeof _0x249fe4===_0x1a701a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x249fe4===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x249fe4[_0x1a701a([0x74,0x68,0x65,0x6e])]===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x249fe4[_0x1a701a([0x63,0x61,0x74,0x63,0x68])]===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x241776(_0x246d49){_0x4eac03(_0x246d49)[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x169fb8=>{if(!_0x169fb8||_0x169fb8[_0x1a701a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a701a([0x6f,0x6b]))return _0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x529b6f(_0x12bbd1(_0x40ae40+_0x48b826))!=_0x169fb8[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a701a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x285cb6=>(_0x873567(),_0x285cb6),()=>{const _0x506b9b=_0x514510();return null==_0x506b9b?(_0x873567(),_0x1a701a([0x56,0x61,0x6c,0x69,0x64])):_0x1a701a(_0xc8c2f8-_0x506b9b>(0x7753083a^_0x4cfdf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x208413)[_0x1a701a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15ffa8=0x536962ba^_0x4cfdf9;function _0x873567(){const _0x48938c=_0x1a701a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529b6f(_0x12bbd1(_0x538e1b)),_0x43d322=_0x526405(_0x529b6f(window[_0x1a701a([0x4d,0x61,0x74,0x68])][_0x1a701a([0x63,0x65,0x69,0x6c])](_0xc8c2f8/_0x15ffa8)));window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a701a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48938c,_0x43d322);}function _0x514510(){const _0x526907=_0x1a701a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529b6f(_0x12bbd1(_0x538e1b)),_0x1c4730=window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a701a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526907);return _0x1c4730?window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526405(_0x1c4730),0x10)*_0x15ffa8:null;}function _0x4eac03(_0x2c28ea){return new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x338e3d,_0x3ef1ff)=>{_0x2c28ea[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x338e3d,_0x3ef1ff),window[_0x1a701a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ef1ff,0x535e58fa^_0x4cfdf9);});}}_0x3ec3fa[_0x1a701a([0x6f,0x6e])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34ad10,_0x2deb69)=>{if(_0x2deb69[0x0]!=_0x538e1b)return _0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2deb69[0x1]={..._0x2deb69[0x1],[_0x1a701a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40ae40};},{[_0x1a701a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a701a([0x68,0x69,0x67,0x68])}),_0x3ec3fa[_0x1a701a([0x6f,0x6e])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc7c1ca=>{_0x35b8e4(_0xc7c1ca[_0x1a701a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f63bd=!0x0,_0x241776(_0xc7c1ca[_0x1a701a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a701a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a701a([0x6c,0x6f,0x77])}),_0x2cde24[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>{_0x1f63bd||_0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28fdb3(){return _0x3ec3fa[_0x1a701a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a701a([0x76,0x69,0x65,0x77])][_0x1a701a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a701a([0x61,0x75,0x74,0x6f]);}function _0x4112ff(){_0x3ec3fa[_0x1a701a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a701a([0x76,0x69,0x65,0x77])][_0x1a701a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a701a([0x61,0x75,0x74,0x6f]);}}function _0x71a388(_0xa9fe73){const _0x5b6f02=[new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb4f9=>setTimeout(_0x2bb4f9,0x5356b2f6^_0x4cfdf9)),_0x2cde24[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4394=>{let _0x110bbd=0x0;_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x6f,0x6e])](_0x1a701a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b8f5f,_0x5629de)=>{_0x5629de[0x0][_0x1a701a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x110bbd++,_0x110bbd==(0x535f8dc2^_0x4cfdf9)&&(_0x5f4394(),_0x2b8f5f[_0x1a701a([0x6f,0x66,0x66])]());});}))];return window[_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a701a([0x72,0x61,0x63,0x65])](_0x5b6f02)[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>_0xa9fe73);}async function _0x5b9f06(){await _0x2cde24,_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22a9c1,_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22a9c1,_0x3ec3fa[_0x1a701a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x244302(_0x48c0ef){const _0x5b2760=_0x1eaf18();_0x3ec3fa[_0x5b2760]=_0x1a701a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48c0ef,_0x48c0ef!=_0x1a701a([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9f06();}function _0x1eaf18(){const _0x485126=window[_0x1a701a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a701a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a701a([0x6e,0x6f,0x77])]())[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a701a([0x2e]),'');let _0x328620=_0x1a701a([0x68]);for(let _0x4750a4=0x0;_0x4750a4<_0x485126[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4750a4+=0x2){let _0x482bdc=window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x485126[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4750a4,_0x4750a4+0x2));_0x482bdc>=_0x24bab0[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x482bdc-=_0x24bab0[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x328620+=_0x24bab0[_0x482bdc];}return _0x328620;}function _0x11bbff(){const _0x51aa72=_0x58cd49[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e]));if(0x3!=_0x51aa72[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b1bdd(_0x51aa72[0x1]);function _0x1b1bdd(_0x16a2f5){const _0x479e1f=_0xa3f84a(_0x16a2f5);return _0x479e1f&&_0x285605()?_0x479e1f:null;function _0x285605(){const _0x56a940=_0x479e1f[_0x1a701a([0x6a,0x74,0x69])],_0x31c2dd=window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56a940[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56a940[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12e485={..._0x479e1f,[_0x1a701a([0x6a,0x74,0x69])]:_0x56a940[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56a940[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12e485[_0x1a701a([0x76,0x63])],_0x12bbd1(_0x12e485)==_0x31c2dd;}}}async function _0x11b986(){let _0x3d192d=!0x0;try{const _0x36f583=_0x58cd49[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e])),[_0x14385d,_0x40ac54,_0x5beb7d]=_0x36f583;return _0x8ed5ea(_0x14385d),await _0x5cb050(_0x14385d,_0x40ac54,_0x5beb7d),_0x3d192d;}catch{return!0x1;}function _0x8ed5ea(_0x3f10f6){const _0x52cc20=_0xa3f84a(_0x3f10f6);_0x52cc20&&_0x52cc20[_0x1a701a([0x61,0x6c,0x67])]==_0x1a701a([0x45,0x53,0x32,0x35,0x36])||(_0x3d192d=!0x1);}async function _0x5cb050(_0x40e456,_0x48770f,_0x564835){const _0x51d0af=window[_0x1a701a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a701a([0x66,0x72,0x6f,0x6d])](_0x2dffd4(_0x564835),_0x1a9d3d=>_0x1a9d3d[_0x1a701a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x76e21d=new window[(_0x1a701a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a701a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40e456+_0x1a701a([0x2e])+_0x48770f),_0x1be41e=window[_0x1a701a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a701a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1be41e)return;const _0x44f85e=await _0x1be41e[_0x1a701a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a701a([0x6a,0x77,0x6b]),_0x3ccd18,{[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x45,0x43,0x44,0x53,0x41]),[_0x1a701a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a701a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1be41e[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x45,0x43,0x44,0x53,0x41]),[_0x1a701a([0x68,0x61,0x73,0x68])]:{[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44f85e,_0x51d0af,_0x76e21d)||(_0x3d192d=!0x1);}}function _0xa3f84a(_0x2e8e1b){return _0x2e8e1b[_0x1a701a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a701a([0x65,0x79]))?JSON[_0x1a701a([0x70,0x61,0x72,0x73,0x65])](_0x2dffd4(_0x2e8e1b)):null;}function _0x2dffd4(_0xd169bc){return window[_0x1a701a([0x61,0x74,0x6f,0x62])](_0xd169bc[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a701a([0x2b]))[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a701a([0x2f])));}function _0x12bbd1(_0x38e328){let _0x45847b=0x1505;function _0xd0ee82(_0x4731fb){for(let _0xdee5f3=0x0;_0xdee5f3<_0x4731fb[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdee5f3++){const _0x2f7b4f=_0x4731fb[_0x1a701a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdee5f3);_0x45847b=(_0x45847b<<0x5)+_0x45847b+_0x2f7b4f,_0x45847b&=_0x45847b;}}function _0x4b0efe(_0x1ecceb){Array[_0x1a701a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ecceb)?_0x1ecceb[_0x1a701a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b0efe):_0x1ecceb&&typeof _0x1ecceb==_0x1a701a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a701a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ecceb)[_0x1a701a([0x73,0x6f,0x72,0x74])]()[_0x1a701a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39db40,_0x1d36c8])=>{_0xd0ee82(_0x39db40),_0x4b0efe(_0x1d36c8);}):_0xd0ee82(window[_0x1a701a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ecceb));}return _0x4b0efe(_0x38e328),_0x45847b>>>0x0;}function _0x529b6f(_0x17d73f){return _0x17d73f[_0x1a701a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a701a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a701a([0x30]));}function _0x526405(_0x5b7f34){return _0x5b7f34[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a701a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a701a([0x6a,0x6f,0x69,0x6e])]('');}function _0x22a9c1(){}function _0x1a701a(_0x3bea3e){const _0x5e599a=_0xfe22;return _0x3bea3e[_0x5e599a(0x121)](_0x57f365=>String[_0x5e599a(0x127)](_0x57f365))[_0x5e599a(0x113)]('');}_0x244302(await _0x19e1bb());}(this);}[_0x4bfaa6(0x10d)](){const _0x4d72bf=_0x4bfaa6,_0x24b1e5=this[_0x4d72bf(0x147)][_0x4d72bf(0x119)][_0x4d72bf(0x150)];_0x24b1e5[_0x4d72bf(0x128)](_0x4d72bf(0x157))&&_0x24b1e5[_0x4d72bf(0x145)](_0x4d72bf(0x157),{'allowAttributes':[_0x4d72bf(0x133)]}),_0x24b1e5[_0x4d72bf(0x128)](_0x4d72bf(0x11e))&&_0x24b1e5[_0x4d72bf(0x145)](_0x4d72bf(0x11e),{'allowAttributes':[_0x4d72bf(0x133)]});}[_0x4bfaa6(0x12c)](){const _0x2b1645=_0x4bfaa6,_0x20c55f=this[_0x2b1645(0x147)];_0x20c55f[_0x2b1645(0x14f)][_0x2b1645(0x158)](_0x2b1645(0x164))[_0x2b1645(0x15f)]({'model':_0x2b1645(0x133),'view':_0x2b1645(0x143)}),_0x20c55f[_0x2b1645(0x14f)][_0x2b1645(0x158)](_0x2b1645(0x115))[_0x2b1645(0x160)]({'model':{'key':_0x2b1645(0x133),'value':_0x3dd25b=>_0x3dd25b[_0x2b1645(0x142)](_0x2b1645(0x143))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xe901ed=_0x20c55f[_0x2b1645(0x139)][_0x2b1645(0x11d)](_0x2b1645(0x12a));_0xe901ed&&this[_0x2b1645(0x123)](_0xe901ed,_0x2b1645(0x13b),(_0x2becf4,[_0x32c6fc,_0x3c3bf1])=>{const _0x1e0e94=_0x2b1645;_0x32c6fc[_0x1e0e94(0x136)](_0x1e0e94(0x133),_0x3c3bf1);});}[_0x4bfaa6(0x10f)](){const _0x47ca83=_0x4bfaa6,_0x452089=this[_0x47ca83(0x147)][_0x47ca83(0x125)][_0x47ca83(0x11d)](_0x47ca83(0x163))||{},_0x326a99=this[_0x47ca83(0x147)][_0x47ca83(0x125)][_0x47ca83(0x11d)](_0x47ca83(0x13a))||'';this[_0x47ca83(0x144)]=_0x396df9(_0x3bcb79[_0x47ca83(0x14d)],_0x47ca83(0x12e),{..._0x452089,'pubkey':_0x326a99,'ctx-name':_0x47ca83(0x162)+this[_0x47ca83(0x11f)],'sourceList':'','imgOnly':_0x47ca83(0x13f),'removeCopyright':_0x47ca83(0x13f),'localeName':this[_0x47ca83(0x147)][_0x47ca83(0x120)][_0x47ca83(0x14e)],'externalSourcesEmbedCss':_0x47ca83(0x117)}),this[_0x47ca83(0x144)][_0x47ca83(0x15b)]=_0x2221c7=>{const _0x1b2439=_0x47ca83;if(_0x1b2439(0x148)==_0x2221c7)return _0x1b2439(0x122);},_0x3bcb79[_0x47ca83(0x14d)][_0x47ca83(0x135)][_0x47ca83(0x11a)](this[_0x47ca83(0x144)]);}[_0x4bfaa6(0x13d)](){const _0x715f11=_0x4bfaa6;this[_0x715f11(0x13e)]=_0x396df9(_0x3bcb79[_0x715f11(0x14d)],_0x715f11(0x155),{'ctx-name':_0x715f11(0x162)+this[_0x715f11(0x11f)]}),_0x3bcb79[_0x715f11(0x14d)][_0x715f11(0x135)][_0x715f11(0x11a)](this[_0x715f11(0x13e)]);}[_0x4bfaa6(0x129)](){const _0x4a886d=_0x4bfaa6,_0x524b1b=this[_0x4a886d(0x147)][_0x4a886d(0x139)][_0x4a886d(0x11d)](_0x4a886d(0x116));_0x524b1b&&this[_0x4a886d(0x123)](_0x524b1b,_0x4a886d(0x110),()=>{const _0x3dc43f=_0x4a886d,_0x34775d=this[_0x3dc43f(0x147)][_0x3dc43f(0x119)][_0x3dc43f(0x14d)][_0x3dc43f(0x11b)][_0x3dc43f(0x15a)]();_0x34775d&&_0x34775d[_0x3dc43f(0x142)](_0x3dc43f(0x133))&&this[_0x3dc43f(0x147)][_0x3dc43f(0x146)][_0x3dc43f(0x153)][_0x3dc43f(0x15d)](_0x3dc43f(0x114),()=>{const _0x463ca4=_0x3dc43f;_0x41fe45(this[_0x463ca4(0x147)],_0x34775d);});});const _0x9dda7d=this[_0x4a886d(0x147)][_0x4a886d(0x139)][_0x4a886d(0x11d)](_0x4a886d(0x124));_0x9dda7d&&this[_0x4a886d(0x123)](_0x9dda7d,_0x4a886d(0x110),()=>{const _0xa7a9f5=_0x4a886d,_0x19078b=this[_0xa7a9f5(0x147)][_0xa7a9f5(0x119)][_0xa7a9f5(0x14d)][_0xa7a9f5(0x11b)][_0xa7a9f5(0x15a)]();_0x19078b&&_0x19078b[_0xa7a9f5(0x142)](_0xa7a9f5(0x133))&&this[_0xa7a9f5(0x147)][_0xa7a9f5(0x146)][_0xa7a9f5(0x153)][_0xa7a9f5(0x15d)](_0xa7a9f5(0x114),()=>{const _0x3a435c=_0xa7a9f5;_0x41fe45(this[_0x3a435c(0x147)],_0x19078b);});});}}
23
+ const _0x51d5ea=_0x140b;(function(_0x51e198,_0x12a02b){const _0x8e78d9=_0x140b,_0x489371=_0x51e198();while(!![]){try{const _0x29987f=-parseInt(_0x8e78d9(0x1ce))/0x1+parseInt(_0x8e78d9(0x1ba))/0x2*(parseInt(_0x8e78d9(0x1bf))/0x3)+parseInt(_0x8e78d9(0x1ea))/0x4*(-parseInt(_0x8e78d9(0x1ed))/0x5)+parseInt(_0x8e78d9(0x1e4))/0x6+parseInt(_0x8e78d9(0x1d3))/0x7*(parseInt(_0x8e78d9(0x1a8))/0x8)+-parseInt(_0x8e78d9(0x1d6))/0x9+parseInt(_0x8e78d9(0x1ae))/0xa;if(_0x29987f===_0x12a02b)break;else _0x489371['push'](_0x489371['shift']());}catch(_0x2235f2){_0x489371['push'](_0x489371['shift']());}}}(_0x81aa,0xda011));import{Plugin as _0x34f78c}from'ckeditor5/src/core.js';import{Dialog as _0x5dbce7}from'ckeditor5/src/ui.js';import{createElement as _0x5a7e69,global as _0xffd82e,uid as _0x19e281}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59b60e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x163725}from'./uploadcareuploadadapter.js';function _0x140b(_0x560db3,_0x22bb7c){const _0x81aa93=_0x81aa();return _0x140b=function(_0x140baa,_0x2e0178){_0x140baa=_0x140baa-0x199;let _0x154893=_0x81aa93[_0x140baa];return _0x154893;},_0x140b(_0x560db3,_0x22bb7c);}import{showImageProcessingIndicator as _0x2e4ccf}from'./utils/editingutils.js';function _0x81aa(){const _0x4d8dec=['listenTo','imageBlock','isOfficialPlugin','1425516mSKUlc','PictureEditing','for','uploadcare.pubkey','uploadcare.uploader','upcast','87876Qzxamp','input[uploadcare-file-input]','iconHrefResolver','75XfUSCe','removeAttribute','contentLanguage','downcast','cleanupImage','document','pluginName','_initConversion','execute','ucContextId','replaceImageSource','closeMax','_initSchema','uc-config','getAttribute','fromCharCode','910736mTwqyu','_ctxElement','configElement','config','isPremiumPlugin','isRegistered','2407850QqcXJS','selection','destroy','ctxElement','join','_initConfig','afterInit','extend','editor','UploadcareEditing','uploadcareImageId','elementToAttribute','2CNfTOV','\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','add','_configElement','schema','3075672mpWHvX','querySelector','editing','view','conversion','get','true','href','_initCtx','init','data-uc-image-id','requires','uploadcare','locale','model','397453DQNckJ','appendChild','uploadcareImageReplace','render','commands','28jXGrsJ','getSelectedElement','once','3051270ubUWJM','insertImage','_initImageProcessingIndicator','attributeToAttribute','body','remove','imageInline','map','#uc-icon-arrow-down','uc-upload-ctx-provider','uploader-'];_0x81aa=function(){return _0x4d8dec;};return _0x81aa();}export class UploadcareEditing extends _0x34f78c{[_0x51d5ea(0x1bd)]=null;[_0x51d5ea(0x1a9)]=null;static get[_0x51d5ea(0x19e)](){const _0x521943=_0x51d5ea;return _0x521943(0x1b7);}static get[_0x51d5ea(0x1ca)](){const _0x1eceda=_0x51d5ea;return[_0x1eceda(0x1e5),_0x163725,_0x5dbce7];}static get[_0x51d5ea(0x1e3)](){return!0x0;}static get[_0x51d5ea(0x1ac)](){return!0x0;}[_0x51d5ea(0x1a1)];get[_0x51d5ea(0x1aa)](){const _0x17a7f3=_0x51d5ea;return this[_0x17a7f3(0x1bd)];}get[_0x51d5ea(0x1b1)](){const _0x1e849e=_0x51d5ea;return this[_0x1e849e(0x1a9)];}constructor(_0x5c64a1){const _0x36b9ec=_0x51d5ea;super(_0x5c64a1),this[_0x36b9ec(0x1a1)]=_0x19e281();}[_0x51d5ea(0x1c8)](){const _0x55c109=_0x51d5ea,_0x3bf3aa=this[_0x55c109(0x1b6)];_0x3bf3aa[_0x55c109(0x1d2)][_0x55c109(0x1bc)](_0x55c109(0x1cb),new _0x59b60e(_0x3bf3aa));}[_0x51d5ea(0x1b4)](){const _0x297d75=_0x51d5ea;this[_0x297d75(0x1a4)](),this[_0x297d75(0x19f)](),this[_0x297d75(0x1b3)](),this[_0x297d75(0x1c7)](),this[_0x297d75(0x1d8)](),this[_0x297d75(0x1e1)](this[_0x297d75(0x1b6)],_0x297d75(0x1b0),()=>{const _0x36411d=_0x297d75;this[_0x36411d(0x1bd)]&&(this[_0x36411d(0x1bd)][_0x36411d(0x1db)](),this[_0x36411d(0x1bd)]=null),this[_0x36411d(0x1a9)]&&(this[_0x36411d(0x1a9)][_0x36411d(0x1db)](),this[_0x36411d(0x1a9)]=null);const _0x25cb64=_0xffd82e[_0x36411d(0x19d)][_0x36411d(0x1c0)](_0x36411d(0x1eb));_0x25cb64&&_0x25cb64[_0x36411d(0x1db)]();}),async function(_0x19acf0){const _0x52028d=_0x1f1d16([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]),_0x1468b3=0x535f8c3a,_0x4ee127=0x5358fa9a^_0x1468b3,_0x5945a5=window[_0x1f1d16([0x44,0x61,0x74,0x65])][_0x1f1d16([0x6e,0x6f,0x77])](),_0x3c092f=_0x19acf0[_0x1f1d16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3147f4=new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4165f8=>{_0x3c092f[_0x1f1d16([0x6f,0x6e,0x63,0x65])](_0x1f1d16([0x72,0x65,0x61,0x64,0x79]),_0x4165f8);}),_0xb9eec4={[_0x1f1d16([0x6b,0x74,0x79])]:_0x1f1d16([0x45,0x43]),[_0x1f1d16([0x75,0x73,0x65])]:_0x1f1d16([0x73,0x69,0x67]),[_0x1f1d16([0x63,0x72,0x76])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1d16([0x78])]:_0x1f1d16([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]),[_0x1f1d16([0x79])]:_0x1f1d16([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]),[_0x1f1d16([0x61,0x6c,0x67])]:_0x1f1d16([0x45,0x53,0x32,0x35,0x36])},_0x327506=_0x3c092f[_0x1f1d16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1d16([0x67,0x65,0x74])](_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2299b9(){let _0x5e44fc,_0x3b539e=null,_0x53996b=null;try{if(_0x327506==_0x1f1d16([0x47,0x50,0x4c]))return _0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e44fc=_0x446bdc(),!_0x5e44fc)return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53996b=_0x36a25e(_0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e44fc[_0x1f1d16([0x6a,0x74,0x69])])),await _0x44261a()?_0x46584d()?_0x23b755()?_0x1f1d16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124684()?(_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aff04()):_0x1f1d16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23b755(){const _0x442ff9=[_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])][_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5945a5/0x3e8:0xe10*_0x4ee127;return _0x5e44fc[_0x1f1d16([0x65,0x78,0x70])]<_0x442ff9;}function _0x46584d(){const _0x460758=_0x5e44fc[_0x1f1d16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x460758&&(!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a]))||!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x55,0x50,0x4c,0x43])));}function _0x124684(){const _0x3188df=_0x140b,_0x546b1f=_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546b1f||0x0==_0x546b1f[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9568e4}=new URL(window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3188df(0x1c6)]);if(_0x546b1f[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9568e4))return!0x0;const _0x4aabf9=_0x9568e4[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));return _0x546b1f[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x391cd3=>_0x391cd3[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a])))[_0x1f1d16([0x6d,0x61,0x70])](_0x59094e=>_0x59094e[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])))[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x309f90=>_0x309f90[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x6d,0x61,0x70])](_0x12890d=>Array(_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12890d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x66,0x69,0x6c,0x6c])](_0x12890d[0x0]===_0x1f1d16([0x2a])?_0x1f1d16([0x2a]):'')[_0x1f1d16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12890d))[_0x1f1d16([0x73,0x6f,0x6d,0x65])](_0x56bf60=>_0x4aabf9[_0x1f1d16([0x65,0x76,0x65,0x72,0x79])]((_0x156ad7,_0xe7e303)=>_0x56bf60[_0xe7e303]===_0x156ad7||_0x56bf60[_0xe7e303]===_0x1f1d16([0x2a])));}function _0x1aff04(){return _0x3b539e&&_0x53996b?new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e55b0,_0x498089)=>{_0x3b539e[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x4e55b0,_0x498089),_0x53996b[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x236d7a=>{_0x236d7a!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x4e55b0(_0x236d7a);},_0x498089);}):_0x3b539e||_0x53996b||_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36a25e(_0x260fcf,_0x37511a){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5394=>{if(_0x972b34())return _0x2d5394(_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]));_0x366afe(),_0x3c092f[_0x1f1d16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50c43e=!0x1;const _0x452b14=_0x19e281();function _0x2e2387(_0x2b3e82){return!!_0x2b3e82&&(typeof _0x2b3e82===_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b3e82===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b3e82[_0x1f1d16([0x74,0x68,0x65,0x6e])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b3e82[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17a5ba(_0x2aebc9){_0x368ede(_0x2aebc9)[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x3accb1=>{if(!_0x3accb1||_0x3accb1[_0x1f1d16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1d16([0x6f,0x6b]))return _0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x130b67(_0xc3083d(_0x452b14+_0x37511a))!=_0x3accb1[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x558322=>(_0x44d20c(),_0x558322),()=>{const _0x59d7d4=_0x1db60d();return null==_0x59d7d4?(_0x44d20c(),_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])):_0x1f1d16(_0x5945a5-_0x59d7d4>(0x7753083a^_0x1468b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x2d5394)[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa3baa1=0x536962ba^_0x1468b3;function _0x44d20c(){const _0x44be7e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x392f4d=_0x30c1c0(_0x130b67(window[_0x1f1d16([0x4d,0x61,0x74,0x68])][_0x1f1d16([0x63,0x65,0x69,0x6c])](_0x5945a5/_0xa3baa1)));window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44be7e,_0x392f4d);}function _0x1db60d(){const _0x2f506e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x5aef01=window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f506e);return _0x5aef01?window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30c1c0(_0x5aef01),0x10)*_0xa3baa1:null;}function _0x368ede(_0x3f6601){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb79513,_0x507484)=>{_0x3f6601[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0xb79513,_0x507484),window[_0x1f1d16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x507484,0x535e58fa^_0x1468b3);});}}_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c1105,_0x3f42aa)=>{if(_0x3f42aa[0x0]!=_0x260fcf)return _0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f42aa[0x1]={..._0x3f42aa[0x1],[_0x1f1d16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x452b14};},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x68,0x69,0x67,0x68])}),_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b02c5=>{_0x2e2387(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50c43e=!0x0,_0x17a5ba(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x6c,0x6f,0x77])}),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>{_0x50c43e||_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x972b34(){return _0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1d16([0x61,0x75,0x74,0x6f]);}function _0x366afe(){_0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1d16([0x61,0x75,0x74,0x6f]);}}function _0x12af67(_0x13edd5){const _0x5417fa=[new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2076fa=>setTimeout(_0x2076fa,0x5356b2f6^_0x1468b3)),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb99e=>{let _0x55fc29=0x0;_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506454,_0x3198e7)=>{_0x3198e7[0x0][_0x1f1d16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55fc29++,_0x55fc29==(0x535f8dc2^_0x1468b3)&&(_0x2bb99e(),_0x506454[_0x1f1d16([0x6f,0x66,0x66])]());});}))];return window[_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1d16([0x72,0x61,0x63,0x65])](_0x5417fa)[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>_0x13edd5);}async function _0x3b93f1(){await _0x3147f4,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x323b8a(_0x52e5e1){const _0x531bb6=_0x25b58c();_0x3c092f[_0x531bb6]=_0x1f1d16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52e5e1,_0x52e5e1!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x3b93f1();}function _0x25b58c(){const _0x2077ce=window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1d16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1d16([0x6e,0x6f,0x77])]())[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1d16([0x2e]),'');let _0x2a8266=_0x1f1d16([0x68]);for(let _0x11973c=0x0;_0x11973c<_0x2077ce[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11973c+=0x2){let _0x17fd67=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2077ce[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11973c,_0x11973c+0x2));_0x17fd67>=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17fd67-=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a8266+=_0x52028d[_0x17fd67];}return _0x2a8266;}function _0x446bdc(){const _0x139e06=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));if(0x3!=_0x139e06[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ef542(_0x139e06[0x1]);function _0x2ef542(_0x3685fa){const _0x54befa=_0x20e18b(_0x3685fa);return _0x54befa&&_0x49f5b4()?_0x54befa:null;function _0x49f5b4(){const _0x315f65=_0x54befa[_0x1f1d16([0x6a,0x74,0x69])],_0x32356f=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d289a={..._0x54befa,[_0x1f1d16([0x6a,0x74,0x69])]:_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d289a[_0x1f1d16([0x76,0x63])],_0xc3083d(_0x4d289a)==_0x32356f;}}}async function _0x44261a(){let _0x1f84a6=!0x0;try{const _0x8297cb=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])),[_0x1144b,_0x1060ae,_0x2ac01d]=_0x8297cb;return _0x480d79(_0x1144b),await _0x59d255(_0x1144b,_0x1060ae,_0x2ac01d),_0x1f84a6;}catch{return!0x1;}function _0x480d79(_0x4a724d){const _0x1fb667=_0x20e18b(_0x4a724d);_0x1fb667&&_0x1fb667[_0x1f1d16([0x61,0x6c,0x67])]==_0x1f1d16([0x45,0x53,0x32,0x35,0x36])||(_0x1f84a6=!0x1);}async function _0x59d255(_0x5a6f8f,_0x3a241a,_0x561a44){const _0x28ad74=window[_0x1f1d16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1d16([0x66,0x72,0x6f,0x6d])](_0x280ffb(_0x561a44),_0x33bbae=>_0x33bbae[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1525a3=new window[(_0x1f1d16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1d16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a6f8f+_0x1f1d16([0x2e])+_0x3a241a),_0x212e08=window[_0x1f1d16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1d16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x212e08)return;const _0xa81b01=await _0x212e08[_0x1f1d16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1d16([0x6a,0x77,0x6b]),_0xb9eec4,{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x212e08[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x68,0x61,0x73,0x68])]:{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa81b01,_0x28ad74,_0x1525a3)||(_0x1f84a6=!0x1);}}function _0x20e18b(_0x56b694){return _0x56b694[_0x1f1d16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1d16([0x65,0x79]))?JSON[_0x1f1d16([0x70,0x61,0x72,0x73,0x65])](_0x280ffb(_0x56b694)):null;}function _0x280ffb(_0x3b1d9b){return window[_0x1f1d16([0x61,0x74,0x6f,0x62])](_0x3b1d9b[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1d16([0x2b]))[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1d16([0x2f])));}function _0xc3083d(_0xae2f2c){let _0x293537=0x1505;function _0x5e898c(_0x228696){for(let _0x14071d=0x0;_0x14071d<_0x228696[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14071d++){const _0x4eabfe=_0x228696[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14071d);_0x293537=(_0x293537<<0x5)+_0x293537+_0x4eabfe,_0x293537&=_0x293537;}}function _0x67b919(_0x18a88f){Array[_0x1f1d16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18a88f)?_0x18a88f[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x67b919):_0x18a88f&&typeof _0x18a88f==_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1d16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18a88f)[_0x1f1d16([0x73,0x6f,0x72,0x74])]()[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4752ce,_0x11d973])=>{_0x5e898c(_0x4752ce),_0x67b919(_0x11d973);}):_0x5e898c(window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18a88f));}return _0x67b919(_0xae2f2c),_0x293537>>>0x0;}function _0x130b67(_0x24af36){return _0x24af36[_0x1f1d16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1d16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1d16([0x30]));}function _0x30c1c0(_0x3594aa){return _0x3594aa[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1d16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1d16([0x6a,0x6f,0x69,0x6e])]('');}function _0x150d52(){}function _0x1f1d16(_0x3f0c1f){const _0x32101a=_0x140b;return _0x3f0c1f[_0x32101a(0x1dd)](_0x49a4aa=>String[_0x32101a(0x1a7)](_0x49a4aa))[_0x32101a(0x1b2)]('');}_0x323b8a(await _0x2299b9());}(this);}[_0x51d5ea(0x1a4)](){const _0xe27fbd=_0x51d5ea,_0x55f5e1=this[_0xe27fbd(0x1b6)][_0xe27fbd(0x1cd)][_0xe27fbd(0x1be)];_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1e2))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1e2),{'allowAttributes':[_0xe27fbd(0x1b8)]}),_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1dc))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1dc),{'allowAttributes':[_0xe27fbd(0x1b8)]});}[_0x51d5ea(0x19f)](){const _0x273748=_0x51d5ea,_0x1d353d=this[_0x273748(0x1b6)];_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x19b))[_0x273748(0x1d9)]({'model':_0x273748(0x1b8),'view':_0x273748(0x1c9)}),_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x1e9))[_0x273748(0x1b9)]({'model':{'key':_0x273748(0x1b8),'value':_0x2cbeea=>_0x2cbeea[_0x273748(0x1a6)](_0x273748(0x1c9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d6ae5=_0x1d353d[_0x273748(0x1d2)][_0x273748(0x1c4)](_0x273748(0x1a2));_0x1d6ae5&&this[_0x273748(0x1e1)](_0x1d6ae5,_0x273748(0x19c),(_0x5cf6f6,[_0x4e9142,_0x1f6d15])=>{const _0x4101bf=_0x273748;_0x4e9142[_0x4101bf(0x199)](_0x4101bf(0x1b8),_0x1f6d15);});}[_0x51d5ea(0x1b3)](){const _0x20755e=_0x51d5ea,_0x3619db=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e8))||{},_0x1e4b86=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e7))||'';this[_0x20755e(0x1bd)]=_0x5a7e69(_0xffd82e[_0x20755e(0x19d)],_0x20755e(0x1a5),{..._0x3619db,'pubkey':_0x1e4b86,'ctx-name':_0x20755e(0x1e0)+this[_0x20755e(0x1a1)],'sourceList':'','imgOnly':_0x20755e(0x1c5),'removeCopyright':_0x20755e(0x1c5),'localeName':this[_0x20755e(0x1b6)][_0x20755e(0x1cc)][_0x20755e(0x19a)],'externalSourcesEmbedCss':_0x20755e(0x1bb)}),this[_0x20755e(0x1bd)][_0x20755e(0x1ec)]=_0x3df5f1=>{const _0x3ac8b8=_0x20755e;if(_0x3ac8b8(0x1a3)==_0x3df5f1)return _0x3ac8b8(0x1de);},_0xffd82e[_0x20755e(0x19d)][_0x20755e(0x1da)][_0x20755e(0x1cf)](this[_0x20755e(0x1bd)]);}[_0x51d5ea(0x1c7)](){const _0x63e210=_0x51d5ea;this[_0x63e210(0x1a9)]=_0x5a7e69(_0xffd82e[_0x63e210(0x19d)],_0x63e210(0x1df),{'ctx-name':_0x63e210(0x1e0)+this[_0x63e210(0x1a1)]}),_0xffd82e[_0x63e210(0x19d)][_0x63e210(0x1da)][_0x63e210(0x1cf)](this[_0x63e210(0x1a9)]);}[_0x51d5ea(0x1d8)](){const _0x6a716e=_0x51d5ea,_0x4f86c2=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d7));_0x4f86c2&&this[_0x6a716e(0x1e1)](_0x4f86c2,_0x6a716e(0x1a0),()=>{const _0x1c40c5=_0x6a716e,_0x1739cc=this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1cd)][_0x1c40c5(0x19d)][_0x1c40c5(0x1af)][_0x1c40c5(0x1d4)]();_0x1739cc&&_0x1739cc[_0x1c40c5(0x1a6)](_0x1c40c5(0x1b8))&&this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1c1)][_0x1c40c5(0x1c2)][_0x1c40c5(0x1d5)](_0x1c40c5(0x1d1),()=>{const _0x346cd8=_0x1c40c5;_0x2e4ccf(this[_0x346cd8(0x1b6)],_0x1739cc);});});const _0x1c0e9c=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d0));_0x1c0e9c&&this[_0x6a716e(0x1e1)](_0x1c0e9c,_0x6a716e(0x1a0),()=>{const _0xf3a13c=_0x6a716e,_0xc7ab2b=this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1cd)][_0xf3a13c(0x19d)][_0xf3a13c(0x1af)][_0xf3a13c(0x1d4)]();_0xc7ab2b&&_0xc7ab2b[_0xf3a13c(0x1a6)](_0xf3a13c(0x1b8))&&this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1c1)][_0xf3a13c(0x1c2)][_0xf3a13c(0x1d5)](_0xf3a13c(0x1d1),()=>{const _0x53edd5=_0xf3a13c;_0x2e4ccf(this[_0x53edd5(0x1b6)],_0xc7ab2b);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x5af7c4,ObservableMixin as _0x236100}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x47509c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4b62c3}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1f36d2}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5bdd4f}from'../../utils/uploadutils.js';import{getImageUrls as _0x28f22a,getImageDimension as _0x16088e}from'../../utils/editingutils.js';import{isAncestor as _0x4b9a5c}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x236100(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x21ea0d,_0xd67c5e,_0x18a181){super(),this['_editor']=_0x21ea0d,this['_dialog']=_0xd67c5e,this['_imageElement']=_0x18a181,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 _0x314675=this['_imageElement'],_0x597784=_0x314675['getAttribute']('uploadcareImageId'),_0x82301d=_0x314675['getAttribute']('src');if(_0x597784)await this['_loadImageInfo'](_0x597784,_0x82301d);else{if(this['_imageCache']['has'](_0x82301d)){const _0x4b38fd=this['_imageCache']['get'](_0x82301d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b38fd['url'],this['imageDimension']=_0x4b38fd['dimension'],this['imageId']=_0x4b38fd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x592dbb}=this['_editor'],t=_0x592dbb['t'],_0x5a7659=new _0x1f36d2(_0x592dbb,this['imageStatus'],this['_attributes']);_0x5a7659['bind']('status')['to'](this,'imageStatus'),_0x5a7659['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a7659['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a7659['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a7659,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b62c3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a7659,'position':_0x47509c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a7659['focus']();},'onHide':()=>{_0x5a7659['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x419c2e=>!_0x4b9a5c(_0x419c2e,_0x5a7659['element'])}});}['_loadImageInfo'](_0x14c035,_0x8c0675){return _0x5bdd4f['getInfo'](_0x14c035,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3ab5bf=>{const {width:_0xff23b3,height:_0x592827}=_0x3ab5bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8c0675,this['imageDimension']={'width':_0xff23b3,'height':_0x592827},this['imageId']=_0x14c035;})['catch'](_0x50b5f0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50b5f0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd8fbdb,_0x2ec3c7){return this['_getImageAsFile'](_0xd8fbdb)['then'](_0x4dd71f=>_0x5bdd4f['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':_0x2ec3c7['signal'],'file':_0x4dd71f,'onProgress':_0x36db8e=>{_0x36db8e&&_0x36db8e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x36db8e['value']));}}))['then'](_0x2ba62e=>{const {width:_0x32401b,height:_0x42bd7a}=_0x2ba62e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ba62e['cdnUrl'],this['imageDimension']={'width':_0x32401b,'height':_0x42bd7a},this['imageId']=_0x2ba62e['uuid'],this['imageUploadProgress']=null;const _0x4ac436=_0xd8fbdb['getAttribute']('src');this['_imageCache']['set'](_0x4ac436,{'id':_0x2ba62e['uuid'],'url':_0x2ba62e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a64fa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a64fa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x44ee3f,_0x37fbc5){_0x44ee3f['on']('apply',(_0x1b5752,_0x296998)=>{this['_replaceImage'](_0x37fbc5,_0x296998['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x44ee3f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x44ee3f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4284f1,_0x568857,_0x503bb9){const _0x43bacb=this['_editor'],{width:_0x5b3f1c,height:_0x3ff8e9}=_0x16088e(_0x568857,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x137f8e,imageSources:_0x234654}=_0x28f22a(_0x568857,_0x5b3f1c);_0x43bacb['model']['change'](_0x21620c=>{if('$graveyard'===_0x4284f1['root']['rootName']){_0x43bacb['execute']('insertImage',{'imageType':_0x4284f1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4284f1['getAttributes']()),'uploadcareImageId':_0x503bb9,'src':_0x137f8e,'sources':_0x234654,'width':_0x5b3f1c,'height':_0x3ff8e9}});const _0x566824=_0x4284f1['getChildren']();_0x4284f1=_0x43bacb['model']['document']['selection']['getSelectedElement']();for(const _0x25b9d0 of _0x566824)_0x21620c['append'](_0x21620c['cloneElement'](_0x25b9d0),_0x4284f1);}else _0x21620c['setSelection'](_0x4284f1,'on'),_0x43bacb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4284f1['getAttributes']()),'uploadcareImageId':_0x503bb9,'src':_0x137f8e,'sources':_0x234654,'width':_0x5b3f1c,'height':_0x3ff8e9},_0x4284f1);_0x21620c['setSelection'](_0x4284f1,'on');});}async['_getImageAsFile'](_0x1cf6d7){const _0xc5bf82=_0x5af7c4['window'],_0x5edb42=_0x5af7c4['document']['location']['href'],_0x2925ea=new _0xc5bf82['URL'](_0x1cf6d7['getAttribute']('src'),_0x5edb42);if('data:'===_0x2925ea['protocol']){const _0x2377c9=_0x2925ea['href']['split'](','),_0x5bfa94=_0x2377c9[0x0]['match'](/:(.*?);/)[0x1],_0xf34806=_0x5bfa94['split']('/')[0x1],_0x28a73c=_0xc5bf82['atob'](_0x2377c9[_0x2377c9['length']-0x1]);let _0x252a3f=_0x28a73c['length'];const _0x25b061=new _0xc5bf82['Uint8Array'](_0x252a3f);for(;_0x252a3f--;)_0x25b061[_0x252a3f]=_0x28a73c['charCodeAt'](_0x252a3f);return new _0xc5bf82['File']([_0x25b061],'image.'+_0xf34806,{'type':_0x5bfa94});}const _0x4ebf93=_0x2925ea['href']['split']('/'),_0x3d360e=_0x4ebf93[_0x4ebf93['length']-0x1],_0x5ac3a3=_0x3d360e['split']('.')[0x1];return _0xc5bf82['fetch'](_0x2925ea['href'])['then'](_0x5de02c=>_0x5de02c['clone']()['blob']())['then'](_0x32c8f9=>new _0xc5bf82['File']([_0x32c8f9],_0x3d360e,{'type':'image/'+_0x5ac3a3}));}}
23
+ import{global as _0x206eb4,ObservableMixin as _0x49b5a6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2eabe5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4f4e1b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb750aa}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x353cbe}from'../../utils/uploadutils.js';import{getImageUrls as _0x42044e,getImageDimension as _0x47d1ad}from'../../utils/editingutils.js';import{isAncestor as _0x276e0d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x49b5a6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16f396,_0x123a01,_0x4a111a){super(),this['_editor']=_0x16f396,this['_dialog']=_0x123a01,this['_imageElement']=_0x4a111a,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 _0x40a720=this['_imageElement'],_0x39d260=_0x40a720['getAttribute']('uploadcareImageId'),_0x1b8f92=_0x40a720['getAttribute']('src');if(_0x39d260)await this['_loadImageInfo'](_0x39d260,_0x1b8f92);else{if(this['_imageCache']['has'](_0x1b8f92)){const _0x4a0c05=this['_imageCache']['get'](_0x1b8f92);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a0c05['url'],this['imageDimension']=_0x4a0c05['dimension'],this['imageId']=_0x4a0c05['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51e8a4}=this['_editor'],t=_0x51e8a4['t'],_0x48eccb=new _0xb750aa(_0x51e8a4,this['imageStatus'],this['_attributes']);_0x48eccb['bind']('status')['to'](this,'imageStatus'),_0x48eccb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48eccb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48eccb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48eccb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4f4e1b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48eccb,'position':_0x2eabe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48eccb['focus']();},'onHide':()=>{_0x48eccb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42e835=>!_0x276e0d(_0x42e835,_0x48eccb['element'])}});}['_loadImageInfo'](_0x56af8d,_0x473390){return _0x353cbe['getInfo'](_0x56af8d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5e95e4=>{const {width:_0x49dd6d,height:_0x3f2910}=_0x5e95e4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x473390,this['imageDimension']={'width':_0x49dd6d,'height':_0x3f2910},this['imageId']=_0x56af8d;})['catch'](_0x420a35=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x420a35['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1de891,_0x5133ce){return this['_getImageAsFile'](_0x1de891)['then'](_0x478d73=>_0x353cbe['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':_0x5133ce['signal'],'file':_0x478d73,'onProgress':_0x5de966=>{_0x5de966&&_0x5de966['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5de966['value']));}}))['then'](_0x539e6d=>{const {width:_0x329e85,height:_0x7c5f33}=_0x539e6d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x539e6d['cdnUrl'],this['imageDimension']={'width':_0x329e85,'height':_0x7c5f33},this['imageId']=_0x539e6d['uuid'],this['imageUploadProgress']=null;const _0x59d33b=_0x1de891['getAttribute']('src');this['_imageCache']['set'](_0x59d33b,{'id':_0x539e6d['uuid'],'url':_0x539e6d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59fbff=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59fbff['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b2846,_0x4e4eb0){_0x4b2846['on']('apply',(_0x4a8030,_0x5e5044)=>{this['_replaceImage'](_0x4e4eb0,_0x5e5044['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b2846['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b2846['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b19a0,_0x5e5121,_0x216e0f){const _0x1368db=this['_editor'],{width:_0xd26c5d,height:_0x442012}=_0x47d1ad(_0x5e5121,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x27ca11,imageSources:_0x4dc576}=_0x42044e(_0x5e5121,_0xd26c5d);_0x1368db['model']['change'](_0xfcb466=>{if('$graveyard'===_0x2b19a0['root']['rootName']){_0x1368db['execute']('insertImage',{'imageType':_0x2b19a0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b19a0['getAttributes']()),'uploadcareImageId':_0x216e0f,'src':_0x27ca11,'sources':_0x4dc576,'width':_0xd26c5d,'height':_0x442012}});const _0x183406=_0x2b19a0['getChildren']();_0x2b19a0=_0x1368db['model']['document']['selection']['getSelectedElement']();for(const _0x2868bd of _0x183406)_0xfcb466['append'](_0xfcb466['cloneElement'](_0x2868bd),_0x2b19a0);}else _0xfcb466['setSelection'](_0x2b19a0,'on'),_0x1368db['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b19a0['getAttributes']()),'uploadcareImageId':_0x216e0f,'src':_0x27ca11,'sources':_0x4dc576,'width':_0xd26c5d,'height':_0x442012},_0x2b19a0);_0xfcb466['setSelection'](_0x2b19a0,'on');});}async['_getImageAsFile'](_0x14eaa8){const _0x219512=_0x206eb4['window'],_0x5a4705=_0x206eb4['document']['location']['href'],_0x21bedd=new _0x219512['URL'](_0x14eaa8['getAttribute']('src'),_0x5a4705);if('data:'===_0x21bedd['protocol']){const _0x27d3f1=_0x21bedd['href']['split'](','),_0x448c3d=_0x27d3f1[0x0]['match'](/:(.*?);/)[0x1],_0x1506de=_0x448c3d['split']('/')[0x1],_0x45f3a9=_0x219512['atob'](_0x27d3f1[_0x27d3f1['length']-0x1]);let _0x40f7bf=_0x45f3a9['length'];const _0x51f040=new _0x219512['Uint8Array'](_0x40f7bf);for(;_0x40f7bf--;)_0x51f040[_0x40f7bf]=_0x45f3a9['charCodeAt'](_0x40f7bf);return new _0x219512['File']([_0x51f040],'image.'+_0x1506de,{'type':_0x448c3d});}const _0x47a767=_0x21bedd['href']['split']('/'),_0x52d36e=_0x47a767[_0x47a767['length']-0x1],_0x1eaedb=_0x52d36e['split']('.')[0x1];return _0x219512['fetch'](_0x21bedd['href'])['then'](_0x139cba=>_0x139cba['clone']()['blob']())['then'](_0x148bf8=>new _0x219512['File']([_0x148bf8],_0x52d36e,{'type':'image/'+_0x1eaedb}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x34667d,_0x1eb6e6){const _0x4a6fcb=_0xf0b8,_0x417e33=_0x34667d();while(!![]){try{const _0x14e612=parseInt(_0x4a6fcb(0xdd))/0x1+parseInt(_0x4a6fcb(0xd3))/0x2+-parseInt(_0x4a6fcb(0xcd))/0x3+-parseInt(_0x4a6fcb(0xd8))/0x4*(-parseInt(_0x4a6fcb(0xd9))/0x5)+-parseInt(_0x4a6fcb(0xd1))/0x6+-parseInt(_0x4a6fcb(0xd0))/0x7*(parseInt(_0x4a6fcb(0xd4))/0x8)+parseInt(_0x4a6fcb(0xd6))/0x9;if(_0x14e612===_0x1eb6e6)break;else _0x417e33['push'](_0x417e33['shift']());}catch(_0x3c1381){_0x417e33['push'](_0x417e33['shift']());}}}(_0xdc94,0x4f4f4));function _0xf0b8(_0x590517,_0x594d16){const _0xdc94bc=_0xdc94();return _0xf0b8=function(_0xf0b8a6,_0x3748c4){_0xf0b8a6=_0xf0b8a6-0xcd;let _0x567b25=_0xdc94bc[_0xf0b8a6];return _0x567b25;},_0xf0b8(_0x590517,_0x594d16);}function _0xdc94(){const _0x530e64=['36dlCUPo','50595vvHlTF','imageSrc','uc-light','image-edit','242433errCxx','95778XHhHSX','uc-cloud-image-editor','set','3017iVXyTe','756186RHbEUv','setTemplate','791176krqxWU','8752VWkgAf','ck-uploadcare-theme','2027079sdNyfI','bindTemplate'];_0xdc94=function(){return _0x530e64;};return _0xdc94();}import{View as _0x3629cd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3629cd{constructor(_0x488543,_0x10fabe){const _0x2db0ac=_0xf0b8;super(_0x488543);const _0x1372e9=this[_0x2db0ac(0xd7)];this[_0x2db0ac(0xcf)](_0x2db0ac(0xda),''),this[_0x2db0ac(0xd2)]({'tag':_0x2db0ac(0xce),'attributes':{..._0x10fabe,'class':[_0x2db0ac(0xdb),_0x2db0ac(0xd5)],'ctx-name':_0x2db0ac(0xdc),'cdn-url':_0x1372e9['to'](_0x2db0ac(0xda))}});}}
23
+ (function(_0x4764af,_0x926991){const _0x48de97=_0x23d2,_0x195016=_0x4764af();while(!![]){try{const _0x21b204=-parseInt(_0x48de97(0x1c6))/0x1+parseInt(_0x48de97(0x1d1))/0x2*(-parseInt(_0x48de97(0x1d3))/0x3)+parseInt(_0x48de97(0x1cf))/0x4+parseInt(_0x48de97(0x1cb))/0x5*(-parseInt(_0x48de97(0x1c8))/0x6)+parseInt(_0x48de97(0x1c5))/0x7+parseInt(_0x48de97(0x1ce))/0x8+-parseInt(_0x48de97(0x1c4))/0x9*(parseInt(_0x48de97(0x1d2))/0xa);if(_0x21b204===_0x926991)break;else _0x195016['push'](_0x195016['shift']());}catch(_0x2bafb7){_0x195016['push'](_0x195016['shift']());}}}(_0x52fb,0xdf58f));function _0x23d2(_0xdcb81c,_0x26e91c){const _0x52fbcb=_0x52fb();return _0x23d2=function(_0x23d229,_0x36c24c){_0x23d229=_0x23d229-0x1c2;let _0x44699a=_0x52fbcb[_0x23d229];return _0x44699a;},_0x23d2(_0xdcb81c,_0x26e91c);}import{View as _0xbad432}from'ckeditor5/src/ui.js';function _0x52fb(){const _0x38fb57=['imageSrc','ck-uploadcare-theme','20065ACOXBP','bindTemplate','set','12949768hdrIph','5105880ezBmqI','uc-light','76534iBsaxM','490uNGcKK','60aNyxsv','uc-cloud-image-editor','image-edit','20133UzgOaw','7568176LQHeng','1331806VsKUIB','setTemplate','1278OvOtxf'];_0x52fb=function(){return _0x38fb57;};return _0x52fb();}export class UploadcareImageEditFormEditingView extends _0xbad432{constructor(_0x35d0ea,_0x99dcfe){const _0xa78046=_0x23d2;super(_0x35d0ea);const _0x4868f1=this[_0xa78046(0x1cc)];this[_0xa78046(0x1cd)](_0xa78046(0x1c9),''),this[_0xa78046(0x1c7)]({'tag':_0xa78046(0x1c2),'attributes':{..._0x99dcfe,'class':[_0xa78046(0x1d0),_0xa78046(0x1ca)],'ctx-name':_0xa78046(0x1c3),'cdn-url':_0x4868f1['to'](_0xa78046(0x1c9))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x5b608f}from'ckeditor5/src/icons.js';import{ButtonView as _0x23e37f,IconView as _0x1babac,View as _0x54189d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x54189d{constructor(_0x6b3f92){super(_0x6b3f92);const t=_0x6b3f92['t'];this['set']('errorType',null);const _0x128c7a=new _0x23e37f(_0x6b3f92);_0x128c7a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x128c7a['withText']=!0x0,_0x128c7a['class']='ck-button-action',_0x128c7a['on']('execute',()=>{this['fire']('retry');}),_0x128c7a['bind']('isVisible')['to'](this,'errorType',_0x4e87c3=>'NotFound'!==_0x4e87c3);const _0x19f07d=new _0x1babac();_0x19f07d['content']=_0x5b608f,_0x19f07d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41a090=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':[_0x19f07d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41a090['to']('errorType',_0x31e56b=>t('NotFound'!==_0x31e56b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x128c7a]},{'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 _0xb352da}from'ckeditor5/src/icons.js';import{ButtonView as _0x2c7d7c,IconView as _0x10b6e7,View as _0xc8d0c9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xc8d0c9{constructor(_0x601443){super(_0x601443);const t=_0x601443['t'];this['set']('errorType',null);const _0x4b0897=new _0x2c7d7c(_0x601443);_0x4b0897['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b0897['withText']=!0x0,_0x4b0897['class']='ck-button-action',_0x4b0897['on']('execute',()=>{this['fire']('retry');}),_0x4b0897['bind']('isVisible')['to'](this,'errorType',_0x13dced=>'NotFound'!==_0x13dced);const _0x28d5d6=new _0x10b6e7();_0x28d5d6['content']=_0xb352da,_0x28d5d6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe9a040=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':[_0x28d5d6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe9a040['to']('errorType',_0xc537ff=>t('NotFound'!==_0xc537ff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b0897]},{'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 _0x30b7e9,View as _0x30151d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x30151d{constructor(_0x5bc1d7){super(_0x5bc1d7);const t=_0x5bc1d7['t'],_0x50b572=this['bindTemplate'],_0x395c31=new _0x30b7e9();_0x395c31['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':[_0x395c31,{'text':_0x50b572['to']('imageUploadProgress',_0x1d13b6=>t('Loading\x20image...')+'\x20('+(_0x1d13b6||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 _0x4eb61d,View as _0x4a8463}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4a8463{constructor(_0x5bd035){super(_0x5bd035);const t=_0x5bd035['t'],_0x1e8a77=this['bindTemplate'],_0x30a5a0=new _0x4eb61d();_0x30a5a0['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':[_0x30a5a0,{'text':_0x1e8a77['to']('imageUploadProgress',_0x11ccad=>t('Loading\x20image...')+'\x20('+(_0x11ccad||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 _0x462815=_0x2336;(function(_0x53334a,_0x4c4ddd){const _0x12541c=_0x2336,_0x402789=_0x53334a();while(!![]){try{const _0x45d940=-parseInt(_0x12541c(0xaf))/0x1+parseInt(_0x12541c(0xc8))/0x2+parseInt(_0x12541c(0xc4))/0x3+parseInt(_0x12541c(0xa6))/0x4+parseInt(_0x12541c(0xae))/0x5+parseInt(_0x12541c(0xd0))/0x6+-parseInt(_0x12541c(0xac))/0x7;if(_0x45d940===_0x4c4ddd)break;else _0x402789['push'](_0x402789['shift']());}catch(_0x322d43){_0x402789['push'](_0x402789['shift']());}}}(_0x4d1b,0x2092a));import{View as _0x56b04c}from'ckeditor5/src/ui.js';function _0x2336(_0x4870ca,_0x2ce28c){const _0x4d1bc4=_0x4d1b();return _0x2336=function(_0x233674,_0xc57205){_0x233674=_0x233674-0x9d;let _0x173dfa=_0x4d1bc4[_0x233674];return _0x173dfa;},_0x2336(_0x4870ca,_0x2ce28c);}import{UploadcareImageEditFormLoadingView as _0x28520c}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x18ffa7}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x163d6e}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4107d8}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4d1b(){const _0x2833c2=['2422455lJynUW','nodeName','305090WPGsCG','38504peQVkn','querySelector','observe','uc-cloud-image-editor','addedNodes','_editingView','change:status','ready','focus','error','cancel','_errorView','div','createCollection','apply','detail','fire','setTemplate','cdnUrl','_addUploadcareImageEditorListeners','filter','690309wlpHSa','clear','retry','_waitForImageEditorComponent','75434zKPxQf','ck-reset_all-excluded','add','status','length','target','_focusableView','uploading','119712WSFonG','render','once','addEventListener','disconnect','getFocusableElement','set','toLowerCase','ck-uploadcare-form','addMany','676788Kkruyh','_items','_addErrorViewListeners','element','_loadingView','_setView'];_0x4d1b=function(){return _0x2833c2;};return _0x4d1b();}export class UploadcareImageEditFormView extends _0x4107d8{[_0x462815(0xa7)];[_0x462815(0xaa)];[_0x462815(0xba)];[_0x462815(0xb4)];[_0x462815(0xce)];constructor(_0x6ff874,_0xf8a24c,_0xd5d63){const _0x2761fa=_0x462815;super(_0x6ff874),this[_0x2761fa(0xa7)]=this[_0x2761fa(0xbc)](),this[_0x2761fa(0xaa)]=new _0x28520c(_0x6ff874),this[_0x2761fa(0xba)]=new _0x18ffa7(_0x6ff874),this[_0x2761fa(0xb4)]=new _0x163d6e(_0x6ff874,_0xd5d63),this[_0x2761fa(0xce)]=new _0x56b04c(_0x6ff874),this[_0x2761fa(0xce)][_0x2761fa(0xc0)](this[_0x2761fa(0xa1)]()),this[_0x2761fa(0xa2)](_0x2761fa(0xcb),_0xf8a24c),this[_0x2761fa(0xc0)]({'tag':_0x2761fa(0xbb),'attributes':{'class':['ck',_0x2761fa(0xc9),_0x2761fa(0xa4)],'tabindex':'-1'},'children':this[_0x2761fa(0xa7)]}),this[_0x2761fa(0xab)](),this[_0x2761fa(0x9e)](_0x2761fa(0x9d),()=>{const _0x509d1c=_0x2761fa;this[_0x509d1c(0xc7)](this[_0x509d1c(0xa9)],_0x24fe03=>{const _0x28030e=_0x509d1c;this[_0x28030e(0xc2)](_0x24fe03);});}),this['on'](_0x2761fa(0xb5),()=>{const _0x218fb7=_0x2761fa;this[_0x218fb7(0xab)]();}),this[_0x2761fa(0xa8)]();}[_0x462815(0xb7)](){const _0x477857=_0x462815;this[_0x477857(0xa9)][_0x477857(0xb7)]();}[_0x462815(0xab)](){const _0x285ec6=_0x462815;switch(this[_0x285ec6(0xa7)][_0x285ec6(0xc5)](),this[_0x285ec6(0xcb)]){case _0x285ec6(0xcf):this[_0x285ec6(0xa7)][_0x285ec6(0xca)](this[_0x285ec6(0xaa)]);break;case _0x285ec6(0xb8):this[_0x285ec6(0xa7)][_0x285ec6(0xca)](this[_0x285ec6(0xba)]);break;case _0x285ec6(0xb6):this[_0x285ec6(0xa7)][_0x285ec6(0xa5)]([this[_0x285ec6(0xb4)],this[_0x285ec6(0xce)]]);}}[_0x462815(0xc7)](_0x19c99b,_0x6761a0){const _0x14c873=_0x462815,_0x23a5b2=_0x14c873(0xb2),_0x5f8ced=_0x19c99b[_0x14c873(0xb0)](_0x23a5b2);if(_0x5f8ced)return _0x6761a0(_0x5f8ced);const _0x495c7c=new MutationObserver(_0x2fed70=>{const _0x524897=_0x14c873,_0x4c3d92=_0x2fed70[_0x524897(0xc3)](_0x44525a=>_0x44525a[_0x524897(0xcd)]===_0x19c99b&&_0x44525a[_0x524897(0xb3)][_0x524897(0xcc)]>0x0&&_0x44525a[_0x524897(0xb3)][0x0][_0x524897(0xad)][_0x524897(0xa3)]()===_0x23a5b2);_0x4c3d92[_0x524897(0xcc)]&&(_0x495c7c[_0x524897(0xa0)](),_0x6761a0(_0x4c3d92[0x0][_0x524897(0xb3)][0x0]));});_0x495c7c[_0x14c873(0xb1)](_0x19c99b,{'childList':!0x0,'subtree':!0x0});}[_0x462815(0xc2)](_0x2b08bc){const _0x425bc1=_0x462815;_0x2b08bc[_0x425bc1(0x9f)](_0x425bc1(0xbd),_0x42d92b=>{const _0x20bcab=_0x425bc1;this[_0x20bcab(0xbf)](_0x20bcab(0xbd),{'imageSrc':_0x42d92b[_0x20bcab(0xbe)][_0x20bcab(0xc1)]});}),_0x2b08bc[_0x425bc1(0x9f)](_0x425bc1(0xb9),()=>{const _0x5cb137=_0x425bc1;this[_0x5cb137(0xbf)](_0x5cb137(0xb9));});}[_0x462815(0xa8)](){const _0x56e9c9=_0x462815;this[_0x56e9c9(0xba)]['on'](_0x56e9c9(0xc6),()=>{const _0x460d6d=_0x56e9c9;this[_0x460d6d(0xbf)](_0x460d6d(0xc6));});}}
23
+ const _0x3fb375=_0x4917;(function(_0x37a136,_0x4a9642){const _0x2baba2=_0x4917,_0x5e930d=_0x37a136();while(!![]){try{const _0x2deda3=parseInt(_0x2baba2(0x1c9))/0x1+parseInt(_0x2baba2(0x1cb))/0x2+-parseInt(_0x2baba2(0x1e0))/0x3+-parseInt(_0x2baba2(0x1f4))/0x4*(-parseInt(_0x2baba2(0x1cf))/0x5)+-parseInt(_0x2baba2(0x1dd))/0x6+-parseInt(_0x2baba2(0x1f3))/0x7+parseInt(_0x2baba2(0x1e3))/0x8*(parseInt(_0x2baba2(0x1ee))/0x9);if(_0x2deda3===_0x4a9642)break;else _0x5e930d['push'](_0x5e930d['shift']());}catch(_0x73c122){_0x5e930d['push'](_0x5e930d['shift']());}}}(_0x4233,0x3b80e));import{View as _0x43cee7}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x422aeb}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x37b93c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3c007c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x539d90}from'../../utils/dialogfocusmanagerview.js';function _0x4917(_0x383992,_0x4f75e3){const _0x4233ef=_0x4233();return _0x4917=function(_0x4917c7,_0x177a31){_0x4917c7=_0x4917c7-0x1c4;let _0x256003=_0x4233ef[_0x4917c7];return _0x256003;},_0x4917(_0x383992,_0x4f75e3);}import'../../../theme/uploadcare-form.css';function _0x4233(){const _0x138503=['div','target','disconnect','retry','9RTmRyM','_waitForImageEditorComponent','addEventListener','length','setTemplate','748636ijRqHb','232YFMzAx','filter','apply','createCollection','render','cdnUrl','clear','add','set','nodeName','_setView','101460wCWxEX','once','753038kMhGEr','ready','getFocusableElement','cancel','9015TGLpkQ','ck-uploadcare-form','_focusableView','detail','observe','element','addMany','error','ck-reset_all-excluded','uploading','status','change:status','_addErrorViewListeners','_editingView','1703946pWYuFM','addedNodes','toLowerCase','2184aLpGJQ','querySelector','_loadingView','422720kmzCOe','_errorView','uc-cloud-image-editor','_addUploadcareImageEditorListeners','fire','_items','focus'];_0x4233=function(){return _0x138503;};return _0x4233();}export class UploadcareImageEditFormView extends _0x539d90{[_0x3fb375(0x1e8)];[_0x3fb375(0x1e2)];[_0x3fb375(0x1e4)];[_0x3fb375(0x1dc)];[_0x3fb375(0x1d1)];constructor(_0x212466,_0x4a500b,_0x2b608d){const _0x5c8863=_0x3fb375;super(_0x212466),this[_0x5c8863(0x1e8)]=this[_0x5c8863(0x1f7)](),this[_0x5c8863(0x1e2)]=new _0x422aeb(_0x212466),this[_0x5c8863(0x1e4)]=new _0x37b93c(_0x212466),this[_0x5c8863(0x1dc)]=new _0x3c007c(_0x212466,_0x2b608d),this[_0x5c8863(0x1d1)]=new _0x43cee7(_0x212466),this[_0x5c8863(0x1d1)][_0x5c8863(0x1f2)](this[_0x5c8863(0x1cd)]()),this[_0x5c8863(0x1c6)](_0x5c8863(0x1d9),_0x4a500b),this[_0x5c8863(0x1f2)]({'tag':_0x5c8863(0x1ea),'attributes':{'class':['ck',_0x5c8863(0x1d7),_0x5c8863(0x1d0)],'tabindex':'-1'},'children':this[_0x5c8863(0x1e8)]}),this[_0x5c8863(0x1c8)](),this[_0x5c8863(0x1ca)](_0x5c8863(0x1f8),()=>{const _0x264311=_0x5c8863;this[_0x264311(0x1ef)](this[_0x264311(0x1d4)],_0x3163df=>{const _0x15762f=_0x264311;this[_0x15762f(0x1e6)](_0x3163df);});}),this['on'](_0x5c8863(0x1da),()=>{const _0x40d917=_0x5c8863;this[_0x40d917(0x1c8)]();}),this[_0x5c8863(0x1db)]();}[_0x3fb375(0x1e9)](){const _0x60a98f=_0x3fb375;this[_0x60a98f(0x1d4)][_0x60a98f(0x1e9)]();}[_0x3fb375(0x1c8)](){const _0x14b89a=_0x3fb375;switch(this[_0x14b89a(0x1e8)][_0x14b89a(0x1c4)](),this[_0x14b89a(0x1d9)]){case _0x14b89a(0x1d8):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e2)]);break;case _0x14b89a(0x1d6):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e4)]);break;case _0x14b89a(0x1cc):this[_0x14b89a(0x1e8)][_0x14b89a(0x1d5)]([this[_0x14b89a(0x1dc)],this[_0x14b89a(0x1d1)]]);}}[_0x3fb375(0x1ef)](_0x558841,_0x2d4459){const _0x37e9fc=_0x3fb375,_0x236426=_0x37e9fc(0x1e5),_0x4ec556=_0x558841[_0x37e9fc(0x1e1)](_0x236426);if(_0x4ec556)return _0x2d4459(_0x4ec556);const _0x2306eb=new MutationObserver(_0x2faa6e=>{const _0x39fb06=_0x37e9fc,_0x562975=_0x2faa6e[_0x39fb06(0x1f5)](_0x58d0a9=>_0x58d0a9[_0x39fb06(0x1eb)]===_0x558841&&_0x58d0a9[_0x39fb06(0x1de)][_0x39fb06(0x1f1)]>0x0&&_0x58d0a9[_0x39fb06(0x1de)][0x0][_0x39fb06(0x1c7)][_0x39fb06(0x1df)]()===_0x236426);_0x562975[_0x39fb06(0x1f1)]&&(_0x2306eb[_0x39fb06(0x1ec)](),_0x2d4459(_0x562975[0x0][_0x39fb06(0x1de)][0x0]));});_0x2306eb[_0x37e9fc(0x1d3)](_0x558841,{'childList':!0x0,'subtree':!0x0});}[_0x3fb375(0x1e6)](_0x53e807){const _0x24a6bb=_0x3fb375;_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1f6),_0x5da922=>{const _0x45624b=_0x24a6bb;this[_0x45624b(0x1e7)](_0x45624b(0x1f6),{'imageSrc':_0x5da922[_0x45624b(0x1d2)][_0x45624b(0x1f9)]});}),_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1ce),()=>{const _0x558f05=_0x24a6bb;this[_0x558f05(0x1e7)](_0x558f05(0x1ce));});}[_0x3fb375(0x1db)](){const _0x1750df=_0x3fb375;this[_0x1750df(0x1e4)]['on'](_0x1750df(0x1ed),()=>{const _0x5c7f76=_0x1750df;this[_0x5c7f76(0x1e7)](_0x5c7f76(0x1ed));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54e6a5=_0x5bb4;function _0x5bb4(_0x5bfcb8,_0x9652bc){const _0x927231=_0x9272();return _0x5bb4=function(_0x5bb406,_0x342b3b){_0x5bb406=_0x5bb406-0x6e;let _0x1531cf=_0x927231[_0x5bb406];return _0x1531cf;},_0x5bb4(_0x5bfcb8,_0x9652bc);}function _0x9272(){const _0x328e0e=['3Eyhxwx','element','selection','7376984lNxjIC','set','imageBlock','bind','plugins','execute','95925WTflqY','imageEditController','3331914sHdGkr','13104190ZFCcww','config','get','3356116DaxAtr','_isEditable','refresh','requires','isEnabled','5OlXiRV','getSelectedElement','imageInline','9431874MHvaXL','7zJFeVt','2752506eatnnc','document','model','isActive','editor','uploadcare.allowExternalImagesEditing','unbind'];_0x9272=function(){return _0x328e0e;};return _0x9272();}(function(_0x96841f,_0x589e95){const _0x3b3eae=_0x5bb4,_0x11d9af=_0x96841f();while(!![]){try{const _0x1dc43c=-parseInt(_0x3b3eae(0x81))/0x1+parseInt(_0x3b3eae(0x83))/0x2*(parseInt(_0x3b3eae(0x78))/0x3)+parseInt(_0x3b3eae(0x87))/0x4*(-parseInt(_0x3b3eae(0x8c))/0x5)+-parseInt(_0x3b3eae(0x71))/0x6+parseInt(_0x3b3eae(0x70))/0x7*(parseInt(_0x3b3eae(0x7b))/0x8)+parseInt(_0x3b3eae(0x6f))/0x9+-parseInt(_0x3b3eae(0x84))/0xa;if(_0x1dc43c===_0x589e95)break;else _0x11d9af['push'](_0x11d9af['shift']());}catch(_0x36ee48){_0x11d9af['push'](_0x11d9af['shift']());}}}(_0x9272,0xe3866));import{Command as _0x2b21ec}from'ckeditor5/src/core.js';import{Dialog as _0x12b57d}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x19013e}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x20694c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2b21ec{[_0x54e6a5(0x82)];static get[_0x54e6a5(0x8a)](){return[_0x12b57d];}[_0x54e6a5(0x88)];constructor(_0x21d07d){const _0x882a82=_0x54e6a5;super(_0x21d07d),this[_0x882a82(0x82)]=void 0x0,this[_0x882a82(0x88)]=_0x20694c(_0x21d07d[_0x882a82(0x85)][_0x882a82(0x86)](_0x882a82(0x76))||[]),this[_0x882a82(0x7c)]({'isActive':!0x1});}[_0x54e6a5(0x89)](){const _0x528ac6=_0x54e6a5,_0x18eb3c=this[_0x528ac6(0x75)][_0x528ac6(0x73)][_0x528ac6(0x72)][_0x528ac6(0x7a)][_0x528ac6(0x8d)]();this[_0x528ac6(0x8b)]=this[_0x528ac6(0x88)](_0x18eb3c);}[_0x54e6a5(0x80)](){const _0xc8ac58=_0x54e6a5;this[_0xc8ac58(0x82)]&&(this[_0xc8ac58(0x77)](_0xc8ac58(0x74)),this[_0xc8ac58(0x82)]=void 0x0);const _0x320b71=this[_0xc8ac58(0x75)][_0xc8ac58(0x73)][_0xc8ac58(0x72)][_0xc8ac58(0x7a)][_0xc8ac58(0x8d)]();_0x320b71&&(_0x320b71['is'](_0xc8ac58(0x79),_0xc8ac58(0x7d))||_0x320b71['is'](_0xc8ac58(0x79),_0xc8ac58(0x6e)))&&(this[_0xc8ac58(0x82)]=new _0x19013e(this[_0xc8ac58(0x75)],this[_0xc8ac58(0x75)][_0xc8ac58(0x7f)][_0xc8ac58(0x86)](_0x12b57d),_0x320b71),this[_0xc8ac58(0x7e)](_0xc8ac58(0x74))['to'](this[_0xc8ac58(0x82)],_0xc8ac58(0x74)));}}
23
+ const _0x6e9248=_0x2aaa;(function(_0x21989b,_0x279be3){const _0x3c5d93=_0x2aaa,_0x36ce26=_0x21989b();while(!![]){try{const _0x1a1da2=parseInt(_0x3c5d93(0x168))/0x1+-parseInt(_0x3c5d93(0x14d))/0x2*(-parseInt(_0x3c5d93(0x164))/0x3)+parseInt(_0x3c5d93(0x15c))/0x4+parseInt(_0x3c5d93(0x153))/0x5+-parseInt(_0x3c5d93(0x165))/0x6*(parseInt(_0x3c5d93(0x14a))/0x7)+parseInt(_0x3c5d93(0x149))/0x8*(-parseInt(_0x3c5d93(0x14b))/0x9)+parseInt(_0x3c5d93(0x15e))/0xa*(-parseInt(_0x3c5d93(0x169))/0xb);if(_0x1a1da2===_0x279be3)break;else _0x36ce26['push'](_0x36ce26['shift']());}catch(_0x2c4b0b){_0x36ce26['push'](_0x36ce26['shift']());}}}(_0x4112,0x344d6));import{Command as _0xb9f44f}from'ckeditor5/src/core.js';function _0x2aaa(_0xb06f1e,_0x4d0991){const _0x4112e6=_0x4112();return _0x2aaa=function(_0x2aaad3,_0x5dbb8f){_0x2aaad3=_0x2aaad3-0x149;let _0xc1022a=_0x4112e6[_0x2aaad3];return _0xc1022a;},_0x2aaa(_0xb06f1e,_0x4d0991);}import{Dialog as _0x4c6052}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5484e9}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2f3853}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xb9f44f{[_0x6e9248(0x15a)];static get[_0x6e9248(0x14f)](){return[_0x4c6052];}[_0x6e9248(0x154)];constructor(_0xe1167b){const _0x429ec5=_0x6e9248;super(_0xe1167b),this[_0x429ec5(0x15a)]=void 0x0,this[_0x429ec5(0x154)]=_0x2f3853(_0xe1167b[_0x429ec5(0x14e)][_0x429ec5(0x167)](_0x429ec5(0x162))||[]),this[_0x429ec5(0x166)]({'isActive':!0x1});}[_0x6e9248(0x163)](){const _0x3f8bc7=_0x6e9248,_0x4e028a=this[_0x3f8bc7(0x158)][_0x3f8bc7(0x14c)][_0x3f8bc7(0x150)][_0x3f8bc7(0x151)][_0x3f8bc7(0x157)]();this[_0x3f8bc7(0x160)]=this[_0x3f8bc7(0x154)](_0x4e028a);}[_0x6e9248(0x152)](){const _0x4d5dd2=_0x6e9248;this[_0x4d5dd2(0x15a)]&&(this[_0x4d5dd2(0x15d)](_0x4d5dd2(0x161)),this[_0x4d5dd2(0x15a)]=void 0x0);const _0x39d9e1=this[_0x4d5dd2(0x158)][_0x4d5dd2(0x14c)][_0x4d5dd2(0x150)][_0x4d5dd2(0x151)][_0x4d5dd2(0x157)]();_0x39d9e1&&(_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15b))||_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15f)))&&(this[_0x4d5dd2(0x15a)]=new _0x5484e9(this[_0x4d5dd2(0x158)],this[_0x4d5dd2(0x158)][_0x4d5dd2(0x159)][_0x4d5dd2(0x167)](_0x4c6052),_0x39d9e1),this[_0x4d5dd2(0x155)](_0x4d5dd2(0x161))['to'](this[_0x4d5dd2(0x15a)],_0x4d5dd2(0x161)));}}function _0x4112(){const _0x381282=['refresh','3ZtgiJj','204iySGCX','set','get','222739SJruXn','286682pkHydi','1023728cSSaIV','60487sWoyXK','18qhCUHI','model','388742mWeomB','config','requires','document','selection','execute','2135870BonHuG','_isEditable','bind','element','getSelectedElement','editor','plugins','imageEditController','imageBlock','199928kdDvXi','unbind','50IimtHi','imageInline','isEnabled','isActive','uploadcare.allowExternalImagesEditing'];_0x4112=function(){return _0x381282;};return _0x4112();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56dcd9=_0x19c0;(function(_0x4c0d0c,_0x38d2b2){const _0x3d46c5=_0x19c0,_0x231558=_0x4c0d0c();while(!![]){try{const _0x78f5e5=-parseInt(_0x3d46c5(0x130))/0x1+-parseInt(_0x3d46c5(0x120))/0x2*(-parseInt(_0x3d46c5(0x129))/0x3)+-parseInt(_0x3d46c5(0x126))/0x4*(-parseInt(_0x3d46c5(0x127))/0x5)+parseInt(_0x3d46c5(0x131))/0x6+parseInt(_0x3d46c5(0x11e))/0x7*(-parseInt(_0x3d46c5(0x12f))/0x8)+-parseInt(_0x3d46c5(0x123))/0x9+-parseInt(_0x3d46c5(0x132))/0xa;if(_0x78f5e5===_0x38d2b2)break;else _0x231558['push'](_0x231558['shift']());}catch(_0x2e086e){_0x231558['push'](_0x231558['shift']());}}}(_0x3eb0,0x6f3ab));import{Plugin as _0x1831ef}from'ckeditor5/src/core.js';import{Notification as _0x2d593e}from'ckeditor5/src/ui.js';function _0x3eb0(){const _0x35a596=['2558395HjWwCi','init','75219dMSlZs','UploadcareImageEditEditing','commands','pluginName','uploadcareImageReplace','isPremiumPlugin','1859824IrOXCs','3555Suimtb','2173680WITyGl','760kpBgyK','uploadcareImageEdit','7sDbsFC','isOfficialPlugin','46DBvaZC','add','ImageUtils','6830406YWFrqc','ImageEditing','requires','4KYQdpa'];_0x3eb0=function(){return _0x35a596;};return _0x3eb0();}import{UploadcareImageEditCommand as _0x18e241}from'./uploadcareimageeditcommand.js';function _0x19c0(_0x77c65e,_0x4786bb){const _0x3eb013=_0x3eb0();return _0x19c0=function(_0x19c029,_0xcbcfc5){_0x19c029=_0x19c029-0x11d;let _0x17ab1d=_0x3eb013[_0x19c029];return _0x17ab1d;},_0x19c0(_0x77c65e,_0x4786bb);}import{UploadcareImageReplaceCommand as _0x1a571c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5b05f8}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1831ef{static get[_0x56dcd9(0x12c)](){const _0x1272c4=_0x56dcd9;return _0x1272c4(0x12a);}static get[_0x56dcd9(0x125)](){const _0x362add=_0x56dcd9;return[_0x5b05f8,_0x2d593e,_0x362add(0x122),_0x362add(0x124)];}static get[_0x56dcd9(0x11f)](){return!0x0;}static get[_0x56dcd9(0x12e)](){return!0x0;}[_0x56dcd9(0x128)](){const _0x2f8f13=_0x56dcd9,{editor:_0x38285e}=this;_0x38285e[_0x2f8f13(0x12b)][_0x2f8f13(0x121)](_0x2f8f13(0x11d),new _0x18e241(_0x38285e)),_0x38285e[_0x2f8f13(0x12b)][_0x2f8f13(0x121)](_0x2f8f13(0x12d),new _0x1a571c(_0x38285e));}}
23
+ const _0x52a8ab=_0x512a;function _0x512a(_0x3806cd,_0x187420){const _0x758e3=_0x758e();return _0x512a=function(_0x512ac5,_0x506c14){_0x512ac5=_0x512ac5-0x1de;let _0x421935=_0x758e3[_0x512ac5];return _0x421935;},_0x512a(_0x3806cd,_0x187420);}(function(_0x39bb50,_0x3d09f3){const _0x209bba=_0x512a,_0x140d9c=_0x39bb50();while(!![]){try{const _0x1f9253=parseInt(_0x209bba(0x1e4))/0x1+parseInt(_0x209bba(0x1e8))/0x2+parseInt(_0x209bba(0x1ea))/0x3+-parseInt(_0x209bba(0x1ec))/0x4+-parseInt(_0x209bba(0x1eb))/0x5*(parseInt(_0x209bba(0x1e5))/0x6)+-parseInt(_0x209bba(0x1e2))/0x7+parseInt(_0x209bba(0x1f0))/0x8;if(_0x1f9253===_0x3d09f3)break;else _0x140d9c['push'](_0x140d9c['shift']());}catch(_0x20cefb){_0x140d9c['push'](_0x140d9c['shift']());}}}(_0x758e,0x47dcb));import{Plugin as _0x10e513}from'ckeditor5/src/core.js';import{Notification as _0x3e024b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4daa12}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5ce7fa}from'./uploadcareimagereplacecommand.js';function _0x758e(){const _0x279951=['2230520BdCEWz','commands','ImageUtils','requires','53960PuTjKd','isOfficialPlugin','UploadcareImageEditEditing','add','init','uploadcareImageReplace','1352603vgyAoh','uploadcareImageEdit','27329mcjrJM','43674PbjiAU','isPremiumPlugin','pluginName','1093124LAGySP','ImageEditing','1721265DsDgKq','75NHaeEc'];_0x758e=function(){return _0x279951;};return _0x758e();}import{UploadcareEditing as _0x5ef953}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x10e513{static get[_0x52a8ab(0x1e7)](){const _0x26486c=_0x52a8ab;return _0x26486c(0x1de);}static get[_0x52a8ab(0x1ef)](){const _0x1dcefd=_0x52a8ab;return[_0x5ef953,_0x3e024b,_0x1dcefd(0x1ee),_0x1dcefd(0x1e9)];}static get[_0x52a8ab(0x1f1)](){return!0x0;}static get[_0x52a8ab(0x1e6)](){return!0x0;}[_0x52a8ab(0x1e0)](){const _0x33e566=_0x52a8ab,{editor:_0x2e0c2e}=this;_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e3),new _0x4daa12(_0x2e0c2e)),_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e1),new _0x5ce7fa(_0x2e0c2e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1b5656}from'ckeditor5/src/core.js';import{ButtonView as _0x35772a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x53f250}from'ckeditor5/src/icons.js';import{createElement as _0x36efe5}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 _0x1b5656{['_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 _0x18aa08=this['editor'];_0x18aa08['ui']['componentFactory']['add']('uploadcareImageEdit',_0x332d7c=>{const _0x451827=_0x18aa08['commands']['get']('uploadcareImageEdit'),_0xa3a3d5=new _0x35772a(_0x332d7c),t=_0x332d7c['t'];return _0xa3a3d5['set']({'icon':_0x53f250,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa3a3d5['bind']('isEnabled')['to'](_0x451827),_0xa3a3d5['bind']('isOn')['to'](_0x451827,'isActive'),this['listenTo'](_0xa3a3d5,'execute',()=>{_0x18aa08['execute']('uploadcareImageEdit'),_0x18aa08['editing']['view']['focus']();}),_0xa3a3d5;}),this['_initConfig']();}['_initConfig'](){const _0x26b507=_0x36efe5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x26b507),this['listenTo'](this['editor'],'destroy',()=>{_0x26b507['remove']();});}}
23
+ import{Plugin as _0x292eec}from'ckeditor5/src/core.js';import{ButtonView as _0x107d8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x17ad7c}from'ckeditor5/src/icons.js';import{createElement as _0x179d3f}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 _0x292eec{['_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 _0x22a226=this['editor'];_0x22a226['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2edf5f=>{const _0x512c2e=_0x22a226['commands']['get']('uploadcareImageEdit'),_0x5a8d9d=new _0x107d8b(_0x2edf5f),t=_0x2edf5f['t'];return _0x5a8d9d['set']({'icon':_0x17ad7c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a8d9d['bind']('isEnabled')['to'](_0x512c2e),_0x5a8d9d['bind']('isOn')['to'](_0x512c2e,'isActive'),this['listenTo'](_0x5a8d9d,'execute',()=>{_0x22a226['execute']('uploadcareImageEdit'),_0x22a226['editing']['view']['focus']();}),_0x5a8d9d;}),this['_initConfig']();}['_initConfig'](){const _0x111a69=_0x179d3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x111a69),this['listenTo'](this['editor'],'destroy',()=>{_0x111a69['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x433be1=_0x400b;(function(_0x423a91,_0x16c664){const _0x193854=_0x400b,_0x27b872=_0x423a91();while(!![]){try{const _0x233b9f=-parseInt(_0x193854(0xce))/0x1*(parseInt(_0x193854(0xd8))/0x2)+parseInt(_0x193854(0xc9))/0x3+parseInt(_0x193854(0xd4))/0x4*(parseInt(_0x193854(0xcf))/0x5)+parseInt(_0x193854(0xd7))/0x6*(parseInt(_0x193854(0xc3))/0x7)+-parseInt(_0x193854(0xd3))/0x8+parseInt(_0x193854(0xcd))/0x9*(parseInt(_0x193854(0xd2))/0xa)+-parseInt(_0x193854(0xc1))/0xb;if(_0x233b9f===_0x16c664)break;else _0x27b872['push'](_0x27b872['shift']());}catch(_0x5767cc){_0x27b872['push'](_0x27b872['shift']());}}}(_0x16c3,0x47276));function _0x16c3(){const _0xbfdb0b=['4647620NyitMo','1326616ZwtorB','4Sqebpl','getSelectedElement','setAttributes','6UwDRge','14CrUjIA','isEnabled','sizes','change','1566103dmSfYu','model','283927FLdiNi','element','removeAttribute','refresh','imageBlock','srcset','484257kvuolp','execute','selection','editor','9qxcqzI','42636sVXWCu','1156780WEcVrW','imageInline','document'];_0x16c3=function(){return _0xbfdb0b;};return _0x16c3();}import{Command as _0x1dea73}from'ckeditor5/src/core.js';function _0x400b(_0x357f10,_0x1f6b57){const _0x16c3b7=_0x16c3();return _0x400b=function(_0x400b1a,_0x39b545){_0x400b1a=_0x400b1a-0xbf;let _0xb908f4=_0x16c3b7[_0x400b1a];return _0xb908f4;},_0x400b(_0x357f10,_0x1f6b57);}export class UploadcareImageReplaceCommand extends _0x1dea73{[_0x433be1(0xc6)](){const _0x3469be=_0x433be1,_0x29eb95=this[_0x3469be(0xcc)][_0x3469be(0xc2)][_0x3469be(0xd1)][_0x3469be(0xcb)][_0x3469be(0xd5)]();this[_0x3469be(0xd9)]=Boolean(_0x29eb95&&(_0x29eb95['is'](_0x3469be(0xc4),_0x3469be(0xc7))||_0x29eb95['is'](_0x3469be(0xc4),_0x3469be(0xd0))));}[_0x433be1(0xca)](_0x2f1e16){const _0x5b0292=_0x433be1,_0x17506c=this[_0x5b0292(0xcc)][_0x5b0292(0xc2)][_0x5b0292(0xd1)][_0x5b0292(0xcb)][_0x5b0292(0xd5)]();this[_0x5b0292(0xcc)][_0x5b0292(0xc2)][_0x5b0292(0xc0)](_0x45ff73=>{const _0x39bc6e=_0x5b0292;_0x45ff73[_0x39bc6e(0xd6)](_0x2f1e16,_0x17506c),_0x45ff73[_0x39bc6e(0xc5)](_0x39bc6e(0xc8),_0x17506c),_0x45ff73[_0x39bc6e(0xc5)](_0x39bc6e(0xbf),_0x17506c);});}}
23
+ const _0xf61c8a=_0x3b61;function _0x3b61(_0x11f06f,_0x3dfa8d){const _0x3c22a3=_0x3c22();return _0x3b61=function(_0x3b6113,_0x2e7616){_0x3b6113=_0x3b6113-0x162;let _0x50cc37=_0x3c22a3[_0x3b6113];return _0x50cc37;},_0x3b61(_0x11f06f,_0x3dfa8d);}(function(_0x57ca79,_0x17f728){const _0x446174=_0x3b61,_0x3dcf7b=_0x57ca79();while(!![]){try{const _0x25982d=-parseInt(_0x446174(0x17a))/0x1+-parseInt(_0x446174(0x169))/0x2+parseInt(_0x446174(0x168))/0x3+-parseInt(_0x446174(0x171))/0x4+-parseInt(_0x446174(0x164))/0x5*(parseInt(_0x446174(0x172))/0x6)+parseInt(_0x446174(0x16f))/0x7+parseInt(_0x446174(0x176))/0x8*(parseInt(_0x446174(0x16b))/0x9);if(_0x25982d===_0x17f728)break;else _0x3dcf7b['push'](_0x3dcf7b['shift']());}catch(_0x3f7023){_0x3dcf7b['push'](_0x3dcf7b['shift']());}}}(_0x3c22,0x8568d));import{Command as _0x86b9f0}from'ckeditor5/src/core.js';function _0x3c22(){const _0x45b0ea=['sizes','606556vkYbqG','editor','isEnabled','920085wVRIhi','setAttributes','change','imageBlock','3020751ojDVHe','705214ruByso','model','7578RYaUqN','document','refresh','removeAttribute','5575871WmdFmK','execute','489060XCqOcb','6ONCoSA','imageInline','selection','element','80uqRhws','getSelectedElement','srcset'];_0x3c22=function(){return _0x45b0ea;};return _0x3c22();}export class UploadcareImageReplaceCommand extends _0x86b9f0{[_0xf61c8a(0x16d)](){const _0x2b5688=_0xf61c8a,_0x25e138=this[_0x2b5688(0x162)][_0x2b5688(0x16a)][_0x2b5688(0x16c)][_0x2b5688(0x174)][_0x2b5688(0x177)]();this[_0x2b5688(0x163)]=Boolean(_0x25e138&&(_0x25e138['is'](_0x2b5688(0x175),_0x2b5688(0x167))||_0x25e138['is'](_0x2b5688(0x175),_0x2b5688(0x173))));}[_0xf61c8a(0x170)](_0xc8d259){const _0x2b62d1=_0xf61c8a,_0x30a34b=this[_0x2b62d1(0x162)][_0x2b62d1(0x16a)][_0x2b62d1(0x16c)][_0x2b62d1(0x174)][_0x2b62d1(0x177)]();this[_0x2b62d1(0x162)][_0x2b62d1(0x16a)][_0x2b62d1(0x166)](_0x32d676=>{const _0x465c49=_0x2b62d1;_0x32d676[_0x465c49(0x165)](_0xc8d259,_0x30a34b),_0x32d676[_0x465c49(0x16e)](_0x465c49(0x178),_0x30a34b),_0x32d676[_0x465c49(0x16e)](_0x465c49(0x179),_0x30a34b);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c0b60=_0x30bf;function _0x266d(){var _0x3c78d7=['isOfficialPlugin','1713TvvMYA','isPremiumPlugin','1363494uDLfsX','104894bpHvQI','1zJJCJz','UploadcareImageEdit','pluginName','10bSZzgD','1020632nQbYVl','7IzhEjs','requires','3103512EEXyLK','9cYouFV','1123850nfoyzL','427044edONzK','316bcpTcG'];_0x266d=function(){return _0x3c78d7;};return _0x266d();}(function(_0x1e2827,_0x38a4e7){var _0x3f451d=_0x30bf,_0x49eaa8=_0x1e2827();while(!![]){try{var _0x238901=parseInt(_0x3f451d(0x1be))/0x1*(parseInt(_0x3f451d(0x1bd))/0x2)+parseInt(_0x3f451d(0x1ba))/0x3*(parseInt(_0x3f451d(0x1b8))/0x4)+parseInt(_0x3f451d(0x1b6))/0x5+parseInt(_0x3f451d(0x1b7))/0x6*(parseInt(_0x3f451d(0x1b2))/0x7)+parseInt(_0x3f451d(0x1b1))/0x8*(-parseInt(_0x3f451d(0x1b5))/0x9)+parseInt(_0x3f451d(0x1b0))/0xa*(parseInt(_0x3f451d(0x1bc))/0xb)+-parseInt(_0x3f451d(0x1b4))/0xc;if(_0x238901===_0x38a4e7)break;else _0x49eaa8['push'](_0x49eaa8['shift']());}catch(_0x4d58dc){_0x49eaa8['push'](_0x49eaa8['shift']());}}}(_0x266d,0x200b1));import{Plugin as _0x4e2292}from'ckeditor5/src/core.js';function _0x30bf(_0x1b0e45,_0x2f9087){var _0x266d8c=_0x266d();return _0x30bf=function(_0x30bf1b,_0x5af6f5){_0x30bf1b=_0x30bf1b-0x1b0;var _0x41910c=_0x266d8c[_0x30bf1b];return _0x41910c;},_0x30bf(_0x1b0e45,_0x2f9087);}import{UploadcareImageEditEditing as _0x14f88a}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x751b4b}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x4e2292{static get[_0x3c0b60(0x1c0)](){var _0x250854=_0x3c0b60;return _0x250854(0x1bf);}static get[_0x3c0b60(0x1b3)](){return[_0x14f88a,_0x751b4b];}static get[_0x3c0b60(0x1b9)](){return!0x0;}static get[_0x3c0b60(0x1bb)](){return!0x0;}}
23
+ function _0x1069(_0x335b24,_0x26b5ef){var _0x3336ea=_0x3336();return _0x1069=function(_0x1069fe,_0x1c188f){_0x1069fe=_0x1069fe-0x152;var _0x30ef2d=_0x3336ea[_0x1069fe];return _0x30ef2d;},_0x1069(_0x335b24,_0x26b5ef);}var _0x1ac538=_0x1069;(function(_0x23b859,_0x988b3f){var _0xc489bd=_0x1069,_0x289b2d=_0x23b859();while(!![]){try{var _0x2db06d=-parseInt(_0xc489bd(0x15c))/0x1*(parseInt(_0xc489bd(0x15a))/0x2)+parseInt(_0xc489bd(0x15f))/0x3+parseInt(_0xc489bd(0x154))/0x4*(parseInt(_0xc489bd(0x157))/0x5)+-parseInt(_0xc489bd(0x152))/0x6+-parseInt(_0xc489bd(0x15d))/0x7*(parseInt(_0xc489bd(0x158))/0x8)+parseInt(_0xc489bd(0x160))/0x9+parseInt(_0xc489bd(0x159))/0xa;if(_0x2db06d===_0x988b3f)break;else _0x289b2d['push'](_0x289b2d['shift']());}catch(_0x40b764){_0x289b2d['push'](_0x289b2d['shift']());}}}(_0x3336,0x98913));function _0x3336(){var _0x1ebb29=['isPremiumPlugin','33rLuIIx','1211EQlvpb','pluginName','1104105oJirvE','5470695WBXHhF','2270520WdHnYd','isOfficialPlugin','581488KJZRKg','UploadcareImageEdit','requires','10lcXHdq','39640uNeMxQ','8976150RuvoYN','18406TPWTsj'];_0x3336=function(){return _0x1ebb29;};return _0x3336();}import{Plugin as _0x20bd64}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x15fe7c}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5a2120}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x20bd64{static get[_0x1ac538(0x15e)](){var _0x3f8937=_0x1ac538;return _0x3f8937(0x155);}static get[_0x1ac538(0x156)](){return[_0x15fe7c,_0x5a2120];}static get[_0x1ac538(0x153)](){return!0x0;}static get[_0x1ac538(0x15b)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1993ff=_0x3ce1;(function(_0x2cd0fa,_0x14165c){const _0x4f922c=_0x3ce1,_0x4f3ac3=_0x2cd0fa();while(!![]){try{const _0x5862e5=-parseInt(_0x4f922c(0x174))/0x1+parseInt(_0x4f922c(0x183))/0x2*(-parseInt(_0x4f922c(0x172))/0x3)+-parseInt(_0x4f922c(0x158))/0x4+parseInt(_0x4f922c(0x176))/0x5*(parseInt(_0x4f922c(0x17a))/0x6)+parseInt(_0x4f922c(0x168))/0x7+-parseInt(_0x4f922c(0x13e))/0x8*(-parseInt(_0x4f922c(0x17f))/0x9)+-parseInt(_0x4f922c(0x166))/0xa;if(_0x5862e5===_0x14165c)break;else _0x4f3ac3['push'](_0x4f3ac3['shift']());}catch(_0x128dda){_0x4f3ac3['push'](_0x4f3ac3['shift']());}}}(_0x1ad2,0x5502e));import{Plugin as _0x2c00bd}from'ckeditor5/src/core.js';import{IconDropbox as _0x1853fe,IconFacebook as _0x129465,IconGoogleDrive as _0x4f2205,IconGooglePhotos as _0x55bdd8,IconUploadcareImageUpload as _0x2ebb80,IconUploadcareLink as _0x268c13,IconOneDrive as _0x4485c9}from'ckeditor5/src/icons.js';import{ButtonView as _0x3481aa,MenuBarMenuListItemButtonView as _0x16f51a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xd9b312}from'./uploadcareconfig.js';import{getTranslation as _0x1c9ec0}from'./utils/common-translations.js';function _0x1ad2(){const _0x52e055=['1548kgyexH','usageLimit','isImageSelected','uploadcareLicenseKeyValid','106414PwgoxQ','destroy','push','url','withText','isOfficialPlugin','featureNotAllowed','URL','_createButton','type','editor','tooltip','29752yJrmul','expired','invalid','uploadcareLicenseKeyInvalid','forEach','UploadcareUI','registerIntegration','Facebook','locale','Replace','get','_createMenuBarButtons','uploadcare.uploader.sourceList','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','uploadcareLicenseKeyTrialLimit','init','Dropbox','licenseKey','reduce','upload','text','evaluationLimit','_normalizeConfigSourceList','execute','bind','866680SdmPcJ','uploadcareLicenseKeyDomainLimit','Local','_createDropdownButtons','Uploadcare','_getIntegrationKey','afterInit','isPremiumPlugin','Insert','assetManager','domainLimit','map','icon','has','6742480NsMSta','entries','4496996CcFSPm','trialLimit','pluginName','GPhotos','GDrive','uploadcareLicenseKeyEvaluationLimit','_createToolbarButton','plugins','uploadcare','config','3RERDKy','uploadcareLicenseKeyNotAllowed','550673BiaKTq','OneDrive','701135afTkLa','label','shortText','uploadcareLicenseKeyUsageLimit','24zSWdQQ','ImageInsertUI','commands','isEnabled','_showLicenseError'];_0x1ad2=function(){return _0x52e055;};return _0x1ad2();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x3ce1(_0x2f9b5b,_0x2b6b0f){const _0x1ad2e0=_0x1ad2();return _0x3ce1=function(_0x3ce1cc,_0x565405){_0x3ce1cc=_0x3ce1cc-0x134;let _0x1cc651=_0x1ad2e0[_0x3ce1cc];return _0x1cc651;},_0x3ce1(_0x2f9b5b,_0x2b6b0f);}export class UploadcareUI extends _0x2c00bd{[_0x1993ff(0x150)];[_0x1993ff(0x14c)];static get[_0x1993ff(0x16a)](){const _0x26cd74=_0x1993ff;return _0x26cd74(0x143);}static get[_0x1993ff(0x137)](){return!0x0;}static get[_0x1993ff(0x15f)](){return!0x0;}[_0x1993ff(0x14e)](){const _0x3dc2f6=_0x1993ff;this[_0x3dc2f6(0x150)]=this[_0x3dc2f6(0x13c)][_0x3dc2f6(0x171)][_0x3dc2f6(0x148)](_0x3dc2f6(0x150));const _0x1f0394=this[_0x3dc2f6(0x13c)];this[_0x3dc2f6(0x14c)]=setInterval(()=>{const _0x4f0fdb=_0x3dc2f6;let _0x28e19d;for(const _0x312fef in _0x1f0394){const _0x284b9a=_0x312fef,_0xf41ab5=_0x1f0394[_0x284b9a];if(_0x4f0fdb(0x182)==_0xf41ab5||_0x4f0fdb(0x141)==_0xf41ab5||_0x4f0fdb(0x14b)==_0xf41ab5||_0x4f0fdb(0x159)==_0xf41ab5||_0x4f0fdb(0x173)==_0xf41ab5||_0x4f0fdb(0x16d)==_0xf41ab5||_0x4f0fdb(0x14d)==_0xf41ab5||_0x4f0fdb(0x179)==_0xf41ab5){delete _0x1f0394[_0x284b9a],_0x28e19d=_0xf41ab5,clearInterval(this[_0x4f0fdb(0x14c)]),this[_0x4f0fdb(0x14c)]=void 0x0;break;}}_0x4f0fdb(0x141)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x140)),_0x4f0fdb(0x14b)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x13f)),_0x4f0fdb(0x159)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x162)),_0x4f0fdb(0x173)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x138),_0x4f0fdb(0x15c)),_0x4f0fdb(0x16d)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x154)),_0x4f0fdb(0x14d)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x169)),_0x4f0fdb(0x179)==_0x28e19d&&_0x1f0394[_0x4f0fdb(0x17e)](_0x4f0fdb(0x180));},0x3e8);}[_0x1993ff(0x15e)](){const _0x4a6783=_0x1993ff,{editor:_0x89e77f}=this,_0x5e5c79=_0x89e77f[_0x4a6783(0x17c)][_0x4a6783(0x148)](_0x4a6783(0x170));if(!_0x5e5c79)return;const _0x5a50b3=this[_0x4a6783(0x155)](_0x89e77f[_0x4a6783(0x171)][_0x4a6783(0x148)](_0x4a6783(0x14a)))[_0x4a6783(0x151)]((_0x5902a0,_0x48e4d5)=>{const _0x401be8=_0x4a6783,_0x33d71a=this[_0x401be8(0x15d)](_0x48e4d5[_0x401be8(0x13b)]);return _0x5902a0[_0x33d71a]||(_0x5902a0[_0x33d71a]=[]),_0x5902a0[_0x33d71a][_0x401be8(0x134)](_0x48e4d5),_0x5902a0;},{});_0x89e77f[_0x4a6783(0x16f)][_0x4a6783(0x165)](_0x4a6783(0x17b))&&_0x89e77f[_0x4a6783(0x17c)][_0x4a6783(0x148)](_0x4a6783(0x170))&&Object[_0x4a6783(0x167)](_0x5a50b3)[_0x4a6783(0x142)](([_0x106e10,_0x20de28])=>{const _0x2185ea=_0x4a6783;_0x89e77f[_0x2185ea(0x16f)][_0x2185ea(0x148)](_0x2185ea(0x17b))[_0x2185ea(0x144)]({'name':_0x106e10,'observable':()=>_0x5e5c79,'buttonViewCreator':()=>this[_0x2185ea(0x16e)](_0x20de28),'formViewCreator':()=>this[_0x2185ea(0x15b)](_0x20de28),'menuBarButtonViewCreator':()=>this[_0x2185ea(0x149)](_0x20de28),'override':_0x2185ea(0x161)!==_0x106e10});});}[_0x1993ff(0x184)](){const _0x231fce=_0x1993ff;super[_0x231fce(0x184)](),this[_0x231fce(0x14c)]&&clearInterval(this[_0x231fce(0x14c)]);}[_0x1993ff(0x155)](_0x338b17){const _0x2ef039=_0x1993ff,{locale:_0x5315bd}=this[_0x2ef039(0x13c)];return _0x338b17[_0x2ef039(0x163)](_0x5b279c=>{const _0x49391a=_0x2ef039,_0x5eac2c=_0x1c9ec0(_0x5315bd,_0x5b279c,_0x49391a(0x160));switch(_0x5b279c){case _0xd9b312[_0x49391a(0x15a)]:return{'icon':_0x2ebb80,'type':_0xd9b312[_0x49391a(0x15a)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x139)]:return{'icon':_0x268c13,'type':_0xd9b312[_0x49391a(0x139)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x14f)]:return{'icon':_0x1853fe,'type':_0xd9b312[_0x49391a(0x14f)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x145)]:return{'icon':_0x129465,'type':_0xd9b312[_0x49391a(0x145)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x16c)]:return{'icon':_0x4f2205,'type':_0xd9b312[_0x49391a(0x16c)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x16b)]:return{'icon':_0x55bdd8,'type':_0xd9b312[_0x49391a(0x16b)],..._0x5eac2c};case _0xd9b312[_0x49391a(0x175)]:return{'icon':_0x4485c9,'type':_0xd9b312[_0x49391a(0x175)],..._0x5eac2c};}});}[_0x1993ff(0x15d)](_0x26a25b){const _0x53b3d4=_0x1993ff;switch(_0x26a25b){case _0xd9b312[_0x53b3d4(0x15a)]:return _0x53b3d4(0x152);case _0xd9b312[_0x53b3d4(0x139)]:return _0x53b3d4(0x135);default:return _0x53b3d4(0x161);}}[_0x1993ff(0x13a)](_0x913850,_0x39b0a5){const _0x3f055e=_0x1993ff,_0x35cc9e=this[_0x3f055e(0x13c)],_0x33463b=new _0x913850(_0x35cc9e[_0x3f055e(0x146)]),_0x4cf036=_0x35cc9e[_0x3f055e(0x17c)][_0x3f055e(0x148)](_0x3f055e(0x170));return _0x33463b[_0x3f055e(0x157)](_0x3f055e(0x17d))['to'](_0x4cf036),_0x33463b['on'](_0x3f055e(0x156),()=>{const _0x56d0f3=_0x3f055e;_0x4cf036[_0x56d0f3(0x156)](_0x39b0a5);}),_0x33463b;}[_0x1993ff(0x16e)](_0x4f5453){const _0x57b4a0=_0x1993ff,{locale:_0x37d960}=this[_0x57b4a0(0x13c)],_0x4133b6=this[_0x57b4a0(0x13c)][_0x57b4a0(0x16f)][_0x57b4a0(0x148)](_0x57b4a0(0x17b)),_0x216959=_0x4f5453[0x0],_0x4b5b6a=this[_0x57b4a0(0x13a)](_0x3481aa,_0x216959[_0x57b4a0(0x13b)]);return _0x4b5b6a[_0x57b4a0(0x164)]=_0x216959[_0x57b4a0(0x164)],_0x4b5b6a[_0x57b4a0(0x157)](_0x57b4a0(0x177))['to'](_0x4133b6,_0x57b4a0(0x181),_0x582b34=>_0x1c9ec0(_0x37d960,_0x216959[_0x57b4a0(0x13b)],_0x582b34?_0x57b4a0(0x147):_0x57b4a0(0x160))[_0x57b4a0(0x153)]),_0x4b5b6a[_0x57b4a0(0x13d)]=!0x0,_0x4b5b6a;}[_0x1993ff(0x15b)](_0x174ec5){const _0x16ea94=_0x1993ff,{locale:_0x3d6f3f}=this[_0x16ea94(0x13c)],_0x4ca458=this[_0x16ea94(0x13c)][_0x16ea94(0x16f)][_0x16ea94(0x148)](_0x16ea94(0x17b));return _0x174ec5[_0x16ea94(0x163)](_0x1ab42b=>{const _0xdefee3=_0x16ea94,_0x5edc2c=this[_0xdefee3(0x13a)](_0x3481aa,_0x1ab42b[_0xdefee3(0x13b)]);return _0x5edc2c[_0xdefee3(0x136)]=!0x0,_0x5edc2c[_0xdefee3(0x164)]=_0x1ab42b[_0xdefee3(0x164)],_0x5edc2c[_0xdefee3(0x157)](_0xdefee3(0x177))['to'](_0x4ca458,_0xdefee3(0x181),_0x4d7f6e=>_0x1c9ec0(_0x3d6f3f,_0x1ab42b[_0xdefee3(0x13b)],_0x4d7f6e?_0xdefee3(0x147):_0xdefee3(0x160))[_0xdefee3(0x153)]),_0x5edc2c;});}[_0x1993ff(0x149)](_0x429c27){const _0x430e69=_0x1993ff;return _0x429c27[_0x430e69(0x163)](_0x5ef9eb=>{const _0x4019ab=_0x430e69,_0x454a45=this[_0x4019ab(0x13a)](_0x16f51a,_0x5ef9eb[_0x4019ab(0x13b)]);return _0x454a45[_0x4019ab(0x164)]=_0x5ef9eb[_0x4019ab(0x164)],_0x454a45[_0x4019ab(0x177)]=_0x5ef9eb[_0x4019ab(0x178)],_0x454a45;});}}
23
+ const _0xc17bda=_0x1bc8;(function(_0x459342,_0x526720){const _0x3a897d=_0x1bc8,_0x5220f5=_0x459342();while(!![]){try{const _0x299288=parseInt(_0x3a897d(0x16c))/0x1+-parseInt(_0x3a897d(0x189))/0x2+parseInt(_0x3a897d(0x179))/0x3+-parseInt(_0x3a897d(0x175))/0x4+parseInt(_0x3a897d(0x17d))/0x5*(-parseInt(_0x3a897d(0x165))/0x6)+parseInt(_0x3a897d(0x163))/0x7*(parseInt(_0x3a897d(0x13c))/0x8)+-parseInt(_0x3a897d(0x180))/0x9*(parseInt(_0x3a897d(0x184))/0xa);if(_0x299288===_0x526720)break;else _0x5220f5['push'](_0x5220f5['shift']());}catch(_0x27de18){_0x5220f5['push'](_0x5220f5['shift']());}}}(_0x4950,0xcc741));import{Plugin as _0x4fc280}from'ckeditor5/src/core.js';function _0x1bc8(_0x1a1048,_0x4bb6fc){const _0x495068=_0x4950();return _0x1bc8=function(_0x1bc8ad,_0x200654){_0x1bc8ad=_0x1bc8ad-0x13b;let _0xba8223=_0x495068[_0x1bc8ad];return _0xba8223;},_0x1bc8(_0x1a1048,_0x4bb6fc);}import{IconDropbox as _0xdb5e7c,IconFacebook as _0x133563,IconGoogleDrive as _0x1091ab,IconGooglePhotos as _0x599597,IconUploadcareImageUpload as _0x3d875e,IconUploadcareLink as _0x716ff8,IconOneDrive as _0x3be201}from'ckeditor5/src/icons.js';import{ButtonView as _0x17e607,MenuBarMenuListItemButtonView as _0xf4da46}from'ckeditor5/src/ui.js';function _0x4950(){const _0x2be99a=['trialLimit','uploadcare','registerIntegration','_createButton','_normalizeConfigSourceList','init','Uploadcare','afterInit','plugins','ImageInsertUI','map','_createDropdownButtons','type','GDrive','Dropbox','licenseKey','forEach','_createToolbarButton','isPremiumPlugin','shortText','uploadcareLicenseKeyEvaluationLimit','reduce','uploadcareLicenseKeyUsageLimit','invalid','evaluationLimit','expired','upload','url','assetManager','text','Replace','featureNotAllowed','usageLimit','isEnabled','257663rCfTGD','URL','410226EOjqCj','GPhotos','Local','config','domainLimit','execute','OneDrive','462131zyTAFG','Facebook','label','uploadcare.uploader.sourceList','Insert','destroy','entries','uploadcareLicenseKeyExpired','_showLicenseError','6029264zhOgXM','commands','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyNotAllowed','4432767jTjnLk','pluginName','UploadcareUI','isImageSelected','5XdMerf','push','tooltip','1536579XXusTl','_licenseKeyCheckInterval','isOfficialPlugin','withText','10SbctUD','bind','editor','locale','uploadcareLicenseKeyInvalid','1877296qlkqQe','has','get','uploadcareLicenseKeyValid','344WEbMfQ','icon','_createMenuBarButtons','_getIntegrationKey','uploadcareLicenseKeyTrialLimit'];_0x4950=function(){return _0x2be99a;};return _0x4950();}import{UploadcareSource as _0x17f99b}from'./uploadcareconfig.js';import{getTranslation as _0x127a7c}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 _0x4fc280{[_0xc17bda(0x150)];[_0xc17bda(0x181)];static get[_0xc17bda(0x17a)](){const _0x2d2ff4=_0xc17bda;return _0x2d2ff4(0x17b);}static get[_0xc17bda(0x182)](){return!0x0;}static get[_0xc17bda(0x153)](){return!0x0;}[_0xc17bda(0x146)](){const _0x232a3b=_0xc17bda;this[_0x232a3b(0x150)]=this[_0x232a3b(0x186)][_0x232a3b(0x168)][_0x232a3b(0x18b)](_0x232a3b(0x150));const _0x55a1d8=this[_0x232a3b(0x186)];this[_0x232a3b(0x181)]=setInterval(()=>{const _0x54e55f=_0x232a3b;let _0x5afa88;for(const _0x529bde in _0x55a1d8){const _0x1f73e0=_0x529bde,_0x447776=_0x55a1d8[_0x1f73e0];if(_0x54e55f(0x13b)==_0x447776||_0x54e55f(0x188)==_0x447776||_0x54e55f(0x173)==_0x447776||_0x54e55f(0x177)==_0x447776||_0x54e55f(0x178)==_0x447776||_0x54e55f(0x155)==_0x447776||_0x54e55f(0x140)==_0x447776||_0x54e55f(0x157)==_0x447776){delete _0x55a1d8[_0x1f73e0],_0x5afa88=_0x447776,clearInterval(this[_0x54e55f(0x181)]),this[_0x54e55f(0x181)]=void 0x0;break;}}_0x54e55f(0x188)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x158)),_0x54e55f(0x173)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x15a)),_0x54e55f(0x177)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x169)),_0x54e55f(0x178)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x160),_0x54e55f(0x147)),_0x54e55f(0x155)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x159)),_0x54e55f(0x140)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x141)),_0x54e55f(0x157)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x161));},0x3e8);}[_0xc17bda(0x148)](){const _0x5f46ed=_0xc17bda,{editor:_0x5f1d01}=this,_0x5b9c80=_0x5f1d01[_0x5f46ed(0x176)][_0x5f46ed(0x18b)](_0x5f46ed(0x142));if(!_0x5b9c80)return;const _0x53fabd=this[_0x5f46ed(0x145)](_0x5f1d01[_0x5f46ed(0x168)][_0x5f46ed(0x18b)](_0x5f46ed(0x16f)))[_0x5f46ed(0x156)]((_0x3e750b,_0x26f220)=>{const _0x468005=_0x5f46ed,_0x700541=this[_0x468005(0x13f)](_0x26f220[_0x468005(0x14d)]);return _0x3e750b[_0x700541]||(_0x3e750b[_0x700541]=[]),_0x3e750b[_0x700541][_0x468005(0x17e)](_0x26f220),_0x3e750b;},{});_0x5f1d01[_0x5f46ed(0x149)][_0x5f46ed(0x18a)](_0x5f46ed(0x14a))&&_0x5f1d01[_0x5f46ed(0x176)][_0x5f46ed(0x18b)](_0x5f46ed(0x142))&&Object[_0x5f46ed(0x172)](_0x53fabd)[_0x5f46ed(0x151)](([_0x48f97d,_0x53b4d7])=>{const _0x48c7ba=_0x5f46ed;_0x5f1d01[_0x48c7ba(0x149)][_0x48c7ba(0x18b)](_0x48c7ba(0x14a))[_0x48c7ba(0x143)]({'name':_0x48f97d,'observable':()=>_0x5b9c80,'buttonViewCreator':()=>this[_0x48c7ba(0x152)](_0x53b4d7),'formViewCreator':()=>this[_0x48c7ba(0x14c)](_0x53b4d7),'menuBarButtonViewCreator':()=>this[_0x48c7ba(0x13e)](_0x53b4d7),'override':_0x48c7ba(0x15d)!==_0x48f97d});});}[_0xc17bda(0x171)](){const _0x1b6fcc=_0xc17bda;super[_0x1b6fcc(0x171)](),this[_0x1b6fcc(0x181)]&&clearInterval(this[_0x1b6fcc(0x181)]);}[_0xc17bda(0x145)](_0x1189fb){const _0x494d97=_0xc17bda,{locale:_0x1ac8a7}=this[_0x494d97(0x186)];return _0x1189fb[_0x494d97(0x14b)](_0x2abf9f=>{const _0x188d25=_0x494d97,_0x12e1e5=_0x127a7c(_0x1ac8a7,_0x2abf9f,_0x188d25(0x170));switch(_0x2abf9f){case _0x17f99b[_0x188d25(0x167)]:return{'icon':_0x3d875e,'type':_0x17f99b[_0x188d25(0x167)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x164)]:return{'icon':_0x716ff8,'type':_0x17f99b[_0x188d25(0x164)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x14f)]:return{'icon':_0xdb5e7c,'type':_0x17f99b[_0x188d25(0x14f)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x16d)]:return{'icon':_0x133563,'type':_0x17f99b[_0x188d25(0x16d)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x14e)]:return{'icon':_0x1091ab,'type':_0x17f99b[_0x188d25(0x14e)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x166)]:return{'icon':_0x599597,'type':_0x17f99b[_0x188d25(0x166)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x16b)]:return{'icon':_0x3be201,'type':_0x17f99b[_0x188d25(0x16b)],..._0x12e1e5};}});}[_0xc17bda(0x13f)](_0x8d13d4){const _0x5bb148=_0xc17bda;switch(_0x8d13d4){case _0x17f99b[_0x5bb148(0x167)]:return _0x5bb148(0x15b);case _0x17f99b[_0x5bb148(0x164)]:return _0x5bb148(0x15c);default:return _0x5bb148(0x15d);}}[_0xc17bda(0x144)](_0x4196b4,_0x3490df){const _0x12dd4a=_0xc17bda,_0x15ec64=this[_0x12dd4a(0x186)],_0xc884df=new _0x4196b4(_0x15ec64[_0x12dd4a(0x187)]),_0x3c21b5=_0x15ec64[_0x12dd4a(0x176)][_0x12dd4a(0x18b)](_0x12dd4a(0x142));return _0xc884df[_0x12dd4a(0x185)](_0x12dd4a(0x162))['to'](_0x3c21b5),_0xc884df['on'](_0x12dd4a(0x16a),()=>{const _0x289977=_0x12dd4a;_0x3c21b5[_0x289977(0x16a)](_0x3490df);}),_0xc884df;}[_0xc17bda(0x152)](_0x3d80dd){const _0x36135d=_0xc17bda,{locale:_0x51ad50}=this[_0x36135d(0x186)],_0x2f05f0=this[_0x36135d(0x186)][_0x36135d(0x149)][_0x36135d(0x18b)](_0x36135d(0x14a)),_0x3fbc1b=_0x3d80dd[0x0],_0x1572c9=this[_0x36135d(0x144)](_0x17e607,_0x3fbc1b[_0x36135d(0x14d)]);return _0x1572c9[_0x36135d(0x13d)]=_0x3fbc1b[_0x36135d(0x13d)],_0x1572c9[_0x36135d(0x185)](_0x36135d(0x16e))['to'](_0x2f05f0,_0x36135d(0x17c),_0x21797d=>_0x127a7c(_0x51ad50,_0x3fbc1b[_0x36135d(0x14d)],_0x21797d?_0x36135d(0x15f):_0x36135d(0x170))[_0x36135d(0x15e)]),_0x1572c9[_0x36135d(0x17f)]=!0x0,_0x1572c9;}[_0xc17bda(0x14c)](_0x1bb965){const _0x3411fa=_0xc17bda,{locale:_0x30bf66}=this[_0x3411fa(0x186)],_0x3f4605=this[_0x3411fa(0x186)][_0x3411fa(0x149)][_0x3411fa(0x18b)](_0x3411fa(0x14a));return _0x1bb965[_0x3411fa(0x14b)](_0x41797b=>{const _0x1f848c=_0x3411fa,_0x599a6d=this[_0x1f848c(0x144)](_0x17e607,_0x41797b[_0x1f848c(0x14d)]);return _0x599a6d[_0x1f848c(0x183)]=!0x0,_0x599a6d[_0x1f848c(0x13d)]=_0x41797b[_0x1f848c(0x13d)],_0x599a6d[_0x1f848c(0x185)](_0x1f848c(0x16e))['to'](_0x3f4605,_0x1f848c(0x17c),_0x4cae2b=>_0x127a7c(_0x30bf66,_0x41797b[_0x1f848c(0x14d)],_0x4cae2b?_0x1f848c(0x15f):_0x1f848c(0x170))[_0x1f848c(0x15e)]),_0x599a6d;});}[_0xc17bda(0x13e)](_0x1c3982){const _0x441ef7=_0xc17bda;return _0x1c3982[_0x441ef7(0x14b)](_0x58edb9=>{const _0x7e6ea=_0x441ef7,_0x49b746=this[_0x7e6ea(0x144)](_0xf4da46,_0x58edb9[_0x7e6ea(0x14d)]);return _0x49b746[_0x7e6ea(0x13d)]=_0x58edb9[_0x7e6ea(0x13d)],_0x49b746[_0x7e6ea(0x16e)]=_0x58edb9[_0x7e6ea(0x154)],_0x49b746;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x39f035}from'ckeditor5/src/core.js';import{FileRepository as _0x25050d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x724fda}from'./uploadcareediting.js';import{UploadUtils as _0x3e807c}from'./utils/uploadutils.js';import{getImageUrls as _0x34a376}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x39f035{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25050d,_0x724fda];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5afee1=this['editor'];if(!!!_0x5afee1['config']['get']('uploadcare'))return;_0x5afee1['plugins']['get'](_0x25050d)['createUploadAdapter']=_0x11cfeb=>new k(_0x11cfeb,_0x5afee1),_0x5afee1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x38c42b,{imageElement:_0xc1a3fb,data:_0x452824})=>{_0x5afee1['model']['change'](_0x145fae=>{_0x145fae['setAttribute']('uploadcareImageId',_0x452824['uploadcareImageId'],_0xc1a3fb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x42bc43,_0x4f7ff5){this['loader']=_0x42bc43,this['editor']=_0x4f7ff5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x461619=await this['loader']['file'];return _0x3e807c['upload']({'file':_0x461619,'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':_0x4ea98b=>{_0x4ea98b&&_0x4ea98b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4ea98b['value']);}})['then'](async _0x16a172=>{const {imageFallbackUrl:_0x310a78,imageSources:_0x55791f}=_0x34a376(_0x16a172['cdnUrl'],_0x16a172['imageInfo']['width']);return{'uploadcareImageId':_0x16a172['uuid'],'default':_0x310a78,'sources':_0x55791f};})['catch'](()=>{const _0x40d56d=t('Cannot\x20upload\x20file:')+('\x20'+_0x461619['name']+'.');return Promise['reject'](_0x40d56d);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x3dfd18}from'ckeditor5/src/core.js';import{FileRepository as _0x50f249}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x348ab3}from'./uploadcareediting.js';import{UploadUtils as _0x5b679f}from'./utils/uploadutils.js';import{getImageUrls as _0x29e7cf}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3dfd18{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50f249,_0x348ab3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1571f5=this['editor'];if(!!!_0x1571f5['config']['get']('uploadcare'))return;_0x1571f5['plugins']['get'](_0x50f249)['createUploadAdapter']=_0x462130=>new k(_0x462130,_0x1571f5),_0x1571f5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x38e369,{imageElement:_0x558ce7,data:_0x1729c5})=>{_0x1571f5['model']['change'](_0x3a66a9=>{_0x3a66a9['setAttribute']('uploadcareImageId',_0x1729c5['uploadcareImageId'],_0x558ce7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x53901f,_0x36dc10){this['loader']=_0x53901f,this['editor']=_0x36dc10,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21aa96=await this['loader']['file'];return _0x5b679f['upload']({'file':_0x21aa96,'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':_0x465499=>{_0x465499&&_0x465499['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x465499['value']);}})['then'](async _0x231d71=>{const {imageFallbackUrl:_0x33cb47,imageSources:_0x348871}=_0x29e7cf(_0x231d71['cdnUrl'],_0x231d71['imageInfo']['width']);return{'uploadcareImageId':_0x231d71['uuid'],'default':_0x33cb47,'sources':_0x348871};})['catch'](()=>{const _0x2bee22=t('Cannot\x20upload\x20file:')+('\x20'+_0x21aa96['name']+'.');return Promise['reject'](_0x2bee22);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x32ce70}from'../uploadcareconfig.js';export function getTranslation(_0x50b8db,_0x5ef32e,_0x594a4b){const t=_0x50b8db['t'],_0x3638ef=_0x50b8db['t'];switch(_0x5ef32e){case _0x32ce70['Local']:return{'text':_0x3638ef('Insert'===_0x594a4b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3638ef('From\x20computer')};case _0x32ce70['URL']:return{'text':'Insert'===_0x594a4b?_0x3638ef('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3638ef('Via\x20URL')};case _0x32ce70['Dropbox']:return{'text':t('Insert'===_0x594a4b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x32ce70['Facebook']:return{'text':t('Insert'===_0x594a4b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x32ce70['GDrive']:return{'text':t('Insert'===_0x594a4b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x32ce70['GPhotos']:return{'text':t('Insert'===_0x594a4b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x32ce70['OneDrive']:return{'text':t('Insert'===_0x594a4b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5ef32e;}}
23
+ import{UploadcareSource as _0x311941}from'../uploadcareconfig.js';export function getTranslation(_0x414d50,_0x12f103,_0x9af767){const t=_0x414d50['t'],_0x3eb6e8=_0x414d50['t'];switch(_0x12f103){case _0x311941['Local']:return{'text':_0x3eb6e8('Insert'===_0x9af767?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3eb6e8('From\x20computer')};case _0x311941['URL']:return{'text':'Insert'===_0x9af767?_0x3eb6e8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3eb6e8('Via\x20URL')};case _0x311941['Dropbox']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x311941['Facebook']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x311941['GDrive']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x311941['GPhotos']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x311941['OneDrive']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12f103;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4b2a22=_0x3e78;(function(_0x13fccd,_0x2fe98b){var _0x14b3b7=_0x3e78,_0x5110ec=_0x13fccd();while(!![]){try{var _0x5c27cd=-parseInt(_0x14b3b7(0xbe))/0x1+parseInt(_0x14b3b7(0xc1))/0x2*(-parseInt(_0x14b3b7(0xc6))/0x3)+-parseInt(_0x14b3b7(0xcd))/0x4+parseInt(_0x14b3b7(0xca))/0x5+parseInt(_0x14b3b7(0xc0))/0x6*(-parseInt(_0x14b3b7(0xc7))/0x7)+parseInt(_0x14b3b7(0xbd))/0x8+-parseInt(_0x14b3b7(0xc8))/0x9*(-parseInt(_0x14b3b7(0xcc))/0xa);if(_0x5c27cd===_0x2fe98b)break;else _0x5110ec['push'](_0x5110ec['shift']());}catch(_0x42491f){_0x5110ec['push'](_0x5110ec['shift']());}}}(_0x2550,0xbf5c0));function _0x3e78(_0x31caaf,_0x7cbec){var _0x255087=_0x2550();return _0x3e78=function(_0x3e78a6,_0x444afd){_0x3e78a6=_0x3e78a6-0xbc;var _0x4a17de=_0x255087[_0x3e78a6];return _0x4a17de;},_0x3e78(_0x31caaf,_0x7cbec);}function _0x2550(){var _0x54cdb0=['fire','3VRtjBi','7cMMXNB','1791jTrYDG','true','5397780DifXiT','bindTemplate','76250ogQkJM','5520668NFRVfu','focusCycler','getFocusableElement','7211424PSkKBd','398316TlzQTj','focusTracker','4845486IrPnOR','256974CQTRza','forwardCycle','div','createCollection'];_0x2550=function(){return _0x54cdb0;};return _0x2550();}import{FocusTracker as _0x24ecfb}from'ckeditor5/src/utils.js';import{View as _0x285e65,FocusCycler as _0x2878d0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x285e65{[_0x4b2a22(0xbf)];[_0x4b2a22(0xce)];constructor(_0x37d099){var _0x562076=_0x4b2a22;super(_0x37d099),this[_0x562076(0xbf)]=new _0x24ecfb(),this[_0x562076(0xce)]=new _0x2878d0({'focusables':this[_0x562076(0xc4)](),'focusTracker':this[_0x562076(0xbf)]});}[_0x4b2a22(0xbc)](){var _0x41bf4d=_0x4b2a22;return{'tag':_0x41bf4d(0xc3),'attributes':{'aria-hidden':_0x41bf4d(0xc9),'tabindex':'0'},'on':{'focus':this[_0x41bf4d(0xcb)]['to'](()=>{var _0x24647f=_0x41bf4d;this[_0x24647f(0xce)][_0x24647f(0xc5)](_0x24647f(0xc2));})}};}}
23
+ var _0x3eca47=_0x1b6c;(function(_0x3c514d,_0x26e07c){var _0x56a051=_0x1b6c,_0x4bd1da=_0x3c514d();while(!![]){try{var _0xd2d70d=parseInt(_0x56a051(0x8f))/0x1*(parseInt(_0x56a051(0x94))/0x2)+parseInt(_0x56a051(0x8e))/0x3+parseInt(_0x56a051(0x90))/0x4*(parseInt(_0x56a051(0x8a))/0x5)+-parseInt(_0x56a051(0x84))/0x6+parseInt(_0x56a051(0x92))/0x7*(-parseInt(_0x56a051(0x93))/0x8)+parseInt(_0x56a051(0x8b))/0x9*(parseInt(_0x56a051(0x87))/0xa)+parseInt(_0x56a051(0x97))/0xb*(-parseInt(_0x56a051(0x95))/0xc);if(_0xd2d70d===_0x26e07c)break;else _0x4bd1da['push'](_0x4bd1da['shift']());}catch(_0x299167){_0x4bd1da['push'](_0x4bd1da['shift']());}}}(_0x116b,0x1fc89));import{FocusTracker as _0x4c2f8b}from'ckeditor5/src/utils.js';function _0x1b6c(_0x565855,_0x169a47){var _0x116b23=_0x116b();return _0x1b6c=function(_0x1b6c52,_0x3c2619){_0x1b6c52=_0x1b6c52-0x83;var _0x3169f7=_0x116b23[_0x1b6c52];return _0x3169f7;},_0x1b6c(_0x565855,_0x169a47);}import{View as _0x188d5a,FocusCycler as _0x327e15}from'ckeditor5/src/ui.js';function _0x116b(){var _0x219841=['bindTemplate','10uPSdRO','focusCycler','div','52445LdeSUw','645111SuThjg','forwardCycle','true','606621NddpmW','2203tdozyV','12PHZtZl','fire','707BvOlhW','552FOHNAn','138btIfoO','104472CgHOaI','getFocusableElement','110UxShQJ','createCollection','1398876zNaavF','focusTracker'];_0x116b=function(){return _0x219841;};return _0x116b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x188d5a{[_0x3eca47(0x85)];[_0x3eca47(0x88)];constructor(_0x584f82){var _0x3bd6df=_0x3eca47;super(_0x584f82),this[_0x3bd6df(0x85)]=new _0x4c2f8b(),this[_0x3bd6df(0x88)]=new _0x327e15({'focusables':this[_0x3bd6df(0x83)](),'focusTracker':this[_0x3bd6df(0x85)]});}[_0x3eca47(0x96)](){var _0x28464a=_0x3eca47;return{'tag':_0x28464a(0x89),'attributes':{'aria-hidden':_0x28464a(0x8d),'tabindex':'0'},'on':{'focus':this[_0x28464a(0x86)]['to'](()=>{var _0x432262=_0x28464a;this[_0x432262(0x88)][_0x432262(0x91)](_0x432262(0x8c));})}};}}