@stlite/desktop 0.76.1 → 0.76.3

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 (67) hide show
  1. package/bin/dump_artifacts.js +30 -30
  2. package/build/assets/{FileDownload.esm--KUF2yhQ.js → FileDownload.esm-BIJCW18t.js} +1 -1
  3. package/build/assets/{FormClearHelper-D3yotkXf.js → FormClearHelper-9eaBETaU.js} +1 -1
  4. package/build/assets/{Hooks-rnMPF1_I.js → Hooks-BNfoYvra.js} +1 -1
  5. package/build/assets/{InputInstructions-D1xaOoA_.js → InputInstructions-C-ODKekf.js} +1 -1
  6. package/build/assets/{ProgressBar-TrtX1yYk.js → ProgressBar-556DCe2G.js} +1 -1
  7. package/build/assets/{RenderInPortalIfExists-F44RH20T.js → RenderInPortalIfExists-CUkPZKNv.js} +1 -1
  8. package/build/assets/{Toolbar-CfaA32cH.js → Toolbar-CTzbm8jh.js} +1 -1
  9. package/build/assets/{base-input-Bvc5b-2K.js → base-input-Dtkz4-6L.js} +1 -1
  10. package/build/assets/{createSuper-CxJ5Qet3.js → createSuper-DEEzb3jl.js} +1 -1
  11. package/build/assets/{data-grid-overlay-editor-Bhwq6yq9.js → data-grid-overlay-editor-DPoQdFTw.js} +1 -1
  12. package/build/assets/{downloader-Lbha8Mka.js → downloader-ByyRLqH8.js} +1 -1
  13. package/build/assets/{es6-CJjM6kbP.js → es6-DuFilFNR.js} +2 -2
  14. package/build/assets/{getPrototypeOf-Do3gT2Di.js → getPrototypeOf-CddPd8GH.js} +1 -1
  15. package/build/assets/{iframeResizer.contentWindow-DknzVf8U.js → iframeResizer.contentWindow-WXhkpkLh.js} +1 -1
  16. package/build/assets/{index-EOIuoj4I.js → index-B-xJO1Ho.js} +45 -45
  17. package/build/assets/{index-Dzngiwb-.js → index-B7jeBG3I.js} +1 -1
  18. package/build/assets/{index-hQJE4Hk3.js → index-BM1ZT3Ff.js} +1 -1
  19. package/build/assets/{index-BJ35Ra3B.js → index-BVYH87rb.js} +1 -1
  20. package/build/assets/{index-DUrta3it.js → index-BYNFhnUr.js} +1 -1
  21. package/build/assets/{index-3jxc0CXG.js → index-BcOJcuIY.js} +1 -1
  22. package/build/assets/{index-BZtVxUC0.js → index-BhoRIEB3.js} +1 -1
  23. package/build/assets/{index-0dVGR9fp.js → index-Bi-U93sQ.js} +1 -1
  24. package/build/assets/{index-TNhAYJaK.js → index-BjuVmbek.js} +1 -1
  25. package/build/assets/{index-ohl-VCS7.js → index-C3tRfgPv.js} +1 -1
  26. package/build/assets/{index-KMQVOp6a.js → index-C6_T4XU6.js} +1 -1
  27. package/build/assets/{index-BewMEcPF.js → index-CBHc7z3n.js} +1 -1
  28. package/build/assets/{index-pzpBn5Mj.js → index-CEvXUeud.js} +1 -1
  29. package/build/assets/{index-BABCx9XF.js → index-CHFwO0AW.js} +1 -1
  30. package/build/assets/{index-DP9d5w-p.js → index-CLyeNt_C.js} +1 -1
  31. package/build/assets/{index-D_z1Z4Yp.js → index-ChjuSLOe.js} +1 -1
  32. package/build/assets/{index-bFKuAFZe.js → index-CoFiEMgW.js} +1 -1
  33. package/build/assets/{index-B9g0kqq9.js → index-CpMQR4wM.js} +1 -1
  34. package/build/assets/{index-Dtz56C3X.js → index-CpjZwpIx.js} +1 -1
  35. package/build/assets/{index-VISX5Zc0.js → index-Cq7Gc9v7.js} +1 -1
  36. package/build/assets/{index-DEVPgMwx.js → index-DDdOpIWs.js} +1 -1
  37. package/build/assets/{index-CKt_OoH9.js → index-DNTxN24q.js} +1 -1
  38. package/build/assets/{index-j0a753Nr.js → index-DTaHLfXk.js} +1 -1
  39. package/build/assets/{index-VlvN4Fc-.js → index-D_klJm3B.js} +1 -1
  40. package/build/assets/{index-CKkCIAau.js → index-De3JC6IK.js} +1 -1
  41. package/build/assets/{index-B_-cqmHC.js → index-DegiiTk-.js} +1 -1
  42. package/build/assets/{index-DGh7Hb6h.js → index-DjD7cT7O.js} +1 -1
  43. package/build/assets/{index-C7BdVmrL.js → index-Dk9XWjMr.js} +1 -1
  44. package/build/assets/{index-Bf-WIrdq.js → index-HPV1LTrz.js} +1 -1
  45. package/build/assets/{index-Dv0Prv3W.js → index-MeAdQQio.js} +1 -1
  46. package/build/assets/{index-DBwYfcOH.js → index-PUIfv8RQ.js} +1 -1
  47. package/build/assets/{index-CMbTUrxn.js → index-Q8BeOtD9.js} +5 -5
  48. package/build/assets/{index-DQW8WX8T.js → index-TIt04xnQ.js} +1 -1
  49. package/build/assets/{index-CQKm6Iu1.js → index-V2cMT1WJ.js} +1 -1
  50. package/build/assets/{index-Dr_f2tyR.js → index-m3gyit8Q.js} +1 -1
  51. package/build/assets/{index-BHhK2I00.js → index-xBvoLAr1.js} +1 -1
  52. package/build/assets/{index-CXJQYh7L.js → index-y4Hom3N9.js} +1 -1
  53. package/build/assets/{input-5A8NzOK5.js → input-CR_-e9gB.js} +1 -1
  54. package/build/assets/{memory-B_asHZdO.js → memory-VreDnN7X.js} +1 -1
  55. package/build/assets/{number-overlay-editor-DH7XBeu0.js → number-overlay-editor-BRKoTj3K.js} +1 -1
  56. package/build/assets/{sandbox-D_C1UB9w.js → sandbox-BESdsCEV.js} +1 -1
  57. package/build/assets/{slicedToArray-DPmPM4Il.js → slicedToArray-DFtVT9Ta.js} +1 -1
  58. package/build/assets/{textarea-D5BngIZU.js → textarea-zpR5l8uh.js} +1 -1
  59. package/build/assets/{timepicker-DDIjFLFG.js → timepicker-CBUeK5RX.js} +1 -1
  60. package/build/assets/{uniqueId-CI1tp1qG.js → uniqueId-DHqXS3LS.js} +1 -1
  61. package/build/assets/{useBasicWidgetState-C9ZYeVU1.js → useBasicWidgetState-H1nJNjQy.js} +1 -1
  62. package/build/assets/{useOnInputChange-7prOUvRG.js → useOnInputChange-D46JoCXj.js} +1 -1
  63. package/build/assets/{withFullScreenWrapper-B9gGgkei.js → withFullScreenWrapper--g6uY0Wf.js} +1 -1
  64. package/build/electron/worker.js +11 -12
  65. package/build/index.html +1 -1
  66. package/package.json +7 -8
  67. package/wheels/streamlit-1.41.0-cp312-none-any.whl +0 -0
