@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.1 → 46.0.1-alpha.2

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
- function _0x443b(_0x34dee4,_0x6ccdd8){const _0xe83fbd=_0xe83f();return _0x443b=function(_0x443b84,_0xbcbd0){_0x443b84=_0x443b84-0x79;let _0x173fc0=_0xe83fbd[_0x443b84];return _0x173fc0;},_0x443b(_0x34dee4,_0x6ccdd8);}const _0x523bb2=_0x443b;(function(_0x279453,_0x4a8d23){const _0x427e1b=_0x443b,_0x24369a=_0x279453();while(!![]){try{const _0x5001e5=-parseInt(_0x427e1b(0x92))/0x1*(parseInt(_0x427e1b(0x97))/0x2)+parseInt(_0x427e1b(0xa9))/0x3+parseInt(_0x427e1b(0x96))/0x4+-parseInt(_0x427e1b(0xa8))/0x5+parseInt(_0x427e1b(0xc5))/0x6+parseInt(_0x427e1b(0x85))/0x7*(parseInt(_0x427e1b(0xab))/0x8)+parseInt(_0x427e1b(0x8d))/0x9*(-parseInt(_0x427e1b(0x82))/0xa);if(_0x5001e5===_0x4a8d23)break;else _0x24369a['push'](_0x24369a['shift']());}catch(_0x5bb830){_0x24369a['push'](_0x24369a['shift']());}}}(_0xe83f,0xc7997));import{Plugin as _0x15b62f}from'ckeditor5/src/core.js';import{Dialog as _0x1bd23c}from'ckeditor5/src/ui.js';import{createElement as _0x1c7923,global as _0x1e2b07,uid as _0x4920e5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x44d6f2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2c1cb6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26baa6}from'./utils/editingutils.js';function _0xe83f(){const _0x425748=['extend','isOfficialPlugin','closeMax','view','8217OUnpiK','attributeToAttribute','elementToAttribute','execute','configElement','1UWUYPZ','editor','listenTo','_configElement','2726692ENhSvP','2084366NCHVnZ','getAttribute','uploadcare.uploader','replaceImageSource','uploadcare.pubkey','ucContextId','commands','locale','schema','destroy','document','_initConversion','uploadcareImageId','pluginName','getSelectedElement','uc-config','_initImageProcessingIndicator','116020uSZCPW','1947129AweGPB','PictureEditing','4002688VrreAo','_initCtx','editing','#uc-icon-arrow-down','href','add','isPremiumPlugin','contentLanguage','afterInit','isRegistered','uc-upload-ctx-provider','init','upcast','fromCharCode','_initSchema','render','map','uploadcareImageReplace','true','querySelector','removeAttribute','config','remove','\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','once','_ctxElement','6397422gisNAU','insertImage','uploader-','get','conversion','selection','model','imageInline','_initConfig','downcast','uploadcare','for','appendChild','imageBlock','requires','ctxElement','iconHrefResolver','input[uploadcare-file-input]','11110dXIAFn','body','data-uc-image-id','7FuLbFq','join','cleanupImage','UploadcareEditing'];_0xe83f=function(){return _0x425748;};return _0xe83f();}export class UploadcareEditing extends _0x15b62f{[_0x523bb2(0x95)]=null;[_0x523bb2(0xc4)]=null;static get[_0x523bb2(0xa4)](){const _0x532e33=_0x523bb2;return _0x532e33(0x88);}static get[_0x523bb2(0x7e)](){const _0x7e05d5=_0x523bb2;return[_0x7e05d5(0xaa),_0x2c1cb6,_0x1bd23c];}static get[_0x523bb2(0x8a)](){return!0x0;}static get[_0x523bb2(0xb1)](){return!0x0;}[_0x523bb2(0x9c)];get[_0x523bb2(0x91)](){const _0x160e4b=_0x523bb2;return this[_0x160e4b(0x95)];}get[_0x523bb2(0x7f)](){const _0x252d60=_0x523bb2;return this[_0x252d60(0xc4)];}constructor(_0x21c777){const _0x4fb011=_0x523bb2;super(_0x21c777),this[_0x4fb011(0x9c)]=_0x4920e5();}[_0x523bb2(0xb6)](){const _0x55f35e=_0x523bb2,_0x10b421=this[_0x55f35e(0x93)];_0x10b421[_0x55f35e(0x9d)][_0x55f35e(0xb0)](_0x55f35e(0x7a),new _0x44d6f2(_0x10b421));}[_0x523bb2(0xb3)](){const _0x2f4af9=_0x523bb2;this[_0x2f4af9(0xb9)](),this[_0x2f4af9(0xa2)](),this[_0x2f4af9(0xcd)](),this[_0x2f4af9(0xac)](),this[_0x2f4af9(0xa7)](),this[_0x2f4af9(0x94)](this[_0x2f4af9(0x93)],_0x2f4af9(0xa0),()=>{const _0x2af8e0=_0x2f4af9;this[_0x2af8e0(0x95)]&&(this[_0x2af8e0(0x95)][_0x2af8e0(0xc1)](),this[_0x2af8e0(0x95)]=null),this[_0x2af8e0(0xc4)]&&(this[_0x2af8e0(0xc4)][_0x2af8e0(0xc1)](),this[_0x2af8e0(0xc4)]=null);const _0x19b39e=_0x1e2b07[_0x2af8e0(0xa1)][_0x2af8e0(0xbe)](_0x2af8e0(0x81));_0x19b39e&&_0x19b39e[_0x2af8e0(0xc1)]();}),async function(_0x260a4c){const _0x421f29=_0x23359e([0x5a,0x4c,0x66,0x72,0x61,0x63,0x57,0x68,0x39,0x64,0x75,0x53,0x4b,0x77,0x4f,0x31,0x51,0x62,0x73,0x55,0x45,0x56,0x7a,0x30,0x58,0x49,0x35,0x54,0x38,0x50,0x59,0x76,0x69,0x79,0x41,0x4d,0x44,0x48,0x4e,0x32,0x6e,0x74,0x46,0x47,0x4a,0x67,0x43,0x6d,0x36,0x65,0x6c,0x70,0x78,0x6f,0x6b,0x34,0x52,0x37,0x33,0x42,0x6a,0x71]),_0x14934a=0x4ce62280,_0x5cd1c5=0x4ce14da0^_0x14934a,_0x3f3aa2=window[_0x23359e([0x44,0x61,0x74,0x65])][_0x23359e([0x6e,0x6f,0x77])](),_0x2c1994=_0x260a4c[_0x23359e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x539425=new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x379ce1=>{_0x2c1994[_0x23359e([0x6f,0x6e,0x63,0x65])](_0x23359e([0x72,0x65,0x61,0x64,0x79]),_0x379ce1);}),_0x394357={[_0x23359e([0x6b,0x74,0x79])]:_0x23359e([0x45,0x43]),[_0x23359e([0x75,0x73,0x65])]:_0x23359e([0x73,0x69,0x67]),[_0x23359e([0x63,0x72,0x76])]:_0x23359e([0x50,0x2d,0x32,0x35,0x36]),[_0x23359e([0x78])]:_0x23359e([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]),[_0x23359e([0x79])]:_0x23359e([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]),[_0x23359e([0x61,0x6c,0x67])]:_0x23359e([0x45,0x53,0x32,0x35,0x36])},_0x405ce2=_0x2c1994[_0x23359e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23359e([0x67,0x65,0x74])](_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d13cf(){let _0x11d4ac,_0x2aea81=null,_0x2e2138=null;try{if(_0x405ce2==_0x23359e([0x47,0x50,0x4c]))return _0x23359e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11d4ac=_0x25c187(),!_0x11d4ac)return _0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11d4ac[_0x23359e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2138=_0x23af6a(_0x11d4ac[_0x23359e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11d4ac[_0x23359e([0x6a,0x74,0x69])])),await _0x1edeec()?_0x3d2692()?_0xd725d()?_0x23359e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a6429()?(_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23359e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aea81=_0x2f32c2(_0x23359e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23359e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2aea81=_0x2f32c2(_0x23359e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a3929()):_0x23359e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23359e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd725d(){const _0x5e0b33=[_0x23359e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23359e([0x74,0x72,0x69,0x61,0x6c])][_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f3aa2/0x3e8:0xe10*_0x5cd1c5;return _0x11d4ac[_0x23359e([0x65,0x78,0x70])]<_0x5e0b33;}function _0x3d2692(){const _0x2a8dde=_0x11d4ac[_0x23359e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a8dde&&(!!_0x2a8dde[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x2a]))||!!_0x2a8dde[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x55,0x50,0x4c,0x43])));}function _0x5a6429(){const _0x4eb682=_0x443b,_0x170b07=_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x170b07||0x0==_0x170b07[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd19e}=new URL(window[_0x23359e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4eb682(0xaf)]);if(_0x170b07[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd19e))return!0x0;const _0x4af8d0=_0x5dd19e[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e]));return _0x170b07[_0x23359e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484bcc=>_0x484bcc[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x2a])))[_0x23359e([0x6d,0x61,0x70])](_0x227944=>_0x227944[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e])))[_0x23359e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaccb86=>_0xaccb86[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4af8d0[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23359e([0x6d,0x61,0x70])](_0xf0f7e8=>Array(_0x4af8d0[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf0f7e8[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23359e([0x66,0x69,0x6c,0x6c])](_0xf0f7e8[0x0]===_0x23359e([0x2a])?_0x23359e([0x2a]):'')[_0x23359e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf0f7e8))[_0x23359e([0x73,0x6f,0x6d,0x65])](_0x4f85f0=>_0x4af8d0[_0x23359e([0x65,0x76,0x65,0x72,0x79])]((_0x52be47,_0x3bffbb)=>_0x4f85f0[_0x3bffbb]===_0x52be47||_0x4f85f0[_0x3bffbb]===_0x23359e([0x2a])));}function _0x2a3929(){return _0x2aea81&&_0x2e2138?new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f2790,_0x2b4890)=>{_0x2aea81[_0x23359e([0x74,0x68,0x65,0x6e])](_0x2f2790,_0x2b4890),_0x2e2138[_0x23359e([0x74,0x68,0x65,0x6e])](_0x3de807=>{_0x3de807!=_0x23359e([0x56,0x61,0x6c,0x69,0x64])&&_0x2f2790(_0x3de807);},_0x2b4890);}):_0x2aea81||_0x2e2138||_0x23359e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23af6a(_0x53943c,_0x1e28e3){return new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x586fde=>{if(_0x4be59e())return _0x586fde(_0x23359e([0x56,0x61,0x6c,0x69,0x64]));_0x32cd45(),_0x2c1994[_0x23359e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8f52d=!0x1;const _0x105394=_0x4920e5();function _0x5a2f0d(_0x57fdf7){return!!_0x57fdf7&&(typeof _0x57fdf7===_0x23359e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57fdf7===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57fdf7[_0x23359e([0x74,0x68,0x65,0x6e])]===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57fdf7[_0x23359e([0x63,0x61,0x74,0x63,0x68])]===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bbe6b(_0x27e7fd){_0x1922fe(_0x27e7fd)[_0x23359e([0x74,0x68,0x65,0x6e])](_0x2109ef=>{if(!_0x2109ef||_0x2109ef[_0x23359e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23359e([0x6f,0x6b]))return _0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30cd1b(_0x44ca2f(_0x105394+_0x1e28e3))!=_0x2109ef[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23359e([0x56,0x61,0x6c,0x69,0x64]);})[_0x23359e([0x74,0x68,0x65,0x6e])](_0x5ac17f=>(_0x59acac(),_0x5ac17f),()=>{const _0x57092b=_0x2f8b95();return null==_0x57092b?(_0x59acac(),_0x23359e([0x56,0x61,0x6c,0x69,0x64])):_0x23359e(_0x3f3aa2-_0x57092b>(0x68eaa680^_0x14934a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23359e([0x74,0x68,0x65,0x6e])](_0x586fde)[_0x23359e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11f177=0x4cd0cc00^_0x14934a;function _0x59acac(){const _0x1116a9=_0x23359e([0x6c,0x6c,0x63,0x74,0x2d])+_0x30cd1b(_0x44ca2f(_0x53943c)),_0x3589ee=_0x3bc9e4(_0x30cd1b(window[_0x23359e([0x4d,0x61,0x74,0x68])][_0x23359e([0x63,0x65,0x69,0x6c])](_0x3f3aa2/_0x11f177)));window[_0x23359e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23359e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1116a9,_0x3589ee);}function _0x2f8b95(){const _0x37fdf8=_0x23359e([0x6c,0x6c,0x63,0x74,0x2d])+_0x30cd1b(_0x44ca2f(_0x53943c)),_0x344220=window[_0x23359e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23359e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37fdf8);return _0x344220?window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bc9e4(_0x344220),0x10)*_0x11f177:null;}function _0x1922fe(_0x5ce967){return new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x508ff6,_0x1b5459)=>{_0x5ce967[_0x23359e([0x74,0x68,0x65,0x6e])](_0x508ff6,_0x1b5459),window[_0x23359e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b5459,0x4ce7f640^_0x14934a);});}}_0x2c1994[_0x23359e([0x6f,0x6e])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52b01d,_0x4d85c1)=>{if(_0x4d85c1[0x0]!=_0x53943c)return _0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d85c1[0x1]={..._0x4d85c1[0x1],[_0x23359e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x105394};},{[_0x23359e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23359e([0x68,0x69,0x67,0x68])}),_0x2c1994[_0x23359e([0x6f,0x6e])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cb0d2=>{_0x5a2f0d(_0x2cb0d2[_0x23359e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8f52d=!0x0,_0x3bbe6b(_0x2cb0d2[_0x23359e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23359e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23359e([0x6c,0x6f,0x77])}),_0x539425[_0x23359e([0x74,0x68,0x65,0x6e])](()=>{_0x8f52d||_0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4be59e(){return _0x2c1994[_0x23359e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23359e([0x76,0x69,0x65,0x77])][_0x23359e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23359e([0x61,0x75,0x74,0x6f]);}function _0x32cd45(){_0x2c1994[_0x23359e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23359e([0x76,0x69,0x65,0x77])][_0x23359e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23359e([0x61,0x75,0x74,0x6f]);}}function _0x2f32c2(_0x311b46){const _0x386a20=[new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ddc7c=>setTimeout(_0x5ddc7c,0x4cef1c4c^_0x14934a)),_0x539425[_0x23359e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11d99a=>{let _0x47d562=0x0;_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x6f,0x6e])](_0x23359e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ddd86,_0x298fe1)=>{_0x298fe1[0x0][_0x23359e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47d562++,_0x47d562==(0x4ce62378^_0x14934a)&&(_0x11d99a(),_0x1ddd86[_0x23359e([0x6f,0x66,0x66])]());});}))];return window[_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23359e([0x72,0x61,0x63,0x65])](_0x386a20)[_0x23359e([0x74,0x68,0x65,0x6e])](()=>_0x311b46);}async function _0x837203(){await _0x539425,_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xccca6,_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xccca6,_0x2c1994[_0x23359e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23359e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58094e(_0xb90764){const _0x9a3b90=_0x2507ff();_0x2c1994[_0x9a3b90]=_0x23359e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb90764,_0xb90764!=_0x23359e([0x56,0x61,0x6c,0x69,0x64])&&_0x837203();}function _0x2507ff(){const _0x2d5f8f=window[_0x23359e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23359e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23359e([0x6e,0x6f,0x77])]())[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23359e([0x2e]),'');let _0xff1c1d=_0x23359e([0x5a]);for(let _0x31b002=0x0;_0x31b002<_0x2d5f8f[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31b002+=0x2){let _0x3f3db5=window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5f8f[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31b002,_0x31b002+0x2));_0x3f3db5>=_0x421f29[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f3db5-=_0x421f29[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xff1c1d+=_0x421f29[_0x3f3db5];}return _0xff1c1d;}function _0x25c187(){const _0x3f5bcf=_0x405ce2[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e]));if(0x3!=_0x3f5bcf[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x445550(_0x3f5bcf[0x1]);function _0x445550(_0x1a168a){const _0x926208=_0x3d552c(_0x1a168a);return _0x926208&&_0x512e21()?_0x926208:null;function _0x512e21(){const _0x2d9b1c=_0x926208[_0x23359e([0x6a,0x74,0x69])],_0x415220=window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9b1c[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d9b1c[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16f047={..._0x926208,[_0x23359e([0x6a,0x74,0x69])]:_0x2d9b1c[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d9b1c[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16f047[_0x23359e([0x76,0x63])],_0x44ca2f(_0x16f047)==_0x415220;}}}async function _0x1edeec(){let _0x5df918=!0x0;try{const _0x43aff7=_0x405ce2[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e])),[_0x6fdac2,_0x498210,_0x1ecb5f]=_0x43aff7;return _0x4ff307(_0x6fdac2),await _0x50af0e(_0x6fdac2,_0x498210,_0x1ecb5f),_0x5df918;}catch{return!0x1;}function _0x4ff307(_0x414f49){const _0x37e65b=_0x3d552c(_0x414f49);_0x37e65b&&_0x37e65b[_0x23359e([0x61,0x6c,0x67])]==_0x23359e([0x45,0x53,0x32,0x35,0x36])||(_0x5df918=!0x1);}async function _0x50af0e(_0x50084c,_0x45be99,_0x4c46c4){const _0x38d73d=window[_0x23359e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23359e([0x66,0x72,0x6f,0x6d])](_0x4de233(_0x4c46c4),_0xbec1de=>_0xbec1de[_0x23359e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ceaf1=new window[(_0x23359e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23359e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50084c+_0x23359e([0x2e])+_0x45be99),_0x9ce83c=window[_0x23359e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23359e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9ce83c)return;const _0x18a0d8=await _0x9ce83c[_0x23359e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23359e([0x6a,0x77,0x6b]),_0x394357,{[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x45,0x43,0x44,0x53,0x41]),[_0x23359e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23359e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9ce83c[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x45,0x43,0x44,0x53,0x41]),[_0x23359e([0x68,0x61,0x73,0x68])]:{[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18a0d8,_0x38d73d,_0x4ceaf1)||(_0x5df918=!0x1);}}function _0x3d552c(_0x31db44){return _0x31db44[_0x23359e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23359e([0x65,0x79]))?JSON[_0x23359e([0x70,0x61,0x72,0x73,0x65])](_0x4de233(_0x31db44)):null;}function _0x4de233(_0x18479a){return window[_0x23359e([0x61,0x74,0x6f,0x62])](_0x18479a[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23359e([0x2b]))[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23359e([0x2f])));}function _0x44ca2f(_0x3be326){let _0x3132a0=0x1505;function _0xccd13c(_0x224105){for(let _0x3b4615=0x0;_0x3b4615<_0x224105[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4615++){const _0x2aba5f=_0x224105[_0x23359e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b4615);_0x3132a0=(_0x3132a0<<0x5)+_0x3132a0+_0x2aba5f,_0x3132a0&=_0x3132a0;}}function _0x45336a(_0x32dd50){Array[_0x23359e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32dd50)?_0x32dd50[_0x23359e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45336a):_0x32dd50&&typeof _0x32dd50==_0x23359e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23359e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32dd50)[_0x23359e([0x73,0x6f,0x72,0x74])]()[_0x23359e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f67de,_0x13183a])=>{_0xccd13c(_0x1f67de),_0x45336a(_0x13183a);}):_0xccd13c(window[_0x23359e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32dd50));}return _0x45336a(_0x3be326),_0x3132a0>>>0x0;}function _0x30cd1b(_0x3e42c3){return _0x3e42c3[_0x23359e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23359e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23359e([0x30]));}function _0x3bc9e4(_0x188cef){return _0x188cef[_0x23359e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23359e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23359e([0x6a,0x6f,0x69,0x6e])]('');}function _0xccca6(){}function _0x23359e(_0x55559c){const _0x16d02a=_0x443b;return _0x55559c[_0x16d02a(0xbb)](_0x2b9df2=>String[_0x16d02a(0xb8)](_0x2b9df2))[_0x16d02a(0x86)]('');}_0x58094e(await _0x1d13cf());}(this);}[_0x523bb2(0xb9)](){const _0x1e4079=_0x523bb2,_0x1ef62b=this[_0x1e4079(0x93)][_0x1e4079(0xcb)][_0x1e4079(0x9f)];_0x1ef62b[_0x1e4079(0xb4)](_0x1e4079(0x7d))&&_0x1ef62b[_0x1e4079(0x89)](_0x1e4079(0x7d),{'allowAttributes':[_0x1e4079(0xa3)]}),_0x1ef62b[_0x1e4079(0xb4)](_0x1e4079(0xcc))&&_0x1ef62b[_0x1e4079(0x89)](_0x1e4079(0xcc),{'allowAttributes':[_0x1e4079(0xa3)]});}[_0x523bb2(0xa2)](){const _0x34ebe4=_0x523bb2,_0x1d8798=this[_0x34ebe4(0x93)];_0x1d8798[_0x34ebe4(0xc9)][_0x34ebe4(0x7b)](_0x34ebe4(0x79))[_0x34ebe4(0x8e)]({'model':_0x34ebe4(0xa3),'view':_0x34ebe4(0x84)}),_0x1d8798[_0x34ebe4(0xc9)][_0x34ebe4(0x7b)](_0x34ebe4(0xb7))[_0x34ebe4(0x8f)]({'model':{'key':_0x34ebe4(0xa3),'value':_0x1adda3=>_0x1adda3[_0x34ebe4(0x98)](_0x34ebe4(0x84))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3789e1=_0x1d8798[_0x34ebe4(0x9d)][_0x34ebe4(0xc8)](_0x34ebe4(0x9a));_0x3789e1&&this[_0x34ebe4(0x94)](_0x3789e1,_0x34ebe4(0x87),(_0x5c586c,[_0x46fbfa,_0x40cc7d])=>{const _0x214b5e=_0x34ebe4;_0x46fbfa[_0x214b5e(0xbf)](_0x214b5e(0xa3),_0x40cc7d);});}[_0x523bb2(0xcd)](){const _0x1bccfe=_0x523bb2,_0x2abb41=this[_0x1bccfe(0x93)][_0x1bccfe(0xc0)][_0x1bccfe(0xc8)](_0x1bccfe(0x99))||{},_0x1df151=this[_0x1bccfe(0x93)][_0x1bccfe(0xc0)][_0x1bccfe(0xc8)](_0x1bccfe(0x9b))||'';this[_0x1bccfe(0x95)]=_0x1c7923(_0x1e2b07[_0x1bccfe(0xa1)],_0x1bccfe(0xa6),{..._0x2abb41,'pubkey':_0x1df151,'ctx-name':_0x1bccfe(0xc7)+this[_0x1bccfe(0x9c)],'sourceList':'','imgOnly':_0x1bccfe(0xbd),'removeCopyright':_0x1bccfe(0xbd),'localeName':this[_0x1bccfe(0x93)][_0x1bccfe(0x9e)][_0x1bccfe(0xb2)],'externalSourcesEmbedCss':_0x1bccfe(0xc2)}),this[_0x1bccfe(0x95)][_0x1bccfe(0x80)]=_0x24fe4c=>{const _0x5aeb8c=_0x1bccfe;if(_0x5aeb8c(0x8b)==_0x24fe4c)return _0x5aeb8c(0xae);},_0x1e2b07[_0x1bccfe(0xa1)][_0x1bccfe(0x83)][_0x1bccfe(0x7c)](this[_0x1bccfe(0x95)]);}[_0x523bb2(0xac)](){const _0x1139db=_0x523bb2;this[_0x1139db(0xc4)]=_0x1c7923(_0x1e2b07[_0x1139db(0xa1)],_0x1139db(0xb5),{'ctx-name':_0x1139db(0xc7)+this[_0x1139db(0x9c)]}),_0x1e2b07[_0x1139db(0xa1)][_0x1139db(0x83)][_0x1139db(0x7c)](this[_0x1139db(0xc4)]);}[_0x523bb2(0xa7)](){const _0x28f94d=_0x523bb2,_0x4eed15=this[_0x28f94d(0x93)][_0x28f94d(0x9d)][_0x28f94d(0xc8)](_0x28f94d(0xc6));_0x4eed15&&this[_0x28f94d(0x94)](_0x4eed15,_0x28f94d(0x90),()=>{const _0x4b8f22=_0x28f94d,_0x41ca01=this[_0x4b8f22(0x93)][_0x4b8f22(0xcb)][_0x4b8f22(0xa1)][_0x4b8f22(0xca)][_0x4b8f22(0xa5)]();_0x41ca01&&_0x41ca01[_0x4b8f22(0x98)](_0x4b8f22(0xa3))&&this[_0x4b8f22(0x93)][_0x4b8f22(0xad)][_0x4b8f22(0x8c)][_0x4b8f22(0xc3)](_0x4b8f22(0xba),()=>{const _0x57f231=_0x4b8f22;_0x26baa6(this[_0x57f231(0x93)],_0x41ca01);});});const _0x385d28=this[_0x28f94d(0x93)][_0x28f94d(0x9d)][_0x28f94d(0xc8)](_0x28f94d(0xbc));_0x385d28&&this[_0x28f94d(0x94)](_0x385d28,_0x28f94d(0x90),()=>{const _0x44be49=_0x28f94d,_0x156b4e=this[_0x44be49(0x93)][_0x44be49(0xcb)][_0x44be49(0xa1)][_0x44be49(0xca)][_0x44be49(0xa5)]();_0x156b4e&&_0x156b4e[_0x44be49(0x98)](_0x44be49(0xa3))&&this[_0x44be49(0x93)][_0x44be49(0xad)][_0x44be49(0x8c)][_0x44be49(0xc3)](_0x44be49(0xba),()=>{const _0x5b481d=_0x44be49;_0x26baa6(this[_0x5b481d(0x93)],_0x156b4e);});});}}
23
+ const _0x31f073=_0x2d95;function _0x2d95(_0x3e81da,_0x109967){const _0x290cf9=_0x290c();return _0x2d95=function(_0x2d9501,_0x387e5e){_0x2d9501=_0x2d9501-0x1c7;let _0xb4fa32=_0x290cf9[_0x2d9501];return _0xb4fa32;},_0x2d95(_0x3e81da,_0x109967);}(function(_0x3cd3ae,_0x9e8e9e){const _0x433bea=_0x2d95,_0x1edf99=_0x3cd3ae();while(!![]){try{const _0x46f3f5=-parseInt(_0x433bea(0x1c8))/0x1*(parseInt(_0x433bea(0x1f7))/0x2)+parseInt(_0x433bea(0x1d4))/0x3+parseInt(_0x433bea(0x1eb))/0x4+parseInt(_0x433bea(0x1f0))/0x5+-parseInt(_0x433bea(0x205))/0x6+-parseInt(_0x433bea(0x1d7))/0x7+parseInt(_0x433bea(0x1f4))/0x8;if(_0x46f3f5===_0x9e8e9e)break;else _0x1edf99['push'](_0x1edf99['shift']());}catch(_0x139d04){_0x1edf99['push'](_0x1edf99['shift']());}}}(_0x290c,0xccdde));function _0x290c(){const _0x408716=['getAttribute','UploadcareEditing','execute','ucContextId','locale','_configElement','schema','init','6092844RwqycN','render','_initImageProcessingIndicator','closeMax','remove','for','destroy','editing','data-uc-image-id','requires','commands','uploader-','uploadcareImageId','afterInit','ctxElement','body','isOfficialPlugin','_initSchema','_initConfig','uploadcare','configElement','config','2mPZVQe','querySelector','isRegistered','selection','#uc-icon-arrow-down','replaceImageSource','PictureEditing','attributeToAttribute','contentLanguage','imageInline','getSelectedElement','_initCtx','3174651CZltDL','model','removeAttribute','4823910ZNkHbG','view','uploadcare.uploader','extend','appendChild','iconHrefResolver','downcast','uploadcareImageReplace','_initConversion','map','pluginName','fromCharCode','\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','uc-config','document','join','once','uploadcare.pubkey','conversion','_ctxElement','4539396SqCuxe','input[uploadcare-file-input]','isPremiumPlugin','upcast','cleanupImage','2653125QwmQyL','insertImage','href','listenTo','68200hEgQXl','get','imageBlock','188478Cjycnw','elementToAttribute','true','editor','add','uc-upload-ctx-provider'];_0x290c=function(){return _0x408716;};return _0x290c();}import{Plugin as _0x32a97c}from'ckeditor5/src/core.js';import{Dialog as _0x18da63}from'ckeditor5/src/ui.js';import{createElement as _0x5235b7,global as _0x56910f,uid as _0x50f9cd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x371dd8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x476d16}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57cc05}from'./utils/editingutils.js';export class UploadcareEditing extends _0x32a97c{[_0x31f073(0x202)]=null;[_0x31f073(0x1ea)]=null;static get[_0x31f073(0x1e1)](){const _0x2033ee=_0x31f073;return _0x2033ee(0x1fe);}static get[_0x31f073(0x20e)](){const _0xd73312=_0x31f073;return[_0xd73312(0x1ce),_0x476d16,_0x18da63];}static get[_0x31f073(0x215)](){return!0x0;}static get[_0x31f073(0x1ed)](){return!0x0;}[_0x31f073(0x200)];get[_0x31f073(0x219)](){const _0x616012=_0x31f073;return this[_0x616012(0x202)];}get[_0x31f073(0x213)](){const _0x42387a=_0x31f073;return this[_0x42387a(0x1ea)];}constructor(_0x5bc9b8){const _0x379e4e=_0x31f073;super(_0x5bc9b8),this[_0x379e4e(0x200)]=_0x50f9cd();}[_0x31f073(0x204)](){const _0x3dfe0b=_0x31f073,_0x1aed76=this[_0x3dfe0b(0x1fa)];_0x1aed76[_0x3dfe0b(0x20f)][_0x3dfe0b(0x1fb)](_0x3dfe0b(0x218),new _0x371dd8(_0x1aed76));}[_0x31f073(0x212)](){const _0x30ff57=_0x31f073;this[_0x30ff57(0x216)](),this[_0x30ff57(0x1df)](),this[_0x30ff57(0x217)](),this[_0x30ff57(0x1d3)](),this[_0x30ff57(0x207)](),this[_0x30ff57(0x1f3)](this[_0x30ff57(0x1fa)],_0x30ff57(0x20b),()=>{const _0x3c6cb9=_0x30ff57;this[_0x3c6cb9(0x202)]&&(this[_0x3c6cb9(0x202)][_0x3c6cb9(0x209)](),this[_0x3c6cb9(0x202)]=null),this[_0x3c6cb9(0x1ea)]&&(this[_0x3c6cb9(0x1ea)][_0x3c6cb9(0x209)](),this[_0x3c6cb9(0x1ea)]=null);const _0x166300=_0x56910f[_0x3c6cb9(0x1e5)][_0x3c6cb9(0x1c9)](_0x3c6cb9(0x1ec));_0x166300&&_0x166300[_0x3c6cb9(0x209)]();}),async function(_0x42864e){const _0x453dfe=_0x1b293f([0x44,0x32,0x6e,0x45,0x75,0x78,0x71,0x74,0x66,0x37,0x53,0x4a,0x4b,0x58,0x59,0x61,0x54,0x6c,0x5a,0x56,0x46,0x6f,0x73,0x30,0x33,0x79,0x69,0x42,0x67,0x64,0x43,0x4e,0x41,0x35,0x68,0x39,0x76,0x57,0x65,0x63,0x4f,0x62,0x77,0x55,0x51,0x34,0x6d,0x31,0x49,0x7a,0x4d,0x6b,0x72,0x4c,0x47,0x36,0x52,0x48,0x50,0x6a,0x70,0x38]),_0x40a0cc=0x2dea5ccc,_0x12d47a=0x2ded33f4^_0x40a0cc,_0x3b5d4e=window[_0x1b293f([0x44,0x61,0x74,0x65])][_0x1b293f([0x6e,0x6f,0x77])](),_0x435594=_0x42864e[_0x1b293f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x464699=new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11402e=>{_0x435594[_0x1b293f([0x6f,0x6e,0x63,0x65])](_0x1b293f([0x72,0x65,0x61,0x64,0x79]),_0x11402e);}),_0x348996={[_0x1b293f([0x6b,0x74,0x79])]:_0x1b293f([0x45,0x43]),[_0x1b293f([0x75,0x73,0x65])]:_0x1b293f([0x73,0x69,0x67]),[_0x1b293f([0x63,0x72,0x76])]:_0x1b293f([0x50,0x2d,0x32,0x35,0x36]),[_0x1b293f([0x78])]:_0x1b293f([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]),[_0x1b293f([0x79])]:_0x1b293f([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]),[_0x1b293f([0x61,0x6c,0x67])]:_0x1b293f([0x45,0x53,0x32,0x35,0x36])},_0x5a942e=_0x435594[_0x1b293f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b293f([0x67,0x65,0x74])](_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10ec57(){let _0x11cbe2,_0x521590=null,_0x1960c4=null;try{if(_0x5a942e==_0x1b293f([0x47,0x50,0x4c]))return _0x1b293f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11cbe2=_0x3e438d(),!_0x11cbe2)return _0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11cbe2[_0x1b293f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1960c4=_0x58a4a9(_0x11cbe2[_0x1b293f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11cbe2[_0x1b293f([0x6a,0x74,0x69])])),await _0x4c43b0()?_0x237433()?_0x5456dc()?_0x1b293f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2db1c6()?(_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b293f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x521590=_0x4a88df(_0x1b293f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b293f([0x74,0x72,0x69,0x61,0x6c])&&(_0x521590=_0x4a88df(_0x1b293f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c8ccf()):_0x1b293f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b293f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5456dc(){const _0xb29e34=[_0x1b293f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b293f([0x74,0x72,0x69,0x61,0x6c])][_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b5d4e/0x3e8:0xe10*_0x12d47a;return _0x11cbe2[_0x1b293f([0x65,0x78,0x70])]<_0xb29e34;}function _0x237433(){const _0x3ed6a4=_0x11cbe2[_0x1b293f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ed6a4&&(!!_0x3ed6a4[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x2a]))||!!_0x3ed6a4[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x55,0x50,0x4c,0x43])));}function _0x2db1c6(){const _0x59f047=_0x2d95,_0x4c7960=_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c7960||0x0==_0x4c7960[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x103554}=new URL(window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59f047(0x1f2)]);if(_0x4c7960[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x103554))return!0x0;const _0x4c4bb6=_0x103554[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e]));return _0x4c7960[_0x1b293f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x548aaf=>_0x548aaf[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x2a])))[_0x1b293f([0x6d,0x61,0x70])](_0x1e336c=>_0x1e336c[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e])))[_0x1b293f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x198424=>_0x198424[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c4bb6[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b293f([0x6d,0x61,0x70])](_0x43eef1=>Array(_0x4c4bb6[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43eef1[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b293f([0x66,0x69,0x6c,0x6c])](_0x43eef1[0x0]===_0x1b293f([0x2a])?_0x1b293f([0x2a]):'')[_0x1b293f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43eef1))[_0x1b293f([0x73,0x6f,0x6d,0x65])](_0x1071b2=>_0x4c4bb6[_0x1b293f([0x65,0x76,0x65,0x72,0x79])]((_0x1afa4c,_0xf865e4)=>_0x1071b2[_0xf865e4]===_0x1afa4c||_0x1071b2[_0xf865e4]===_0x1b293f([0x2a])));}function _0x5c8ccf(){return _0x521590&&_0x1960c4?new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4621bf,_0x126b2d)=>{_0x521590[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x4621bf,_0x126b2d),_0x1960c4[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x57599a=>{_0x57599a!=_0x1b293f([0x56,0x61,0x6c,0x69,0x64])&&_0x4621bf(_0x57599a);},_0x126b2d);}):_0x521590||_0x1960c4||_0x1b293f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58a4a9(_0x2830b7,_0x2fd015){return new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x356414=>{if(_0x466b93())return _0x356414(_0x1b293f([0x56,0x61,0x6c,0x69,0x64]));_0xbc2b1d(),_0x435594[_0x1b293f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7b502d=!0x1;const _0x492255=_0x50f9cd();function _0x85131d(_0x38cc1c){return!!_0x38cc1c&&(typeof _0x38cc1c===_0x1b293f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38cc1c===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38cc1c[_0x1b293f([0x74,0x68,0x65,0x6e])]===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38cc1c[_0x1b293f([0x63,0x61,0x74,0x63,0x68])]===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x476b7c(_0x58d134){_0x2ca245(_0x58d134)[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x3605c0=>{if(!_0x3605c0||_0x3605c0[_0x1b293f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b293f([0x6f,0x6b]))return _0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49d5f9(_0x47fd80(_0x492255+_0x2fd015))!=_0x3605c0[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b293f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x4e476d=>(_0x2e7326(),_0x4e476d),()=>{const _0x2b5bd7=_0x11acdd();return null==_0x2b5bd7?(_0x2e7326(),_0x1b293f([0x56,0x61,0x6c,0x69,0x64])):_0x1b293f(_0x3b5d4e-_0x2b5bd7>(0x9e6d8cc^_0x40a0cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x356414)[_0x1b293f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27f72f=0x2ddcb24c^_0x40a0cc;function _0x2e7326(){const _0x3a5ea6=_0x1b293f([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d5f9(_0x47fd80(_0x2830b7)),_0x14fb17=_0x450bde(_0x49d5f9(window[_0x1b293f([0x4d,0x61,0x74,0x68])][_0x1b293f([0x63,0x65,0x69,0x6c])](_0x3b5d4e/_0x27f72f)));window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b293f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a5ea6,_0x14fb17);}function _0x11acdd(){const _0x536db0=_0x1b293f([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d5f9(_0x47fd80(_0x2830b7)),_0x11e609=window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b293f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x536db0);return _0x11e609?window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x450bde(_0x11e609),0x10)*_0x27f72f:null;}function _0x2ca245(_0x22a682){return new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e6f,_0x3101ad)=>{_0x22a682[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x146e6f,_0x3101ad),window[_0x1b293f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3101ad,0x2deb880c^_0x40a0cc);});}}_0x435594[_0x1b293f([0x6f,0x6e])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x438337,_0x82bdc)=>{if(_0x82bdc[0x0]!=_0x2830b7)return _0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x82bdc[0x1]={..._0x82bdc[0x1],[_0x1b293f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x492255};},{[_0x1b293f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b293f([0x68,0x69,0x67,0x68])}),_0x435594[_0x1b293f([0x6f,0x6e])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ca9=>{_0x85131d(_0x43ca9[_0x1b293f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7b502d=!0x0,_0x476b7c(_0x43ca9[_0x1b293f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b293f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b293f([0x6c,0x6f,0x77])}),_0x464699[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>{_0x7b502d||_0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x466b93(){return _0x435594[_0x1b293f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b293f([0x76,0x69,0x65,0x77])][_0x1b293f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b293f([0x61,0x75,0x74,0x6f]);}function _0xbc2b1d(){_0x435594[_0x1b293f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b293f([0x76,0x69,0x65,0x77])][_0x1b293f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b293f([0x61,0x75,0x74,0x6f]);}}function _0x4a88df(_0x2c3be9){const _0x5b7dce=[new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d69f=>setTimeout(_0x43d69f,0x2de36200^_0x40a0cc)),_0x464699[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x210786=>{let _0x53c878=0x0;_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x6f,0x6e])](_0x1b293f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19f602,_0x9001e7)=>{_0x9001e7[0x0][_0x1b293f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53c878++,_0x53c878==(0x2dea5d34^_0x40a0cc)&&(_0x210786(),_0x19f602[_0x1b293f([0x6f,0x66,0x66])]());});}))];return window[_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b293f([0x72,0x61,0x63,0x65])](_0x5b7dce)[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>_0x2c3be9);}async function _0x181feb(){await _0x464699,_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe412,_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe412,_0x435594[_0x1b293f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44e618(_0x500eb5){const _0x22b3a9=_0x5f594b();_0x435594[_0x22b3a9]=_0x1b293f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x500eb5,_0x500eb5!=_0x1b293f([0x56,0x61,0x6c,0x69,0x64])&&_0x181feb();}function _0x5f594b(){const _0x5309ac=window[_0x1b293f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b293f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b293f([0x6e,0x6f,0x77])]())[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b293f([0x2e]),'');let _0x2f9921=_0x1b293f([0x44]);for(let _0x194470=0x0;_0x194470<_0x5309ac[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194470+=0x2){let _0x1a3068=window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5309ac[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x194470,_0x194470+0x2));_0x1a3068>=_0x453dfe[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a3068-=_0x453dfe[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9921+=_0x453dfe[_0x1a3068];}return _0x2f9921;}function _0x3e438d(){const _0x31206d=_0x5a942e[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e]));if(0x3!=_0x31206d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bf53d(_0x31206d[0x1]);function _0x2bf53d(_0x4d6f0f){const _0x18a365=_0x3a6c84(_0x4d6f0f);return _0x18a365&&_0xbca03f()?_0x18a365:null;function _0xbca03f(){const _0x25753d=_0x18a365[_0x1b293f([0x6a,0x74,0x69])],_0xeac244=window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25753d[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25753d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17a556={..._0x18a365,[_0x1b293f([0x6a,0x74,0x69])]:_0x25753d[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25753d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17a556[_0x1b293f([0x76,0x63])],_0x47fd80(_0x17a556)==_0xeac244;}}}async function _0x4c43b0(){let _0x37193d=!0x0;try{const _0x17e640=_0x5a942e[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e])),[_0x1ec530,_0x34c13c,_0x2015a7]=_0x17e640;return _0x328a09(_0x1ec530),await _0x2b3003(_0x1ec530,_0x34c13c,_0x2015a7),_0x37193d;}catch{return!0x1;}function _0x328a09(_0x1839fd){const _0x1b1956=_0x3a6c84(_0x1839fd);_0x1b1956&&_0x1b1956[_0x1b293f([0x61,0x6c,0x67])]==_0x1b293f([0x45,0x53,0x32,0x35,0x36])||(_0x37193d=!0x1);}async function _0x2b3003(_0x17c41d,_0x580047,_0x16e74f){const _0x4ffb8f=window[_0x1b293f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b293f([0x66,0x72,0x6f,0x6d])](_0x4a278f(_0x16e74f),_0x4df701=>_0x4df701[_0x1b293f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cd5f2=new window[(_0x1b293f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b293f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17c41d+_0x1b293f([0x2e])+_0x580047),_0x31b692=window[_0x1b293f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b293f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31b692)return;const _0x104e67=await _0x31b692[_0x1b293f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b293f([0x6a,0x77,0x6b]),_0x348996,{[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x45,0x43,0x44,0x53,0x41]),[_0x1b293f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b293f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31b692[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x45,0x43,0x44,0x53,0x41]),[_0x1b293f([0x68,0x61,0x73,0x68])]:{[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x104e67,_0x4ffb8f,_0x1cd5f2)||(_0x37193d=!0x1);}}function _0x3a6c84(_0x3b80e6){return _0x3b80e6[_0x1b293f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b293f([0x65,0x79]))?JSON[_0x1b293f([0x70,0x61,0x72,0x73,0x65])](_0x4a278f(_0x3b80e6)):null;}function _0x4a278f(_0x5b978b){return window[_0x1b293f([0x61,0x74,0x6f,0x62])](_0x5b978b[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b293f([0x2b]))[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b293f([0x2f])));}function _0x47fd80(_0x15ede0){let _0x4cf441=0x1505;function _0x5b8ef5(_0x2fe651){for(let _0x491409=0x0;_0x491409<_0x2fe651[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x491409++){const _0x24ec48=_0x2fe651[_0x1b293f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x491409);_0x4cf441=(_0x4cf441<<0x5)+_0x4cf441+_0x24ec48,_0x4cf441&=_0x4cf441;}}function _0x527e19(_0x2fee65){Array[_0x1b293f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fee65)?_0x2fee65[_0x1b293f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527e19):_0x2fee65&&typeof _0x2fee65==_0x1b293f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b293f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fee65)[_0x1b293f([0x73,0x6f,0x72,0x74])]()[_0x1b293f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b3bb8,_0xbe1d50])=>{_0x5b8ef5(_0x5b3bb8),_0x527e19(_0xbe1d50);}):_0x5b8ef5(window[_0x1b293f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fee65));}return _0x527e19(_0x15ede0),_0x4cf441>>>0x0;}function _0x49d5f9(_0x8fd02){return _0x8fd02[_0x1b293f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b293f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b293f([0x30]));}function _0x450bde(_0x2b73cd){return _0x2b73cd[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b293f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b293f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fe412(){}function _0x1b293f(_0x4c93ea){const _0x5c548b=_0x2d95;return _0x4c93ea[_0x5c548b(0x1e0)](_0x518c92=>String[_0x5c548b(0x1e2)](_0x518c92))[_0x5c548b(0x1e6)]('');}_0x44e618(await _0x10ec57());}(this);}[_0x31f073(0x216)](){const _0x4c9723=_0x31f073,_0x3aae58=this[_0x4c9723(0x1fa)][_0x4c9723(0x1d5)][_0x4c9723(0x203)];_0x3aae58[_0x4c9723(0x1ca)](_0x4c9723(0x1f6))&&_0x3aae58[_0x4c9723(0x1da)](_0x4c9723(0x1f6),{'allowAttributes':[_0x4c9723(0x211)]}),_0x3aae58[_0x4c9723(0x1ca)](_0x4c9723(0x1d1))&&_0x3aae58[_0x4c9723(0x1da)](_0x4c9723(0x1d1),{'allowAttributes':[_0x4c9723(0x211)]});}[_0x31f073(0x1df)](){const _0x28aca1=_0x31f073,_0x4c3dbe=this[_0x28aca1(0x1fa)];_0x4c3dbe[_0x28aca1(0x1e9)][_0x28aca1(0x20a)](_0x28aca1(0x1dd))[_0x28aca1(0x1cf)]({'model':_0x28aca1(0x211),'view':_0x28aca1(0x20d)}),_0x4c3dbe[_0x28aca1(0x1e9)][_0x28aca1(0x20a)](_0x28aca1(0x1ee))[_0x28aca1(0x1f8)]({'model':{'key':_0x28aca1(0x211),'value':_0x18291f=>_0x18291f[_0x28aca1(0x1fd)](_0x28aca1(0x20d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57f097=_0x4c3dbe[_0x28aca1(0x20f)][_0x28aca1(0x1f5)](_0x28aca1(0x1cd));_0x57f097&&this[_0x28aca1(0x1f3)](_0x57f097,_0x28aca1(0x1ef),(_0x3316cb,[_0x4a26df,_0x5558d2])=>{const _0x3f8f96=_0x28aca1;_0x4a26df[_0x3f8f96(0x1d6)](_0x3f8f96(0x211),_0x5558d2);});}[_0x31f073(0x217)](){const _0x1274b9=_0x31f073,_0x50809a=this[_0x1274b9(0x1fa)][_0x1274b9(0x1c7)][_0x1274b9(0x1f5)](_0x1274b9(0x1d9))||{},_0xeadb0b=this[_0x1274b9(0x1fa)][_0x1274b9(0x1c7)][_0x1274b9(0x1f5)](_0x1274b9(0x1e8))||'';this[_0x1274b9(0x202)]=_0x5235b7(_0x56910f[_0x1274b9(0x1e5)],_0x1274b9(0x1e4),{..._0x50809a,'pubkey':_0xeadb0b,'ctx-name':_0x1274b9(0x210)+this[_0x1274b9(0x200)],'sourceList':'','imgOnly':_0x1274b9(0x1f9),'removeCopyright':_0x1274b9(0x1f9),'localeName':this[_0x1274b9(0x1fa)][_0x1274b9(0x201)][_0x1274b9(0x1d0)],'externalSourcesEmbedCss':_0x1274b9(0x1e3)}),this[_0x1274b9(0x202)][_0x1274b9(0x1dc)]=_0x25fbdd=>{const _0x57bb84=_0x1274b9;if(_0x57bb84(0x208)==_0x25fbdd)return _0x57bb84(0x1cc);},_0x56910f[_0x1274b9(0x1e5)][_0x1274b9(0x214)][_0x1274b9(0x1db)](this[_0x1274b9(0x202)]);}[_0x31f073(0x1d3)](){const _0x3f2b0f=_0x31f073;this[_0x3f2b0f(0x1ea)]=_0x5235b7(_0x56910f[_0x3f2b0f(0x1e5)],_0x3f2b0f(0x1fc),{'ctx-name':_0x3f2b0f(0x210)+this[_0x3f2b0f(0x200)]}),_0x56910f[_0x3f2b0f(0x1e5)][_0x3f2b0f(0x214)][_0x3f2b0f(0x1db)](this[_0x3f2b0f(0x1ea)]);}[_0x31f073(0x207)](){const _0x261b98=_0x31f073,_0x5d283d=this[_0x261b98(0x1fa)][_0x261b98(0x20f)][_0x261b98(0x1f5)](_0x261b98(0x1f1));_0x5d283d&&this[_0x261b98(0x1f3)](_0x5d283d,_0x261b98(0x1ff),()=>{const _0x549053=_0x261b98,_0x1a6617=this[_0x549053(0x1fa)][_0x549053(0x1d5)][_0x549053(0x1e5)][_0x549053(0x1cb)][_0x549053(0x1d2)]();_0x1a6617&&_0x1a6617[_0x549053(0x1fd)](_0x549053(0x211))&&this[_0x549053(0x1fa)][_0x549053(0x20c)][_0x549053(0x1d8)][_0x549053(0x1e7)](_0x549053(0x206),()=>{const _0x435ae9=_0x549053;_0x57cc05(this[_0x435ae9(0x1fa)],_0x1a6617);});});const _0x5bcba7=this[_0x261b98(0x1fa)][_0x261b98(0x20f)][_0x261b98(0x1f5)](_0x261b98(0x1de));_0x5bcba7&&this[_0x261b98(0x1f3)](_0x5bcba7,_0x261b98(0x1ff),()=>{const _0x4b6821=_0x261b98,_0x43a2f3=this[_0x4b6821(0x1fa)][_0x4b6821(0x1d5)][_0x4b6821(0x1e5)][_0x4b6821(0x1cb)][_0x4b6821(0x1d2)]();_0x43a2f3&&_0x43a2f3[_0x4b6821(0x1fd)](_0x4b6821(0x211))&&this[_0x4b6821(0x1fa)][_0x4b6821(0x20c)][_0x4b6821(0x1d8)][_0x4b6821(0x1e7)](_0x4b6821(0x206),()=>{const _0x5a7d7e=_0x4b6821;_0x57cc05(this[_0x5a7d7e(0x1fa)],_0x43a2f3);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x550a86,ObservableMixin as _0x185150}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2853ef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x59741d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x241c81}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3e6110}from'../../utils/uploadutils.js';import{getImageUrls as _0x5a200a,getImageDimension as _0x38cf2d}from'../../utils/editingutils.js';import{isAncestor as _0x1be6ae}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x185150(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x25ad5e,_0x545e6f,_0x32ed80){super(),this['_editor']=_0x25ad5e,this['_dialog']=_0x545e6f,this['_imageElement']=_0x32ed80,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 _0xd055fa=this['_imageElement'],_0x48cc62=_0xd055fa['getAttribute']('uploadcareImageId'),_0x236da7=_0xd055fa['getAttribute']('src');if(_0x48cc62)await this['_loadImageInfo'](_0x48cc62,_0x236da7);else{if(this['_imageCache']['has'](_0x236da7)){const _0x476737=this['_imageCache']['get'](_0x236da7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x476737['url'],this['imageDimension']=_0x476737['dimension'],this['imageId']=_0x476737['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1dbc39}=this['_editor'],t=_0x1dbc39['t'],_0x5cf458=new _0x241c81(_0x1dbc39,this['imageStatus'],this['_attributes']);_0x5cf458['bind']('status')['to'](this,'imageStatus'),_0x5cf458['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5cf458['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5cf458['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5cf458,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x59741d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5cf458,'position':_0x2853ef['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5cf458['focus']();},'onHide':()=>{_0x5cf458['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19feda=>!_0x1be6ae(_0x19feda,_0x5cf458['element'])}});}['_loadImageInfo'](_0x3bf4f9,_0x43fc3b){return _0x3e6110['getInfo'](_0x3bf4f9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5406a3=>{const {width:_0x365ab1,height:_0x3dda68}=_0x5406a3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43fc3b,this['imageDimension']={'width':_0x365ab1,'height':_0x3dda68},this['imageId']=_0x3bf4f9;})['catch'](_0x39a8c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39a8c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x413867,_0x524bf7){return this['_getImageAsFile'](_0x413867)['then'](_0x206ebc=>_0x3e6110['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x524bf7['signal'],'file':_0x206ebc,'onProgress':_0x30cf9e=>{_0x30cf9e&&_0x30cf9e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30cf9e['value']));}}))['then'](_0x3f23c5=>{const {width:_0x567dd3,height:_0x4c1c20}=_0x3f23c5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f23c5['cdnUrl'],this['imageDimension']={'width':_0x567dd3,'height':_0x4c1c20},this['imageId']=_0x3f23c5['uuid'],this['imageUploadProgress']=null;const _0x265891=_0x413867['getAttribute']('src');this['_imageCache']['set'](_0x265891,{'id':_0x3f23c5['uuid'],'url':_0x3f23c5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d5e55=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d5e55['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x475f62,_0x46568b){_0x475f62['on']('apply',(_0x1b2500,_0x1552e2)=>{this['_replaceImage'](_0x46568b,_0x1552e2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x475f62['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x475f62['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xa1b634,_0x2077fe,_0x16a8e3){const _0x52642b=this['_editor'],{width:_0x18fefe,height:_0x19b174}=_0x38cf2d(_0x2077fe,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5b40f9,imageSources:_0x7e3177}=_0x5a200a(_0x2077fe,_0x18fefe);_0x52642b['model']['change'](_0x1fad60=>{if('$graveyard'===_0xa1b634['root']['rootName']){_0x52642b['execute']('insertImage',{'imageType':_0xa1b634['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xa1b634['getAttributes']()),'uploadcareImageId':_0x16a8e3,'src':_0x5b40f9,'sources':_0x7e3177,'width':_0x18fefe,'height':_0x19b174}});const _0x1ec761=_0xa1b634['getChildren']();_0xa1b634=_0x52642b['model']['document']['selection']['getSelectedElement']();for(const _0x4928fe of _0x1ec761)_0x1fad60['append'](_0x1fad60['cloneElement'](_0x4928fe),_0xa1b634);}else _0x1fad60['setSelection'](_0xa1b634,'on'),_0x52642b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xa1b634['getAttributes']()),'uploadcareImageId':_0x16a8e3,'src':_0x5b40f9,'sources':_0x7e3177,'width':_0x18fefe,'height':_0x19b174},_0xa1b634);_0x1fad60['setSelection'](_0xa1b634,'on');});}async['_getImageAsFile'](_0x5cd0c6){const _0x4b5252=_0x550a86['window'],_0x45318d=_0x550a86['document']['location']['href'],_0x3ef648=new _0x4b5252['URL'](_0x5cd0c6['getAttribute']('src'),_0x45318d);if('data:'===_0x3ef648['protocol']){const _0x4eae4a=_0x3ef648['href']['split'](','),_0x44cbe2=_0x4eae4a[0x0]['match'](/:(.*?);/)[0x1],_0x1a3456=_0x44cbe2['split']('/')[0x1],_0x530d23=_0x4b5252['atob'](_0x4eae4a[_0x4eae4a['length']-0x1]);let _0xaff9f1=_0x530d23['length'];const _0x34153d=new _0x4b5252['Uint8Array'](_0xaff9f1);for(;_0xaff9f1--;)_0x34153d[_0xaff9f1]=_0x530d23['charCodeAt'](_0xaff9f1);return new _0x4b5252['File']([_0x34153d],'image.'+_0x1a3456,{'type':_0x44cbe2});}const _0x1a3647=_0x3ef648['href']['split']('/'),_0x136543=_0x1a3647[_0x1a3647['length']-0x1],_0x2ab93d=_0x136543['split']('.')[0x1];return _0x4b5252['fetch'](_0x3ef648['href'])['then'](_0x50a028=>_0x50a028['clone']()['blob']())['then'](_0x48b9ce=>new _0x4b5252['File']([_0x48b9ce],_0x136543,{'type':'image/'+_0x2ab93d}));}}
23
+ import{global as _0x4d8bb6,ObservableMixin as _0x2d38c4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x118da4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4db288}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x95daf5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x25be0b}from'../../utils/uploadutils.js';import{getImageUrls as _0x693bf5,getImageDimension as _0x12f5e5}from'../../utils/editingutils.js';import{isAncestor as _0x519630}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x2d38c4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38bddb,_0x3445ad,_0x59b11f){super(),this['_editor']=_0x38bddb,this['_dialog']=_0x3445ad,this['_imageElement']=_0x59b11f,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 _0x32d6a7=this['_imageElement'],_0x3f8c77=_0x32d6a7['getAttribute']('uploadcareImageId'),_0x2ff9a0=_0x32d6a7['getAttribute']('src');if(_0x3f8c77)await this['_loadImageInfo'](_0x3f8c77,_0x2ff9a0);else{if(this['_imageCache']['has'](_0x2ff9a0)){const _0x3146fb=this['_imageCache']['get'](_0x2ff9a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3146fb['url'],this['imageDimension']=_0x3146fb['dimension'],this['imageId']=_0x3146fb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f2a0d}=this['_editor'],t=_0x1f2a0d['t'],_0xf3392a=new _0x95daf5(_0x1f2a0d,this['imageStatus'],this['_attributes']);_0xf3392a['bind']('status')['to'](this,'imageStatus'),_0xf3392a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf3392a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf3392a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf3392a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4db288,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf3392a,'position':_0x118da4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf3392a['focus']();},'onHide':()=>{_0xf3392a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37cbf3=>!_0x519630(_0x37cbf3,_0xf3392a['element'])}});}['_loadImageInfo'](_0x24b64e,_0x34f468){return _0x25be0b['getInfo'](_0x24b64e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x416e59=>{const {width:_0x8a1173,height:_0x285599}=_0x416e59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34f468,this['imageDimension']={'width':_0x8a1173,'height':_0x285599},this['imageId']=_0x24b64e;})['catch'](_0x3e127e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e127e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x349433,_0x2aa43c){return this['_getImageAsFile'](_0x349433)['then'](_0x3c01ed=>_0x25be0b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2aa43c['signal'],'file':_0x3c01ed,'onProgress':_0x19c650=>{_0x19c650&&_0x19c650['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19c650['value']));}}))['then'](_0x7cc9ad=>{const {width:_0x454100,height:_0x536b7b}=_0x7cc9ad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cc9ad['cdnUrl'],this['imageDimension']={'width':_0x454100,'height':_0x536b7b},this['imageId']=_0x7cc9ad['uuid'],this['imageUploadProgress']=null;const _0x289f78=_0x349433['getAttribute']('src');this['_imageCache']['set'](_0x289f78,{'id':_0x7cc9ad['uuid'],'url':_0x7cc9ad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xad9562=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xad9562['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4912a3,_0x195d35){_0x4912a3['on']('apply',(_0x504a8a,_0x29a5bb)=>{this['_replaceImage'](_0x195d35,_0x29a5bb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4912a3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4912a3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x300743,_0x53517d,_0x5cf4a1){const _0x4116a0=this['_editor'],{width:_0x41976e,height:_0x6c194f}=_0x12f5e5(_0x53517d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x7af13e,imageSources:_0x5acc5}=_0x693bf5(_0x53517d,_0x41976e);_0x4116a0['model']['change'](_0x25f34b=>{if('$graveyard'===_0x300743['root']['rootName']){_0x4116a0['execute']('insertImage',{'imageType':_0x300743['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f}});const _0x68883c=_0x300743['getChildren']();_0x300743=_0x4116a0['model']['document']['selection']['getSelectedElement']();for(const _0x4e2414 of _0x68883c)_0x25f34b['append'](_0x25f34b['cloneElement'](_0x4e2414),_0x300743);}else _0x25f34b['setSelection'](_0x300743,'on'),_0x4116a0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x300743['getAttributes']()),'uploadcareImageId':_0x5cf4a1,'src':_0x7af13e,'sources':_0x5acc5,'width':_0x41976e,'height':_0x6c194f},_0x300743);_0x25f34b['setSelection'](_0x300743,'on');});}async['_getImageAsFile'](_0x1b7a5b){const _0x6e792c=_0x4d8bb6['window'],_0x4fda60=_0x4d8bb6['document']['location']['href'],_0x3933f0=new _0x6e792c['URL'](_0x1b7a5b['getAttribute']('src'),_0x4fda60);if('data:'===_0x3933f0['protocol']){const _0x1eef3b=_0x3933f0['href']['split'](','),_0x88e1bd=_0x1eef3b[0x0]['match'](/:(.*?);/)[0x1],_0x5009df=_0x88e1bd['split']('/')[0x1],_0x39f05c=_0x6e792c['atob'](_0x1eef3b[_0x1eef3b['length']-0x1]);let _0x2af5a1=_0x39f05c['length'];const _0x5e2c6e=new _0x6e792c['Uint8Array'](_0x2af5a1);for(;_0x2af5a1--;)_0x5e2c6e[_0x2af5a1]=_0x39f05c['charCodeAt'](_0x2af5a1);return new _0x6e792c['File']([_0x5e2c6e],'image.'+_0x5009df,{'type':_0x88e1bd});}const _0x6d6e99=_0x3933f0['href']['split']('/'),_0x44b5d1=_0x6d6e99[_0x6d6e99['length']-0x1],_0xc73763=_0x44b5d1['split']('.')[0x1];return _0x6e792c['fetch'](_0x3933f0['href'])['then'](_0x16cf0f=>_0x16cf0f['clone']()['blob']())['then'](_0x4f4a38=>new _0x6e792c['File']([_0x4f4a38],_0x44b5d1,{'type':'image/'+_0xc73763}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2b7334,_0x59ed5e){const _0x5c0f75=_0x4b96,_0xbcde94=_0x2b7334();while(!![]){try{const _0x2ee699=parseInt(_0x5c0f75(0x19b))/0x1*(-parseInt(_0x5c0f75(0x19a))/0x2)+-parseInt(_0x5c0f75(0x19e))/0x3*(-parseInt(_0x5c0f75(0x19f))/0x4)+-parseInt(_0x5c0f75(0x196))/0x5+-parseInt(_0x5c0f75(0x1a3))/0x6*(parseInt(_0x5c0f75(0x1a5))/0x7)+-parseInt(_0x5c0f75(0x198))/0x8*(-parseInt(_0x5c0f75(0x1a1))/0x9)+-parseInt(_0x5c0f75(0x1a0))/0xa+parseInt(_0x5c0f75(0x1a4))/0xb;if(_0x2ee699===_0x59ed5e)break;else _0xbcde94['push'](_0xbcde94['shift']());}catch(_0x4eb76d){_0xbcde94['push'](_0xbcde94['shift']());}}}(_0x551e,0x4409d));function _0x4b96(_0x49e9fd,_0x3c4025){const _0x551ea4=_0x551e();return _0x4b96=function(_0x4b969e,_0x243fc4){_0x4b969e=_0x4b969e-0x196;let _0x42898d=_0x551ea4[_0x4b969e];return _0x42898d;},_0x4b96(_0x49e9fd,_0x3c4025);}import{View as _0x322af9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x322af9{constructor(_0x1659ce,_0x3e76c6){const _0x6bfbe9=_0x4b96;super(_0x1659ce);const _0x1db54c=this[_0x6bfbe9(0x1a2)];this[_0x6bfbe9(0x1a6)](_0x6bfbe9(0x1a7),''),this[_0x6bfbe9(0x19d)]({'tag':_0x6bfbe9(0x197),'attributes':{..._0x3e76c6,'class':[_0x6bfbe9(0x1a8),_0x6bfbe9(0x19c)],'ctx-name':_0x6bfbe9(0x199),'cdn-url':_0x1db54c['to'](_0x6bfbe9(0x1a7))}});}}function _0x551e(){const _0x304722=['246069NBxQlZ','bindTemplate','1302234cPwznl','4347695xDeCPy','7nrkesC','set','imageSrc','uc-light','13845hpnMTX','uc-cloud-image-editor','120bAkRWK','image-edit','11238pTUYmK','86NvcuDJ','ck-uploadcare-theme','setTemplate','69RsBiNe','92472RISAMr','3553470dVDdsC'];_0x551e=function(){return _0x304722;};return _0x551e();}
23
+ (function(_0x5918d1,_0x2e3e9c){const _0x347d1d=_0xa697,_0x4878c2=_0x5918d1();while(!![]){try{const _0x102caa=-parseInt(_0x347d1d(0xf8))/0x1*(parseInt(_0x347d1d(0xf7))/0x2)+-parseInt(_0x347d1d(0xe6))/0x3*(parseInt(_0x347d1d(0xee))/0x4)+parseInt(_0x347d1d(0xe7))/0x5*(parseInt(_0x347d1d(0xf1))/0x6)+-parseInt(_0x347d1d(0xef))/0x7+parseInt(_0x347d1d(0xf0))/0x8*(-parseInt(_0x347d1d(0xe9))/0x9)+parseInt(_0x347d1d(0xf2))/0xa+parseInt(_0x347d1d(0xeb))/0xb*(-parseInt(_0x347d1d(0xe5))/0xc);if(_0x102caa===_0x2e3e9c)break;else _0x4878c2['push'](_0x4878c2['shift']());}catch(_0x4a974c){_0x4878c2['push'](_0x4878c2['shift']());}}}(_0x4b86,0x2ab44));function _0x4b86(){const _0x5a1d4c=['4678wQQBSE','9oKYVnt','38172kcAjoT','6MZebzR','809660gJicUQ','uc-cloud-image-editor','27801RqHjNp','imageSrc','99llqtxf','setTemplate','set','400108RStssO','84448bepRgb','328yRgdyh','12HVfhkG','2394990XTlvdm','uc-light','image-edit','ck-uploadcare-theme','bindTemplate'];_0x4b86=function(){return _0x5a1d4c;};return _0x4b86();}function _0xa697(_0x192f54,_0x4954d4){const _0x4b8647=_0x4b86();return _0xa697=function(_0xa697bc,_0x5dce2b){_0xa697bc=_0xa697bc-0xe5;let _0x1b0f22=_0x4b8647[_0xa697bc];return _0x1b0f22;},_0xa697(_0x192f54,_0x4954d4);}import{View as _0xa99fbe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa99fbe{constructor(_0x4f4d70,_0x5dd488){const _0x195f5f=_0xa697;super(_0x4f4d70);const _0x417aa9=this[_0x195f5f(0xf6)];this[_0x195f5f(0xed)](_0x195f5f(0xea),''),this[_0x195f5f(0xec)]({'tag':_0x195f5f(0xe8),'attributes':{..._0x5dd488,'class':[_0x195f5f(0xf3),_0x195f5f(0xf5)],'ctx-name':_0x195f5f(0xf4),'cdn-url':_0x417aa9['to'](_0x195f5f(0xea))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x147b18}from'ckeditor5/src/icons.js';import{ButtonView as _0x33402f,IconView as _0x526203,View as _0x38e9a6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x38e9a6{constructor(_0x1364d3){super(_0x1364d3);const t=_0x1364d3['t'];this['set']('errorType',null);const _0x26b08e=new _0x33402f(_0x1364d3);_0x26b08e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26b08e['withText']=!0x0,_0x26b08e['class']='ck-button-action',_0x26b08e['on']('execute',()=>{this['fire']('retry');}),_0x26b08e['bind']('isVisible')['to'](this,'errorType',_0x2a727f=>'NotFound'!==_0x2a727f);const _0x56b64f=new _0x526203();_0x56b64f['content']=_0x147b18,_0x56b64f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2aa810=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':[_0x56b64f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2aa810['to']('errorType',_0x21d8f5=>t('NotFound'!==_0x21d8f5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26b08e]},{'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 _0x40484b}from'ckeditor5/src/icons.js';import{ButtonView as _0x891f24,IconView as _0x56eca5,View as _0x2f1b41}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2f1b41{constructor(_0x15c56b){super(_0x15c56b);const t=_0x15c56b['t'];this['set']('errorType',null);const _0x306857=new _0x891f24(_0x15c56b);_0x306857['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x306857['withText']=!0x0,_0x306857['class']='ck-button-action',_0x306857['on']('execute',()=>{this['fire']('retry');}),_0x306857['bind']('isVisible')['to'](this,'errorType',_0x4e8d59=>'NotFound'!==_0x4e8d59);const _0x44a3fe=new _0x56eca5();_0x44a3fe['content']=_0x40484b,_0x44a3fe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5aac79=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':[_0x44a3fe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5aac79['to']('errorType',_0x2f4fb6=>t('NotFound'!==_0x2f4fb6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x306857]},{'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 _0x2bf02e,View as _0x399e07}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x399e07{constructor(_0x5d47e4){super(_0x5d47e4);const t=_0x5d47e4['t'],_0x717e86=this['bindTemplate'],_0x3b07ba=new _0x2bf02e();_0x3b07ba['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':[_0x3b07ba,{'text':_0x717e86['to']('imageUploadProgress',_0x4186cf=>t('Loading\x20image...')+'\x20('+(_0x4186cf||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 _0x475df5,View as _0x5e9277}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5e9277{constructor(_0x1f2142){super(_0x1f2142);const t=_0x1f2142['t'],_0x212309=this['bindTemplate'],_0x341081=new _0x475df5();_0x341081['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':[_0x341081,{'text':_0x212309['to']('imageUploadProgress',_0x230929=>t('Loading\x20image...')+'\x20('+(_0x230929||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
- function _0x27d0(){const _0x21fb91=['filter','setTemplate','87550uqsIEt','addMany','cancel','_addUploadcareImageEditorListeners','596309GtKdYC','_editingView','ck-reset_all-excluded','ck-uploadcare-form','ready','add','_focusableView','_addErrorViewListeners','status','810798IqGFFW','uc-cloud-image-editor','_waitForImageEditorComponent','_items','1284402tbAvnL','16dwoKGL','1231479TxRGRG','getFocusableElement','fire','cdnUrl','_loadingView','7KkUzeb','observe','addEventListener','querySelector','render','4Fxivqd','change:status','uploading','apply','element','_errorView','disconnect','detail','length','focus','addedNodes','43552PAMVtC','set','target','132jjydYx','div','retry','_setView','once','clear','error','createCollection','toLowerCase','nodeName','1203805rxaMJX'];_0x27d0=function(){return _0x21fb91;};return _0x27d0();}const _0x241d6c=_0x3d05;(function(_0x37daa4,_0x1cd8ab){const _0x137c78=_0x3d05,_0x7f85d0=_0x37daa4();while(!![]){try{const _0x167445=-parseInt(_0x137c78(0x1af))/0x1*(parseInt(_0x137c78(0x1bf))/0x2)+parseInt(_0x137c78(0x1a4))/0x3+-parseInt(_0x137c78(0x1b4))/0x4*(-parseInt(_0x137c78(0x1cc))/0x5)+parseInt(_0x137c78(0x1a8))/0x6+-parseInt(_0x137c78(0x19b))/0x7*(parseInt(_0x137c78(0x1a9))/0x8)+-parseInt(_0x137c78(0x1aa))/0x9+-parseInt(_0x137c78(0x197))/0xa*(parseInt(_0x137c78(0x1c2))/0xb);if(_0x167445===_0x1cd8ab)break;else _0x7f85d0['push'](_0x7f85d0['shift']());}catch(_0x201485){_0x7f85d0['push'](_0x7f85d0['shift']());}}}(_0x27d0,0x2728d));import{View as _0x20b589}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x426c3a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5930d5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x561f92}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5aa18d}from'../../utils/dialogfocusmanagerview.js';function _0x3d05(_0x3d190e,_0x397296){const _0x27d06d=_0x27d0();return _0x3d05=function(_0x3d0557,_0x3b43ee){_0x3d0557=_0x3d0557-0x197;let _0x3cbb53=_0x27d06d[_0x3d0557];return _0x3cbb53;},_0x3d05(_0x3d190e,_0x397296);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5aa18d{[_0x241d6c(0x1a7)];[_0x241d6c(0x1ae)];[_0x241d6c(0x1b9)];[_0x241d6c(0x19c)];[_0x241d6c(0x1a1)];constructor(_0x571de4,_0x48d32a,_0x178f95){const _0x252178=_0x241d6c;super(_0x571de4),this[_0x252178(0x1a7)]=this[_0x252178(0x1c9)](),this[_0x252178(0x1ae)]=new _0x426c3a(_0x571de4),this[_0x252178(0x1b9)]=new _0x5930d5(_0x571de4),this[_0x252178(0x19c)]=new _0x561f92(_0x571de4,_0x178f95),this[_0x252178(0x1a1)]=new _0x20b589(_0x571de4),this[_0x252178(0x1a1)][_0x252178(0x1ce)](this[_0x252178(0x1ab)]()),this[_0x252178(0x1c0)](_0x252178(0x1a3),_0x48d32a),this[_0x252178(0x1ce)]({'tag':_0x252178(0x1c3),'attributes':{'class':['ck',_0x252178(0x19d),_0x252178(0x19e)],'tabindex':'-1'},'children':this[_0x252178(0x1a7)]}),this[_0x252178(0x1c5)](),this[_0x252178(0x1c6)](_0x252178(0x1b3),()=>{const _0x3196ae=_0x252178;this[_0x3196ae(0x1a6)](this[_0x3196ae(0x1b8)],_0x47b56e=>{const _0x5e8747=_0x3196ae;this[_0x5e8747(0x19a)](_0x47b56e);});}),this['on'](_0x252178(0x1b5),()=>{const _0xe29b57=_0x252178;this[_0xe29b57(0x1c5)]();}),this[_0x252178(0x1a2)]();}[_0x241d6c(0x1bd)](){const _0x5d74b2=_0x241d6c;this[_0x5d74b2(0x1b8)][_0x5d74b2(0x1bd)]();}[_0x241d6c(0x1c5)](){const _0x234a84=_0x241d6c;switch(this[_0x234a84(0x1a7)][_0x234a84(0x1c7)](),this[_0x234a84(0x1a3)]){case _0x234a84(0x1b6):this[_0x234a84(0x1a7)][_0x234a84(0x1a0)](this[_0x234a84(0x1ae)]);break;case _0x234a84(0x1c8):this[_0x234a84(0x1a7)][_0x234a84(0x1a0)](this[_0x234a84(0x1b9)]);break;case _0x234a84(0x19f):this[_0x234a84(0x1a7)][_0x234a84(0x198)]([this[_0x234a84(0x19c)],this[_0x234a84(0x1a1)]]);}}[_0x241d6c(0x1a6)](_0x2ad465,_0x468a5e){const _0x5a6e22=_0x241d6c,_0x231af6=_0x5a6e22(0x1a5),_0x472446=_0x2ad465[_0x5a6e22(0x1b2)](_0x231af6);if(_0x472446)return _0x468a5e(_0x472446);const _0x1df9b9=new MutationObserver(_0x3562fa=>{const _0x5185a3=_0x5a6e22,_0x275f39=_0x3562fa[_0x5185a3(0x1cd)](_0xab1020=>_0xab1020[_0x5185a3(0x1c1)]===_0x2ad465&&_0xab1020[_0x5185a3(0x1be)][_0x5185a3(0x1bc)]>0x0&&_0xab1020[_0x5185a3(0x1be)][0x0][_0x5185a3(0x1cb)][_0x5185a3(0x1ca)]()===_0x231af6);_0x275f39[_0x5185a3(0x1bc)]&&(_0x1df9b9[_0x5185a3(0x1ba)](),_0x468a5e(_0x275f39[0x0][_0x5185a3(0x1be)][0x0]));});_0x1df9b9[_0x5a6e22(0x1b0)](_0x2ad465,{'childList':!0x0,'subtree':!0x0});}[_0x241d6c(0x19a)](_0x232010){const _0x362dbc=_0x241d6c;_0x232010[_0x362dbc(0x1b1)](_0x362dbc(0x1b7),_0x1b2489=>{const _0x46842f=_0x362dbc;this[_0x46842f(0x1ac)](_0x46842f(0x1b7),{'imageSrc':_0x1b2489[_0x46842f(0x1bb)][_0x46842f(0x1ad)]});}),_0x232010[_0x362dbc(0x1b1)](_0x362dbc(0x199),()=>{const _0x41e034=_0x362dbc;this[_0x41e034(0x1ac)](_0x41e034(0x199));});}[_0x241d6c(0x1a2)](){const _0x5022ce=_0x241d6c;this[_0x5022ce(0x1b9)]['on'](_0x5022ce(0x1c4),()=>{const _0x3e1851=_0x5022ce;this[_0x3e1851(0x1ac)](_0x3e1851(0x1c4));});}}
23
+ const _0x17700a=_0x14fb;(function(_0x5de3a2,_0x121150){const _0x2df796=_0x14fb,_0x5df2d6=_0x5de3a2();while(!![]){try{const _0x1958ef=parseInt(_0x2df796(0x1ed))/0x1+-parseInt(_0x2df796(0x1f0))/0x2+-parseInt(_0x2df796(0x1fc))/0x3*(-parseInt(_0x2df796(0x1f6))/0x4)+parseInt(_0x2df796(0x1e7))/0x5+parseInt(_0x2df796(0x20b))/0x6+parseInt(_0x2df796(0x1f1))/0x7+-parseInt(_0x2df796(0x1f9))/0x8*(parseInt(_0x2df796(0x20e))/0x9);if(_0x1958ef===_0x121150)break;else _0x5df2d6['push'](_0x5df2d6['shift']());}catch(_0x44a5b3){_0x5df2d6['push'](_0x5df2d6['shift']());}}}(_0x5782,0xcbab7));function _0x5782(){const _0x34ec44=['focus','add','_waitForImageEditorComponent','7841035emysPK','fire','length','div','ready','filter','953764tgNdeL','querySelector','_items','781742VpfCvo','3357543zfEMEI','cancel','once','setTemplate','uploading','8156rRYpVY','uc-cloud-image-editor','_addErrorViewListeners','24048fmhwwT','addMany','addEventListener','354OUopwx','set','_errorView','observe','detail','error','ck-reset_all-excluded','addedNodes','change:status','_loadingView','nodeName','getFocusableElement','element','clear','status','6456324CHOxNc','cdnUrl','target','9261FYmuYx','toLowerCase','ck-uploadcare-form','render','_setView','apply','createCollection','_focusableView','_addUploadcareImageEditorListeners','retry','disconnect','_editingView'];_0x5782=function(){return _0x34ec44;};return _0x5782();}import{View as _0x52c8c0}from'ckeditor5/src/ui.js';function _0x14fb(_0x5bec6f,_0x35bb53){const _0x5782f0=_0x5782();return _0x14fb=function(_0x14fb01,_0x9c42af){_0x14fb01=_0x14fb01-0x1d9;let _0x29ba98=_0x5782f0[_0x14fb01];return _0x29ba98;},_0x14fb(_0x5bec6f,_0x35bb53);}import{UploadcareImageEditFormLoadingView as _0x500632}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x43d46f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd1891}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1ebfab}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1ebfab{[_0x17700a(0x1ef)];[_0x17700a(0x205)];[_0x17700a(0x1fe)];[_0x17700a(0x1e3)];[_0x17700a(0x1df)];constructor(_0x25bbfb,_0x1e0b3b,_0x496fb1){const _0x97f32e=_0x17700a;super(_0x25bbfb),this[_0x97f32e(0x1ef)]=this[_0x97f32e(0x1de)](),this[_0x97f32e(0x205)]=new _0x500632(_0x25bbfb),this[_0x97f32e(0x1fe)]=new _0x43d46f(_0x25bbfb),this[_0x97f32e(0x1e3)]=new _0xd1891(_0x25bbfb,_0x496fb1),this[_0x97f32e(0x1df)]=new _0x52c8c0(_0x25bbfb),this[_0x97f32e(0x1df)][_0x97f32e(0x1f4)](this[_0x97f32e(0x207)]()),this[_0x97f32e(0x1fd)](_0x97f32e(0x20a),_0x1e0b3b),this[_0x97f32e(0x1f4)]({'tag':_0x97f32e(0x1ea),'attributes':{'class':['ck',_0x97f32e(0x202),_0x97f32e(0x1da)],'tabindex':'-1'},'children':this[_0x97f32e(0x1ef)]}),this[_0x97f32e(0x1dc)](),this[_0x97f32e(0x1f3)](_0x97f32e(0x1db),()=>{const _0xd4737a=_0x97f32e;this[_0xd4737a(0x1e6)](this[_0xd4737a(0x208)],_0xc253c0=>{const _0x220553=_0xd4737a;this[_0x220553(0x1e0)](_0xc253c0);});}),this['on'](_0x97f32e(0x204),()=>{const _0x151068=_0x97f32e;this[_0x151068(0x1dc)]();}),this[_0x97f32e(0x1f8)]();}[_0x17700a(0x1e4)](){const _0x5c7849=_0x17700a;this[_0x5c7849(0x208)][_0x5c7849(0x1e4)]();}[_0x17700a(0x1dc)](){const _0x39971e=_0x17700a;switch(this[_0x39971e(0x1ef)][_0x39971e(0x209)](),this[_0x39971e(0x20a)]){case _0x39971e(0x1f5):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x205)]);break;case _0x39971e(0x201):this[_0x39971e(0x1ef)][_0x39971e(0x1e5)](this[_0x39971e(0x1fe)]);break;case _0x39971e(0x1eb):this[_0x39971e(0x1ef)][_0x39971e(0x1fa)]([this[_0x39971e(0x1e3)],this[_0x39971e(0x1df)]]);}}[_0x17700a(0x1e6)](_0x5c4a06,_0x24162a){const _0x43f6d5=_0x17700a,_0x5ba7e5=_0x43f6d5(0x1f7),_0x3fbe52=_0x5c4a06[_0x43f6d5(0x1ee)](_0x5ba7e5);if(_0x3fbe52)return _0x24162a(_0x3fbe52);const _0x12c464=new MutationObserver(_0x5be768=>{const _0x393315=_0x43f6d5,_0x518bf1=_0x5be768[_0x393315(0x1ec)](_0x39474d=>_0x39474d[_0x393315(0x20d)]===_0x5c4a06&&_0x39474d[_0x393315(0x203)][_0x393315(0x1e9)]>0x0&&_0x39474d[_0x393315(0x203)][0x0][_0x393315(0x206)][_0x393315(0x1d9)]()===_0x5ba7e5);_0x518bf1[_0x393315(0x1e9)]&&(_0x12c464[_0x393315(0x1e2)](),_0x24162a(_0x518bf1[0x0][_0x393315(0x203)][0x0]));});_0x12c464[_0x43f6d5(0x1ff)](_0x5c4a06,{'childList':!0x0,'subtree':!0x0});}[_0x17700a(0x1e0)](_0x1f552a){const _0x3b8aa2=_0x17700a;_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1dd),_0x4e9bca=>{const _0x559ad6=_0x3b8aa2;this[_0x559ad6(0x1e8)](_0x559ad6(0x1dd),{'imageSrc':_0x4e9bca[_0x559ad6(0x200)][_0x559ad6(0x20c)]});}),_0x1f552a[_0x3b8aa2(0x1fb)](_0x3b8aa2(0x1f2),()=>{const _0x12c191=_0x3b8aa2;this[_0x12c191(0x1e8)](_0x12c191(0x1f2));});}[_0x17700a(0x1f8)](){const _0x1fc7a2=_0x17700a;this[_0x1fc7a2(0x1fe)]['on'](_0x1fc7a2(0x1e1),()=>{const _0x7a8468=_0x1fc7a2;this[_0x7a8468(0x1e8)](_0x7a8468(0x1e1));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14a509=_0x3446;(function(_0x2d2259,_0xcad99b){const _0x54edcc=_0x3446,_0x1401b6=_0x2d2259();while(!![]){try{const _0x103c7d=parseInt(_0x54edcc(0x182))/0x1+parseInt(_0x54edcc(0x195))/0x2+parseInt(_0x54edcc(0x186))/0x3*(parseInt(_0x54edcc(0x18e))/0x4)+-parseInt(_0x54edcc(0x185))/0x5+parseInt(_0x54edcc(0x189))/0x6+-parseInt(_0x54edcc(0x19a))/0x7*(-parseInt(_0x54edcc(0x184))/0x8)+-parseInt(_0x54edcc(0x190))/0x9;if(_0x103c7d===_0xcad99b)break;else _0x1401b6['push'](_0x1401b6['shift']());}catch(_0x4d9391){_0x1401b6['push'](_0x1401b6['shift']());}}}(_0x552b,0x6c896));import{Command as _0xe0d348}from'ckeditor5/src/core.js';function _0x3446(_0x557812,_0x4f8319){const _0x552b0b=_0x552b();return _0x3446=function(_0x344644,_0x26ace3){_0x344644=_0x344644-0x181;let _0x2d4c0b=_0x552b0b[_0x344644];return _0x2d4c0b;},_0x3446(_0x557812,_0x4f8319);}import{Dialog as _0xf55465}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x384263}from'./ui/uploadcareimageeditcontroller.js';function _0x552b(){const _0x37f2bc=['bind','imageEditController','943620RraUHl','isEnabled','model','isActive','plugins','39000kcfehi','uploadcare.allowExternalImagesEditing','13260870rhjAmG','imageBlock','getSelectedElement','config','document','311176lbmFDq','requires','imageInline','_isEditable','refresh','3665067DPKRhj','set','element','unbind','selection','get','editor','587840isJifS','execute','8JVHmBa','846415oFFPQO','204haIhpH'];_0x552b=function(){return _0x37f2bc;};return _0x552b();}import{createEditabilityChecker as _0x3024a9}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xe0d348{[_0x14a509(0x188)];static get[_0x14a509(0x196)](){return[_0xf55465];}[_0x14a509(0x198)];constructor(_0x9b7ddf){const _0xaf64ef=_0x14a509;super(_0x9b7ddf),this[_0xaf64ef(0x188)]=void 0x0,this[_0xaf64ef(0x198)]=_0x3024a9(_0x9b7ddf[_0xaf64ef(0x193)][_0xaf64ef(0x19f)](_0xaf64ef(0x18f))||[]),this[_0xaf64ef(0x19b)]({'isActive':!0x1});}[_0x14a509(0x199)](){const _0x334bbf=_0x14a509,_0x3d78c0=this[_0x334bbf(0x181)][_0x334bbf(0x18b)][_0x334bbf(0x194)][_0x334bbf(0x19e)][_0x334bbf(0x192)]();this[_0x334bbf(0x18a)]=this[_0x334bbf(0x198)](_0x3d78c0);}[_0x14a509(0x183)](){const _0x3818d2=_0x14a509;this[_0x3818d2(0x188)]&&(this[_0x3818d2(0x19d)](_0x3818d2(0x18c)),this[_0x3818d2(0x188)]=void 0x0);const _0x55ab9e=this[_0x3818d2(0x181)][_0x3818d2(0x18b)][_0x3818d2(0x194)][_0x3818d2(0x19e)][_0x3818d2(0x192)]();_0x55ab9e&&(_0x55ab9e['is'](_0x3818d2(0x19c),_0x3818d2(0x191))||_0x55ab9e['is'](_0x3818d2(0x19c),_0x3818d2(0x197)))&&(this[_0x3818d2(0x188)]=new _0x384263(this[_0x3818d2(0x181)],this[_0x3818d2(0x181)][_0x3818d2(0x18d)][_0x3818d2(0x19f)](_0xf55465),_0x55ab9e),this[_0x3818d2(0x187)](_0x3818d2(0x18c))['to'](this[_0x3818d2(0x188)],_0x3818d2(0x18c)));}}
23
+ const _0x49147f=_0x3748;(function(_0x545843,_0x6ef6df){const _0x36dd01=_0x3748,_0x2a0a50=_0x545843();while(!![]){try{const _0x24d1d6=parseInt(_0x36dd01(0xdd))/0x1+parseInt(_0x36dd01(0xf5))/0x2*(-parseInt(_0x36dd01(0xe2))/0x3)+parseInt(_0x36dd01(0xec))/0x4*(parseInt(_0x36dd01(0xe4))/0x5)+-parseInt(_0x36dd01(0xdf))/0x6+parseInt(_0x36dd01(0xda))/0x7*(parseInt(_0x36dd01(0xde))/0x8)+-parseInt(_0x36dd01(0xf6))/0x9+-parseInt(_0x36dd01(0xee))/0xa*(-parseInt(_0x36dd01(0xdc))/0xb);if(_0x24d1d6===_0x6ef6df)break;else _0x2a0a50['push'](_0x2a0a50['shift']());}catch(_0x1418a6){_0x2a0a50['push'](_0x2a0a50['shift']());}}}(_0x5aba,0x9092b));import{Command as _0x19b7b8}from'ckeditor5/src/core.js';import{Dialog as _0x4ef742}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2d57cc}from'./ui/uploadcareimageeditcontroller.js';function _0x3748(_0x523e36,_0x10cbad){const _0x5abade=_0x5aba();return _0x3748=function(_0x37488a,_0x11630e){_0x37488a=_0x37488a-0xda;let _0x5d6da3=_0x5abade[_0x37488a];return _0x5d6da3;},_0x3748(_0x523e36,_0x10cbad);}import{createEditabilityChecker as _0x2c2f4c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19b7b8{[_0x49147f(0xe8)];static get[_0x49147f(0xe6)](){return[_0x4ef742];}[_0x49147f(0xea)];constructor(_0x5dc741){const _0x35328f=_0x49147f;super(_0x5dc741),this[_0x35328f(0xe8)]=void 0x0,this[_0x35328f(0xea)]=_0x2c2f4c(_0x5dc741[_0x35328f(0xe0)][_0x35328f(0xf9)](_0x35328f(0xe9))||[]),this[_0x35328f(0xf0)]({'isActive':!0x1});}[_0x49147f(0xf8)](){const _0x103270=_0x49147f,_0x53d979=this[_0x103270(0xf2)][_0x103270(0xe3)][_0x103270(0xef)][_0x103270(0xeb)][_0x103270(0xe1)]();this[_0x103270(0xfa)]=this[_0x103270(0xea)](_0x53d979);}[_0x49147f(0xe7)](){const _0x3bb128=_0x49147f;this[_0x3bb128(0xe8)]&&(this[_0x3bb128(0xe5)](_0x3bb128(0xf3)),this[_0x3bb128(0xe8)]=void 0x0);const _0x2ed955=this[_0x3bb128(0xf2)][_0x3bb128(0xe3)][_0x3bb128(0xef)][_0x3bb128(0xeb)][_0x3bb128(0xe1)]();_0x2ed955&&(_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf7))||_0x2ed955['is'](_0x3bb128(0xf4),_0x3bb128(0xf1)))&&(this[_0x3bb128(0xe8)]=new _0x2d57cc(this[_0x3bb128(0xf2)],this[_0x3bb128(0xf2)][_0x3bb128(0xed)][_0x3bb128(0xf9)](_0x4ef742),_0x2ed955),this[_0x3bb128(0xdb)](_0x3bb128(0xf3))['to'](this[_0x3bb128(0xe8)],_0x3bb128(0xf3)));}}function _0x5aba(){const _0x5e78c1=['getSelectedElement','235461Gffbff','model','30JSMAcI','unbind','requires','execute','imageEditController','uploadcare.allowExternalImagesEditing','_isEditable','selection','674124xOrFDT','plugins','3130EjZiPk','document','set','imageInline','editor','isActive','element','10QEmQoc','8930970LbJESO','imageBlock','refresh','get','isEnabled','231YMHDwh','bind','46552SkSflT','317398SnUPYd','49304VkSwQC','5277858Jeqblb','config'];_0x5aba=function(){return _0x5e78c1;};return _0x5aba();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51bea6=_0x5b6c;function _0x5b6c(_0x21e10f,_0x874281){const _0x357f5b=_0x357f();return _0x5b6c=function(_0x5b6c04,_0x58d5e5){_0x5b6c04=_0x5b6c04-0x89;let _0xa45676=_0x357f5b[_0x5b6c04];return _0xa45676;},_0x5b6c(_0x21e10f,_0x874281);}(function(_0x659c33,_0x32f6d3){const _0x273dd5=_0x5b6c,_0x2d998a=_0x659c33();while(!![]){try{const _0x5e676a=-parseInt(_0x273dd5(0x9b))/0x1+parseInt(_0x273dd5(0x97))/0x2*(parseInt(_0x273dd5(0x9d))/0x3)+parseInt(_0x273dd5(0x99))/0x4+-parseInt(_0x273dd5(0x90))/0x5+parseInt(_0x273dd5(0x98))/0x6+parseInt(_0x273dd5(0x9a))/0x7+parseInt(_0x273dd5(0x94))/0x8*(-parseInt(_0x273dd5(0x9c))/0x9);if(_0x5e676a===_0x32f6d3)break;else _0x2d998a['push'](_0x2d998a['shift']());}catch(_0x11f2d1){_0x2d998a['push'](_0x2d998a['shift']());}}}(_0x357f,0x6a490));import{Plugin as _0x54fc47}from'ckeditor5/src/core.js';import{Notification as _0x2f1a2a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x445a5a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1d5748}from'./uploadcareimagereplacecommand.js';function _0x357f(){const _0x292c1e=['2264373IKZldM','2189613hbwYjb','uploadcareImageReplace','commands','ImageEditing','ImageUtils','UploadcareImageEditEditing','requires','isPremiumPlugin','2866760KRaoVQ','uploadcareImageEdit','isOfficialPlugin','pluginName','16hueLIZ','init','add','2OmsyUT','2887488KazwIp','660160KseWFg','968513orDGzO','2628jDCSzn'];_0x357f=function(){return _0x292c1e;};return _0x357f();}import{UploadcareEditing as _0x441381}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x54fc47{static get[_0x51bea6(0x93)](){const _0x1899cf=_0x51bea6;return _0x1899cf(0x8d);}static get[_0x51bea6(0x8e)](){const _0x1c05e0=_0x51bea6;return[_0x441381,_0x2f1a2a,_0x1c05e0(0x8c),_0x1c05e0(0x8b)];}static get[_0x51bea6(0x92)](){return!0x0;}static get[_0x51bea6(0x8f)](){return!0x0;}[_0x51bea6(0x95)](){const _0x84cdbc=_0x51bea6,{editor:_0x51e95e}=this;_0x51e95e[_0x84cdbc(0x8a)][_0x84cdbc(0x96)](_0x84cdbc(0x91),new _0x445a5a(_0x51e95e)),_0x51e95e[_0x84cdbc(0x8a)][_0x84cdbc(0x96)](_0x84cdbc(0x89),new _0x1d5748(_0x51e95e));}}
23
+ const _0x460810=_0x3944;(function(_0x3b3f80,_0x4b9708){const _0x139be1=_0x3944,_0x431167=_0x3b3f80();while(!![]){try{const _0x3c4ce1=-parseInt(_0x139be1(0x153))/0x1+parseInt(_0x139be1(0x13f))/0x2+-parseInt(_0x139be1(0x145))/0x3*(-parseInt(_0x139be1(0x14e))/0x4)+-parseInt(_0x139be1(0x141))/0x5+-parseInt(_0x139be1(0x14c))/0x6+parseInt(_0x139be1(0x146))/0x7*(parseInt(_0x139be1(0x147))/0x8)+-parseInt(_0x139be1(0x142))/0x9;if(_0x3c4ce1===_0x4b9708)break;else _0x431167['push'](_0x431167['shift']());}catch(_0xaf042b){_0x431167['push'](_0x431167['shift']());}}}(_0x570e,0x6d33f));function _0x570e(){const _0x34d932=['14938kISaAY','commands','407430JdScuM','6646410ocnCax','init','ImageUtils','2020719zDXIza','7BAJMGE','6131432cSVmxk','requires','uploadcareImageReplace','add','ImageEditing','1049760nbCkNI','isOfficialPlugin','4RmkCPz','isPremiumPlugin','UploadcareImageEditEditing','pluginName','uploadcareImageEdit','5240Ovthkm'];_0x570e=function(){return _0x34d932;};return _0x570e();}import{Plugin as _0x69488f}from'ckeditor5/src/core.js';import{Notification as _0x3f6bc8}from'ckeditor5/src/ui.js';function _0x3944(_0x2ff99a,_0x1cd925){const _0x570e99=_0x570e();return _0x3944=function(_0x39448a,_0x6e34da){_0x39448a=_0x39448a-0x13f;let _0x30b4aa=_0x570e99[_0x39448a];return _0x30b4aa;},_0x3944(_0x2ff99a,_0x1cd925);}import{UploadcareImageEditCommand as _0x40fcbc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1dabc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2b46aa}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x69488f{static get[_0x460810(0x151)](){const _0x5f5651=_0x460810;return _0x5f5651(0x150);}static get[_0x460810(0x148)](){const _0x115f37=_0x460810;return[_0x2b46aa,_0x3f6bc8,_0x115f37(0x144),_0x115f37(0x14b)];}static get[_0x460810(0x14d)](){return!0x0;}static get[_0x460810(0x14f)](){return!0x0;}[_0x460810(0x143)](){const _0x239ec2=_0x460810,{editor:_0x3ddf0b}=this;_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x152),new _0x40fcbc(_0x3ddf0b)),_0x3ddf0b[_0x239ec2(0x140)][_0x239ec2(0x14a)](_0x239ec2(0x149),new _0x1dabc2(_0x3ddf0b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1b90bb}from'ckeditor5/src/core.js';import{ButtonView as _0x109f8d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20649b}from'ckeditor5/src/icons.js';import{createElement as _0x227c5a}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 _0x1b90bb{['_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 _0x5665eb=this['editor'];_0x5665eb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f2762=>{const _0x3cac64=_0x5665eb['commands']['get']('uploadcareImageEdit'),_0xc12139=new _0x109f8d(_0x4f2762),t=_0x4f2762['t'];return _0xc12139['set']({'icon':_0x20649b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xc12139['bind']('isEnabled')['to'](_0x3cac64),_0xc12139['bind']('isOn')['to'](_0x3cac64,'isActive'),this['listenTo'](_0xc12139,'execute',()=>{_0x5665eb['execute']('uploadcareImageEdit'),_0x5665eb['editing']['view']['focus']();}),_0xc12139;}),this['_initConfig']();}['_initConfig'](){const _0x13dfe9=_0x227c5a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13dfe9),this['listenTo'](this['editor'],'destroy',()=>{_0x13dfe9['remove']();});}}
23
+ import{Plugin as _0x137563}from'ckeditor5/src/core.js';import{ButtonView as _0x1862b9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20c2e3}from'ckeditor5/src/icons.js';import{createElement as _0x4464bd}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 _0x137563{['_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 _0x5ca4d8=this['editor'];_0x5ca4d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43349d=>{const _0x1e3a45=_0x5ca4d8['commands']['get']('uploadcareImageEdit'),_0x335e77=new _0x1862b9(_0x43349d),t=_0x43349d['t'];return _0x335e77['set']({'icon':_0x20c2e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x335e77['bind']('isEnabled')['to'](_0x1e3a45),_0x335e77['bind']('isOn')['to'](_0x1e3a45,'isActive'),this['listenTo'](_0x335e77,'execute',()=>{_0x5ca4d8['execute']('uploadcareImageEdit'),_0x5ca4d8['editing']['view']['focus']();}),_0x335e77;}),this['_initConfig']();}['_initConfig'](){const _0x602d13=_0x4464bd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x602d13),this['listenTo'](this['editor'],'destroy',()=>{_0x602d13['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d5a(_0x5958dd,_0x23590c){const _0x3763b4=_0x3763();return _0x5d5a=function(_0x5d5a39,_0x175cdc){_0x5d5a39=_0x5d5a39-0x1d8;let _0x5d8dc1=_0x3763b4[_0x5d5a39];return _0x5d8dc1;},_0x5d5a(_0x5958dd,_0x23590c);}const _0x104b57=_0x5d5a;(function(_0x1fa87d,_0x2d5293){const _0x3b38e9=_0x5d5a,_0x32011e=_0x1fa87d();while(!![]){try{const _0x1fec0b=-parseInt(_0x3b38e9(0x1ec))/0x1*(parseInt(_0x3b38e9(0x1df))/0x2)+parseInt(_0x3b38e9(0x1e1))/0x3*(parseInt(_0x3b38e9(0x1e8))/0x4)+-parseInt(_0x3b38e9(0x1f0))/0x5+parseInt(_0x3b38e9(0x1e3))/0x6*(parseInt(_0x3b38e9(0x1dd))/0x7)+parseInt(_0x3b38e9(0x1e2))/0x8+-parseInt(_0x3b38e9(0x1dc))/0x9*(-parseInt(_0x3b38e9(0x1e6))/0xa)+-parseInt(_0x3b38e9(0x1ef))/0xb;if(_0x1fec0b===_0x2d5293)break;else _0x32011e['push'](_0x32011e['shift']());}catch(_0x66c955){_0x32011e['push'](_0x32011e['shift']());}}}(_0x3763,0x69bcc));import{Command as _0x6e75fd}from'ckeditor5/src/core.js';function _0x3763(){const _0x231dfe=['474618mWfSQa','setAttributes','imageBlock','20kwLPBo','isEnabled','5948ucnhNU','selection','refresh','document','98872LrfmiS','imageInline','execute','10787249jNJpxy','1098400QrXYig','change','model','srcset','sizes','editor','removeAttribute','3353139JdprcG','42TtIxbd','element','8KUpqGw','getSelectedElement','951TpbUAB','2702304WSsTuF'];_0x3763=function(){return _0x231dfe;};return _0x3763();}export class UploadcareImageReplaceCommand extends _0x6e75fd{[_0x104b57(0x1ea)](){const _0x4c57df=_0x104b57,_0x16407b=this[_0x4c57df(0x1da)][_0x4c57df(0x1f2)][_0x4c57df(0x1eb)][_0x4c57df(0x1e9)][_0x4c57df(0x1e0)]();this[_0x4c57df(0x1e7)]=Boolean(_0x16407b&&(_0x16407b['is'](_0x4c57df(0x1de),_0x4c57df(0x1e5))||_0x16407b['is'](_0x4c57df(0x1de),_0x4c57df(0x1ed))));}[_0x104b57(0x1ee)](_0x2478f7){const _0x1c9165=_0x104b57,_0x2db4e0=this[_0x1c9165(0x1da)][_0x1c9165(0x1f2)][_0x1c9165(0x1eb)][_0x1c9165(0x1e9)][_0x1c9165(0x1e0)]();this[_0x1c9165(0x1da)][_0x1c9165(0x1f2)][_0x1c9165(0x1f1)](_0x4c961b=>{const _0x3bee39=_0x1c9165;_0x4c961b[_0x3bee39(0x1e4)](_0x2478f7,_0x2db4e0),_0x4c961b[_0x3bee39(0x1db)](_0x3bee39(0x1d8),_0x2db4e0),_0x4c961b[_0x3bee39(0x1db)](_0x3bee39(0x1d9),_0x2db4e0);});}}
23
+ const _0x32a143=_0x10a5;function _0x10a5(_0x20b558,_0x5a345c){const _0xb5ec42=_0xb5ec();return _0x10a5=function(_0x10a591,_0xa6ed23){_0x10a591=_0x10a591-0x14f;let _0x546d1d=_0xb5ec42[_0x10a591];return _0x546d1d;},_0x10a5(_0x20b558,_0x5a345c);}(function(_0x320d7b,_0x56c34a){const _0x39bba6=_0x10a5,_0x2460ee=_0x320d7b();while(!![]){try{const _0x432094=-parseInt(_0x39bba6(0x164))/0x1*(-parseInt(_0x39bba6(0x156))/0x2)+parseInt(_0x39bba6(0x15f))/0x3*(-parseInt(_0x39bba6(0x15d))/0x4)+-parseInt(_0x39bba6(0x151))/0x5+-parseInt(_0x39bba6(0x159))/0x6*(parseInt(_0x39bba6(0x161))/0x7)+parseInt(_0x39bba6(0x158))/0x8*(parseInt(_0x39bba6(0x150))/0x9)+-parseInt(_0x39bba6(0x152))/0xa+parseInt(_0x39bba6(0x166))/0xb;if(_0x432094===_0x56c34a)break;else _0x2460ee['push'](_0x2460ee['shift']());}catch(_0x547939){_0x2460ee['push'](_0x2460ee['shift']());}}}(_0xb5ec,0xa7d40));import{Command as _0x4363ea}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4363ea{[_0x32a143(0x163)](){const _0x56bdc5=_0x32a143,_0x1aae81=this[_0x56bdc5(0x165)][_0x56bdc5(0x168)][_0x56bdc5(0x153)][_0x56bdc5(0x15a)][_0x56bdc5(0x157)]();this[_0x56bdc5(0x15b)]=Boolean(_0x1aae81&&(_0x1aae81['is'](_0x56bdc5(0x15c),_0x56bdc5(0x160))||_0x1aae81['is'](_0x56bdc5(0x15c),_0x56bdc5(0x167))));}[_0x32a143(0x162)](_0x34c481){const _0x366de1=_0x32a143,_0x445f33=this[_0x366de1(0x165)][_0x366de1(0x168)][_0x366de1(0x153)][_0x366de1(0x15a)][_0x366de1(0x157)]();this[_0x366de1(0x165)][_0x366de1(0x168)][_0x366de1(0x169)](_0x2bb7ed=>{const _0x4cfada=_0x366de1;_0x2bb7ed[_0x4cfada(0x155)](_0x34c481,_0x445f33),_0x2bb7ed[_0x4cfada(0x14f)](_0x4cfada(0x154),_0x445f33),_0x2bb7ed[_0x4cfada(0x14f)](_0x4cfada(0x15e),_0x445f33);});}}function _0xb5ec(){const _0x4554a2=['imageInline','model','change','removeAttribute','931059xXrlEU','6021970mGlZpE','6399130wvXWwU','document','srcset','setAttributes','2USuMuT','getSelectedElement','32PpXPnk','1028004VWYJtR','selection','isEnabled','element','4YsrSlS','sizes','1332651kVDAJu','imageBlock','14DkmQyw','execute','refresh','50783JGbewi','editor','31394319HALTCs'];_0xb5ec=function(){return _0x4554a2;};return _0xb5ec();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x514a3d=_0x59a4;(function(_0x40cc5d,_0x2346c0){var _0x50401f=_0x59a4,_0xad7419=_0x40cc5d();while(!![]){try{var _0x4ac8e6=parseInt(_0x50401f(0x168))/0x1+-parseInt(_0x50401f(0x162))/0x2+parseInt(_0x50401f(0x163))/0x3+-parseInt(_0x50401f(0x167))/0x4+parseInt(_0x50401f(0x164))/0x5*(-parseInt(_0x50401f(0x15f))/0x6)+-parseInt(_0x50401f(0x165))/0x7*(parseInt(_0x50401f(0x15b))/0x8)+parseInt(_0x50401f(0x15c))/0x9*(parseInt(_0x50401f(0x15a))/0xa);if(_0x4ac8e6===_0x2346c0)break;else _0xad7419['push'](_0xad7419['shift']());}catch(_0x4c8399){_0xad7419['push'](_0xad7419['shift']());}}}(_0x2b84,0xb9484));function _0x2b84(){var _0x6f7958=['5DjdQHl','91nIYVLG','isOfficialPlugin','1834664MiKRga','1307799GRXbqx','20ohBSXw','260056CsJArW','4970169dmCMxI','UploadcareImageEdit','isPremiumPlugin','2911338uyTDRB','requires','pluginName','590964QGkdNS','25791hUbedP'];_0x2b84=function(){return _0x6f7958;};return _0x2b84();}import{Plugin as _0x6ac12c}from'ckeditor5/src/core.js';function _0x59a4(_0x17bfe0,_0x40ab13){var _0x2b842e=_0x2b84();return _0x59a4=function(_0x59a48e,_0x21a613){_0x59a48e=_0x59a48e-0x15a;var _0x758610=_0x2b842e[_0x59a48e];return _0x758610;},_0x59a4(_0x17bfe0,_0x40ab13);}import{UploadcareImageEditEditing as _0x47c2d1}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x43e9ee}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x6ac12c{static get[_0x514a3d(0x161)](){var _0x5d9f12=_0x514a3d;return _0x5d9f12(0x15d);}static get[_0x514a3d(0x160)](){return[_0x47c2d1,_0x43e9ee];}static get[_0x514a3d(0x166)](){return!0x0;}static get[_0x514a3d(0x15e)](){return!0x0;}}
23
+ var _0xf1897d=_0x53d1;function _0x53d1(_0xc70fcc,_0x14fe24){var _0x519d54=_0x519d();return _0x53d1=function(_0x53d181,_0x483729){_0x53d181=_0x53d181-0xea;var _0x55f60b=_0x519d54[_0x53d181];return _0x55f60b;},_0x53d1(_0xc70fcc,_0x14fe24);}(function(_0x5e8a23,_0x14fd64){var _0x1ab58d=_0x53d1,_0x1eb627=_0x5e8a23();while(!![]){try{var _0x547de3=-parseInt(_0x1ab58d(0xf4))/0x1*(-parseInt(_0x1ab58d(0xef))/0x2)+parseInt(_0x1ab58d(0xf5))/0x3*(parseInt(_0x1ab58d(0xf2))/0x4)+parseInt(_0x1ab58d(0xf6))/0x5+-parseInt(_0x1ab58d(0xed))/0x6+-parseInt(_0x1ab58d(0xee))/0x7+-parseInt(_0x1ab58d(0xec))/0x8+parseInt(_0x1ab58d(0xf3))/0x9;if(_0x547de3===_0x14fd64)break;else _0x1eb627['push'](_0x1eb627['shift']());}catch(_0x3a4e58){_0x1eb627['push'](_0x1eb627['shift']());}}}(_0x519d,0x3a9d6));import{Plugin as _0x10c3a3}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x40505d}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x519d(){var _0x4c451d=['28rDNVKT','21cygQFO','1481825CwUBaH','UploadcareImageEdit','requires','pluginName','1380840ObRUFl','2446368ClXjbB','2765812svirqh','30692VECdLq','isPremiumPlugin','isOfficialPlugin','187096AMrBdz','1458576MiOwBu'];_0x519d=function(){return _0x4c451d;};return _0x519d();}import{UploadcareImageEditUI as _0x544f0c}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x10c3a3{static get[_0xf1897d(0xeb)](){var _0x31feba=_0xf1897d;return _0x31feba(0xf7);}static get[_0xf1897d(0xea)](){return[_0x40505d,_0x544f0c];}static get[_0xf1897d(0xf1)](){return!0x0;}static get[_0xf1897d(0xf0)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e61bb=_0x361e;function _0x361e(_0xb34f71,_0xa42cb1){const _0x5d3b72=_0x5d3b();return _0x361e=function(_0x361e8c,_0x5568f9){_0x361e8c=_0x361e8c-0x8d;let _0x286a7c=_0x5d3b72[_0x361e8c];return _0x286a7c;},_0x361e(_0xb34f71,_0xa42cb1);}(function(_0x5bdef0,_0x22b9ae){const _0xe3b8b0=_0x361e,_0x520f09=_0x5bdef0();while(!![]){try{const _0x2add5a=-parseInt(_0xe3b8b0(0xcd))/0x1*(-parseInt(_0xe3b8b0(0xa9))/0x2)+parseInt(_0xe3b8b0(0x95))/0x3+parseInt(_0xe3b8b0(0x9d))/0x4+-parseInt(_0xe3b8b0(0xbf))/0x5+-parseInt(_0xe3b8b0(0xd3))/0x6*(-parseInt(_0xe3b8b0(0xa7))/0x7)+parseInt(_0xe3b8b0(0x94))/0x8*(-parseInt(_0xe3b8b0(0x99))/0x9)+-parseInt(_0xe3b8b0(0x9c))/0xa*(parseInt(_0xe3b8b0(0xab))/0xb);if(_0x2add5a===_0x22b9ae)break;else _0x520f09['push'](_0x520f09['shift']());}catch(_0x1aac44){_0x520f09['push'](_0x520f09['shift']());}}}(_0x5d3b,0xacc92));import{Plugin as _0x2e0b5c}from'ckeditor5/src/core.js';import{IconDropbox as _0x2a9871,IconFacebook as _0x4229c7,IconGoogleDrive as _0x2f42a7,IconGooglePhotos as _0x575e34,IconUploadcareImageUpload as _0x59c690,IconUploadcareLink as _0x15f183,IconOneDrive as _0x29ff2e}from'ckeditor5/src/icons.js';function _0x5d3b(){const _0x354351=['_getIntegrationKey','text','5512pcLXGe','1081056LExuHU','Uploadcare','_createMenuBarButtons','withText','12438UsYTcc','uploadcareLicenseKeyValid','bind','10314380MfYAoq','1824408FMaFvI','map','pluginName','url','plugins','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyEvaluationLimit','URL','type','21ZgfOmu','config','3314hYgCNZ','isOfficialPlugin','11RqqMce','usageLimit','tooltip','trialLimit','licenseKey','destroy','label','GPhotos','has','isPremiumPlugin','featureNotAllowed','ImageInsertUI','uploadcareLicenseKeyDomainLimit','Facebook','assetManager','get','Local','init','locale','push','1438585bDnSeC','evaluationLimit','uploadcare.uploader.sourceList','shortText','_createToolbarButton','_createDropdownButtons','forEach','uploadcare','isEnabled','Dropbox','icon','_normalizeConfigSourceList','uploadcareLicenseKeyInvalid','execute','631uEVoGf','OneDrive','Insert','_showLicenseError','afterInit','expired','2234124kAvoju','upload','Replace','uploadcareLicenseKeyUsageLimit','editor','UploadcareUI','registerIntegration','isImageSelected','uploadcareLicenseKeyExpired','entries','invalid','_licenseKeyCheckInterval','reduce','domainLimit','GDrive','_createButton','commands'];_0x5d3b=function(){return _0x354351;};return _0x5d3b();}import{ButtonView as _0x45f345,MenuBarMenuListItemButtonView as _0x4638ba}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x476605}from'./uploadcareconfig.js';import{getTranslation as _0x39e0c7}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 _0x2e0b5c{[_0x4e61bb(0xaf)];[_0x4e61bb(0xde)];static get[_0x4e61bb(0x9f)](){const _0x546617=_0x4e61bb;return _0x546617(0xd8);}static get[_0x4e61bb(0xaa)](){return!0x0;}static get[_0x4e61bb(0xb4)](){return!0x0;}[_0x4e61bb(0xbc)](){const _0x4f266b=_0x4e61bb;this[_0x4f266b(0xaf)]=this[_0x4f266b(0xd7)][_0x4f266b(0xa8)][_0x4f266b(0xba)](_0x4f266b(0xaf));const _0x21f494=this[_0x4f266b(0xd7)];this[_0x4f266b(0xde)]=setInterval(()=>{const _0x3d5823=_0x4f266b;let _0x4a3041;for(const _0x41efe0 in _0x21f494){const _0x3be4e7=_0x41efe0,_0x16f45f=_0x21f494[_0x3be4e7];if(_0x3d5823(0x9a)==_0x16f45f||_0x3d5823(0xcb)==_0x16f45f||_0x3d5823(0xdb)==_0x16f45f||_0x3d5823(0xb7)==_0x16f45f||_0x3d5823(0xa3)==_0x16f45f||_0x3d5823(0xa4)==_0x16f45f||_0x3d5823(0xa2)==_0x16f45f||_0x3d5823(0xd6)==_0x16f45f){delete _0x21f494[_0x3be4e7],_0x4a3041=_0x16f45f,clearInterval(this[_0x3d5823(0xde)]),this[_0x3d5823(0xde)]=void 0x0;break;}}_0x3d5823(0xcb)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xdd)),_0x3d5823(0xdb)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xd2)),_0x3d5823(0xb7)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0x8e)),_0x3d5823(0xa3)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xb5),_0x3d5823(0x96)),_0x3d5823(0xa4)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xc0)),_0x3d5823(0xa2)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xae)),_0x3d5823(0xd6)==_0x4a3041&&_0x21f494[_0x3d5823(0xd0)](_0x3d5823(0xac));},0x3e8);}[_0x4e61bb(0xd1)](){const _0x297702=_0x4e61bb,{editor:_0x2e0424}=this,_0x3e6eab=_0x2e0424[_0x297702(0x91)][_0x297702(0xba)](_0x297702(0xc6));if(!_0x3e6eab)return;const _0x5f3c76=this[_0x297702(0xca)](_0x2e0424[_0x297702(0xa8)][_0x297702(0xba)](_0x297702(0xc1)))[_0x297702(0x8d)]((_0x274e72,_0xb65743)=>{const _0x1c459f=_0x297702,_0x4c3efd=this[_0x1c459f(0x92)](_0xb65743[_0x1c459f(0xa6)]);return _0x274e72[_0x4c3efd]||(_0x274e72[_0x4c3efd]=[]),_0x274e72[_0x4c3efd][_0x1c459f(0xbe)](_0xb65743),_0x274e72;},{});_0x2e0424[_0x297702(0xa1)][_0x297702(0xb3)](_0x297702(0xb6))&&_0x2e0424[_0x297702(0x91)][_0x297702(0xba)](_0x297702(0xc6))&&Object[_0x297702(0xdc)](_0x5f3c76)[_0x297702(0xc5)](([_0x1d39d9,_0x2fbd81])=>{const _0x25fb21=_0x297702;_0x2e0424[_0x25fb21(0xa1)][_0x25fb21(0xba)](_0x25fb21(0xb6))[_0x25fb21(0xd9)]({'name':_0x1d39d9,'observable':()=>_0x3e6eab,'buttonViewCreator':()=>this[_0x25fb21(0xc3)](_0x2fbd81),'formViewCreator':()=>this[_0x25fb21(0xc4)](_0x2fbd81),'menuBarButtonViewCreator':()=>this[_0x25fb21(0x97)](_0x2fbd81),'override':_0x25fb21(0xb9)!==_0x1d39d9});});}[_0x4e61bb(0xb0)](){const _0x195c1a=_0x4e61bb;super[_0x195c1a(0xb0)](),this[_0x195c1a(0xde)]&&clearInterval(this[_0x195c1a(0xde)]);}[_0x4e61bb(0xca)](_0x28585b){const _0xe68b17=_0x4e61bb,{locale:_0x5d56e4}=this[_0xe68b17(0xd7)];return _0x28585b[_0xe68b17(0x9e)](_0x445234=>{const _0x3106aa=_0xe68b17,_0x193102=_0x39e0c7(_0x5d56e4,_0x445234,_0x3106aa(0xcf));switch(_0x445234){case _0x476605[_0x3106aa(0xbb)]:return{'icon':_0x59c690,'type':_0x476605[_0x3106aa(0xbb)],..._0x193102};case _0x476605[_0x3106aa(0xa5)]:return{'icon':_0x15f183,'type':_0x476605[_0x3106aa(0xa5)],..._0x193102};case _0x476605[_0x3106aa(0xc8)]:return{'icon':_0x2a9871,'type':_0x476605[_0x3106aa(0xc8)],..._0x193102};case _0x476605[_0x3106aa(0xb8)]:return{'icon':_0x4229c7,'type':_0x476605[_0x3106aa(0xb8)],..._0x193102};case _0x476605[_0x3106aa(0x8f)]:return{'icon':_0x2f42a7,'type':_0x476605[_0x3106aa(0x8f)],..._0x193102};case _0x476605[_0x3106aa(0xb2)]:return{'icon':_0x575e34,'type':_0x476605[_0x3106aa(0xb2)],..._0x193102};case _0x476605[_0x3106aa(0xce)]:return{'icon':_0x29ff2e,'type':_0x476605[_0x3106aa(0xce)],..._0x193102};}});}[_0x4e61bb(0x92)](_0x4d412f){const _0x2e629f=_0x4e61bb;switch(_0x4d412f){case _0x476605[_0x2e629f(0xbb)]:return _0x2e629f(0xd4);case _0x476605[_0x2e629f(0xa5)]:return _0x2e629f(0xa0);default:return _0x2e629f(0xb9);}}[_0x4e61bb(0x90)](_0x46108a,_0x3de27e){const _0x3c39c5=_0x4e61bb,_0x9213a4=this[_0x3c39c5(0xd7)],_0xcee1df=new _0x46108a(_0x9213a4[_0x3c39c5(0xbd)]),_0x2ab21b=_0x9213a4[_0x3c39c5(0x91)][_0x3c39c5(0xba)](_0x3c39c5(0xc6));return _0xcee1df[_0x3c39c5(0x9b)](_0x3c39c5(0xc7))['to'](_0x2ab21b),_0xcee1df['on'](_0x3c39c5(0xcc),()=>{const _0x30c101=_0x3c39c5;_0x2ab21b[_0x30c101(0xcc)](_0x3de27e);}),_0xcee1df;}[_0x4e61bb(0xc3)](_0x24c867){const _0x33c92e=_0x4e61bb,{locale:_0x163e5f}=this[_0x33c92e(0xd7)],_0x844e68=this[_0x33c92e(0xd7)][_0x33c92e(0xa1)][_0x33c92e(0xba)](_0x33c92e(0xb6)),_0x5193f2=_0x24c867[0x0],_0x4e57d5=this[_0x33c92e(0x90)](_0x45f345,_0x5193f2[_0x33c92e(0xa6)]);return _0x4e57d5[_0x33c92e(0xc9)]=_0x5193f2[_0x33c92e(0xc9)],_0x4e57d5[_0x33c92e(0x9b)](_0x33c92e(0xb1))['to'](_0x844e68,_0x33c92e(0xda),_0x5a25e6=>_0x39e0c7(_0x163e5f,_0x5193f2[_0x33c92e(0xa6)],_0x5a25e6?_0x33c92e(0xd5):_0x33c92e(0xcf))[_0x33c92e(0x93)]),_0x4e57d5[_0x33c92e(0xad)]=!0x0,_0x4e57d5;}[_0x4e61bb(0xc4)](_0x10a645){const _0x532601=_0x4e61bb,{locale:_0x714066}=this[_0x532601(0xd7)],_0x19f402=this[_0x532601(0xd7)][_0x532601(0xa1)][_0x532601(0xba)](_0x532601(0xb6));return _0x10a645[_0x532601(0x9e)](_0x29f7be=>{const _0x3838d1=_0x532601,_0x5473ad=this[_0x3838d1(0x90)](_0x45f345,_0x29f7be[_0x3838d1(0xa6)]);return _0x5473ad[_0x3838d1(0x98)]=!0x0,_0x5473ad[_0x3838d1(0xc9)]=_0x29f7be[_0x3838d1(0xc9)],_0x5473ad[_0x3838d1(0x9b)](_0x3838d1(0xb1))['to'](_0x19f402,_0x3838d1(0xda),_0x324673=>_0x39e0c7(_0x714066,_0x29f7be[_0x3838d1(0xa6)],_0x324673?_0x3838d1(0xd5):_0x3838d1(0xcf))[_0x3838d1(0x93)]),_0x5473ad;});}[_0x4e61bb(0x97)](_0x501575){const _0x237c75=_0x4e61bb;return _0x501575[_0x237c75(0x9e)](_0xafc3ca=>{const _0x4c91fd=_0x237c75,_0x2eb7df=this[_0x4c91fd(0x90)](_0x4638ba,_0xafc3ca[_0x4c91fd(0xa6)]);return _0x2eb7df[_0x4c91fd(0xc9)]=_0xafc3ca[_0x4c91fd(0xc9)],_0x2eb7df[_0x4c91fd(0xb1)]=_0xafc3ca[_0x4c91fd(0xc2)],_0x2eb7df;});}}
23
+ const _0x2a9390=_0x1be1;(function(_0x16ee03,_0x43d526){const _0x383155=_0x1be1,_0x38ad21=_0x16ee03();while(!![]){try{const _0x59b024=-parseInt(_0x383155(0xa7))/0x1+-parseInt(_0x383155(0xc1))/0x2+parseInt(_0x383155(0xaf))/0x3+parseInt(_0x383155(0xbf))/0x4+-parseInt(_0x383155(0xdf))/0x5+parseInt(_0x383155(0x96))/0x6+parseInt(_0x383155(0xcb))/0x7;if(_0x59b024===_0x43d526)break;else _0x38ad21['push'](_0x38ad21['shift']());}catch(_0x1a7952){_0x38ad21['push'](_0x38ad21['shift']());}}}(_0x425d,0x9225b));import{Plugin as _0x52db7d}from'ckeditor5/src/core.js';import{IconDropbox as _0x472da5,IconFacebook as _0x37fbf3,IconGoogleDrive as _0x4859d2,IconGooglePhotos as _0x14f3b6,IconUploadcareImageUpload as _0x41d103,IconUploadcareLink as _0x137e2d,IconOneDrive as _0x139a81}from'ckeditor5/src/icons.js';import{ButtonView as _0x2b23e2,MenuBarMenuListItemButtonView as _0x32e92a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xb5f224}from'./uploadcareconfig.js';function _0x425d(){const _0x3cf790=['Replace','UploadcareUI','Uploadcare','Dropbox','uploadcareLicenseKeyTrialLimit','destroy','uploadcareLicenseKeyUsageLimit','bind','icon','_getIntegrationKey','4236090afLlPb','get','map','assetManager','licenseKey','5273454JzJYJq','_createDropdownButtons','type','uploadcareLicenseKeyValid','entries','locale','reduce','_createMenuBarButtons','domainLimit','_showLicenseError','has','execute','URL','tooltip','withText','init','uploadcareLicenseKeyNotAllowed','1105893jarqqD','OneDrive','isOfficialPlugin','_normalizeConfigSourceList','expired','usageLimit','plugins','uploadcareLicenseKeyDomainLimit','1689849uVEtFJ','uploadcareLicenseKeyInvalid','trialLimit','GPhotos','isPremiumPlugin','_createToolbarButton','config','_createButton','registerIntegration','isEnabled','uploadcareLicenseKeyExpired','invalid','ImageInsertUI','url','Local','commands','4620856YYZYBU','_licenseKeyCheckInterval','663490FTnQUE','GDrive','uploadcareLicenseKeyEvaluationLimit','editor','push','uploadcare','evaluationLimit','featureNotAllowed','shortText','Insert','2002483eFePSV','isImageSelected','afterInit','uploadcare.uploader.sourceList','upload','Facebook','pluginName','text','label','forEach'];_0x425d=function(){return _0x3cf790;};return _0x425d();}import{getTranslation as _0x19773d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1be1(_0x4b9649,_0x2da29c){const _0x425dc1=_0x425d();return _0x1be1=function(_0x1be1c0,_0x4121c2){_0x1be1c0=_0x1be1c0-0x92;let _0x3a6ecb=_0x425dc1[_0x1be1c0];return _0x3a6ecb;},_0x1be1(_0x4b9649,_0x2da29c);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x52db7d{[_0x2a9390(0x95)];[_0x2a9390(0xc0)];static get[_0x2a9390(0xd1)](){const _0x4f2ecd=_0x2a9390;return _0x4f2ecd(0xd6);}static get[_0x2a9390(0xa9)](){return!0x0;}static get[_0x2a9390(0xb3)](){return!0x0;}[_0x2a9390(0xa5)](){const _0x312bbb=_0x2a9390;this[_0x312bbb(0x95)]=this[_0x312bbb(0xc4)][_0x312bbb(0xb5)][_0x312bbb(0x92)](_0x312bbb(0x95));const _0x56ee2b=this[_0x312bbb(0xc4)];this[_0x312bbb(0xc0)]=setInterval(()=>{const _0x116461=_0x312bbb;let _0x44b7a8;for(const _0xa9fa9c in _0x56ee2b){const _0x2985b6=_0xa9fa9c,_0x176527=_0x56ee2b[_0x2985b6];if(_0x116461(0x99)==_0x176527||_0x116461(0xb0)==_0x176527||_0x116461(0xb9)==_0x176527||_0x116461(0xae)==_0x176527||_0x116461(0xa6)==_0x176527||_0x116461(0xc3)==_0x176527||_0x116461(0xd9)==_0x176527||_0x116461(0xdb)==_0x176527){delete _0x56ee2b[_0x2985b6],_0x44b7a8=_0x176527,clearInterval(this[_0x116461(0xc0)]),this[_0x116461(0xc0)]=void 0x0;break;}}_0x116461(0xb0)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xba)),_0x116461(0xb9)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xab)),_0x116461(0xae)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0x9e)),_0x116461(0xa6)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xc8),_0x116461(0xd7)),_0x116461(0xc3)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xc7)),_0x116461(0xd9)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xb1)),_0x116461(0xdb)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xac));},0x3e8);}[_0x2a9390(0xcd)](){const _0x3b766d=_0x2a9390,{editor:_0x45689d}=this,_0x3c96fd=_0x45689d[_0x3b766d(0xbe)][_0x3b766d(0x92)](_0x3b766d(0xc6));if(!_0x3c96fd)return;const _0x322366=this[_0x3b766d(0xaa)](_0x45689d[_0x3b766d(0xb5)][_0x3b766d(0x92)](_0x3b766d(0xce)))[_0x3b766d(0x9c)]((_0x33e93b,_0x232863)=>{const _0x5af741=_0x3b766d,_0x548391=this[_0x5af741(0xde)](_0x232863[_0x5af741(0x98)]);return _0x33e93b[_0x548391]||(_0x33e93b[_0x548391]=[]),_0x33e93b[_0x548391][_0x5af741(0xc5)](_0x232863),_0x33e93b;},{});_0x45689d[_0x3b766d(0xad)][_0x3b766d(0xa0)](_0x3b766d(0xbb))&&_0x45689d[_0x3b766d(0xbe)][_0x3b766d(0x92)](_0x3b766d(0xc6))&&Object[_0x3b766d(0x9a)](_0x322366)[_0x3b766d(0xd4)](([_0x1db48a,_0x9a05cc])=>{const _0x4eaaf1=_0x3b766d;_0x45689d[_0x4eaaf1(0xad)][_0x4eaaf1(0x92)](_0x4eaaf1(0xbb))[_0x4eaaf1(0xb7)]({'name':_0x1db48a,'observable':()=>_0x3c96fd,'buttonViewCreator':()=>this[_0x4eaaf1(0xb4)](_0x9a05cc),'formViewCreator':()=>this[_0x4eaaf1(0x97)](_0x9a05cc),'menuBarButtonViewCreator':()=>this[_0x4eaaf1(0x9d)](_0x9a05cc),'override':_0x4eaaf1(0x94)!==_0x1db48a});});}[_0x2a9390(0xda)](){const _0xc4adbe=_0x2a9390;super[_0xc4adbe(0xda)](),this[_0xc4adbe(0xc0)]&&clearInterval(this[_0xc4adbe(0xc0)]);}[_0x2a9390(0xaa)](_0xb79340){const _0x2a5218=_0x2a9390,{locale:_0xd9d431}=this[_0x2a5218(0xc4)];return _0xb79340[_0x2a5218(0x93)](_0x151f43=>{const _0x1c1476=_0x2a5218,_0x1fc50a=_0x19773d(_0xd9d431,_0x151f43,_0x1c1476(0xca));switch(_0x151f43){case _0xb5f224[_0x1c1476(0xbd)]:return{'icon':_0x41d103,'type':_0xb5f224[_0x1c1476(0xbd)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xa2)]:return{'icon':_0x137e2d,'type':_0xb5f224[_0x1c1476(0xa2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xd8)]:return{'icon':_0x472da5,'type':_0xb5f224[_0x1c1476(0xd8)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xd0)]:return{'icon':_0x37fbf3,'type':_0xb5f224[_0x1c1476(0xd0)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xc2)]:return{'icon':_0x4859d2,'type':_0xb5f224[_0x1c1476(0xc2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xb2)]:return{'icon':_0x14f3b6,'type':_0xb5f224[_0x1c1476(0xb2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xa8)]:return{'icon':_0x139a81,'type':_0xb5f224[_0x1c1476(0xa8)],..._0x1fc50a};}});}[_0x2a9390(0xde)](_0x549827){const _0x198e25=_0x2a9390;switch(_0x549827){case _0xb5f224[_0x198e25(0xbd)]:return _0x198e25(0xcf);case _0xb5f224[_0x198e25(0xa2)]:return _0x198e25(0xbc);default:return _0x198e25(0x94);}}[_0x2a9390(0xb6)](_0x25c888,_0x5e5029){const _0x598a7b=_0x2a9390,_0x17a4fd=this[_0x598a7b(0xc4)],_0x1f4e7d=new _0x25c888(_0x17a4fd[_0x598a7b(0x9b)]),_0x5e3b7f=_0x17a4fd[_0x598a7b(0xbe)][_0x598a7b(0x92)](_0x598a7b(0xc6));return _0x1f4e7d[_0x598a7b(0xdc)](_0x598a7b(0xb8))['to'](_0x5e3b7f),_0x1f4e7d['on'](_0x598a7b(0xa1),()=>{const _0x38219b=_0x598a7b;_0x5e3b7f[_0x38219b(0xa1)](_0x5e5029);}),_0x1f4e7d;}[_0x2a9390(0xb4)](_0x23a58f){const _0x248991=_0x2a9390,{locale:_0x4fc958}=this[_0x248991(0xc4)],_0x47282b=this[_0x248991(0xc4)][_0x248991(0xad)][_0x248991(0x92)](_0x248991(0xbb)),_0x333df3=_0x23a58f[0x0],_0xa174b6=this[_0x248991(0xb6)](_0x2b23e2,_0x333df3[_0x248991(0x98)]);return _0xa174b6[_0x248991(0xdd)]=_0x333df3[_0x248991(0xdd)],_0xa174b6[_0x248991(0xdc)](_0x248991(0xd3))['to'](_0x47282b,_0x248991(0xcc),_0x1b920f=>_0x19773d(_0x4fc958,_0x333df3[_0x248991(0x98)],_0x1b920f?_0x248991(0xd5):_0x248991(0xca))[_0x248991(0xd2)]),_0xa174b6[_0x248991(0xa3)]=!0x0,_0xa174b6;}[_0x2a9390(0x97)](_0x1d5ea0){const _0x43b89a=_0x2a9390,{locale:_0x361b66}=this[_0x43b89a(0xc4)],_0x139c61=this[_0x43b89a(0xc4)][_0x43b89a(0xad)][_0x43b89a(0x92)](_0x43b89a(0xbb));return _0x1d5ea0[_0x43b89a(0x93)](_0x1afee3=>{const _0x398d3d=_0x43b89a,_0x47200e=this[_0x398d3d(0xb6)](_0x2b23e2,_0x1afee3[_0x398d3d(0x98)]);return _0x47200e[_0x398d3d(0xa4)]=!0x0,_0x47200e[_0x398d3d(0xdd)]=_0x1afee3[_0x398d3d(0xdd)],_0x47200e[_0x398d3d(0xdc)](_0x398d3d(0xd3))['to'](_0x139c61,_0x398d3d(0xcc),_0x91011a=>_0x19773d(_0x361b66,_0x1afee3[_0x398d3d(0x98)],_0x91011a?_0x398d3d(0xd5):_0x398d3d(0xca))[_0x398d3d(0xd2)]),_0x47200e;});}[_0x2a9390(0x9d)](_0x1a3549){const _0x3da85c=_0x2a9390;return _0x1a3549[_0x3da85c(0x93)](_0x297531=>{const _0xd14ae=_0x3da85c,_0xd006d9=this[_0xd14ae(0xb6)](_0x32e92a,_0x297531[_0xd14ae(0x98)]);return _0xd006d9[_0xd14ae(0xdd)]=_0x297531[_0xd14ae(0xdd)],_0xd006d9[_0xd14ae(0xd3)]=_0x297531[_0xd14ae(0xc9)],_0xd006d9;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1767c9}from'ckeditor5/src/core.js';import{FileRepository as _0xcbcfac}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x242ef2}from'./uploadcareediting.js';import{UploadUtils as _0x352f92}from'./utils/uploadutils.js';import{getImageUrls as _0x1fad1e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1767c9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xcbcfac,_0x242ef2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3978c8=this['editor'];if(!!!_0x3978c8['config']['get']('uploadcare'))return;_0x3978c8['plugins']['get'](_0xcbcfac)['createUploadAdapter']=_0xe76742=>new A(_0xe76742,_0x3978c8),_0x3978c8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5101c4,{imageElement:_0x352318,data:_0x4fbad1})=>{_0x3978c8['model']['change'](_0x318091=>{_0x318091['setAttribute']('uploadcareImageId',_0x4fbad1['uploadcareImageId'],_0x352318);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x32362b,_0x215397){this['loader']=_0x32362b,this['editor']=_0x215397,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x57bfba=this['editor']['config']['get']('uploadcare.pubkey'),_0x4fd8f7=await this['loader']['file'];return _0x352f92['upload']({'file':_0x4fd8f7,'publicKey':_0x57bfba,'signal':this['controller']['signal'],'onProgress':_0x4611af=>{_0x4611af&&_0x4611af['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4611af['value']);}})['then'](async _0x243861=>{const {imageFallbackUrl:_0x3a76c1,imageSources:_0x24980b}=_0x1fad1e(_0x243861['cdnUrl'],_0x243861['imageInfo']['width']);return{'uploadcareImageId':_0x243861['uuid'],'default':_0x3a76c1,'sources':_0x24980b};})['catch'](()=>{const _0x51f981=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fd8f7['name']+'.');return Promise['reject'](_0x51f981);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x30e8af}from'ckeditor5/src/core.js';import{FileRepository as _0x57a62c}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5bb282}from'./uploadcareediting.js';import{UploadUtils as _0x3203d4}from'./utils/uploadutils.js';import{getImageUrls as _0x273721}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x30e8af{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57a62c,_0x5bb282];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5e1f6c=this['editor'];if(!!!_0x5e1f6c['config']['get']('uploadcare'))return;_0x5e1f6c['plugins']['get'](_0x57a62c)['createUploadAdapter']=_0x1d4e5f=>new A(_0x1d4e5f,_0x5e1f6c),_0x5e1f6c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ffc0e,{imageElement:_0x18b026,data:_0x1d6255})=>{_0x5e1f6c['model']['change'](_0x573bcb=>{_0x573bcb['setAttribute']('uploadcareImageId',_0x1d6255['uploadcareImageId'],_0x18b026);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x162b5c,_0x5665db){this['loader']=_0x162b5c,this['editor']=_0x5665db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3f50eb=this['editor']['config']['get']('uploadcare.pubkey'),_0x83e485=await this['loader']['file'];return _0x3203d4['upload']({'file':_0x83e485,'publicKey':_0x3f50eb,'signal':this['controller']['signal'],'onProgress':_0x5a510c=>{_0x5a510c&&_0x5a510c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5a510c['value']);}})['then'](async _0x585d10=>{const {imageFallbackUrl:_0x356ae5,imageSources:_0x19dd06}=_0x273721(_0x585d10['cdnUrl'],_0x585d10['imageInfo']['width']);return{'uploadcareImageId':_0x585d10['uuid'],'default':_0x356ae5,'sources':_0x19dd06};})['catch'](()=>{const _0xd455e7=t('Cannot\x20upload\x20file:')+('\x20'+_0x83e485['name']+'.');return Promise['reject'](_0xd455e7);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x2b41c6}from'../uploadcareconfig.js';export function getTranslation(_0x5bd752,_0x2ead56,_0x4ede48){const t=_0x5bd752['t'],_0x52ffb9=_0x5bd752['t'];switch(_0x2ead56){case _0x2b41c6['Local']:return{'text':_0x52ffb9('Insert'===_0x4ede48?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x52ffb9('From\x20computer')};case _0x2b41c6['URL']:return{'text':'Insert'===_0x4ede48?_0x52ffb9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x52ffb9('Via\x20URL')};case _0x2b41c6['Dropbox']:return{'text':t('Insert'===_0x4ede48?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2b41c6['Facebook']:return{'text':t('Insert'===_0x4ede48?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2b41c6['GDrive']:return{'text':t('Insert'===_0x4ede48?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2b41c6['GPhotos']:return{'text':t('Insert'===_0x4ede48?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2b41c6['OneDrive']:return{'text':t('Insert'===_0x4ede48?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2ead56;}}
23
+ import{UploadcareSource as _0x303ae5}from'../uploadcareconfig.js';export function getTranslation(_0x2122af,_0x588aa8,_0x3f8bfd){const t=_0x2122af['t'],_0x13718c=_0x2122af['t'];switch(_0x588aa8){case _0x303ae5['Local']:return{'text':_0x13718c('Insert'===_0x3f8bfd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x13718c('From\x20computer')};case _0x303ae5['URL']:return{'text':'Insert'===_0x3f8bfd?_0x13718c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x13718c('Via\x20URL')};case _0x303ae5['Dropbox']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x303ae5['Facebook']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x303ae5['GDrive']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x303ae5['GPhotos']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x303ae5['OneDrive']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x588aa8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5c8a(){var _0x454476=['1778lfiBIH','bindTemplate','234297SiIMLB','255291oloQnM','focusCycler','8962932cMZLsT','createCollection','56bPNuJr','290675ezOBIO','div','310RZwPjo','1524akGvdL','376JZxtSW','focusTracker','4160930typpZz','forwardCycle','fire','getFocusableElement','5033084cJhlyw','true'];_0x5c8a=function(){return _0x454476;};return _0x5c8a();}var _0x4cfbee=_0x4724;(function(_0xf06cf0,_0x48ea09){var _0x4fccf5=_0x4724,_0x206c51=_0xf06cf0();while(!![]){try{var _0x4873f3=-parseInt(_0x4fccf5(0xfa))/0x1*(parseInt(_0x4fccf5(0xef))/0x2)+-parseInt(_0x4fccf5(0xf2))/0x3*(-parseInt(_0x4fccf5(0xf6))/0x4)+-parseInt(_0x4fccf5(0xfd))/0x5+parseInt(_0x4fccf5(0xf4))/0x6+parseInt(_0x4fccf5(0xed))/0x7+-parseInt(_0x4fccf5(0xfb))/0x8*(parseInt(_0x4fccf5(0xf1))/0x9)+parseInt(_0x4fccf5(0xf9))/0xa*(parseInt(_0x4fccf5(0xf7))/0xb);if(_0x4873f3===_0x48ea09)break;else _0x206c51['push'](_0x206c51['shift']());}catch(_0x1793c6){_0x206c51['push'](_0x206c51['shift']());}}}(_0x5c8a,0xc66fa));import{FocusTracker as _0x254af4}from'ckeditor5/src/utils.js';function _0x4724(_0xe2ceb3,_0xab4c56){var _0x5c8aea=_0x5c8a();return _0x4724=function(_0x472421,_0x486386){_0x472421=_0x472421-0xeb;var _0x520183=_0x5c8aea[_0x472421];return _0x520183;},_0x4724(_0xe2ceb3,_0xab4c56);}import{View as _0x59a431,FocusCycler as _0x5869fc}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x59a431{[_0x4cfbee(0xfc)];[_0x4cfbee(0xf3)];constructor(_0x559f97){var _0x140518=_0x4cfbee;super(_0x559f97),this[_0x140518(0xfc)]=new _0x254af4(),this[_0x140518(0xf3)]=new _0x5869fc({'focusables':this[_0x140518(0xf5)](),'focusTracker':this[_0x140518(0xfc)]});}[_0x4cfbee(0xec)](){var _0x1c678b=_0x4cfbee;return{'tag':_0x1c678b(0xf8),'attributes':{'aria-hidden':_0x1c678b(0xee),'tabindex':'0'},'on':{'focus':this[_0x1c678b(0xf0)]['to'](()=>{var _0xea867d=_0x1c678b;this[_0xea867d(0xf3)][_0xea867d(0xeb)](_0xea867d(0xfe));})}};}}
23
+ var _0x3ab8fe=_0x1a48;function _0x1a48(_0x15dc97,_0x4cafbf){var _0xd56af6=_0xd56a();return _0x1a48=function(_0x1a4811,_0x10bffa){_0x1a4811=_0x1a4811-0x1c5;var _0x3973c4=_0xd56af6[_0x1a4811];return _0x3973c4;},_0x1a48(_0x15dc97,_0x4cafbf);}(function(_0x22bfbe,_0x4672ce){var _0x27a44f=_0x1a48,_0x3c0f08=_0x22bfbe();while(!![]){try{var _0x4c567b=-parseInt(_0x27a44f(0x1d5))/0x1+parseInt(_0x27a44f(0x1d7))/0x2+-parseInt(_0x27a44f(0x1ce))/0x3+parseInt(_0x27a44f(0x1d3))/0x4*(parseInt(_0x27a44f(0x1d4))/0x5)+parseInt(_0x27a44f(0x1c9))/0x6*(parseInt(_0x27a44f(0x1cd))/0x7)+-parseInt(_0x27a44f(0x1c5))/0x8*(parseInt(_0x27a44f(0x1d6))/0x9)+-parseInt(_0x27a44f(0x1d8))/0xa*(-parseInt(_0x27a44f(0x1cc))/0xb);if(_0x4c567b===_0x4672ce)break;else _0x3c0f08['push'](_0x3c0f08['shift']());}catch(_0xd2e664){_0x3c0f08['push'](_0x3c0f08['shift']());}}}(_0xd56a,0xeb5f2));import{FocusTracker as _0x4c9102}from'ckeditor5/src/utils.js';import{View as _0x1c51cd,FocusCycler as _0x337d99}from'ckeditor5/src/ui.js';function _0xd56a(){var _0x183291=['2937152jChURj','10elZfzr','272kofEsR','true','forwardCycle','fire','1128qBTIXs','div','createCollection','18804533DJYyDV','17906ZoYLlQ','5240628ucQjNo','focusTracker','getFocusableElement','focusCycler','bindTemplate','2908uJonjv','5415gQSXCi','892200vyMbfs','223191XmHGwf'];_0xd56a=function(){return _0x183291;};return _0xd56a();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1c51cd{[_0x3ab8fe(0x1cf)];[_0x3ab8fe(0x1d1)];constructor(_0x4ce49e){var _0x245b51=_0x3ab8fe;super(_0x4ce49e),this[_0x245b51(0x1cf)]=new _0x4c9102(),this[_0x245b51(0x1d1)]=new _0x337d99({'focusables':this[_0x245b51(0x1cb)](),'focusTracker':this[_0x245b51(0x1cf)]});}[_0x3ab8fe(0x1d0)](){var _0x4acb00=_0x3ab8fe;return{'tag':_0x4acb00(0x1ca),'attributes':{'aria-hidden':_0x4acb00(0x1c6),'tabindex':'0'},'on':{'focus':this[_0x4acb00(0x1d2)]['to'](()=>{var _0x39f517=_0x4acb00;this[_0x39f517(0x1d1)][_0x39f517(0x1c8)](_0x39f517(0x1c7));})}};}}