@@ -1,3 +1,3 @@
1
- import{bs as Pe,c0 as Ce,c1 as Ie,c2 as we,c3 as Ee,c4 as Te,bF as De,b2 as xe,bk as Re,c5 as _e,bG as $e,aA as ke,r as P,c6 as Be,c as Me,B as R,M as ze,br as Ne,j as S,a_ as Ae,a$ as Le,bc as Fe,b0 as We,aK as Ze}from"./index-EOIuoj4I.js";import{a as Ve}from"./useBasicWidgetState-C9ZYeVU1.js";import{T as He}from"./timepicker-DDIjFLFG.js";import"./FormClearHelper-D3yotkXf.js";import"./getPrototypeOf-Do3gT2Di.js";import"./createSuper-CxJ5Qet3.js";var Ue=Pe.Consumer;const Je=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:Ue,ThemeProvider:Ce,createThemedStyled:Ie,createThemedUseStyletron:we,createThemedWithStyle:Ee,expandBorderStyles:Te,hexToRgb:De,styled:xe,useStyletron:Re,withStyle:_e,withWrapper:$e},Symbol.toStringTag,{value:"Module"}));var d={};const _=ke(Je);var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.STATE_CHANGE_TYPE=g.SIZE=g.ENHANCER_POSITION=g.CUSTOM_INPUT_TYPE=g.ADJOINED=void 0;var Ge={change:"change"};g.STATE_CHANGE_TYPE=Ge;var Ye={textarea:"textarea"};g.CUSTOM_INPUT_TYPE=Ye;var qe={none:"none",left:"left",right:"right",both:"both"};g.ADJOINED=qe;var Ke={mini:"mini",default:"default",compact:"compact",large:"large"};g.SIZE=Ke;var Xe={start:"start",end:"end"};g.ENHANCER_POSITION=Xe;var E={},y={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.default=te;function k(e){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(e)}function te(e){e=e||{};for(var t=arguments.length<=1?0:arguments.length-1,r,o,n=0;n<t;n++){r=(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])||{};for(var i in r)k(r[i])!==void 0&&(o=r[i],Qe(o)?e[i]=te(e[i]||Array.isArray(o)&&[]||{},o):e[i]=o)}return e}function Qe(e){return Array.isArray(e)||{}.toString.call(e)=="[object Object]"}Object.defineProperty(y,"__esModule",{value:!0}),y.getOverride=ae,y.getOverrideProps=z,y.getOverrides=le,y.mergeConfigurationOverrides=A,y.mergeOverride=ue,y.mergeOverrides=ot,y.toObjectOverride=N,y.useOverrides=nt;var B=tt(P),re=Be,oe=et($);function et(e){return e.__esModule?e:{default:e}}function ne(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ne=function(o){return o?r:t})(e)}function tt(e,t){if(e&&e.__esModule)return e;if(e===null||v(e)!=="object"&&typeof e!="function")return{default:e};var r=ne(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},M.apply(this,arguments)}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(o){rt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(e)}function ae(e){return(0,re.isValidElementType)(e)?e:e&&v(e)==="object"?e.component:e}function z(e){return e&&v(e)==="object"?v(e.props)==="object"?C(C({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function N(e){return(0,re.isValidElementType)(e)?{component:e}:e||{}}function le(e,t){var r=ae(e)||t;if(e&&v(e)==="object"&&typeof e.props=="function"){var o=B.forwardRef(function(i,a){var c=e.props(i),s=z(C(C({},e),{},{props:c}));return B.createElement(r,M({ref:a},s))});return o.displayName=r.displayName,[o,{}]}var n=z(e);return[r,n]}function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e,t),o=Object.keys(r);return o.reduce(function(n,i){return n[i]=ue(N(e[i]),N(t[i])),n},{})}function ue(e,t){var r=C(C({},e),t);return e.props&&t.props&&(r.props=A(e.props,t.props)),e.style&&t.style&&(r.style=A(e.style,t.style)),r}function A(e,t){return v(e)==="object"&&v(t)==="object"?(0,oe.default)({},e,t):function(){return(0,oe.default)({},typeof e=="function"?e.apply(void 0,arguments):e,typeof t=="function"?t.apply(void 0,arguments):t)}}function nt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(function(){return Object.keys(e).reduce(function(r,o){return r[o]=le(t[o],e[o]),r},{})},[t])}var T={},I={};Object.defineProperty(I,"__esModule",{value:!0}),I.Svg=void 0,I.getSvgStyles=se;var it=_;function se(e){var t=e.$theme,r=e.$size,o=e.$color,n=t.sizing.scale600;r&&(t.sizing[r]?n=t.sizing[r]:typeof r=="number"?n="".concat(r,"px"):n=r);var i="currentColor";return o&&(t.colors[o]?i=t.colors[o]:i=o),{display:"inline-block",fill:i,color:i,height:n,width:n}}var L=(0,it.styled)("svg",se);I.Svg=L,L.displayName="Svg",L.displayName="Svg";var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=at;function at(e){var t={};for(var r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function W(e){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(e)}Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var Z=dt(P),lt=y,ut=I,ce=ct(F),st=["children","title","size","color","overrides"];function ct(e){return e.__esModule?e:{default:e}}function de(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(de=function(o){return o?r:t})(e)}function dt(e,t){if(e&&e.__esModule)return e;if(e===null||W(e)!=="object"&&typeof e!="function")return{default:e};var r=de(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},V.apply(this,arguments)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pe(Object(r),!0).forEach(function(o){pt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){return mt(e)||yt(e,t)||bt(e,t)||gt()}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{bs as Pe,c0 as Ce,c1 as Ie,c2 as we,c3 as Ee,c4 as Te,bF as De,b2 as xe,bk as Re,c5 as _e,bG as $e,aA as ke,r as P,c6 as Be,c as Me,B as R,M as ze,br as Ne,j as S,a_ as Ae,a$ as Le,bc as Fe,b0 as We,aK as Ze}from"./index-B-xJO1Ho.js";import{a as Ve}from"./useBasicWidgetState-H1nJNjQy.js";import{T as He}from"./timepicker-CBUeK5RX.js";import"./FormClearHelper-9eaBETaU.js";import"./getPrototypeOf-CddPd8GH.js";import"./createSuper-DEEzb3jl.js";var Ue=Pe.Consumer;const Je=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:Ue,ThemeProvider:Ce,createThemedStyled:Ie,createThemedUseStyletron:we,createThemedWithStyle:Ee,expandBorderStyles:Te,hexToRgb:De,styled:xe,useStyletron:Re,withStyle:_e,withWrapper:$e},Symbol.toStringTag,{value:"Module"}));var d={};const _=ke(Je);var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.STATE_CHANGE_TYPE=g.SIZE=g.ENHANCER_POSITION=g.CUSTOM_INPUT_TYPE=g.ADJOINED=void 0;var Ge={change:"change"};g.STATE_CHANGE_TYPE=Ge;var Ye={textarea:"textarea"};g.CUSTOM_INPUT_TYPE=Ye;var qe={none:"none",left:"left",right:"right",both:"both"};g.ADJOINED=qe;var Ke={mini:"mini",default:"default",compact:"compact",large:"large"};g.SIZE=Ke;var Xe={start:"start",end:"end"};g.ENHANCER_POSITION=Xe;var E={},y={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.default=te;function k(e){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(e)}function te(e){e=e||{};for(var t=arguments.length<=1?0:arguments.length-1,r,o,n=0;n<t;n++){r=(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])||{};for(var i in r)k(r[i])!==void 0&&(o=r[i],Qe(o)?e[i]=te(e[i]||Array.isArray(o)&&[]||{},o):e[i]=o)}return e}function Qe(e){return Array.isArray(e)||{}.toString.call(e)=="[object Object]"}Object.defineProperty(y,"__esModule",{value:!0}),y.getOverride=ae,y.getOverrideProps=z,y.getOverrides=le,y.mergeConfigurationOverrides=A,y.mergeOverride=ue,y.mergeOverrides=ot,y.toObjectOverride=N,y.useOverrides=nt;var B=tt(P),re=Be,oe=et($);function et(e){return e.__esModule?e:{default:e}}function ne(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ne=function(o){return o?r:t})(e)}function tt(e,t){if(e&&e.__esModule)return e;if(e===null||v(e)!=="object"&&typeof e!="function")return{default:e};var r=ne(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},M.apply(this,arguments)}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(o){rt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(e)}function ae(e){return(0,re.isValidElementType)(e)?e:e&&v(e)==="object"?e.component:e}function z(e){return e&&v(e)==="object"?v(e.props)==="object"?C(C({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function N(e){return(0,re.isValidElementType)(e)?{component:e}:e||{}}function le(e,t){var r=ae(e)||t;if(e&&v(e)==="object"&&typeof e.props=="function"){var o=B.forwardRef(function(i,a){var c=e.props(i),s=z(C(C({},e),{},{props:c}));return B.createElement(r,M({ref:a},s))});return o.displayName=r.displayName,[o,{}]}var n=z(e);return[r,n]}function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e,t),o=Object.keys(r);return o.reduce(function(n,i){return n[i]=ue(N(e[i]),N(t[i])),n},{})}function ue(e,t){var r=C(C({},e),t);return e.props&&t.props&&(r.props=A(e.props,t.props)),e.style&&t.style&&(r.style=A(e.style,t.style)),r}function A(e,t){return v(e)==="object"&&v(t)==="object"?(0,oe.default)({},e,t):function(){return(0,oe.default)({},typeof e=="function"?e.apply(void 0,arguments):e,typeof t=="function"?t.apply(void 0,arguments):t)}}function nt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(function(){return Object.keys(e).reduce(function(r,o){return r[o]=le(t[o],e[o]),r},{})},[t])}var T={},I={};Object.defineProperty(I,"__esModule",{value:!0}),I.Svg=void 0,I.getSvgStyles=se;var it=_;function se(e){var t=e.$theme,r=e.$size,o=e.$color,n=t.sizing.scale600;r&&(t.sizing[r]?n=t.sizing[r]:typeof r=="number"?n="".concat(r,"px"):n=r);var i="currentColor";return o&&(t.colors[o]?i=t.colors[o]:i=o),{display:"inline-block",fill:i,color:i,height:n,width:n}}var L=(0,it.styled)("svg",se);I.Svg=L,L.displayName="Svg",L.displayName="Svg";var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=at;function at(e){var t={};for(var r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function W(e){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(e)}Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var Z=dt(P),lt=y,ut=I,ce=ct(F),st=["children","title","size","color","overrides"];function ct(e){return e.__esModule?e:{default:e}}function de(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(de=function(o){return o?r:t})(e)}function dt(e,t){if(e&&e.__esModule)return e;if(e===null||W(e)!=="object"&&typeof e!="function")return{default:e};var r=de(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},V.apply(this,arguments)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pe(Object(r),!0).forEach(function(o){pt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){return mt(e)||yt(e,t)||bt(e,t)||gt()}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(e,t){if(e){if(typeof e=="string")return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fe(e,t)}}function fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function yt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,i=!1,a,c;try{for(r=r.call(e);!(n=(a=r.next()).done)&&(o.push(a.value),!(t&&o.length===t));n=!0);}catch(s){i=!0,c=s}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw c}}return o}}function mt(e){if(Array.isArray(e))return e}function vt(e,t){if(e==null)return{};var r=ht(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function ht(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var Ot=function(e,t){var r=e.children,o=e.title,n=e.size,i=e.color,a=e.overrides,c=a===void 0?{}:a,s=vt(e,st),l=(0,lt.getOverrides)(c.Svg,ut.Svg),f=ft(l,2),m=f[0],h=f[1],O=m.__STYLETRON__?D(D({title:o,$color:i,$size:n},s),h):D(D({title:o,color:i,size:n},(0,ce.default)(s)),(0,ce.default)(h));return Z.createElement(m,V({"data-baseweb":"icon",ref:t},O),o?Z.createElement("title",null,o):null,r)},St=Z.forwardRef(Ot);T.default=St;function H(e){"@babel/helpers - typeof";return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var U=wt(P),jt=_,ge=y,Pt=It(T),Ct=["title","size","color","overrides"];function It(e){return e.__esModule?e:{default:e}}function be(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(be=function(o){return o?r:t})(e)}function wt(e,t){if(e&&e.__esModule)return e;if(e===null||H(e)!=="object"&&typeof e!="function")return{default:e};var r=be(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},J.apply(this,arguments)}function Et(e,t){if(e==null)return{};var r=Tt(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function Tt(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Dt(e,t){return $t(e)||_t(e,t)||Rt(e,t)||xt()}function xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(e,t){if(e){if(typeof e=="string")return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}}function ye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function _t(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,i=!1,a,c;try{for(r=r.call(e);!(n=(a=r.next()).done)&&(o.push(a.value),!(t&&o.length===t));n=!0);}catch(s){i=!0,c=s}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw c}}return o}}function $t(e){if(Array.isArray(e))return e}function kt(e,t){var r=(0,jt.useStyletron)(),o=Dt(r,2),n=o[1],i=e.title,a=i===void 0?"Delete Alt":i,c=e.size,s=e.color,l=e.overrides,f=l===void 0?{}:l,m=Et(e,Ct),h=(0,ge.mergeOverride)({component:n.icons&&n.icons.DeleteAlt?n.icons.DeleteAlt:null},f&&f.Svg?(0,ge.toObjectOverride)(f.Svg):{});return U.createElement(Pt.default,J({viewBox:"0 0 24 24",ref:t,title:a,size:c,color:s,overrides:{Svg:h}},m),U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var Bt=U.forwardRef(kt);E.default=Bt,Object.defineProperty(d,"__esModule",{value:!0}),d.getRootStyles=d.getInputStyles=d.getInputContainerStyles=d.StyledMaskToggleButton=d.StyledClearIconContainer=ve=d.StyledClearIcon=d.Root=d.InputEnhancer=d.InputContainer=d.Input=void 0;var j=_,u=g,Mt=zt(E);function zt(e){return e.__esModule?e:{default:e}}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?me(Object(r),!0).forEach(function(o){p(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G=(0,j.styled)("button",function(e){var t,r=e.$theme,o=e.$size,n=e.$isFocusVisible,i=(t={},p(t,u.SIZE.mini,r.sizing.scale400),p(t,u.SIZE.compact,r.sizing.scale400),p(t,u.SIZE.default,r.sizing.scale300),p(t,u.SIZE.large,r.sizing.scale200),t)[o];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:i,paddingRight:i,outline:n?"solid 3px ".concat(r.colors.accent):"none",color:r.colors.contentPrimary}});d.StyledMaskToggleButton=G,G.displayName="StyledMaskToggleButton",G.displayName="StyledMaskToggleButton";var Y=(0,j.styled)("div",function(e){var t,r=e.$alignTop,o=r===void 0?!1:r,n=e.$size,i=e.$theme,a=(t={},p(t,u.SIZE.mini,i.sizing.scale200),p(t,u.SIZE.compact,i.sizing.scale200),p(t,u.SIZE.default,i.sizing.scale100),p(t,u.SIZE.large,i.sizing.scale0),t)[n];return{display:"flex",alignItems:o?"flex-start":"center",paddingLeft:a,paddingRight:a,paddingTop:o?i.sizing.scale500:"0px",color:i.colors.contentPrimary}});d.StyledClearIconContainer=Y,Y.displayName="StyledClearIconContainer",Y.displayName="StyledClearIconContainer";var q=(0,j.styled)(Mt.default,function(e){var t=e.$theme,r=e.$isFocusVisible;return{cursor:"pointer",outline:r?"solid 3px ".concat(t.colors.accent):"none"}}),ve=d.StyledClearIcon=q;q.displayName="StyledClearIcon",q.displayName="StyledClearIcon";function Nt(e,t){var r;return(r={},p(r,u.SIZE.mini,{paddingTop:t.scale100,paddingBottom:t.scale100,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.compact,{paddingTop:t.scale200,paddingBottom:t.scale200,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.default,{paddingTop:t.scale400,paddingBottom:t.scale400,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.large,{paddingTop:t.scale550,paddingBottom:t.scale550,paddingLeft:t.scale550,paddingRight:t.scale550}),r)[e]}function At(e,t,r,o,n){var i=e===u.ADJOINED.both||e===u.ADJOINED.left&&o!=="rtl"||e===u.ADJOINED.right&&o==="rtl"||n&&o==="rtl",a=e===u.ADJOINED.both||e===u.ADJOINED.right&&o!=="rtl"||e===u.ADJOINED.left&&o==="rtl"||n&&o!=="rtl";return{paddingLeft:i?r.scale550:"0px",paddingRight:a?r.scale550:"0px"}}function x(e,t){var r;return(r={},p(r,u.SIZE.mini,t.font100),p(r,u.SIZE.compact,t.font200),p(r,u.SIZE.default,t.font300),p(r,u.SIZE.large,t.font400),r)[e]}function Lt(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:n.inputFillDisabled,borderRightColor:n.inputFillDisabled,borderTopColor:n.inputFillDisabled,borderBottomColor:n.inputFillDisabled,backgroundColor:n.inputFillDisabled}:t?{borderLeftColor:n.borderSelected,borderRightColor:n.borderSelected,borderTopColor:n.borderSelected,borderBottomColor:n.borderSelected,backgroundColor:n.inputFillActive}:r?{borderLeftColor:n.inputBorderError,borderRightColor:n.inputBorderError,borderTopColor:n.inputBorderError,borderBottomColor:n.inputBorderError,backgroundColor:n.inputFillError}:o?{borderLeftColor:n.inputBorderPositive,borderRightColor:n.inputBorderPositive,borderTopColor:n.inputBorderPositive,borderBottomColor:n.inputBorderPositive,backgroundColor:n.inputFillPositive}:{borderLeftColor:n.inputBorder,borderRightColor:n.inputBorder,borderTopColor:n.inputBorder,borderBottomColor:n.inputBorder,backgroundColor:n.inputFill}}function Ft(e,t){var r=t.inputBorderRadius;return e===u.SIZE.mini&&(r=t.inputBorderRadiusMini),{borderTopLeftRadius:r,borderBottomLeftRadius:r,borderTopRightRadius:r,borderBottomRightRadius:r}}var he=function(e){var t=e.$isFocused,r=e.$adjoined,o=e.$error,n=e.$disabled,i=e.$positive,a=e.$size,c=e.$theme,s=e.$theme,l=s.borders,f=s.colors,m=s.sizing,h=s.typography,O=s.animation,w=e.$hasIconTrailing;return b(b(b(b({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:O.timing200,transitionTimingFunction:O.easeOutCurve},Ft(a,l)),x(a,h)),Lt(n,t,o,i,f)),At(r,a,m,c.direction,w))};d.getRootStyles=he;var K=(0,j.styled)("div",he);d.Root=K,K.displayName="Root",K.displayName="Root";function Wt(e,t){var r;return(r={},p(r,u.SIZE.mini,{paddingRight:t.scale400,paddingLeft:t.scale400}),p(r,u.SIZE.compact,{paddingRight:t.scale400,paddingLeft:t.scale400}),p(r,u.SIZE.default,{paddingRight:t.scale300,paddingLeft:t.scale300}),p(r,u.SIZE.large,{paddingRight:t.scale200,paddingLeft:t.scale200}),r)[e]}function Zt(e,t,r,o,n){return e?{color:n.inputEnhancerTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var X=(0,j.styled)("div",function(e){var t=e.$size,r=e.$disabled,o=e.$isFocused,n=e.$error,i=e.$positive,a=e.$theme,c=a.colors,s=a.sizing,l=a.typography,f=a.animation;return b(b(b({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:f.timing200,transitionTimingFunction:f.easeOutCurve},x(t,l)),Wt(t,s)),Zt(r,o,n,i,c))});d.InputEnhancer=X,X.displayName="InputEnhancer",X.displayName="InputEnhancer";function Vt(e,t,r,o,n){return e?{color:n.inputTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var Oe=function(e){var t=e.$isFocused,r=e.$error,o=e.$disabled,n=e.$positive,i=e.$size,a=e.$theme,c=a.colors,s=a.typography,l=a.animation;return b(b({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:l.timing200,transitionTimingFunction:l.easeOutCurve},x(i,s)),Vt(o,t,r,n,c))};d.getInputContainerStyles=Oe;var Q=(0,j.styled)("div",Oe);d.InputContainer=Q,Q.displayName="InputContainer",Q.displayName="InputContainer";function Ht(e,t,r,o){return e?{color:o.inputTextDisabled,"-webkit-text-fill-color":o.inputTextDisabled,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholderDisabled}}:{color:o.contentPrimary,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholder}}}var Se=function(e){var t=e.$disabled,r=e.$isFocused,o=e.$error,n=e.$size,i=e.$theme,a=i.colors,c=i.sizing,s=i.typography;return b(b(b({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:t?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},x(n,s)),Nt(n,c)),Ht(t,r,o,a))};d.getInputStyles=Se;var ee=(0,j.styled)("input",Se);d.Input=ee,ee.displayName="Input",ee.displayName="Input";const Ut=Me("div",{target:"e1ipygm10"})({name:"1ucqwki",styles:"position:absolute;top:50%;right:2.05em"});function Jt({disabled:e,element:t,widgetMgr:r,width:o,fragmentId:n}){var O;const[i,a]=Ve({getStateFromWidgetMgr:Gt,getDefaultStateFromProto:Yt,getCurrStateFromProto:qt,updateWidgetMgrState:Kt,element:t,widgetMgr:r,fragmentId:n}),c=R(t.default)&&!e,s={width:o},l=ze(),f={Select:{props:{disabled:e,overrides:{ControlContainer:{style:{height:l.sizes.minElementHeight,borderLeftWidth:l.sizes.borderWidth,borderRightWidth:l.sizes.borderWidth,borderTopWidth:l.sizes.borderWidth,borderBottomWidth:l.sizes.borderWidth}},IconsContainer:{style:()=>({paddingRight:l.spacing.sm})},ValueContainer:{style:()=>({lineHeight:l.lineHeights.inputWidget,paddingRight:l.spacing.sm,paddingLeft:l.spacing.sm,paddingBottom:l.spacing.sm,paddingTop:l.spacing.sm})},SingleValue:{props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:l.spacing.none,paddingBottom:l.spacing.none})},DropdownListItem:{style:()=>({paddingRight:l.spacing.lg,paddingLeft:l.spacing.lg,paddingTop:l.spacing.sm,paddingBottom:l.spacing.sm})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:l.spacing.px})}}}},SelectArrow:{component:Ne,props:{overrides:{Svg:{style:()=>({width:l.iconSizes.xl,height:l.iconSizes.xl})}}}}}}}},m=P.useCallback(w=>{const je=w===null?null:Xt(w);a({value:je,fromUi:!0})},[a]),h=P.useCallback(()=>{m(null)},[m]);return S.jsxs("div",{className:"stTimeInput","data-testid":"stTimeInput",style:s,children:[S.jsx(Ae,{label:t.label,disabled:e,labelVisibility:Le((O=t.labelVisibility)==null?void 0:O.value),children:t.help&&S.jsx(Fe,{children:S.jsx(We,{content:t.help,placement:Ze.TOP_RIGHT})})}),S.jsx(He,{format:"24",step:t.step?Number(t.step):900,value:R(i)?void 0:Qt(i),onChange:m,overrides:f,nullable:c,creatable:!0,"aria-label":t.label}),c&&!R(i)&&S.jsx(Ut,{onClick:h,"data-testid":"stTimeInputClearButton",children:S.jsx(ve,{overrides:{Svg:{style:{color:l.colors.darkGray,padding:l.spacing.threeXS,height:l.sizes.clearIconSize,width:l.sizes.clearIconSize,":hover":{fill:l.colors.bodyText}}}},$isFocusVisible:!1})})]})}function Gt(e,t){return e.getStringValue(t)??null}function Yt(e){return e.default??null}function qt(e){return e.value??null}function Kt(e,t,r,o){t.setStringValue(e,r.value,{fromUi:r.fromUi},o)}function Xt(e){const t=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return`${t}:${r}`}function Qt(e){if(e===null)return null;const[t,r]=e.split(":").map(Number),o=new Date;return o.setHours(t),o.setMinutes(r),o}const er=P.memo(Jt);export{er as default};
@@ -1,4 +1,4 @@
1
- import{b2 as w,r as p,bd as ne,be as x,bf as R,M as ae,a5 as le,j as F,bg as ce,bh as se,Q as de,bi as ue,a$ as ge,a2 as be,b7 as pe,b0 as he,aK as me}from"./index-EOIuoj4I.js";import{a as fe}from"./useBasicWidgetState-C9ZYeVU1.js";import"./FormClearHelper-D3yotkXf.js";var T=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),ve=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,o)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(o){q(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e){var t=e.$disabled,r=e.$checked,o=e.$error,c=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.colors;return t?l.tickFillDisabled:r||c?"transparent":o?l.borderNegative:a?l.borderSelected:l.tickBorder}function ke(e){var t=e.$labelPlacement,r=t===void 0?"":t,o=e.$theme,c=o.sizing,n=c.scale300,a;switch(r){case"top":a="Bottom";break;case"bottom":a="Top";break;case"left":a="Right";break;default:case"right":a="Left";break}return o.direction==="rtl"&&a==="Left"?a="Right":o.direction==="rtl"&&a==="Right"&&(a="Left"),q({},"padding".concat(a),n)}function $e(e){var t=e.$disabled,r=e.$checked,o=e.$isIndeterminate,c=e.$error,n=e.$isHovered,a=e.$isActive,l=e.$theme,i=l.colors;return t?r||o?i.tickFillDisabled:i.tickFill:c&&(o||r)?a?i.tickFillErrorSelectedHoverActive:n?i.tickFillErrorSelectedHover:i.tickFillErrorSelected:c?a?i.tickFillErrorHoverActive:n?i.tickFillErrorHover:i.tickFillError:o||r?a?i.tickFillSelectedHoverActive:n?i.tickFillSelectedHover:i.tickFillSelected:a?i.tickFillActive:n?i.tickFillHover:i.tickFill}function we(e){var t=e.$disabled,r=e.$theme,o=r.colors;return t?o.contentSecondary:o.contentPrimary}var C=w("label",function(e){var t=e.$disabled,r=e.$labelPlacement;return{flexDirection:r==="top"||r==="bottom"?"column":"row",display:"flex",alignItems:r==="top"||r==="bottom"?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}});C.displayName="Root",C.displayName="Root";var M=w("span",function(e){var t=e.$checked,r=e.$disabled,o=e.$error,c=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.sizing,i=n.animation,s=r?n.colors.tickMarkFillDisabled:o?n.colors.tickMarkFillError:n.colors.tickMarkFill,k=encodeURIComponent(`
1
+ import{b2 as w,r as p,bd as ne,be as x,bf as R,M as ae,a5 as le,j as F,bg as ce,bh as se,Q as de,bi as ue,a$ as ge,a2 as be,b7 as pe,b0 as he,aK as me}from"./index-B-xJO1Ho.js";import{a as fe}from"./useBasicWidgetState-H1nJNjQy.js";import"./FormClearHelper-9eaBETaU.js";var T=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),ve=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,o)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(o){q(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e){var t=e.$disabled,r=e.$checked,o=e.$error,c=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.colors;return t?l.tickFillDisabled:r||c?"transparent":o?l.borderNegative:a?l.borderSelected:l.tickBorder}function ke(e){var t=e.$labelPlacement,r=t===void 0?"":t,o=e.$theme,c=o.sizing,n=c.scale300,a;switch(r){case"top":a="Bottom";break;case"bottom":a="Top";break;case"left":a="Right";break;default:case"right":a="Left";break}return o.direction==="rtl"&&a==="Left"?a="Right":o.direction==="rtl"&&a==="Right"&&(a="Left"),q({},"padding".concat(a),n)}function $e(e){var t=e.$disabled,r=e.$checked,o=e.$isIndeterminate,c=e.$error,n=e.$isHovered,a=e.$isActive,l=e.$theme,i=l.colors;return t?r||o?i.tickFillDisabled:i.tickFill:c&&(o||r)?a?i.tickFillErrorSelectedHoverActive:n?i.tickFillErrorSelectedHover:i.tickFillErrorSelected:c?a?i.tickFillErrorHoverActive:n?i.tickFillErrorHover:i.tickFillError:o||r?a?i.tickFillSelectedHoverActive:n?i.tickFillSelectedHover:i.tickFillSelected:a?i.tickFillActive:n?i.tickFillHover:i.tickFill}function we(e){var t=e.$disabled,r=e.$theme,o=r.colors;return t?o.contentSecondary:o.contentPrimary}var C=w("label",function(e){var t=e.$disabled,r=e.$labelPlacement;return{flexDirection:r==="top"||r==="bottom"?"column":"row",display:"flex",alignItems:r==="top"||r==="bottom"?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}});C.displayName="Root",C.displayName="Root";var M=w("span",function(e){var t=e.$checked,r=e.$disabled,o=e.$error,c=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.sizing,i=n.animation,s=r?n.colors.tickMarkFillDisabled:o?n.colors.tickMarkFillError:n.colors.tickMarkFill,k=encodeURIComponent(`
2
2
  <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M14 0.5H0V3.5H14V0.5Z" fill="`.concat(s,`"/>
4
4
  </svg>
@@ -1,2 +1,2 @@
1
- import{r as at,j as bt}from"./index-EOIuoj4I.js";/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ie,setPrototypeOf:le,isFrozen:Ge,getPrototypeOf:Ye,getOwnPropertyDescriptor:je}=Object;let{freeze:E,seal:b,create:ce}=Object,{apply:St,construct:Rt}=typeof Reflect<"u"&&Reflect;E||(E=function(r){return r}),b||(b=function(r){return r}),St||(St=function(r,o,l){return r.apply(o,l)}),Rt||(Rt=function(r,o){return new r(...o)});const it=A(Array.prototype.forEach),se=A(Array.prototype.pop),X=A(Array.prototype.push),lt=A(String.prototype.toLowerCase),wt=A(String.prototype.toString),ue=A(String.prototype.match),q=A(String.prototype.replace),Xe=A(String.prototype.indexOf),qe=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),$=$e(TypeError);function A(r){return function(o){for(var l=arguments.length,i=new Array(l>1?l-1:0),d=1;d<l;d++)i[d-1]=arguments[d];return St(r,o,i)}}function $e(r){return function(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];return Rt(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;le&&le(r,null);let i=o.length;for(;i--;){let d=o[i];if(typeof d=="string"){const h=l(d);h!==d&&(Ge(o)||(o[i]=h),d=h)}r[d]=!0}return r}function Ke(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function x(r){const o=ce(null);for(const[l,i]of ie(r))S(r,l)&&(Array.isArray(i)?o[l]=Ke(i):i&&typeof i=="object"&&i.constructor===Object?o[l]=x(i):o[l]=i);return o}function K(r,o){for(;r!==null;){const i=je(r,o);if(i){if(i.get)return A(i.get);if(typeof i.value=="function")return A(i.value)}r=Ye(r)}function l(){return null}return l}const me=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ve=E(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vt=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ze=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=E(["#text"]),fe=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dt=E(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ct=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Je=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qe=b(/<%[\w\W]*|[\w\W]*%>/gm),tn=b(/\${[\w\W]*}/gm),en=b(/^data-[\-\w.\u00B7-\uFFFF]/),nn=b(/^aria-[\-\w]+$/),ge=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=b(/^(?:\w+script|data):/i),rn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=b(/^html$/i),an=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Te=Object.freeze({__proto__:null,MUSTACHE_EXPR:Je,ERB_EXPR:Qe,TMPLIT_EXPR:tn,DATA_ATTR:en,ARIA_ATTR:nn,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:rn,DOCTYPE_NAME:he,CUSTOM_ELEMENT:an});const V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ln=function(){return typeof window>"u"?null:window},cn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const i="data-tt-policy-suffix";o&&o.hasAttribute(i)&&(l=o.getAttribute(i));const d="dompurify"+(l?"#"+l:"");try{return r.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function ye(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln();const o=t=>ye(t);if(o.version="3.1.7",o.removed=[],!r||!r.document||r.document.nodeType!==V.document)return o.isSupported=!1,o;let{document:l}=r;const i=l,d=i.currentScript,{DocumentFragment:h,HTMLTemplateElement:Z,Node:k,Element:xt,NodeFilter:z,NamedNodeMap:Ee=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:_e,DOMParser:Ae,trustedTypes:J}=r,W=xt.prototype,Ne=K(W,"cloneNode"),be=K(W,"remove"),Se=K(W,"nextSibling"),Re=K(W,"childNodes"),Q=K(W,"parentNode");if(typeof Z=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let T,B="";const{implementation:st,createNodeIterator:we,createDocumentFragment:Le,getElementsByTagName:Ce}=l,{importNode:ve}=i;let R={};o.isSupported=typeof ie=="function"&&typeof Q=="function"&&st&&st.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:mt,TMPLIT_EXPR:pt,DATA_ATTR:De,ARIA_ATTR:Oe,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:ke}=Te;let{IS_ALLOWED_URI:It}=Te,m=null;const Mt=a({},[...me,...Lt,...Ct,...vt,...pe]);let p=null;const Ut=a({},[...fe,...Dt,...de,...ct]);let s=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,ft=null,Pt=!0,dt=!0,Ht=!1,Ft=!0,I=!1,gt=!0,D=!1,ht=!1,Tt=!1,M=!1,tt=!1,et=!1,zt=!0,Wt=!1;const Ie="user-content-";let yt=!0,Y=!1,U={},P=null;const Bt=a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Yt=a({},["audio","video","img","source","image","track"]);let Et=null;const jt=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xhtml";let H=L,_t=!1,At=null;const Me=a({},[nt,ot,L],wt);let j=null;const Ue=["application/xhtml+xml","text/html"],Pe="text/html";let f=null,F=null;const He=l.createElement("form"),Xt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===t)){if((!t||typeof t!="object")&&(t={}),t=x(t),j=Ue.indexOf(t.PARSER_MEDIA_TYPE)===-1?Pe:t.PARSER_MEDIA_TYPE,f=j==="application/xhtml+xml"?wt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,f):Mt,p=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,f):Ut,At=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,wt):Me,Et=S(t,"ADD_URI_SAFE_ATTR")?a(x(jt),t.ADD_URI_SAFE_ATTR,f):jt,Gt=S(t,"ADD_DATA_URI_TAGS")?a(x(Yt),t.ADD_DATA_URI_TAGS,f):Yt,P=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,f):Bt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,f):{},ft=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,f):{},U=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Pt=t.ALLOW_ARIA_ATTR!==!1,dt=t.ALLOW_DATA_ATTR!==!1,Ht=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=t.SAFE_FOR_TEMPLATES||!1,gt=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,M=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,zt=t.SANITIZE_DOM!==!1,Wt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,It=t.ALLOWED_URI_REGEXP||ge,H=t.NAMESPACE||L,s=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(s.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(s.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(s.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),I&&(dt=!1),tt&&(M=!0),U&&(m=a({},pe),p=[],U.html===!0&&(a(m,me),a(p,fe)),U.svg===!0&&(a(m,Lt),a(p,Dt),a(p,ct)),U.svgFilters===!0&&(a(m,Ct),a(p,Dt),a(p,ct)),U.mathMl===!0&&(a(m,vt),a(p,de),a(p,ct))),t.ADD_TAGS&&(m===Mt&&(m=x(m)),a(m,t.ADD_TAGS,f)),t.ADD_ATTR&&(p===Ut&&(p=x(p)),a(p,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&a(Et,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(P===Bt&&(P=x(P)),a(P,t.FORBID_CONTENTS,f)),yt&&(m["#text"]=!0),D&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete G.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=t.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=cn(J,d)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));E&&E(t),F=t}},qt=a({},["mi","mo","mn","ms","mtext"]),$t=a({},["annotation-xml"]),Fe=a({},["title","style","font","a","script"]),Kt=a({},[...Lt,...Ct,...Ve]),Vt=a({},[...vt,...Ze]),ze=function(t){let n=Q(t);(!n||!n.tagName)&&(n={namespaceURI:H,tagName:"template"});const e=lt(t.tagName),c=lt(n.tagName);return At[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===L?e==="svg":n.namespaceURI===nt?e==="svg"&&(c==="annotation-xml"||qt[c]):!!Kt[e]:t.namespaceURI===nt?n.namespaceURI===L?e==="math":n.namespaceURI===ot?e==="math"&&$t[c]:!!Vt[e]:t.namespaceURI===L?n.namespaceURI===ot&&!$t[c]||n.namespaceURI===nt&&!qt[c]?!1:!Vt[e]&&(Fe[e]||!Kt[e]):!!(j==="application/xhtml+xml"&&At[t.namespaceURI]):!1},O=function(t){X(o.removed,{element:t});try{Q(t).removeChild(t)}catch{be(t)}},rt=function(t,n){try{X(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{X(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is"&&!p[t])if(M||tt)try{O(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Zt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const u=ue(t,/^[\r\n\t ]+/);e=u&&u[0]}j==="application/xhtml+xml"&&H===L&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const c=T?T.createHTML(t):t;if(H===L)try{n=new Ae().parseFromString(c,j)}catch{}if(!n||!n.documentElement){n=st.createDocument(H,"template",null);try{n.documentElement.innerHTML=_t?B:c}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),H===L?Ce.call(n,D?"html":"body")[0]:D?n.documentElement:g},Jt=function(t){return we.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Qt=function(t){return t instanceof _e&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Ee)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},te=function(t){return typeof k=="function"&&t instanceof k},C=function(t,n,e){R[t]&&it(R[t],c=>{c.call(o,n,e,F)})},ee=function(t){let n=null;if(C("beforeSanitizeElements",t,null),Qt(t))return O(t),!0;const e=f(t.nodeName);if(C("uponSanitizeElement",t,{tagName:e,allowedTags:m}),t.hasChildNodes()&&!te(t.firstElementChild)&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent)||t.nodeType===V.progressingInstruction||gt&&t.nodeType===V.comment&&_(/<[/\w]/g,t.data))return O(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e)))return!1;if(yt&&!P[e]){const c=Q(t)||t.parentNode,g=Re(t)||t.childNodes;if(g&&c){const u=g.length;for(let v=u-1;v>=0;--v){const N=Ne(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,c.insertBefore(N,Se(t))}}}return O(t),!0}return t instanceof xt&&!ze(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&_(/<\/no(script|embed|frames)/i,t.innerHTML)?(O(t),!0):(I&&t.nodeType===V.text&&(n=t.textContent,it([ut,mt,pt],c=>{n=q(n,c," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),C("afterSanitizeElements",t,null),!1)},ne=function(t,n,e){if(zt&&(n==="id"||n==="name")&&(e in l||e in He))return!1;if(!(dt&&!ft[n]&&_(De,n))&&!(Pt&&_(Oe,n))){if(!p[n]||ft[n]){if(!(oe(t)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,t)||s.tagNameCheck instanceof Function&&s.tagNameCheck(t))&&(s.attributeNameCheck instanceof RegExp&&_(s.attributeNameCheck,n)||s.attributeNameCheck instanceof Function&&s.attributeNameCheck(n))||n==="is"&&s.allowCustomizedBuiltInElements&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e))))return!1}else if(!Et[n]&&!_(It,q(e,kt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Xe(e,"data:")===0&&Gt[t])&&!(Ht&&!_(xe,q(e,kt,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&ue(t,ke)},re=function(t){C("beforeSanitizeAttributes",t,null);const{attributes:n}=t;if(!n)return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p};let c=n.length;for(;c--;){const g=n[c],{name:u,namespaceURI:v,value:N}=g,w=f(u);let y=u==="value"?N:qe(N);if(e.attrName=w,e.attrValue=y,e.keepAttr=!0,e.forceKeepAttr=void 0,C("uponSanitizeAttribute",t,e),y=e.attrValue,e.forceKeepAttr||(rt(u,t),!e.keepAttr))continue;if(!Ft&&_(/\/>/i,y)){rt(u,t);continue}I&&it([ut,mt,pt],Be=>{y=q(y,Be," ")});const ae=f(t.nodeName);if(ne(ae,w,y)){if(Wt&&(w==="id"||w==="name")&&(rt(u,t),y=Ie+y),gt&&_(/((--!?|])>)|<\/(style|title)/i,y)){rt(u,t);continue}if(T&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!v)switch(J.getAttributeType(ae,w)){case"TrustedHTML":{y=T.createHTML(y);break}case"TrustedScriptURL":{y=T.createScriptURL(y);break}}try{v?t.setAttributeNS(v,u,y):t.setAttribute(u,y),Qt(t)?O(t):se(o.removed)}catch{}}}C("afterSanitizeAttributes",t,null)},We=function t(n){let e=null;const c=Jt(n);for(C("beforeSanitizeShadowDOM",n,null);e=c.nextNode();)C("uponSanitizeShadowNode",e,null),!ee(e)&&(e.content instanceof h&&t(e.content),re(e));C("afterSanitizeShadowDOM",n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,c=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!te(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!o.isSupported)return t;if(ht||Nt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=f(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)e=Zt("<!---->"),c=e.ownerDocument.importNode(t,!0),c.nodeType===V.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?e=c:e.appendChild(c);else{if(!M&&!I&&!D&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Zt(t),!e)return M?null:et?B:""}e&&Tt&&O(e.firstChild);const v=Jt(Y?t:e);for(;g=v.nextNode();)ee(g)||(g.content instanceof h&&We(g.content),re(g));if(Y)return t;if(M){if(tt)for(u=Le.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(p.shadowroot||p.shadowrootmode)&&(u=ve.call(i,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&_(he,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
1
+ import{r as at,j as bt}from"./index-B-xJO1Ho.js";/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ie,setPrototypeOf:le,isFrozen:Ge,getPrototypeOf:Ye,getOwnPropertyDescriptor:je}=Object;let{freeze:E,seal:b,create:ce}=Object,{apply:St,construct:Rt}=typeof Reflect<"u"&&Reflect;E||(E=function(r){return r}),b||(b=function(r){return r}),St||(St=function(r,o,l){return r.apply(o,l)}),Rt||(Rt=function(r,o){return new r(...o)});const it=A(Array.prototype.forEach),se=A(Array.prototype.pop),X=A(Array.prototype.push),lt=A(String.prototype.toLowerCase),wt=A(String.prototype.toString),ue=A(String.prototype.match),q=A(String.prototype.replace),Xe=A(String.prototype.indexOf),qe=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),$=$e(TypeError);function A(r){return function(o){for(var l=arguments.length,i=new Array(l>1?l-1:0),d=1;d<l;d++)i[d-1]=arguments[d];return St(r,o,i)}}function $e(r){return function(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];return Rt(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;le&&le(r,null);let i=o.length;for(;i--;){let d=o[i];if(typeof d=="string"){const h=l(d);h!==d&&(Ge(o)||(o[i]=h),d=h)}r[d]=!0}return r}function Ke(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function x(r){const o=ce(null);for(const[l,i]of ie(r))S(r,l)&&(Array.isArray(i)?o[l]=Ke(i):i&&typeof i=="object"&&i.constructor===Object?o[l]=x(i):o[l]=i);return o}function K(r,o){for(;r!==null;){const i=je(r,o);if(i){if(i.get)return A(i.get);if(typeof i.value=="function")return A(i.value)}r=Ye(r)}function l(){return null}return l}const me=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ve=E(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vt=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ze=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=E(["#text"]),fe=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dt=E(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ct=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Je=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qe=b(/<%[\w\W]*|[\w\W]*%>/gm),tn=b(/\${[\w\W]*}/gm),en=b(/^data-[\-\w.\u00B7-\uFFFF]/),nn=b(/^aria-[\-\w]+$/),ge=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=b(/^(?:\w+script|data):/i),rn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=b(/^html$/i),an=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Te=Object.freeze({__proto__:null,MUSTACHE_EXPR:Je,ERB_EXPR:Qe,TMPLIT_EXPR:tn,DATA_ATTR:en,ARIA_ATTR:nn,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:rn,DOCTYPE_NAME:he,CUSTOM_ELEMENT:an});const V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ln=function(){return typeof window>"u"?null:window},cn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const i="data-tt-policy-suffix";o&&o.hasAttribute(i)&&(l=o.getAttribute(i));const d="dompurify"+(l?"#"+l:"");try{return r.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function ye(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln();const o=t=>ye(t);if(o.version="3.1.7",o.removed=[],!r||!r.document||r.document.nodeType!==V.document)return o.isSupported=!1,o;let{document:l}=r;const i=l,d=i.currentScript,{DocumentFragment:h,HTMLTemplateElement:Z,Node:k,Element:xt,NodeFilter:z,NamedNodeMap:Ee=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:_e,DOMParser:Ae,trustedTypes:J}=r,W=xt.prototype,Ne=K(W,"cloneNode"),be=K(W,"remove"),Se=K(W,"nextSibling"),Re=K(W,"childNodes"),Q=K(W,"parentNode");if(typeof Z=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let T,B="";const{implementation:st,createNodeIterator:we,createDocumentFragment:Le,getElementsByTagName:Ce}=l,{importNode:ve}=i;let R={};o.isSupported=typeof ie=="function"&&typeof Q=="function"&&st&&st.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:mt,TMPLIT_EXPR:pt,DATA_ATTR:De,ARIA_ATTR:Oe,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:ke}=Te;let{IS_ALLOWED_URI:It}=Te,m=null;const Mt=a({},[...me,...Lt,...Ct,...vt,...pe]);let p=null;const Ut=a({},[...fe,...Dt,...de,...ct]);let s=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,ft=null,Pt=!0,dt=!0,Ht=!1,Ft=!0,I=!1,gt=!0,D=!1,ht=!1,Tt=!1,M=!1,tt=!1,et=!1,zt=!0,Wt=!1;const Ie="user-content-";let yt=!0,Y=!1,U={},P=null;const Bt=a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Yt=a({},["audio","video","img","source","image","track"]);let Et=null;const jt=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xhtml";let H=L,_t=!1,At=null;const Me=a({},[nt,ot,L],wt);let j=null;const Ue=["application/xhtml+xml","text/html"],Pe="text/html";let f=null,F=null;const He=l.createElement("form"),Xt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===t)){if((!t||typeof t!="object")&&(t={}),t=x(t),j=Ue.indexOf(t.PARSER_MEDIA_TYPE)===-1?Pe:t.PARSER_MEDIA_TYPE,f=j==="application/xhtml+xml"?wt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,f):Mt,p=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,f):Ut,At=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,wt):Me,Et=S(t,"ADD_URI_SAFE_ATTR")?a(x(jt),t.ADD_URI_SAFE_ATTR,f):jt,Gt=S(t,"ADD_DATA_URI_TAGS")?a(x(Yt),t.ADD_DATA_URI_TAGS,f):Yt,P=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,f):Bt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,f):{},ft=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,f):{},U=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Pt=t.ALLOW_ARIA_ATTR!==!1,dt=t.ALLOW_DATA_ATTR!==!1,Ht=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=t.SAFE_FOR_TEMPLATES||!1,gt=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,M=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,zt=t.SANITIZE_DOM!==!1,Wt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,It=t.ALLOWED_URI_REGEXP||ge,H=t.NAMESPACE||L,s=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(s.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(s.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(s.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),I&&(dt=!1),tt&&(M=!0),U&&(m=a({},pe),p=[],U.html===!0&&(a(m,me),a(p,fe)),U.svg===!0&&(a(m,Lt),a(p,Dt),a(p,ct)),U.svgFilters===!0&&(a(m,Ct),a(p,Dt),a(p,ct)),U.mathMl===!0&&(a(m,vt),a(p,de),a(p,ct))),t.ADD_TAGS&&(m===Mt&&(m=x(m)),a(m,t.ADD_TAGS,f)),t.ADD_ATTR&&(p===Ut&&(p=x(p)),a(p,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&a(Et,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(P===Bt&&(P=x(P)),a(P,t.FORBID_CONTENTS,f)),yt&&(m["#text"]=!0),D&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete G.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=t.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=cn(J,d)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));E&&E(t),F=t}},qt=a({},["mi","mo","mn","ms","mtext"]),$t=a({},["annotation-xml"]),Fe=a({},["title","style","font","a","script"]),Kt=a({},[...Lt,...Ct,...Ve]),Vt=a({},[...vt,...Ze]),ze=function(t){let n=Q(t);(!n||!n.tagName)&&(n={namespaceURI:H,tagName:"template"});const e=lt(t.tagName),c=lt(n.tagName);return At[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===L?e==="svg":n.namespaceURI===nt?e==="svg"&&(c==="annotation-xml"||qt[c]):!!Kt[e]:t.namespaceURI===nt?n.namespaceURI===L?e==="math":n.namespaceURI===ot?e==="math"&&$t[c]:!!Vt[e]:t.namespaceURI===L?n.namespaceURI===ot&&!$t[c]||n.namespaceURI===nt&&!qt[c]?!1:!Vt[e]&&(Fe[e]||!Kt[e]):!!(j==="application/xhtml+xml"&&At[t.namespaceURI]):!1},O=function(t){X(o.removed,{element:t});try{Q(t).removeChild(t)}catch{be(t)}},rt=function(t,n){try{X(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{X(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is"&&!p[t])if(M||tt)try{O(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Zt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const u=ue(t,/^[\r\n\t ]+/);e=u&&u[0]}j==="application/xhtml+xml"&&H===L&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const c=T?T.createHTML(t):t;if(H===L)try{n=new Ae().parseFromString(c,j)}catch{}if(!n||!n.documentElement){n=st.createDocument(H,"template",null);try{n.documentElement.innerHTML=_t?B:c}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),H===L?Ce.call(n,D?"html":"body")[0]:D?n.documentElement:g},Jt=function(t){return we.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Qt=function(t){return t instanceof _e&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Ee)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},te=function(t){return typeof k=="function"&&t instanceof k},C=function(t,n,e){R[t]&&it(R[t],c=>{c.call(o,n,e,F)})},ee=function(t){let n=null;if(C("beforeSanitizeElements",t,null),Qt(t))return O(t),!0;const e=f(t.nodeName);if(C("uponSanitizeElement",t,{tagName:e,allowedTags:m}),t.hasChildNodes()&&!te(t.firstElementChild)&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent)||t.nodeType===V.progressingInstruction||gt&&t.nodeType===V.comment&&_(/<[/\w]/g,t.data))return O(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e)))return!1;if(yt&&!P[e]){const c=Q(t)||t.parentNode,g=Re(t)||t.childNodes;if(g&&c){const u=g.length;for(let v=u-1;v>=0;--v){const N=Ne(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,c.insertBefore(N,Se(t))}}}return O(t),!0}return t instanceof xt&&!ze(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&_(/<\/no(script|embed|frames)/i,t.innerHTML)?(O(t),!0):(I&&t.nodeType===V.text&&(n=t.textContent,it([ut,mt,pt],c=>{n=q(n,c," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),C("afterSanitizeElements",t,null),!1)},ne=function(t,n,e){if(zt&&(n==="id"||n==="name")&&(e in l||e in He))return!1;if(!(dt&&!ft[n]&&_(De,n))&&!(Pt&&_(Oe,n))){if(!p[n]||ft[n]){if(!(oe(t)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,t)||s.tagNameCheck instanceof Function&&s.tagNameCheck(t))&&(s.attributeNameCheck instanceof RegExp&&_(s.attributeNameCheck,n)||s.attributeNameCheck instanceof Function&&s.attributeNameCheck(n))||n==="is"&&s.allowCustomizedBuiltInElements&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e))))return!1}else if(!Et[n]&&!_(It,q(e,kt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Xe(e,"data:")===0&&Gt[t])&&!(Ht&&!_(xe,q(e,kt,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&ue(t,ke)},re=function(t){C("beforeSanitizeAttributes",t,null);const{attributes:n}=t;if(!n)return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p};let c=n.length;for(;c--;){const g=n[c],{name:u,namespaceURI:v,value:N}=g,w=f(u);let y=u==="value"?N:qe(N);if(e.attrName=w,e.attrValue=y,e.keepAttr=!0,e.forceKeepAttr=void 0,C("uponSanitizeAttribute",t,e),y=e.attrValue,e.forceKeepAttr||(rt(u,t),!e.keepAttr))continue;if(!Ft&&_(/\/>/i,y)){rt(u,t);continue}I&&it([ut,mt,pt],Be=>{y=q(y,Be," ")});const ae=f(t.nodeName);if(ne(ae,w,y)){if(Wt&&(w==="id"||w==="name")&&(rt(u,t),y=Ie+y),gt&&_(/((--!?|])>)|<\/(style|title)/i,y)){rt(u,t);continue}if(T&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!v)switch(J.getAttributeType(ae,w)){case"TrustedHTML":{y=T.createHTML(y);break}case"TrustedScriptURL":{y=T.createScriptURL(y);break}}try{v?t.setAttributeNS(v,u,y):t.setAttribute(u,y),Qt(t)?O(t):se(o.removed)}catch{}}}C("afterSanitizeAttributes",t,null)},We=function t(n){let e=null;const c=Jt(n);for(C("beforeSanitizeShadowDOM",n,null);e=c.nextNode();)C("uponSanitizeShadowNode",e,null),!ee(e)&&(e.content instanceof h&&t(e.content),re(e));C("afterSanitizeShadowDOM",n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,c=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!te(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!o.isSupported)return t;if(ht||Nt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=f(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)e=Zt("<!---->"),c=e.ownerDocument.importNode(t,!0),c.nodeType===V.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?e=c:e.appendChild(c);else{if(!M&&!I&&!D&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Zt(t),!e)return M?null:et?B:""}e&&Tt&&O(e.firstChild);const v=Jt(Y?t:e);for(;g=v.nextNode();)ee(g)||(g.content instanceof h&&We(g.content),re(g));if(Y)return t;if(M){if(tt)for(u=Le.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(p.shadowroot||p.shadowrootmode)&&(u=ve.call(i,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&_(he,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
2
2
  `+N),I&&it([ut,mt,pt],w=>{N=q(N,w," ")}),T&&et?T.createHTML(N):N},o.setConfig=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(t),ht=!0},o.clearConfig=function(){F=null,ht=!1},o.isValidAttribute=function(t,n,e){F||Nt({});const c=f(t),g=f(n);return ne(c,g,e)},o.addHook=function(t,n){typeof n=="function"&&(R[t]=R[t]||[],X(R[t],n))},o.removeHook=function(t){if(R[t])return se(R[t])},o.removeHooks=function(t){R[t]&&(R[t]=[])},o.removeAllHooks=function(){R={}},o}var sn=ye();const Ot=r=>{const o={USE_PROFILES:{html:!0},FORCE_BODY:!0};return sn.sanitize(r,o)};function un({element:r,width:o}){const{body:l}=r,[i,d]=at.useState(Ot(l)),h=at.useRef(null);return at.useEffect(()=>{Ot(l)!==i&&d(Ot(l))},[l]),at.useEffect(()=>{var Z,k;((Z=h.current)==null?void 0:Z.clientHeight)===0&&((k=h.current.parentElement)==null?void 0:k.childElementCount)===1&&h.current.parentElement.classList.add("stHtml-empty")}),bt.jsx(bt.Fragment,{children:i&&bt.jsx("div",{className:"stHtml","data-testid":"stHtml",ref:h,style:{width:o},dangerouslySetInnerHTML:{__html:i}})})}export{un as default};
@@ -1,4 +1,4 @@
1
- import{r as reactExports,j as jsxRuntimeExports}from"./index-EOIuoj4I.js";/*!
1
+ import{r as reactExports,j as jsxRuntimeExports}from"./index-B-xJO1Ho.js";/*!
2
2
  * Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors
3
3
  * All rights reserved.
4
4
  *
@@ -1,4 +1,4 @@
1
- import{r as u,E as _,_ as q,bS as Mt,bT as k,bU as U,bV as Rt,R as We,bW as d,c as m,j as c,aY as P,aX as J,aG as Q,aF as Bt,bX as Lt,bY as Tt,av as Vt,$ as Ht,aS as Nt,as as Ge,B as M,aU as $t,aT as Kt,a_ as Xt,a$ as Wt,bc as Gt,b0 as Yt,aK as _t}from"./index-EOIuoj4I.js";import{F as qt}from"./FormClearHelper-D3yotkXf.js";import{P as Jt,S as Qt}from"./ProgressBar-TrtX1yYk.js";import{u as Zt}from"./Hooks-rnMPF1_I.js";import{U as Z}from"./UploadFileInfo-C-jY39rj.js";var Ye=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});Ye.displayName="Clear";var _e=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))});_e.displayName="CloudUpload";var qe=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))});qe.displayName="Error";var Je=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))});Je.displayName="InsertDriveFile";var R=(e=>(e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b",e))(R||{});const Fe=Mt()?1024:1e3,ee=["gb","mb","kb","b"],te=(e,n,t=1)=>{if(n||(n="b"),t<0&&(t=0),e<0)throw new Error("Size must be greater than or equal to 0");const r=ee.indexOf(n),i=e/Fe;return r&&e>Fe/2?te(i,ee[r-1],t):`${e.toFixed(t)}${n.toUpperCase()}`},en=(e,n,t)=>{if(e<0)throw Error("Size must be 0 or greater");const r=ee.findIndex(s=>s===n),i=ee.findIndex(s=>s===t);if(r===-1||i===-1)throw Error("Unexpected byte unit provided");if(r===i)return e;const o=Math.abs(r-i),l=Fe**o;return r>i?e/l:e*l};var tn=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function T(e,n){var t=nn(e);if(typeof t.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(t,"path",{value:typeof n=="string"?n:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return t}function nn(e){var n=e.name,t=n&&n.lastIndexOf(".")!==-1;if(t&&!e.type){var r=n.split(".").pop().toLowerCase(),i=tn.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var rn=[".DS_Store","Thumbs.db"];function on(e){return k(this,void 0,void 0,function(){return U(this,function(n){return ne(e)&&an(e)?[2,un(e.dataTransfer,e.type)]:sn(e)?[2,ln(e)]:Array.isArray(e)&&e.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,cn(e)]:[2,[]]})})}function an(e){return ne(e.dataTransfer)}function sn(e){return ne(e)&&ne(e.target)}function ne(e){return typeof e=="object"&&e!==null}function ln(e){return je(e.target.files).map(function(n){return T(n)})}function cn(e){return k(this,void 0,void 0,function(){var n;return U(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return n=t.sent(),[2,n.map(function(r){return T(r)})]}})})}function un(e,n){return k(this,void 0,void 0,function(){var t,r;return U(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(t=je(e.items).filter(function(o){return o.kind==="file"}),n!=="drop"?[2,t]:[4,Promise.all(t.map(pn))]):[3,2];case 1:return r=i.sent(),[2,Qe(Ze(r))];case 2:return[2,Qe(je(e.files).map(function(o){return T(o)}))]}})})}function Qe(e){return e.filter(function(n){return rn.indexOf(n.name)===-1})}function je(e){if(e===null)return[];for(var n=[],t=0;t<e.length;t++){var r=e[t];n.push(r)}return n}function pn(e){if(typeof e.webkitGetAsEntry!="function")return et(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?tt(n):et(e)}function Ze(e){return e.reduce(function(n,t){return Rt(n,Array.isArray(t)?Ze(t):[t])},[])}function et(e){var n=e.getAsFile();if(!n)return Promise.reject(e+" is not a File");var t=T(n);return Promise.resolve(t)}function dn(e){return k(this,void 0,void 0,function(){return U(this,function(n){return[2,e.isDirectory?tt(e):fn(e)]})})}function tt(e){var n=e.createReader();return new Promise(function(t,r){var i=[];function o(){var l=this;n.readEntries(function(s){return k(l,void 0,void 0,function(){var f,h,w;return U(this,function(y){switch(y.label){case 0:if(s.length)return[3,5];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return f=y.sent(),t(f),[3,4];case 3:return h=y.sent(),r(h),[3,4];case 4:return[3,6];case 5:w=Promise.all(s.map(dn)),i.push(w),o(),y.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function fn(e){return k(this,void 0,void 0,function(){return U(this,function(n){return[2,new Promise(function(t,r){e.file(function(i){var o=T(i,e.fullPath);t(o)},function(i){r(i)})})]})})}var gn=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return t.some(function(l){var s=l.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function nt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function rt(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?nt(Object(t),!0).forEach(function(r){it(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nt(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function it(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ot(e,n){return yn(e)||vn(e,n)||hn(e,n)||mn()}function mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as u,E as _,_ as q,bS as Mt,bT as k,bU as U,bV as Rt,R as We,bW as d,c as m,j as c,aY as P,aX as J,aG as Q,aF as Bt,bX as Lt,bY as Tt,av as Vt,$ as Ht,aS as Nt,as as Ge,B as M,aU as $t,aT as Kt,a_ as Xt,a$ as Wt,bc as Gt,b0 as Yt,aK as _t}from"./index-B-xJO1Ho.js";import{F as qt}from"./FormClearHelper-9eaBETaU.js";import{P as Jt,S as Qt}from"./ProgressBar-556DCe2G.js";import{u as Zt}from"./Hooks-BNfoYvra.js";import{U as Z}from"./UploadFileInfo-C-jY39rj.js";var Ye=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});Ye.displayName="Clear";var _e=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))});_e.displayName="CloudUpload";var qe=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))});qe.displayName="Error";var Je=u.forwardRef(function(e,n){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement(_,q({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:n}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))});Je.displayName="InsertDriveFile";var R=(e=>(e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b",e))(R||{});const Fe=Mt()?1024:1e3,ee=["gb","mb","kb","b"],te=(e,n,t=1)=>{if(n||(n="b"),t<0&&(t=0),e<0)throw new Error("Size must be greater than or equal to 0");const r=ee.indexOf(n),i=e/Fe;return r&&e>Fe/2?te(i,ee[r-1],t):`${e.toFixed(t)}${n.toUpperCase()}`},en=(e,n,t)=>{if(e<0)throw Error("Size must be 0 or greater");const r=ee.findIndex(s=>s===n),i=ee.findIndex(s=>s===t);if(r===-1||i===-1)throw Error("Unexpected byte unit provided");if(r===i)return e;const o=Math.abs(r-i),l=Fe**o;return r>i?e/l:e*l};var tn=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function T(e,n){var t=nn(e);if(typeof t.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(t,"path",{value:typeof n=="string"?n:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return t}function nn(e){var n=e.name,t=n&&n.lastIndexOf(".")!==-1;if(t&&!e.type){var r=n.split(".").pop().toLowerCase(),i=tn.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var rn=[".DS_Store","Thumbs.db"];function on(e){return k(this,void 0,void 0,function(){return U(this,function(n){return ne(e)&&an(e)?[2,un(e.dataTransfer,e.type)]:sn(e)?[2,ln(e)]:Array.isArray(e)&&e.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,cn(e)]:[2,[]]})})}function an(e){return ne(e.dataTransfer)}function sn(e){return ne(e)&&ne(e.target)}function ne(e){return typeof e=="object"&&e!==null}function ln(e){return je(e.target.files).map(function(n){return T(n)})}function cn(e){return k(this,void 0,void 0,function(){var n;return U(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return n=t.sent(),[2,n.map(function(r){return T(r)})]}})})}function un(e,n){return k(this,void 0,void 0,function(){var t,r;return U(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(t=je(e.items).filter(function(o){return o.kind==="file"}),n!=="drop"?[2,t]:[4,Promise.all(t.map(pn))]):[3,2];case 1:return r=i.sent(),[2,Qe(Ze(r))];case 2:return[2,Qe(je(e.files).map(function(o){return T(o)}))]}})})}function Qe(e){return e.filter(function(n){return rn.indexOf(n.name)===-1})}function je(e){if(e===null)return[];for(var n=[],t=0;t<e.length;t++){var r=e[t];n.push(r)}return n}function pn(e){if(typeof e.webkitGetAsEntry!="function")return et(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?tt(n):et(e)}function Ze(e){return e.reduce(function(n,t){return Rt(n,Array.isArray(t)?Ze(t):[t])},[])}function et(e){var n=e.getAsFile();if(!n)return Promise.reject(e+" is not a File");var t=T(n);return Promise.resolve(t)}function dn(e){return k(this,void 0,void 0,function(){return U(this,function(n){return[2,e.isDirectory?tt(e):fn(e)]})})}function tt(e){var n=e.createReader();return new Promise(function(t,r){var i=[];function o(){var l=this;n.readEntries(function(s){return k(l,void 0,void 0,function(){var f,h,w;return U(this,function(y){switch(y.label){case 0:if(s.length)return[3,5];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return f=y.sent(),t(f),[3,4];case 3:return h=y.sent(),r(h),[3,4];case 4:return[3,6];case 5:w=Promise.all(s.map(dn)),i.push(w),o(),y.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function fn(e){return k(this,void 0,void 0,function(){return U(this,function(n){return[2,new Promise(function(t,r){e.file(function(i){var o=T(i,e.fullPath);t(o)},function(i){r(i)})})]})})}var gn=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return t.some(function(l){var s=l.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function nt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function rt(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?nt(Object(t),!0).forEach(function(r){it(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nt(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function it(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ot(e,n){return yn(e)||vn(e,n)||hn(e,n)||mn()}function mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hn(e,n){if(e){if(typeof e=="string")return at(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return at(e,n)}}function at(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function vn(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],i=!0,o=!1,l,s;try{for(t=t.call(e);!(i=(l=t.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(f){o=!0,s=f}finally{try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}return r}}function yn(e){if(Array.isArray(e))return e}var bn="file-invalid-type",xn="file-too-large",wn="file-too-small",Fn="too-many-files",jn=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var n=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:bn,message:"File type must be ".concat(n)}},st=function(e){return{code:xn,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},lt=function(e){return{code:wn,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Dn={code:Fn,message:"Too many files"};function ct(e,n){var t=e.type==="application/x-moz-file"||gn(e,n);return[t,t?null:jn(n)]}function ut(e,n,t){if(V(e.size))if(V(n)&&V(t)){if(e.size>t)return[!1,st(t)];if(e.size<n)return[!1,lt(n)]}else{if(V(n)&&e.size<n)return[!1,lt(n)];if(V(t)&&e.size>t)return[!1,st(t)]}return[!0,null]}function V(e){return e!=null}function Sn(e){var n=e.files,t=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,l=e.maxFiles;return!o&&n.length>1||o&&l>=1&&n.length>l?!1:n.every(function(s){var f=ct(s,t),h=ot(f,1),w=h[0],y=ut(s,r,i),z=ot(y,1),B=z[0];return w&&B})}function re(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ie(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function pt(e){e.preventDefault()}function zn(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function An(e){return e.indexOf("Edge/")!==-1}function On(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zn(e)||An(e)}function S(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return n.some(function(s){return!re(r)&&s&&s.apply(void 0,[r].concat(o)),re(r)})}}function En(){return"showOpenFilePicker"in window}function Cn(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(n){return n==="audio/*"||n==="video/*"||n==="image/*"||n==="text/*"||/\w+\/[-+.\w]+/g.test(n)}).reduce(function(n,t){return rt(rt({},n),{},it({},t,[]))},{}):{}}]}function In(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function kn(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}var Un=["children"],Pn=["open"],Mn=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Rn=["refKey","onChange","onClick"];function Bn(e){return Vn(e)||Tn(e)||dt(e)||Ln()}function Ln(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vn(e){if(Array.isArray(e))return Se(e)}function De(e,n){return $n(e)||Nn(e,n)||dt(e,n)||Hn()}function Hn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(e,n){if(e){if(typeof e=="string")return Se(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Se(e,n)}}function Se(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Nn(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],i=!0,o=!1,l,s;try{for(t=t.call(e);!(i=(l=t.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(f){o=!0,s=f}finally{try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}return r}}function $n(e){if(Array.isArray(e))return e}function ft(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ft(Object(t),!0).forEach(function(r){ze(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ft(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function oe(e,n){if(e==null)return{};var t=Kn(e,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Kn(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}var ae=u.forwardRef(function(e,n){var t=e.children,r=oe(e,Un),i=Xn(r),o=i.open,l=oe(i,Pn);return u.useImperativeHandle(n,function(){return{open:o}},[o]),We.createElement(u.Fragment,null,t(g(g({},l),{},{open:o})))});ae.displayName="Dropzone";var gt={disabled:!1,getFilesFromEvent:on,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};ae.defaultProps=gt,ae.propTypes={children:d.func,accept:d.oneOfType([d.string,d.arrayOf(d.string)]),multiple:d.bool,preventDropOnDocument:d.bool,noClick:d.bool,noKeyboard:d.bool,noDrag:d.bool,noDragEventsBubbling:d.bool,minSize:d.number,maxSize:d.number,maxFiles:d.number,disabled:d.bool,getFilesFromEvent:d.func,onFileDialogCancel:d.func,onFileDialogOpen:d.func,useFsAccessApi:d.bool,onDragEnter:d.func,onDragLeave:d.func,onDragOver:d.func,onDrop:d.func,onDropAccepted:d.func,onDropRejected:d.func,validator:d.func};var Ae={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=g(g({},gt),e),t=n.accept,r=n.disabled,i=n.getFilesFromEvent,o=n.maxSize,l=n.minSize,s=n.multiple,f=n.maxFiles,h=n.onDragEnter,w=n.onDragLeave,y=n.onDragOver,z=n.onDrop,B=n.onDropAccepted,se=n.onDropRejected,le=n.onFileDialogCancel,ce=n.onFileDialogOpen,Ee=n.useFsAccessApi,ue=n.preventDropOnDocument,Ce=n.noClick,pe=n.noKeyboard,Ie=n.noDrag,A=n.noDragEventsBubbling,de=n.validator,fe=u.useMemo(function(){return typeof ce=="function"?ce:mt},[ce]),H=u.useMemo(function(){return typeof le=="function"?le:mt},[le]),F=u.useRef(null),j=u.useRef(null),Ot=u.useReducer(Wn,Ae),ke=De(Ot,2),N=ke[0],x=ke[1],Et=N.isFocused,Ue=N.isFileDialogActive,Pe=N.draggedFiles,$=u.useRef(typeof window<"u"&&window.isSecureContext&&Ee&&En()),Me=function(){!$.current&&Ue&&setTimeout(function(){if(j.current){var a=j.current.files;a.length||(x({type:"closeDialog"}),H())}},300)};u.useEffect(function(){return window.addEventListener("focus",Me,!1),function(){window.removeEventListener("focus",Me,!1)}},[j,Ue,H,$]);var O=u.useRef([]),Re=function(a){F.current&&F.current.contains(a.target)||(a.preventDefault(),O.current=[])};u.useEffect(function(){return ue&&(document.addEventListener("dragover",pt,!1),document.addEventListener("drop",Re,!1)),function(){ue&&(document.removeEventListener("dragover",pt),document.removeEventListener("drop",Re))}},[F,ue]);var Be=u.useCallback(function(a){a.preventDefault(),a.persist(),G(a),O.current=[].concat(Bn(O.current),[a.target]),ie(a)&&Promise.resolve(i(a)).then(function(p){re(a)&&!A||(x({draggedFiles:p,isDragActive:!0,type:"setDraggedFiles"}),h&&h(a))})},[i,h,A]),Le=u.useCallback(function(a){a.preventDefault(),a.persist(),G(a);var p=ie(a);if(p&&a.dataTransfer)try{a.dataTransfer.dropEffect="copy"}catch{}return p&&y&&y(a),!1},[y,A]),Te=u.useCallback(function(a){a.preventDefault(),a.persist(),G(a);var p=O.current.filter(function(b){return F.current&&F.current.contains(b)}),v=p.indexOf(a.target);v!==-1&&p.splice(v,1),O.current=p,!(p.length>0)&&(x({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),ie(a)&&w&&w(a))},[F,w,A]),K=u.useCallback(function(a,p){var v=[],b=[];a.forEach(function(D){var L=ct(D,t),I=De(L,2),me=I[0],he=I[1],ve=ut(D,l,o),Y=De(ve,2),ye=Y[0],be=Y[1],xe=de?de(D):null;if(me&&ye&&!xe)v.push(D);else{var we=[he,be];xe&&(we=we.concat(xe)),b.push({file:D,errors:we.filter(function(Pt){return Pt})})}}),(!s&&v.length>1||s&&f>=1&&v.length>f)&&(v.forEach(function(D){b.push({file:D,errors:[Dn]})}),v.splice(0)),x({acceptedFiles:v,fileRejections:b,type:"setFiles"}),z&&z(v,b,p),b.length>0&&se&&se(b,p),v.length>0&&B&&B(v,p)},[x,s,t,l,o,f,z,B,se,de]),X=u.useCallback(function(a){a.preventDefault(),a.persist(),G(a),O.current=[],ie(a)&&Promise.resolve(i(a)).then(function(p){re(a)&&!A||K(p,a)}),x({type:"reset"})},[i,K,A]),E=u.useCallback(function(){if($.current){x({type:"openDialog"}),fe();var a={multiple:s,types:Cn(t)};window.showOpenFilePicker(a).then(function(p){return i(p)}).then(function(p){K(p,null),x({type:"closeDialog"})}).catch(function(p){In(p)?(H(p),x({type:"closeDialog"})):kn(p)&&($.current=!1,j.current&&(j.current.value=null,j.current.click()))});return}j.current&&(x({type:"openDialog"}),fe(),j.current.value=null,j.current.click())},[x,fe,H,Ee,K,t,s]),Ve=u.useCallback(function(a){!F.current||!F.current.isEqualNode(a.target)||(a.key===" "||a.key==="Enter"||a.keyCode===32||a.keyCode===13)&&(a.preventDefault(),E())},[F,E]),He=u.useCallback(function(){x({type:"focus"})},[]),Ne=u.useCallback(function(){x({type:"blur"})},[]),$e=u.useCallback(function(){Ce||(On()?setTimeout(E,0):E())},[Ce,E]),C=function(a){return r?null:a},ge=function(a){return pe?null:C(a)},W=function(a){return Ie?null:C(a)},G=function(a){A&&a.stopPropagation()},Ct=u.useMemo(function(){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=a.refKey,v=p===void 0?"ref":p,b=a.role,D=a.onKeyDown,L=a.onFocus,I=a.onBlur,me=a.onClick,he=a.onDragEnter,ve=a.onDragOver,Y=a.onDragLeave,ye=a.onDrop,be=oe(a,Mn);return g(g(ze({onKeyDown:ge(S(D,Ve)),onFocus:ge(S(L,He)),onBlur:ge(S(I,Ne)),onClick:C(S(me,$e)),onDragEnter:W(S(he,Be)),onDragOver:W(S(ve,Le)),onDragLeave:W(S(Y,Te)),onDrop:W(S(ye,X)),role:typeof b=="string"&&b!==""?b:"button"},v,F),!r&&!pe?{tabIndex:0}:{}),be)}},[F,Ve,He,Ne,$e,Be,Le,Te,X,pe,Ie,r]),It=u.useCallback(function(a){a.stopPropagation()},[]),kt=u.useMemo(function(){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=a.refKey,v=p===void 0?"ref":p,b=a.onChange,D=a.onClick,L=oe(a,Rn),I=ze({accept:t,multiple:s,type:"file",style:{display:"none"},onChange:C(S(b,X)),onClick:C(S(D,It)),tabIndex:-1},v,j);return g(g({},I),L)}},[j,t,s,X,r]),Ke=Pe.length,Xe=Ke>0&&Sn({files:Pe,accept:t,minSize:l,maxSize:o,multiple:s,maxFiles:f}),Ut=Ke>0&&!Xe;return g(g({},N),{},{isDragAccept:Xe,isDragReject:Ut,isFocused:Et&&!r,getRootProps:Ct,getInputProps:kt,rootRef:F,inputRef:j,open:C(E)})}function Wn(e,n){switch(n.type){case"focus":return g(g({},e),{},{isFocused:!0});case"blur":return g(g({},e),{},{isFocused:!1});case"openDialog":return g(g({},Ae),{},{isFileDialogActive:!0});case"closeDialog":return g(g({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=n.isDragActive,r=n.draggedFiles;return g(g({},e),{},{draggedFiles:r,isDragActive:t});case"setFiles":return g(g({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections});case"reset":return g({},Ae);default:return e}}function mt(){}const ht=m("section",{target:"e1b2p2ww15"})(({isDisabled:e,theme:n})=>({display:"flex",alignItems:"center",padding:n.spacing.lg,backgroundColor:n.colors.secondaryBg,borderRadius:n.radii.default,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 1px ${n.colors.primary}`},color:e?n.colors.gray:n.colors.bodyText}),""),vt=m("div",{target:"e1b2p2ww14"})({name:"9xni5b",styles:"margin-right:auto;align-items:center;display:flex"}),yt=m("span",{target:"e1b2p2ww13"})(({theme:e})=>({color:e.colors.darkenedBgMix100,marginRight:e.spacing.lg}),""),Gn=m("span",{target:"e1b2p2ww12"})(({theme:e})=>({marginBottom:e.spacing.twoXS}),""),Yn=m("div",{target:"e1b2p2ww11"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),bt=m("div",{target:"e1b2p2ww10"})(({theme:e})=>({left:0,right:0,lineHeight:e.lineHeights.tight,paddingTop:e.spacing.md,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg}),""),_n=m("ul",{target:"e1b2p2ww9"})(({theme:e})=>({listStyleType:"none",margin:e.spacing.none,padding:e.spacing.none}),""),xt=m("li",{target:"e1b2p2ww8"})(({theme:e})=>({margin:e.spacing.none,padding:e.spacing.none}),""),wt=m("div",{target:"e1b2p2ww7"})(({theme:e})=>({display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.spacing.lg,overflow:"hidden"}),""),Ft=m("div",{target:"e1b2p2ww6"})(({theme:e})=>({marginRight:e.spacing.sm,marginBottom:e.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),""),jt=m("div",{target:"e1b2p2ww5"})(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing.twoXS}),""),qn=m("span",{target:"e1b2p2ww4"})(({theme:e})=>({marginRight:e.spacing.twoXS}),""),Jn=m("div",{target:"e1b2p2ww3"})(({theme:e})=>({display:"flex",padding:e.spacing.twoXS,color:e.colors.darkenedBgMix100}),""),Dt=m("small",{target:"e1b2p2ww2"})(({theme:e})=>({color:e.colors.danger,fontSize:e.fontSizes.sm,height:e.fontSizes.sm,lineHeight:e.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}),""),St=m("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),zt=e=>({[ht]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[vt]:{marginBottom:e.spacing.lg},[yt]:{display:"none"},[bt]:{paddingRight:e.spacing.lg},[jt]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[Ft]:{width:e.sizes.full},[wt]:{flexDirection:"column"},[Dt]:{height:"auto",whiteSpace:"initial"},[St]:{display:"none"},[xt]:{margin:e.spacing.none,padding:e.spacing.none}}),Qn=m("div",{target:"e1b2p2ww0"})(({theme:e})=>e.inSidebar?zt(e):{[`@media (max-width: ${e.breakpoints.sm})`]:zt(e)},""),Oe=m("small",{target:"e1bju1570"})(({kind:e,theme:n})=>{const{danger:t,fadedText60:r}=n.colors;return{color:e==="danger"?t:r,fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.tight}},""),Zn=({multiple:e,acceptedExtensions:n,maxSizeBytes:t})=>c.jsxs(vt,{"data-testid":"stFileUploaderDropzoneInstructions",children:[c.jsx(yt,{children:c.jsx(P,{content:_e,size:"threeXL"})}),c.jsxs(Yn,{children:[c.jsxs(Gn,{children:["Drag and drop file",e?"s":""," here"]}),c.jsxs(Oe,{children:[`Limit ${te(t,R.Byte,0)} per file`,n.length?` \u2022 ${n.map(r=>r.replace(/^\./,"").toUpperCase()).join(", ")}`:null]})]})]}),er=({onDrop:e,multiple:n,acceptedExtensions:t,maxSizeBytes:r,disabled:i,label:o})=>c.jsx(ae,{onDrop:e,multiple:n,accept:t.length?t:void 0,maxSize:r,disabled:i,useFsAccessApi:!1,children:({getRootProps:l,getInputProps:s})=>c.jsxs(ht,{...l(),"data-testid":"stFileUploaderDropzone",isDisabled:i,"aria-label":o,children:[c.jsx("input",{"data-testid":"stFileUploaderDropzoneInput",...s()}),c.jsx(Zn,{multiple:n,acceptedExtensions:t,maxSizeBytes:r}),c.jsx(J,{kind:Q.SECONDARY,disabled:i,size:Bt.SMALL,children:"Browse files"})]})}),tr=m("div",{target:"e1nlpozb1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:e.spacing.twoXS,marginBottom:e.spacing.twoXS}),""),nr=m("div",{target:"e1nlpozb0"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.fadedText40}),""),rr=({currentPage:e,totalPages:n,onNext:t,onPrevious:r})=>c.jsxs(tr,{"data-testid":"stFileUploaderPagination",children:[c.jsx(Oe,{children:`Showing page ${e} of ${n}`}),c.jsxs(nr,{children:[c.jsx(J,{onClick:r,kind:Q.MINIMAL,children:c.jsx(P,{content:Lt,size:"xl"})}),c.jsx(J,{onClick:t,kind:Q.MINIMAL,children:c.jsx(P,{content:Tt,size:"xl"})})]})]}),At=(e,n)=>Math.ceil(e.length/n),ir=e=>Vt(({pageSize:n,items:t,resetOnAdd:r,...i})=>{const[o,l]=u.useState(0),[s,f]=u.useState(At(t,n)),h=Zt(t);u.useEffect(()=>{h&&h.length!==t.length&&f(At(t,n)),h&&h.length<t.length?r&&l(0):o+1>=s&&l(s-1)},[t,o,n,h,r,s]);const w=()=>{l(Math.min(o+1,s-1))},y=()=>{l(Math.max(0,o-1))},z=t.slice(o*n,o*n+n);return c.jsxs(c.Fragment,{children:[c.jsx(e,{items:z,...i}),t.length>n?c.jsx(rr,{pageSize:n,totalPages:s,currentPage:o+1,onNext:w,onPrevious:y}):null]})},e),or=({fileInfo:e})=>e.status.type==="uploading"?c.jsx(Jt,{value:e.status.progress,size:Qt.SMALL}):e.status.type==="error"?c.jsxs(Dt,{children:[c.jsx(qn,{"data-testid":"stFileUploaderFileErrorMessage",children:e.status.errorMessage}),c.jsx(St,{children:c.jsx(P,{content:qe,size:"lg"})})]}):e.status.type==="uploaded"?c.jsx(Oe,{children:te(e.size,R.Byte)}):null,ar=({fileInfo:e,onDelete:n})=>c.jsxs(jt,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[c.jsx(Jn,{children:c.jsx(P,{content:Je,size:"twoXL"})}),c.jsxs(wt,{className:"stFileUploaderFileData",children:[c.jsx(Ft,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:e.name,children:e.name}),c.jsx(or,{fileInfo:e})]}),c.jsx("div",{"data-testid":"stFileUploaderDeleteBtn",children:c.jsx(J,{onClick:()=>n(e.id),kind:Q.MINIMAL,children:c.jsx(P,{content:Ye,size:"lg"})})})]}),sr=({items:e,onDelete:n})=>c.jsx(_n,{children:e.map(t=>c.jsx(xt,{children:c.jsx(ar,{fileInfo:t,onDelete:n})},t.id))}),lr=ir(sr),cr=e=>c.jsx(bt,{children:c.jsx(lr,{...e})});class ur extends We.PureComponent{constructor(n){super(n),this.formClearHelper=new qt,this.localFileIdCounter=1,this.forceUpdatingStatus=!1,this.componentDidUpdate=()=>{if(this.status!=="ready")return;const t=this.createWidgetValue(),{element:r,widgetMgr:i,fragmentId:o}=this.props,l=i.getFileUploaderStateValue(r);Ht(t,l)||i.setFileUploaderStateValue(r,t,{fromUi:!0},o)},this.reset=()=>{this.setState({files:[]})},this.dropHandler=(t,r)=>{const{element:i}=this.props,{multipleFiles:o}=i;if(!o&&t.length===0&&r.length>1){const l=r.findIndex(s=>s.errors.length===1&&s.errors[0].code==="too-many-files");l>=0&&(t.push(r[l].file),r.splice(l,1))}if(this.props.uploadClient.fetchFileURLs(t).then(l=>{if(!o&&t.length>0){const s=this.state.files.find(f=>f.status.type!=="error");s&&(this.forceUpdatingStatus=!0,this.deleteFile(s.id),this.forceUpdatingStatus=!1)}Nt(l,t).forEach(([s,f])=>{this.uploadFile(s,f)})}).catch(l=>{this.addFiles(t.map(s=>new Z(s.name,s.size,this.nextLocalFileId(),{type:"error",errorMessage:l})))}),r.length>0){const l=r.map(s=>{const{file:f}=s;return new Z(f.name,f.size,this.nextLocalFileId(),{type:"error",errorMessage:this.getErrorMessage(s.errors[0].code,s.file)})});this.addFiles(l)}},this.uploadFile=(t,r)=>{const i=Ge.CancelToken.source(),o=new Z(r.name,r.size,this.nextLocalFileId(),{type:"uploading",cancelToken:i,progress:1});this.addFile(o),this.props.uploadClient.uploadFile(this.props.element,t.uploadUrl,r,l=>this.onUploadProgress(l,o.id),i.token).then(()=>this.onUploadComplete(o.id,t)).catch(l=>{Ge.isCancel(l)||this.updateFile(o.id,o.setStatus({type:"error",errorMessage:l?l.toString():"Unknown error"}))})},this.onUploadComplete=(t,r)=>{const i=this.getFile(t);M(i)||i.status.type!=="uploading"||this.updateFile(i.id,i.setStatus({type:"uploaded",fileId:r.fileId,fileUrls:r}))},this.getErrorMessage=(t,r)=>{switch(t){case"file-too-large":return`File must be ${te(this.maxUploadSizeInBytes,R.Byte)} or smaller.`;case"file-invalid-type":return`${r.type} files are not allowed.`;case"file-too-small":return"File size is too small.";case"too-many-files":return"Only one file is allowed.";default:return"Unexpected error. Please try again."}},this.deleteFile=t=>{const r=this.getFile(t);M(r)||(r.status.type==="uploading"&&r.status.cancelToken.cancel(),r.status.type==="uploaded"&&r.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(r.status.fileUrls.deleteUrl),this.removeFile(t))},this.addFile=t=>{this.setState(r=>({files:[...r.files,t]}))},this.addFiles=t=>{this.setState(r=>({files:[...r.files,...t]}))},this.removeFile=t=>{this.setState(r=>({files:r.files.filter(i=>i.id!==t)}))},this.getFile=t=>this.state.files.find(r=>r.id===t),this.updateFile=(t,r)=>{this.setState(i=>({files:i.files.map(o=>o.id===t?r:o)}))},this.onUploadProgress=(t,r)=>{const i=this.getFile(r);if(M(i)||i.status.type!=="uploading")return;const o=Math.round(t.loaded*100/t.total);i.status.progress!==o&&this.updateFile(r,i.setStatus({type:"uploading",cancelToken:i.status.cancelToken,progress:o}))},this.onFormCleared=()=>{this.setState({files:[]},()=>{const t=this.createWidgetValue();if(M(t))return;const{widgetMgr:r,element:i,fragmentId:o}=this.props;r.setFileUploaderStateValue(i,t,{fromUi:!0},o)})},this.state=this.initialValue}get initialValue(){const n={files:[],newestServerFileId:0},{widgetMgr:t,element:r}=this.props,i=t.getFileUploaderStateValue(r);if(M(i))return n;const{uploadedFileInfo:o}=i;return M(o)||o.length===0?n:{files:o.map(l=>{const s=l.name,f=l.size,h=l.fileId,w=l.fileUrls;return new Z(s,f,this.nextLocalFileId(),{type:"uploaded",fileId:h,fileUrls:w})})}}componentWillUnmount(){this.formClearHelper.disconnect()}get maxUploadSizeInBytes(){const n=this.props.element.maxUploadSizeMb;return en(n,R.Megabyte,R.Byte)}get status(){const n=t=>t.status.type==="uploading";return this.state.files.some(n)||this.forceUpdatingStatus?"updating":"ready"}componentDidMount(){const n=this.createWidgetValue(),{element:t,widgetMgr:r,fragmentId:i}=this.props;r.getFileUploaderStateValue(t)===void 0&&r.setFileUploaderStateValue(t,n,{fromUi:!1},i)}createWidgetValue(){const n=this.state.files.filter(t=>t.status.type==="uploaded").map(t=>{const{name:r,size:i,status:o}=t,{fileId:l,fileUrls:s}=o;return new $t({fileId:l,fileUrls:s,name:r,size:i})});return new Kt({uploadedFileInfo:n})}render(){var s;const{files:n}=this.state,{element:t,disabled:r,widgetMgr:i}=this.props,o=t.type;this.formClearHelper.manageFormClearListener(i,t.formId,this.onFormCleared);const l=n.slice().reverse();return c.jsxs(Qn,{className:"stFileUploader","data-testid":"stFileUploader",children:[c.jsx(Xt,{label:t.label,disabled:r,labelVisibility:Wt((s=t.labelVisibility)==null?void 0:s.value),children:t.help&&c.jsx(Gt,{children:c.jsx(Yt,{content:t.help,placement:_t.TOP_RIGHT})})}),c.jsx(er,{onDrop:this.dropHandler,multiple:t.multipleFiles,acceptedExtensions:o,maxSizeBytes:this.maxUploadSizeInBytes,label:t.label,disabled:r}),l.length>0&&c.jsx(cr,{items:l,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}nextLocalFileId(){return this.localFileIdCounter++}}export{ur as default};
@@ -1,2 +1,2 @@
1
- import{r as f,bJ as U,b3 as m,bM as p,bO as S}from"./index-EOIuoj4I.js";import{R as G,c as P,d as H,B as K}from"./base-input-Bvc5b-2K.js";function v(t){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(t)}var L=["Root","StartEnhancer","EndEnhancer"],N=["startEnhancer","endEnhancer","overrides"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},i.apply(this,arguments)}function O(t,r){return X(t)||W(t,r)||V(t,r)||Q()}function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as f,bJ as U,b3 as m,bM as p,bO as S}from"./index-B-xJO1Ho.js";import{R as G,c as P,d as H,B as K}from"./base-input-Dtkz4-6L.js";function v(t){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(t)}var L=["Root","StartEnhancer","EndEnhancer"],N=["startEnhancer","endEnhancer","overrides"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},i.apply(this,arguments)}function O(t,r){return X(t)||W(t,r)||V(t,r)||Q()}function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(t,r){if(t){if(typeof t=="string")return F(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,r)}}function F(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function W(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var e=[],o=!0,u=!1,a,c;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(e.push(a.value),!(r&&e.length===r));o=!0);}catch(d){u=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(u)throw c}}return e}}function X(t){if(Array.isArray(t))return t}function R(t,r){if(t==null)return{};var n=Y(t,r),e,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++)e=u[o],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(n[e]=t[e])}return n}function Y(t,r){if(t==null)return{};var n={},e=Object.keys(t),o,u;for(u=0;u<e.length;u++)o=e[u],!(r.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Z(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function tt(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function rt(t,r,n){return tt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function et(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&g(t,r)}function g(t,r){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},g(t,r)}function nt(t){var r=ut();return function(){var n=b(t),e;if(r){var o=b(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ot(this,e)}}function ot(t,r){if(r&&(v(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},b(t)}function h(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var B=function(t){et(n,t);var r=nt(n);function n(){var e;Z(this,n);for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r.call.apply(r,[this].concat(u)),h(y(e),"state",{isFocused:e.props.autoFocus||!1}),h(y(e),"onFocus",function(c){e.setState({isFocused:!0}),e.props.onFocus(c)}),h(y(e),"onBlur",function(c){e.setState({isFocused:!1}),e.props.onBlur(c)}),e}return rt(n,[{key:"render",value:function(){var e=this.props,o=e.startEnhancer,u=e.endEnhancer,a=e.overrides,c=a.Root,d=a.StartEnhancer,x=a.EndEnhancer,A=R(a,L),I=R(e,N),T=m(c,G),j=O(T,2),$=j[0],C=j[1],k=m(d,P),w=O(k,2),M=w[0],q=w[1],z=m(x,P),E=O(z,2),D=E[0],J=E[1],s=H(this.props,this.state);return f.createElement($,i({"data-baseweb":"input"},s,C,{$adjoined:_(o,u),$hasIconTrailing:this.props.clearable||this.props.type=="password"}),l(o)&&f.createElement(M,i({},s,q,{$position:S.start}),typeof o=="function"?o(s):o),f.createElement(K,i({},I,{overrides:A,adjoined:_(o,u),onFocus:this.onFocus,onBlur:this.onBlur})),l(u)&&f.createElement(D,i({},s,J,{$position:S.end}),typeof u=="function"?u(s):u))}}]),n}(f.Component);h(B,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:U.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});function _(t,r){return l(t)&&l(r)?p.both:l(t)?p.left:l(r)?p.right:p.none}function l(t){return!!(t||t===0)}export{B as I};
@@ -1 +1 @@
1
- import{c as p,e as y}from"./es6-CJjM6kbP.js";import"./index-EOIuoj4I.js";const{File:r,Blob:_,DOMException:s}=p,{INVALID:z,GONE:n,MISMATCH:f,MOD_ERR:m,SYNTAX:w,SECURITY:A,DISALLOWED:b}=y;class c{constructor(i,e){this.fileHandle=i,this.file=e,this.size=e.size,this.position=0}write(i){let e=this.file;if(typeof i=="object"){if(i.type==="write"){if(Number.isInteger(i.position)&&i.position>=0&&(this.position=i.position,this.size<i.position&&(this.file=new r([this.file,new ArrayBuffer(i.position-this.size)],this.file.name,this.file))),!("data"in i))throw new s(...w("write requires a data argument"));i=i.data}else if(i.type==="seek")if(Number.isInteger(i.position)&&i.position>=0){if(this.size<i.position)throw new s(...z);this.position=i.position;return}else throw new s(...w("seek requires a position argument"));else if(i.type==="truncate")if(Number.isInteger(i.size)&&i.size>=0){e=i.size<this.size?new r([e.slice(0,i.size)],e.name,e):new r([e,new Uint8Array(i.size-this.size)],e.name),this.size=e.size,this.position>e.size&&(this.position=e.size),this.file=e;return}else throw new s(...w("truncate requires a size argument"))}i=new _([i]);let t=this.file;const o=t.slice(0,this.position),u=t.slice(this.position+i.size);let a=this.position-o.size;a<0&&(a=0),t=new r([o,new Uint8Array(a),i,u],t.name),this.size=t.size,this.position+=i.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...n);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class h{constructor(i="",e=new r([],i),t=!0){this._file=e,this.name=i,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...n);return this._file}async createWritable(i){if(!this.writable)throw new s(...b);if(this._deleted)throw new s(...n);const e=i.keepExistingData?await this.getFile():new r([],this.name);return new c(this,e)}async isSameEntry(i){return this===i}async _destroy(){this._deleted=!0,this._file=null}}class l{constructor(i,e=!0){this.name=i,this.kind="directory",this._deleted=!1,this._entries={},this.writable=e,this.readable=!0}async*entries(){if(this._deleted)throw new s(...n);yield*Object.entries(this._entries)}async isSameEntry(i){return this===i}async getDirectoryHandle(i,e){if(this._deleted)throw new s(...n);const t=this._entries[i];if(t){if(t instanceof h)throw new s(...f);return t}else{if(e.create)return this._entries[i]=new l(i);throw new s(...n)}}async getFileHandle(i,e){const t=this._entries[i],o=t instanceof h;if(t&&o)return t;if(t&&!o)throw new s(...f);if(!t&&!e.create)throw new s(...n);if(!t&&e.create)return this._entries[i]=new h(i)}async removeEntry(i,e){const t=this._entries[i];if(!t)throw new s(...n);await t._destroy(e.recursive),delete this._entries[i]}async _destroy(i){for(let e of Object.values(this._entries)){if(!i)throw new s(...m);await e._destroy(i)}this._entries={},this._deleted=!0}}const g=new l(""),H=()=>g;export{h as FileHandle,l as FolderHandle,c as Sink,H as default};
1
+ import{c as p,e as y}from"./es6-DuFilFNR.js";import"./index-B-xJO1Ho.js";const{File:r,Blob:_,DOMException:s}=p,{INVALID:z,GONE:n,MISMATCH:f,MOD_ERR:m,SYNTAX:w,SECURITY:A,DISALLOWED:b}=y;class c{constructor(i,e){this.fileHandle=i,this.file=e,this.size=e.size,this.position=0}write(i){let e=this.file;if(typeof i=="object"){if(i.type==="write"){if(Number.isInteger(i.position)&&i.position>=0&&(this.position=i.position,this.size<i.position&&(this.file=new r([this.file,new ArrayBuffer(i.position-this.size)],this.file.name,this.file))),!("data"in i))throw new s(...w("write requires a data argument"));i=i.data}else if(i.type==="seek")if(Number.isInteger(i.position)&&i.position>=0){if(this.size<i.position)throw new s(...z);this.position=i.position;return}else throw new s(...w("seek requires a position argument"));else if(i.type==="truncate")if(Number.isInteger(i.size)&&i.size>=0){e=i.size<this.size?new r([e.slice(0,i.size)],e.name,e):new r([e,new Uint8Array(i.size-this.size)],e.name),this.size=e.size,this.position>e.size&&(this.position=e.size),this.file=e;return}else throw new s(...w("truncate requires a size argument"))}i=new _([i]);let t=this.file;const o=t.slice(0,this.position),u=t.slice(this.position+i.size);let a=this.position-o.size;a<0&&(a=0),t=new r([o,new Uint8Array(a),i,u],t.name),this.size=t.size,this.position+=i.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...n);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class h{constructor(i="",e=new r([],i),t=!0){this._file=e,this.name=i,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...n);return this._file}async createWritable(i){if(!this.writable)throw new s(...b);if(this._deleted)throw new s(...n);const e=i.keepExistingData?await this.getFile():new r([],this.name);return new c(this,e)}async isSameEntry(i){return this===i}async _destroy(){this._deleted=!0,this._file=null}}class l{constructor(i,e=!0){this.name=i,this.kind="directory",this._deleted=!1,this._entries={},this.writable=e,this.readable=!0}async*entries(){if(this._deleted)throw new s(...n);yield*Object.entries(this._entries)}async isSameEntry(i){return this===i}async getDirectoryHandle(i,e){if(this._deleted)throw new s(...n);const t=this._entries[i];if(t){if(t instanceof h)throw new s(...f);return t}else{if(e.create)return this._entries[i]=new l(i);throw new s(...n)}}async getFileHandle(i,e){const t=this._entries[i],o=t instanceof h;if(t&&o)return t;if(t&&!o)throw new s(...f);if(!t&&!e.create)throw new s(...n);if(!t&&e.create)return this._entries[i]=new h(i)}async removeEntry(i,e){const t=this._entries[i];if(!t)throw new s(...n);await t._destroy(e.recursive),delete this._entries[i]}async _destroy(i){for(let e of Object.values(this._entries)){if(!i)throw new s(...m);await e._destroy(i)}this._entries={},this._deleted=!0}}const g=new l(""),H=()=>g;export{h as FileHandle,l as FolderHandle,c as Sink,H as default};
@@ -1,4 +1,4 @@
1
- import{R as Q,r as T}from"./index-EOIuoj4I.js";import{s as Ie}from"./index-CMbTUrxn.js";import"./FormClearHelper-D3yotkXf.js";import"./withFullScreenWrapper-B9gGgkei.js";import"./Toolbar-CfaA32cH.js";import"./sprintf-C-r3gIuM.js";import"./createDownloadLinkElement-DZMwyjvU.js";import"./slicedToArray-DPmPM4Il.js";import"./getPrototypeOf-Do3gT2Di.js";import"./createSuper-CxJ5Qet3.js";import"./FileDownload.esm--KUF2yhQ.js";const Re=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var X;(function(e){e.event="event",e.props="prop"})(X||(X={}));function G(){}function Ae(e){var t,r=void 0;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t&&n.length===t.length&&n.every(function(o,l){return o===t[l]})||(t=n,r=e.apply(void 0,n)),r}}function ee(e){return!!(e||"").match(/\d/)}function Z(e){return e==null}function je(e){return typeof e=="number"&&isNaN(e)}function ce(e){return Z(e)||je(e)||typeof e=="number"&&!isFinite(e)}function fe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Te(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Fe(e,t,r){var n=Te(r),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(n,"$1"+t)}function Be(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function ue(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var a=e.split("."),o=a[0],l=a[1]||"";return{beforeDecimal:o,afterDecimal:l,hasNegation:r,addNegation:n}}function Me(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}function ve(e,t,r){for(var n="",a=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||a;return n}function de(e,t){return Array(t+1).join(e)}function me(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],o=n[1];if(o=Number(o),!o)return r+a;a=a.replace(".","");var l=1+o,g=a.length;return l<0?a="0."+de("0",Math.abs(l))+a:l>=g?a=a+de("0",l-g):a=(a.substring(0,l)||"0")+"."+a.substring(l),r+a}function ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=ue(e),o=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,S=parseFloat("0."+(l||"0")),y=l.length<=t?"0."+l:S.toFixed(t),p=y.split("."),d=o.split("").reverse().reduce(function(w,N,m){return w.length>m?(Number(w[0])+Number(N)).toString()+w.substring(1,w.length):N+w},p[0]),h=ve(p[1]||"",t,r),b=g?"-":"",v=n?".":"";return""+b+d+v+h}function z(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var pe=Ae(function(e,t){for(var r=0,n=0,a=e.length,o=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[o-1-n]&&o-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:o-n}}});function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ie(e){return Math.max(e.selectionStart,e.selectionEnd)}function ke(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Le(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function We(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ke(e,t,r,n,a,o,l){l===void 0&&(l=We);var g=a.findIndex(function(W){return W}),S=e.slice(0,g);!t&&!r.startsWith(S)&&(t=S,r=S+r,n=n+S.length);for(var y=r.length,p=e.length,d={},h=new Array(y),b=0;b<y;b++){h[b]=-1;for(var v=0,w=p;v<w;v++){var N=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:v});if(N&&d[v]!==!0){h[b]=v,d[v]=!0;break}}}for(var m=n;m<y&&(h[m]===-1||!o(r[m]));)m++;var F=m===y||h[m]===-1?p:h[m];for(m=n-1;m>0&&h[m]===-1;)m--;var M=m===-1||h[m]===-1?0:h[m]+1;return M>F?F:n-M<F-n?M:F}function he(e,t,r,n){var a=e.length;if(t=Pe(t,0,a),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=a&&!r[t];)t++;t>a&&(t=r.lastIndexOf(!0))}return t===-1&&(t=a),t}function Ue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ee(e[r])||ee(e[r-1]));return t}function Se(e,t,r,n,a,o){o===void 0&&(o=G);var l=Be(function(v,w){var N,m;return ce(v)?(m="",N=""):typeof v=="number"||w?(m=typeof v=="number"?me(v):v,N=n(m)):(m=a(v,void 0),N=n(m)),{formattedValue:N,numAsString:m}}),g=T.useState(function(){return l(Z(e)?t:e,r)}),S=g[0],y=g[1],p=function(v,w){v.formattedValue!==S.formattedValue&&y({formattedValue:v.formattedValue,numAsString:v.value}),o(v,w)},d=e,h=r;Z(e)&&(d=S.numAsString,h=!0);var b=l(d,h);return T.useMemo(function(){y(b)},[b.formattedValue]),[S,p]}function Ge(e){return e.replace(/[^0-9]/g,"")}function _e(e){return e}function $e(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,a=e.renderText,o=e.getInputRef,l=e.format;l===void 0&&(l=_e);var g=e.removeFormatting;g===void 0&&(g=Ge);var S=e.defaultValue,y=e.valueIsNumericString,p=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=G);var b=e.onKeyDown;b===void 0&&(b=G);var v=e.onMouseUp;v===void 0&&(v=G);var w=e.onFocus;w===void 0&&(w=G);var N=e.onBlur;N===void 0&&(N=G);var m=e.value,F=e.getCaretBoundary;F===void 0&&(F=Ue);var M=e.isValidInputCharacter;M===void 0&&(M=ee);var W=e.isCharacterSame,P=se(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=Se(m,S,!!y,l,g,p),K=_[0],V=K.formattedValue,k=K.numAsString,$=_[1],L=T.useRef({formattedValue:V,numAsString:k}),J=function(u,i){L.current={formattedValue:u.formattedValue,numAsString:u.value},$(u,i)},U=T.useState(!1),q=U[0],H=U[1],s=T.useRef(null),c=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return H(!0),function(){clearTimeout(c.current.setCaretTimeout),clearTimeout(c.current.focusTimeout)}},[]);var A=l,D=function(u,i){var f=parseFloat(i);return{formattedValue:u,value:i,floatValue:isNaN(f)?void 0:f}},C=function(u,i,f){u.selectionStart===0&&u.selectionEnd===u.value.length||(z(u,i),c.current.setCaretTimeout=setTimeout(function(){u.value===f&&u.selectionStart!==u.selectionEnd&&z(u,i)},0))},I=function(u,i,f){return he(u,i,F(u),f)},B=function(u,i,f){var E=F(i),O=Ke(i,V,u,f,E,M,W);return O=he(i,O,E),O},te=function(u){var i=u.formattedValue;i===void 0&&(i="");var f=u.input,E=u.setCaretPosition;E===void 0&&(E=!0);var O=u.source,x=u.event,R=u.numAsString,j=u.caretPos;if(f){if(j===void 0&&E){var Y=u.inputValue||f.value,oe=ie(f);f.value=i,j=B(Y,i,oe)}f.value=i,E&&j!==void 0&&C(f,j,i)}i!==V&&J(D(i,R),{event:x,source:O})};T.useEffect(function(){var u=L.current,i=u.formattedValue,f=u.numAsString;V!==i&&(V!==k||i!==f)&&J(D(V,k),{event:void 0,source:X.props})},[V,k]);var ne=s.current?ie(s.current):void 0,re=typeof window<"u"?T.useLayoutEffect:T.useEffect;re(function(){var u=s.current;if(V!==L.current.formattedValue&&u){var i=B(L.current.formattedValue,V,ne);u.value=V,C(u,i,V)}},[V]);var Ve=function(u,i,f){var E=pe(V,u),O=Object.assign(Object.assign({},E),{lastValue:V}),x=g(u,O),R=A(x);if(x=g(R,void 0),d&&!d(D(R,x))){var j=i.target,Y=ie(j),oe=B(u,V,Y);return j.value=V,C(j,oe,V),!1}return te({formattedValue:R,numAsString:x,inputValue:u,event:i,source:f,setCaretPosition:!0,input:i.target}),!0},xe=function(u){var i=u.target,f=i.value,E=Ve(f,u,X.event);E&&h(u)},we=function(u){var i=u.target,f=u.key,E=i.selectionStart,O=i.selectionEnd,x=i.value;x===void 0&&(x="");var R;if(f==="ArrowLeft"||f==="Backspace"?R=Math.max(E-1,0):f==="ArrowRight"?R=Math.min(E+1,x.length):f==="Delete"&&(R=E),R===void 0||E!==O){b(u);return}var j=R;if(f==="ArrowLeft"||f==="ArrowRight"){var Y=f==="ArrowLeft"?"left":"right";j=I(x,R,Y),j!==R&&u.preventDefault()}else f==="Delete"&&!M(x[R])?j=I(x,R,"right"):f==="Backspace"&&!M(x[R])&&(j=I(x,R,"left"));j!==R&&C(i,j,x),u.isUnitTestRun&&C(i,j,x),b(u)},Ne=function(u){var i=u.target,f=i.selectionStart,E=i.selectionEnd,O=i.value;if(O===void 0&&(O=""),f===E){var x=I(O,f);x!==f&&C(i,x,O)}v(u)},De=function(u){u.persist&&u.persist();var i=u.target;s.current=i,c.current.focusTimeout=setTimeout(function(){var f=i.selectionStart,E=i.selectionEnd,O=i.value;O===void 0&&(O="");var x=I(O,f);x!==f&&!(f===0&&E===O.length)&&C(i,x,O),w(u)},0)},Ce=function(u){s.current=null,clearTimeout(c.current.focusTimeout),clearTimeout(c.current.setCaretTimeout),N(u)},Ee=q&&ke()?"numeric":void 0,le=Object.assign({inputMode:Ee},P,{type:t,value:V,onChange:xe,onKeyDown:we,onMouseUp:Ne,onFocus:De,onBlur:Ce});if(r==="text")return a?Q.createElement(Q.Fragment,null,a(V,P)||null):Q.createElement("span",Object.assign({},P,{ref:o}),V);if(n){var Oe=n;return Q.createElement(Oe,Object.assign({},le,{ref:o}))}return Q.createElement("input",Object.assign({},le,{ref:o}))}function be(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var o=t.suffix;o===void 0&&(o="");var l=t.allowNegative,g=t.thousandsGroupStyle;if(g===void 0&&(g="thousand"),e===""||e==="-")return e;var S=ae(t),y=S.thousandSeparator,p=S.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,h=ue(e,l),b=h.beforeDecimal,v=h.afterDecimal,w=h.addNegation;return r!==void 0&&(v=ve(v,r,!!n)),y&&(b=Fe(b,y,g)),a&&(b=a+b),o&&(v=v+o),w&&(b="-"+b),e=b+(d&&p||"")+v,e}function ae(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function ze(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),a&&!o&&t&&(e="-"+e),e}function Je(e,t){return new RegExp("(^-)|[0-9]|"+fe(e),"g")}function Qe(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ze(e,t,r){var n;t===void 0&&(t=Le(e));var a=r.allowNegative,o=r.prefix;o===void 0&&(o="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,S=t.from,y=t.to,p=y.start,d=y.end,h=ae(r),b=h.allowedDecimalSeparators,v=h.decimalSeparator,w=e[d]===v;if(ee(e)&&(e===o||e===l)&&t.lastValue==="")return e;if(d-p===1&&b.indexOf(e[p])!==-1){var N=g===0?"":v;e=e.substring(0,p)+N+e.substring(p+1,e.length)}var m=function(c,A,D){var C=!1,I=!1;o.startsWith("-")?C=!1:c.startsWith("--")?(C=!1,I=!0):l.startsWith("-")&&c.length===l.length?C=!1:c[0]==="-"&&(C=!0);var B=C?1:0;return I&&(B=2),B&&(c=c.substring(B),A-=B,D-=B),{value:c,start:A,end:D,hasNegation:C}},F=m(e,p,d),M=F.hasNegation;n=F,e=n.value,p=n.start,d=n.end;var W=m(t.lastValue,S.start,S.end),P=W.start,_=W.end,K=W.value,V=e.substring(p,d);e.length&&K.length&&(P>K.length-l.length||_<o.length)&&!(V&&l.startsWith(V))&&(e=K);var k=0;e.startsWith(o)?k+=o.length:p<o.length&&(k=p),e=e.substring(k),d-=k;var $=e.length,L=e.length-l.length;e.endsWith(l)?$=L:(d>L||d>e.length-l.length)&&($=d),e=e.substring(0,$),e=ze(M?"-"+e:e,a),e=(e.match(Je(v))||[]).join("");var J=e.indexOf(v);e=e.replace(new RegExp(fe(v),"g"),function(c,A){return A===J?".":""});var U=ue(e,a),q=U.beforeDecimal,H=U.afterDecimal,s=U.addNegation;return y.end-y.start<S.end-S.start&&q===""&&w&&!parseFloat(H)&&(e=s?"-":""),e}function qe(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";a.fill(!1,0,r.length+(o?1:0));var l=e.length;return a.fill(!1,l-n.length+1,l+1),a}function He(e){var t=ae(e),r=t.thousandSeparator,n=t.decimalSeparator,a=e.prefix;a===void 0&&(a="");var o=e.allowNegative;if(o===void 0&&(o=!0),r===n)throw new Error(`
1
+ import{R as Q,r as T}from"./index-B-xJO1Ho.js";import{s as Ie}from"./index-Q8BeOtD9.js";import"./FormClearHelper-9eaBETaU.js";import"./withFullScreenWrapper--g6uY0Wf.js";import"./Toolbar-CTzbm8jh.js";import"./sprintf-C-r3gIuM.js";import"./createDownloadLinkElement-DZMwyjvU.js";import"./slicedToArray-DFtVT9Ta.js";import"./getPrototypeOf-CddPd8GH.js";import"./createSuper-DEEzb3jl.js";import"./FileDownload.esm-BIJCW18t.js";const Re=Ie("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var X;(function(e){e.event="event",e.props="prop"})(X||(X={}));function G(){}function Ae(e){var t,r=void 0;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t&&n.length===t.length&&n.every(function(o,l){return o===t[l]})||(t=n,r=e.apply(void 0,n)),r}}function ee(e){return!!(e||"").match(/\d/)}function Z(e){return e==null}function je(e){return typeof e=="number"&&isNaN(e)}function ce(e){return Z(e)||je(e)||typeof e=="number"&&!isFinite(e)}function fe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Te(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Fe(e,t,r){var n=Te(r),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(n,"$1"+t)}function Be(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return t.current.apply(t,n)});return r.current}function ue(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var a=e.split("."),o=a[0],l=a[1]||"";return{beforeDecimal:o,afterDecimal:l,hasNegation:r,addNegation:n}}function Me(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}function ve(e,t,r){for(var n="",a=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||a;return n}function de(e,t){return Array(t+1).join(e)}function me(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],o=n[1];if(o=Number(o),!o)return r+a;a=a.replace(".","");var l=1+o,g=a.length;return l<0?a="0."+de("0",Math.abs(l))+a:l>=g?a=a+de("0",l-g):a=(a.substring(0,l)||"0")+"."+a.substring(l),r+a}function ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,a=ue(e),o=a.beforeDecimal,l=a.afterDecimal,g=a.hasNegation,S=parseFloat("0."+(l||"0")),y=l.length<=t?"0."+l:S.toFixed(t),p=y.split("."),d=o.split("").reverse().reduce(function(w,N,m){return w.length>m?(Number(w[0])+Number(N)).toString()+w.substring(1,w.length):N+w},p[0]),h=ve(p[1]||"",t,r),b=g?"-":"",v=n?".":"";return""+b+d+v+h}function z(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var pe=Ae(function(e,t){for(var r=0,n=0,a=e.length,o=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[o-1-n]&&o-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:o-n}}});function Pe(e,t,r){return Math.min(Math.max(e,t),r)}function ie(e){return Math.max(e.selectionStart,e.selectionEnd)}function ke(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Le(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function We(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function Ke(e,t,r,n,a,o,l){l===void 0&&(l=We);var g=a.findIndex(function(W){return W}),S=e.slice(0,g);!t&&!r.startsWith(S)&&(t=S,r=S+r,n=n+S.length);for(var y=r.length,p=e.length,d={},h=new Array(y),b=0;b<y;b++){h[b]=-1;for(var v=0,w=p;v<w;v++){var N=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:b,formattedValueIndex:v});if(N&&d[v]!==!0){h[b]=v,d[v]=!0;break}}}for(var m=n;m<y&&(h[m]===-1||!o(r[m]));)m++;var F=m===y||h[m]===-1?p:h[m];for(m=n-1;m>0&&h[m]===-1;)m--;var M=m===-1||h[m]===-1?0:h[m]+1;return M>F?F:n-M<F-n?M:F}function he(e,t,r,n){var a=e.length;if(t=Pe(t,0,a),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=a&&!r[t];)t++;t>a&&(t=r.lastIndexOf(!0))}return t===-1&&(t=a),t}function Ue(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(ee(e[r])||ee(e[r-1]));return t}function Se(e,t,r,n,a,o){o===void 0&&(o=G);var l=Be(function(v,w){var N,m;return ce(v)?(m="",N=""):typeof v=="number"||w?(m=typeof v=="number"?me(v):v,N=n(m)):(m=a(v,void 0),N=n(m)),{formattedValue:N,numAsString:m}}),g=T.useState(function(){return l(Z(e)?t:e,r)}),S=g[0],y=g[1],p=function(v,w){v.formattedValue!==S.formattedValue&&y({formattedValue:v.formattedValue,numAsString:v.value}),o(v,w)},d=e,h=r;Z(e)&&(d=S.numAsString,h=!0);var b=l(d,h);return T.useMemo(function(){y(b)},[b.formattedValue]),[S,p]}function Ge(e){return e.replace(/[^0-9]/g,"")}function _e(e){return e}function $e(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,a=e.renderText,o=e.getInputRef,l=e.format;l===void 0&&(l=_e);var g=e.removeFormatting;g===void 0&&(g=Ge);var S=e.defaultValue,y=e.valueIsNumericString,p=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=G);var b=e.onKeyDown;b===void 0&&(b=G);var v=e.onMouseUp;v===void 0&&(v=G);var w=e.onFocus;w===void 0&&(w=G);var N=e.onBlur;N===void 0&&(N=G);var m=e.value,F=e.getCaretBoundary;F===void 0&&(F=Ue);var M=e.isValidInputCharacter;M===void 0&&(M=ee);var W=e.isCharacterSame,P=se(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=Se(m,S,!!y,l,g,p),K=_[0],V=K.formattedValue,k=K.numAsString,$=_[1],L=T.useRef({formattedValue:V,numAsString:k}),J=function(u,i){L.current={formattedValue:u.formattedValue,numAsString:u.value},$(u,i)},U=T.useState(!1),q=U[0],H=U[1],s=T.useRef(null),c=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return H(!0),function(){clearTimeout(c.current.setCaretTimeout),clearTimeout(c.current.focusTimeout)}},[]);var A=l,D=function(u,i){var f=parseFloat(i);return{formattedValue:u,value:i,floatValue:isNaN(f)?void 0:f}},C=function(u,i,f){u.selectionStart===0&&u.selectionEnd===u.value.length||(z(u,i),c.current.setCaretTimeout=setTimeout(function(){u.value===f&&u.selectionStart!==u.selectionEnd&&z(u,i)},0))},I=function(u,i,f){return he(u,i,F(u),f)},B=function(u,i,f){var E=F(i),O=Ke(i,V,u,f,E,M,W);return O=he(i,O,E),O},te=function(u){var i=u.formattedValue;i===void 0&&(i="");var f=u.input,E=u.setCaretPosition;E===void 0&&(E=!0);var O=u.source,x=u.event,R=u.numAsString,j=u.caretPos;if(f){if(j===void 0&&E){var Y=u.inputValue||f.value,oe=ie(f);f.value=i,j=B(Y,i,oe)}f.value=i,E&&j!==void 0&&C(f,j,i)}i!==V&&J(D(i,R),{event:x,source:O})};T.useEffect(function(){var u=L.current,i=u.formattedValue,f=u.numAsString;V!==i&&(V!==k||i!==f)&&J(D(V,k),{event:void 0,source:X.props})},[V,k]);var ne=s.current?ie(s.current):void 0,re=typeof window<"u"?T.useLayoutEffect:T.useEffect;re(function(){var u=s.current;if(V!==L.current.formattedValue&&u){var i=B(L.current.formattedValue,V,ne);u.value=V,C(u,i,V)}},[V]);var Ve=function(u,i,f){var E=pe(V,u),O=Object.assign(Object.assign({},E),{lastValue:V}),x=g(u,O),R=A(x);if(x=g(R,void 0),d&&!d(D(R,x))){var j=i.target,Y=ie(j),oe=B(u,V,Y);return j.value=V,C(j,oe,V),!1}return te({formattedValue:R,numAsString:x,inputValue:u,event:i,source:f,setCaretPosition:!0,input:i.target}),!0},xe=function(u){var i=u.target,f=i.value,E=Ve(f,u,X.event);E&&h(u)},we=function(u){var i=u.target,f=u.key,E=i.selectionStart,O=i.selectionEnd,x=i.value;x===void 0&&(x="");var R;if(f==="ArrowLeft"||f==="Backspace"?R=Math.max(E-1,0):f==="ArrowRight"?R=Math.min(E+1,x.length):f==="Delete"&&(R=E),R===void 0||E!==O){b(u);return}var j=R;if(f==="ArrowLeft"||f==="ArrowRight"){var Y=f==="ArrowLeft"?"left":"right";j=I(x,R,Y),j!==R&&u.preventDefault()}else f==="Delete"&&!M(x[R])?j=I(x,R,"right"):f==="Backspace"&&!M(x[R])&&(j=I(x,R,"left"));j!==R&&C(i,j,x),u.isUnitTestRun&&C(i,j,x),b(u)},Ne=function(u){var i=u.target,f=i.selectionStart,E=i.selectionEnd,O=i.value;if(O===void 0&&(O=""),f===E){var x=I(O,f);x!==f&&C(i,x,O)}v(u)},De=function(u){u.persist&&u.persist();var i=u.target;s.current=i,c.current.focusTimeout=setTimeout(function(){var f=i.selectionStart,E=i.selectionEnd,O=i.value;O===void 0&&(O="");var x=I(O,f);x!==f&&!(f===0&&E===O.length)&&C(i,x,O),w(u)},0)},Ce=function(u){s.current=null,clearTimeout(c.current.focusTimeout),clearTimeout(c.current.setCaretTimeout),N(u)},Ee=q&&ke()?"numeric":void 0,le=Object.assign({inputMode:Ee},P,{type:t,value:V,onChange:xe,onKeyDown:we,onMouseUp:Ne,onFocus:De,onBlur:Ce});if(r==="text")return a?Q.createElement(Q.Fragment,null,a(V,P)||null):Q.createElement("span",Object.assign({},P,{ref:o}),V);if(n){var Oe=n;return Q.createElement(Oe,Object.assign({},le,{ref:o}))}return Q.createElement("input",Object.assign({},le,{ref:o}))}function be(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var o=t.suffix;o===void 0&&(o="");var l=t.allowNegative,g=t.thousandsGroupStyle;if(g===void 0&&(g="thousand"),e===""||e==="-")return e;var S=ae(t),y=S.thousandSeparator,p=S.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,h=ue(e,l),b=h.beforeDecimal,v=h.afterDecimal,w=h.addNegation;return r!==void 0&&(v=ve(v,r,!!n)),y&&(b=Fe(b,y,g)),a&&(b=a+b),o&&(v=v+o),w&&(b="-"+b),e=b+(d&&p||"")+v,e}function ae(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function ze(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),a=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),a&&!o&&t&&(e="-"+e),e}function Je(e,t){return new RegExp("(^-)|[0-9]|"+fe(e),"g")}function Qe(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ze(e,t,r){var n;t===void 0&&(t=Le(e));var a=r.allowNegative,o=r.prefix;o===void 0&&(o="");var l=r.suffix;l===void 0&&(l="");var g=r.decimalScale,S=t.from,y=t.to,p=y.start,d=y.end,h=ae(r),b=h.allowedDecimalSeparators,v=h.decimalSeparator,w=e[d]===v;if(ee(e)&&(e===o||e===l)&&t.lastValue==="")return e;if(d-p===1&&b.indexOf(e[p])!==-1){var N=g===0?"":v;e=e.substring(0,p)+N+e.substring(p+1,e.length)}var m=function(c,A,D){var C=!1,I=!1;o.startsWith("-")?C=!1:c.startsWith("--")?(C=!1,I=!0):l.startsWith("-")&&c.length===l.length?C=!1:c[0]==="-"&&(C=!0);var B=C?1:0;return I&&(B=2),B&&(c=c.substring(B),A-=B,D-=B),{value:c,start:A,end:D,hasNegation:C}},F=m(e,p,d),M=F.hasNegation;n=F,e=n.value,p=n.start,d=n.end;var W=m(t.lastValue,S.start,S.end),P=W.start,_=W.end,K=W.value,V=e.substring(p,d);e.length&&K.length&&(P>K.length-l.length||_<o.length)&&!(V&&l.startsWith(V))&&(e=K);var k=0;e.startsWith(o)?k+=o.length:p<o.length&&(k=p),e=e.substring(k),d-=k;var $=e.length,L=e.length-l.length;e.endsWith(l)?$=L:(d>L||d>e.length-l.length)&&($=d),e=e.substring(0,$),e=ze(M?"-"+e:e,a),e=(e.match(Je(v))||[]).join("");var J=e.indexOf(v);e=e.replace(new RegExp(fe(v),"g"),function(c,A){return A===J?".":""});var U=ue(e,a),q=U.beforeDecimal,H=U.afterDecimal,s=U.addNegation;return y.end-y.start<S.end-S.start&&q===""&&w&&!parseFloat(H)&&(e=s?"-":""),e}function qe(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";a.fill(!1,0,r.length+(o?1:0));var l=e.length;return a.fill(!1,l-n.length+1,l+1),a}function He(e){var t=ae(e),r=t.thousandSeparator,n=t.decimalSeparator,a=e.prefix;a===void 0&&(a="");var o=e.allowNegative;if(o===void 0&&(o=!0),r===n)throw new Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+n+` (default value for decimalSeparator is .)
@@ -1 +1 @@
1
- import{e as l}from"./es6-CJjM6kbP.js";import"./index-EOIuoj4I.js";const{DISALLOWED:h}=l;class w{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)}),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");else if(e.type==="truncate")return new Promise(t=>{if(Number.isInteger(e.size)&&e.size>=0)this.writer.onwriteend=i=>t(),this.writer.truncate(e.size);else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError")})}await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))})}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class a{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...h);return new Promise((t,i)=>this.file.createWriter(r=>{e.keepExistingData===!1?(r.onwriteend=n=>t(new w(r,this.file)),r.truncate(0)):t(new w(r,this.file))},i))}}class s{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new a(i,this.writable):new s(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,n=>{i(new s(n))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,n=>i(new a(n)),r))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch(r=>r.name==="TypeMismatchError"?this.getFileHandle(e,{create:!1}):r);if(i instanceof Error)throw i;return new Promise((r,n)=>{i instanceof s?t.recursive?i.dir.removeRecursively(()=>r(),n):i.dir.remove(()=>r(),n):i.file&&i.file.remove(()=>r(),n)})}}const d=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new s(i.root)),t));export{a as FileHandle,s as FolderHandle,d as default};
1
+ import{e as l}from"./es6-DuFilFNR.js";import"./index-B-xJO1Ho.js";const{DISALLOWED:h}=l;class w{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)}),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");else if(e.type==="truncate")return new Promise(t=>{if(Number.isInteger(e.size)&&e.size>=0)this.writer.onwriteend=i=>t(),this.writer.truncate(e.size);else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError")})}await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))})}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class a{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...h);return new Promise((t,i)=>this.file.createWriter(r=>{e.keepExistingData===!1?(r.onwriteend=n=>t(new w(r,this.file)),r.truncate(0)):t(new w(r,this.file))},i))}}class s{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new a(i,this.writable):new s(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,n=>{i(new s(n))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,n=>i(new a(n)),r))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch(r=>r.name==="TypeMismatchError"?this.getFileHandle(e,{create:!1}):r);if(i instanceof Error)throw i;return new Promise((r,n)=>{i instanceof s?t.recursive?i.dir.removeRecursively(()=>r(),n):i.dir.remove(()=>r(),n):i.file&&i.file.remove(()=>r(),n)})}}const d=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new s(i.root)),t));export{a as FileHandle,s as FolderHandle,d as default};
@@ -1,2 +1,2 @@
1
- import{r as a,E as y,_ as d,az as h}from"./index-EOIuoj4I.js";var s=a.forwardRef(function(r,e){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(y,d({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},r,{ref:e}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});s.displayName="Close";function p(r){if(Array.isArray(r))return r}function b(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,u,f,l,o=[],n=!0,c=!1;try{if(f=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;n=!1}else for(;!(n=(i=f.call(t)).done)&&(o.push(i.value),o.length!==e);n=!0);}catch(m){c=!0,u=m}finally{try{if(!n&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw u}}return o}}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as a,E as y,_ as d,az as h}from"./index-B-xJO1Ho.js";var s=a.forwardRef(function(r,e){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(y,d({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},r,{ref:e}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))});s.displayName="Close";function p(r){if(Array.isArray(r))return r}function b(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,u,f,l,o=[],n=!0,c=!1;try{if(f=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;n=!1}else for(;!(n=(i=f.call(t)).done)&&(o.push(i.value),o.length!==e);n=!0);}catch(m){c=!0,u=m}finally{try{if(!n&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw u}}return o}}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(r,e){return p(r)||b(r,e)||h(r,e)||v()}export{s as C,w as _};
@@ -1,2 +1,2 @@
1
- import{b2 as b,r as d,bJ as x,b3 as $,bq as F,bK as T}from"./index-EOIuoj4I.js";import{g as R,a as A,b as E,B as z}from"./base-input-Bvc5b-2K.js";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(n){B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=b("div",function(e){return s(s({},R(s(s({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});m.displayName="StyledTextAreaRoot",m.displayName="StyledTextAreaRoot";var h=b("div",function(e){return A(s({$positive:!1},e))});h.displayName="StyledTextareaContainer",h.displayName="StyledTextareaContainer";var v=b("textarea",function(e){return s(s({},E(e)),{},{resize:e.$resize||"none"})});v.displayName="StyledTextarea",v.displayName="StyledTextarea";function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function _(e,t){return N(e)||I(e,t)||D(e,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{b2 as b,r as d,bJ as x,b3 as $,bq as F,bK as T}from"./index-B-xJO1Ho.js";import{g as R,a as A,b as E,B as z}from"./base-input-Dtkz4-6L.js";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(n){B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=b("div",function(e){return s(s({},R(s(s({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});m.displayName="StyledTextAreaRoot",m.displayName="StyledTextAreaRoot";var h=b("div",function(e){return A(s({$positive:!1},e))});h.displayName="StyledTextareaContainer",h.displayName="StyledTextareaContainer";var v=b("textarea",function(e){return s(s({},E(e)),{},{resize:e.$resize||"none"})});v.displayName="StyledTextarea",v.displayName="StyledTextarea";function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function _(e,t){return N(e)||I(e,t)||D(e,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(e,t){if(e){if(typeof e=="string")return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}}function w(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,u=!1,i,a;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(y){u=!0,a=y}finally{try{!o&&r.return!=null&&r.return()}finally{if(u)throw a}}return n}}function N(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t,r){return K(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},g(e,t)}function J(e){var t=H();return function(){var r=f(e),n;if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&(O(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=function(e){U(r,e);var t=J(r);function r(){var n;q(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return n=t.call.apply(t,[this].concat(u)),p(l(n),"state",{isFocused:n.props.autoFocus||!1}),p(l(n),"onFocus",function(a){n.setState({isFocused:!0}),n.props.onFocus(a)}),p(l(n),"onBlur",function(a){n.setState({isFocused:!1}),n.props.onBlur(a)}),n}return k(r,[{key:"render",value:function(){var n=this.props.overrides,o=n===void 0?{}:n,u=$(o.Root,m),i=_(u,2),a=i[0],y=i[1],S=F({Input:{component:v},InputContainer:{component:h}},o);return d.createElement(a,c({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},y),d.createElement(z,c({},this.props,{type:T.textarea,overrides:S,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}]),r}(d.Component);p(P,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:x.default});export{P as T};