@stlite/desktop 0.101.0 → 0.101.1

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 (106) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/assets/{ArrowVegaLiteChart-BPRH3gBe-BAbt2P_J.js → ArrowVegaLiteChart-CatHU5ye-DE4k_KZP.js} +1 -1
  3. package/build/assets/{Audio-CoZBGqWO-DVgjOuuv.js → Audio-Y9nq0mPc-DJn2U9cz.js} +1 -1
  4. package/build/assets/{AudioInput-CP7K7uZB-DEV8Xl4i.js → AudioInput-Csthtpwn-Gk0F2DgH.js} +1 -1
  5. package/build/assets/{Balloons-Dskp5L92-ZNEwM3D8.js → Balloons-CAfRmkgd-z1flYTjg.js} +1 -1
  6. package/build/assets/{BidiComponent-DxYVG75b-CJQGNxg7.js → BidiComponent-C0W-jB8K-D7KrGlkt.js} +1 -1
  7. package/build/assets/{Button-5Ajtxbwn-BDegkHP-.js → Button-CtzCBW58-BD91cO69.js} +1 -1
  8. package/build/assets/{ButtonGroup-pGxlWp89-DmbuGG5M.js → ButtonGroup-tARGP97W-k1H0Zd3f.js} +1 -1
  9. package/build/assets/{CameraInput-vKKDhL6--Bpo-2dKV.js → CameraInput-CiV08N6Y-BKRxm_ar.js} +1 -1
  10. package/build/assets/{ChatInput-B6oFIFHm-uQa-NGtx.js → ChatInput-CFv2o38z-D_M_04yy.js} +1 -1
  11. package/build/assets/{Checkbox-DkJE55dj-CY83TfqD.js → Checkbox-DWGcKBjY-KBwPglLJ.js} +1 -1
  12. package/build/assets/{ColorPicker-BMz1lxCB-B2MaPR-H.js → ColorPicker-DFXf_KfZ-CnAPoS0z.js} +1 -1
  13. package/build/assets/{ComponentInstance-Cemgj4S0-BMxea-Y3.js → ComponentInstance-Dlz3boBV-ElD3LiR-.js} +1 -1
  14. package/build/assets/{DataFrame-CE79SZpX-CVHFe_Oz.js → DataFrame-ZHi5iyDV-DOvZAfc9.js} +5 -5
  15. package/build/assets/{DateInput-CEc2d-u8-CCDK405-.js → DateInput-DY0AqEEz-CqSRF0qe.js} +1 -1
  16. package/build/assets/{DateTimeInput-Dxlp0suj-lPuiAonQ.js → DateTimeInput-CXPUXbNs-be2fi1AZ.js} +1 -1
  17. package/build/assets/{DeckGlJsonChart-BW5EAwx1-BE5y5UXu.js → DeckGlJsonChart-3OvaJ57f-UNRd4a-y.js} +1 -1
  18. package/build/assets/{DownloadButton-DV8eX00c-kOA1BAvU.js → DownloadButton-DmVVeFJl-Do7BZpDb.js} +1 -1
  19. package/build/assets/{ErrorOutline.esm-iPLqAm6s-BL6R0-E8.js → ErrorOutline.esm-YgtldkCQ-CemIM7Sw.js} +1 -1
  20. package/build/assets/{Feedback-MVQzrJry-Dd1sPXaV.js → Feedback-BcHw2pQG-CaKtB97h.js} +1 -1
  21. package/build/assets/{FileDownload.esm-8YapEt7k-NoDtFt6j.js → FileDownload.esm-DA6EBJWo-CxqNcH-o.js} +1 -1
  22. package/build/assets/{FileUploader-Bq3BegdV-B3r5TUWB.js → FileUploader-Dpa-JOXx-BcyQjtX1.js} +1 -1
  23. package/build/assets/{FormSubmitContent-DD_l2XQL-BimOkDO8.js → FormSubmitContent-BjnJlt70-CMef_LQq.js} +1 -1
  24. package/build/assets/{GraphVizChart-j4WovvTA-C0wWJ_pD.js → GraphVizChart-DvlJXY81-DgyqPG63.js} +1 -1
  25. package/build/assets/{Html-D79N9lS4-DAD924qV.js → Html-B0_sFMha-C_dmalFu.js} +1 -1
  26. package/build/assets/{IFrame-C-0ir_lX-COQZFQmq.js → IFrame-DRaylZUz-BDLId26Q.js} +1 -1
  27. package/build/assets/{ImageList-DITlvS6g-BFNsGTg4.js → ImageList-C_I_gGvM-DLKWaXo_.js} +1 -1
  28. package/build/assets/{InputInstructions-nOmuO-zQ-DLhhHeOF.js → InputInstructions-BQBBgzXB-CiqDziMj.js} +1 -1
  29. package/build/assets/{Json-dkGVRbLV-BZzUtwOp.js → Json-C6_T-DWT-DkBsT-1G.js} +1 -1
  30. package/build/assets/{LinkButton-CxeesGpD-XutrRy0n.js → LinkButton-6uqUWhGF-D7wFQ281.js} +1 -1
  31. package/build/assets/{MenuButton-UcWUeA29-CQZ7nqVP.js → MenuButton-Bmt95URR-DWfL9ITb.js} +1 -1
  32. package/build/assets/{Metric-E6w6g5y9-Dk-6h2Zo.js → Metric-SKreeL3S-D11O16iU.js} +1 -1
  33. package/build/assets/{Multiselect-C_J-6rRf-BBLmmdLo.js → Multiselect-C7QmmmLa-DswxpHA8.js} +1 -1
  34. package/build/assets/{NumberInput-CmmPAj3n-BvWR0X5L.js → NumberInput-zpxbqqaI-BemEeZnC.js} +1 -1
  35. package/build/assets/{PageLink-B_F10WTa-BFWV94JC.js → PageLink-CS25U8sD-DuDcJ3as.js} +1 -1
  36. package/build/assets/{Particles-Dg4BbwYl-DxeaHInY.js → Particles-CvcHVa3B-D8gsFknc.js} +1 -1
  37. package/build/assets/{PlotlyChart-D4XY8twK-DVP8NFHB.js → PlotlyChart-CvayS3p7-Chny3tV_.js} +1 -1
  38. package/build/assets/{Progress-B1iI3faW-BbsFPR94.js → Progress-DGYWLpfg-CRiA40l6.js} +1 -1
  39. package/build/assets/{ProgressBar-Dxdjhh5v-CTb2XLYl.js → ProgressBar-DhIwITyC-B3HjvnkD.js} +1 -1
  40. package/build/assets/{Radio-BrYX5pm0-CF7BRVxx.js → Radio-DpOh-J7A-CQZUGZrw.js} +1 -1
  41. package/build/assets/{Selectbox-sP6HTvqf-DlF5ZFtf.js → Selectbox-3CDAXdnY-CsatfdqB.js} +1 -1
  42. package/build/assets/{Slider-D98WJ7GD-BEhH17Zd.js → Slider-DMZ19nRR-D59HIM6O.js} +1 -1
  43. package/build/assets/{Snow-BEe0B8y4-DD2qBOW1.js → Snow-5YC5Tskh-CYK5UTTk.js} +1 -1
  44. package/build/assets/{Spinner-iDUBO9CD-D_zDEDrL.js → Spinner-B3_-SaXN-McIq5xMY.js} +1 -1
  45. package/build/assets/{StreamlitSyntaxHighlighter-B0XLn_aG-C0Kyhnly.js → StreamlitSyntaxHighlighter-BQaPTFQq-D7Uj2Adi.js} +1 -1
  46. package/build/assets/{Table-BN3amuUX-_h5zNOPx.js → Table-Bc9x-fDk-DqKxodLp.js} +1 -1
  47. package/build/assets/{TableChart.esm-BEJJfW1D-DZXow7YN.js → TableChart.esm-DqSB-klz-DFWt0snW.js} +1 -1
  48. package/build/assets/{TextArea-BEB_9fLu-CW8pYEVM.js → TextArea-B1xQzjI6-B02nvgg-.js} +1 -1
  49. package/build/assets/{TextInput-CnKuZu4D-BpWqERh9.js → TextInput-D1xd0P97-BixpGDSG.js} +1 -1
  50. package/build/assets/{TimeInput-p5WNkWhN-5G1YCgeW.js → TimeInput-DuMfskY4-BipgeoUn.js} +1 -1
  51. package/build/assets/{Toast-CamIWrFG-D9p31VL8.js → Toast-CJKq1jpo-CCJnP6c1.js} +1 -1
  52. package/build/assets/{Video-QwWFy5xP-BpsExZGv.js → Video-B1N4EHQq-nnkWrBjK.js} +1 -1
  53. package/build/assets/{WidgetLabel-UxhCOQGD-Outa0e9S.js → WidgetLabel-CQfHGtry-H2bBW1_F.js} +1 -1
  54. package/build/assets/{WidgetLabelHelpIcon-B9x-Yn7N-DaZaIL2I.js → WidgetLabelHelpIcon-C6IRqJ_I-CThDB-RY.js} +1 -1
  55. package/build/assets/{WidgetLabelHelpIconInline-DpAdsUdv-BJmzytr_.js → WidgetLabelHelpIconInline-BTmzKeRa-Duj2btUF.js} +1 -1
  56. package/build/assets/{_baseAssignValue-5yAp7ssZ-B_y2bL7u.js → _baseAssignValue-CvLdsscI-CrqCsrMj.js} +1 -1
  57. package/build/assets/{base-input-BruRHirU-Dc9fKcQ_.js → base-input-Drzzu2Q6-ChupVbXS.js} +1 -1
  58. package/build/assets/{checkbox-SGVQt8CZ-CUyChNRB.js → checkbox-BlFkpHIT--ezfhS9t.js} +1 -1
  59. package/build/assets/{constants-BAtobv15-hfdyP7sx.js → constants-yZa2TGaZ-C7XGmSjZ.js} +1 -1
  60. package/build/assets/{createDownloadLinkElement-hdE2s_AI-2rp2KBS8.js → createDownloadLinkElement-CnWgptKS-DPufZYcx.js} +1 -1
  61. package/build/assets/{createSuper-DStVJdot-BgJXIEaD.js → createSuper-DfsXhqeB-CdsievJ8.js} +1 -1
  62. package/build/assets/{data-grid-overlay-editor-CpKwlh0F-Ot5bveZo.js → data-grid-overlay-editor-BylJk6rz-B2d0C4wn.js} +1 -1
  63. package/build/assets/{downloader-CZ7qD7NY-DO5yuo_B.js → downloader-CZ7qD7NY-bknF4iTS.js} +1 -1
  64. package/build/assets/{embed-BWbkDQKD-CQt2Xn8d.js → embed-C21m9f7b-B4FzBzhy.js} +1 -1
  65. package/build/assets/{es6-BxevHr5y-BFwhOTke.js → es6-BxevHr5y-CS3OejqZ.js} +1 -1
  66. package/build/assets/{formatNumber-CK08KwyC-BpCoyciY.js → formatNumber-B9NmJPl4-Bduke_Pe.js} +1 -1
  67. package/build/assets/{iconPosition-CaL2HY1u-D4CYRoRA.js → iconPosition-Cpqwt3HE-D1Z0gR4v.js} +1 -1
  68. package/build/assets/{iframeResizer.contentWindow-DwDNXvbk-Cmn9AtXP.js → iframeResizer.contentWindow-CaUMNiuy-bR3yN29o.js} +1 -1
  69. package/build/assets/{index-BWg7VeLm-DVMf1gfQ.js → index-B7jxgHEF-tvzMtMrO.js} +1 -1
  70. package/build/assets/{index-cRrBqQzO-ixGPBxWO.js → index-DINISCAW-ClgNywT7.js} +1 -1
  71. package/build/assets/{index-B14K3STS-DjuURwqx.js → index-DZZFubxH-pza9foUu.js} +1 -1
  72. package/build/assets/{index-CC2oI2tl-B1Janb2E.js → index-Dk9oWC2N-Cm5J-5pS.js} +1 -1
  73. package/build/assets/{index-DtJJZPfU-CoZOkYgP.js → index-DmoOfsTG-CbezIXlt.js} +1 -1
  74. package/build/assets/{index-B4fa-n2i.js → index-lR-QVdnh.js} +5 -5
  75. package/build/assets/{input-CK4OtyRn-yU_-c-Kx.js → input-CClPhvPt-ZRbRIlPm.js} +1 -1
  76. package/build/assets/{memory-C-LDMFc2-CqsiY5qN.js → memory-C-LDMFc2-grfew3Ct.js} +1 -1
  77. package/build/assets/{moment-C29_LcvN-KXJiUm6M.js → moment-C29_LcvN-DWLtgoJ3.js} +1 -1
  78. package/build/assets/{number-overlay-editor-Cdrkus19-CUUZ-u43.js → number-overlay-editor-CQ3u-ilh-C8RlzGdo.js} +1 -1
  79. package/build/assets/{pandasStylerUtils-CY1NqKTm-DwfIUg29.js → pandasStylerUtils-lPQUevWP-DCEaT5gM.js} +1 -1
  80. package/build/assets/{possibleConstructorReturn-Dp3x_67l-DW084-po.js → possibleConstructorReturn-BHiKHPYz-Ct6Qmz2B.js} +1 -1
  81. package/build/assets/{reactJsonViewCompat-BhHQdMb3-D8YsIkW1.js → reactJsonViewCompat-BZlB_0r4-DL51cX9L.js} +1 -1
  82. package/build/assets/{sandbox-DbnteG5V-DNuXtcQa.js → sandbox-DbnteG5V-HPERfLXa.js} +1 -1
  83. package/build/assets/{select-zCQ7w46r-igC065UB.js → select-DyvsciAf-taVHCqSw.js} +1 -1
  84. package/build/assets/{sprintfjs-COS3ohU3-DoDOU6OA.js → sprintfjs-pgmg3ABV-kczlFpH1.js} +1 -1
  85. package/build/assets/{stateful-menu-B1me4S43-BQ0PQHe9.js → stateful-menu-CW-YE2l8-eSvRA0_x.js} +1 -1
  86. package/build/assets/{styled-components-CQF9Arpx-CYVHnd6_.js → styled-components-BDZ1Vzrp-DV4YFEHI.js} +1 -1
  87. package/build/assets/{styled-components-k0rbnWKx-D5DoPNuy.js → styled-components-CZBaXqHz-WpjbtMki.js} +1 -1
  88. package/build/assets/{styled-components-vQd9mwpf-HK_7dsCd.js → styled-components-Cxzc3DcQ-Dx1RKHWs.js} +1 -1
  89. package/build/assets/{timepicker-EzC3uiD--BM84grrq.js → timepicker-Bp949u0W-CdL6sZaL.js} +1 -1
  90. package/build/assets/{toConsumableArray-BtKF-zGi-DY9ZxPdB.js → toConsumableArray-8hd4ivs--CUX5d2F_.js} +1 -1
  91. package/build/assets/{useBasicWidgetState-BMBMOmTg-D4BUrDbU.js → useBasicWidgetState-D3zHnRUK-J72gaU7U.js} +1 -1
  92. package/build/assets/{useIntlLocale-DqYWg-Yk-vlpPga3p.js → useIntlLocale-DdLGxiZO-DJttkOFe.js} +1 -1
  93. package/build/assets/{useSelectCommon-CTMZGTGc-Ce0_Hd3P.js → useSelectCommon-CZP9dNty-DYUDYQZN.js} +1 -1
  94. package/build/assets/{useTextInputAutoExpand-CnKMosrs-B4eb5Sf7.js → useTextInputAutoExpand-D9pA1iXq-B_21ViwV.js} +1 -1
  95. package/build/assets/{useUpdateUiValue-B9f-9GF1-ClPAYOW9.js → useUpdateUiValue-CsBMIrnj-BopSFNwe.js} +1 -1
  96. package/build/assets/{useWaveformController-vz6xEIpB-By40P5gh.js → useWaveformController-rxqEhP00-CEw8q0Aj.js} +1 -1
  97. package/build/assets/{utils-C0gaaqVX-vUUpSioz.js → utils-CotIDfd1-2L45u02v.js} +1 -1
  98. package/build/assets/{withCalculatedWidth-B-DDl_d6-BCYIlY-Q.js → withCalculatedWidth-DwrWHMUR-B2yMBY1O.js} +1 -1
  99. package/build/assets/{withFullScreenWrapper-CuXVCIWH-BixTXCsJ.js → withFullScreenWrapper-tGGSjEWy-BaPaU-BF.js} +1 -1
  100. package/build/assets/worker-BOAT2Vs2-B55LI3Y4.js +1020 -0
  101. package/build/electron/worker.js +9 -9
  102. package/build/index.html +1 -1
  103. package/package.json +3 -3
  104. package/wheels/stlite_lib-0.1.0-py3-none-any.whl +0 -0
  105. package/wheels/streamlit-1.57.0-cp313-none-any.whl +0 -0
  106. package/build/assets/worker-au3nYZmM-CULfdmAh.js +0 -930
@@ -1,2 +1,2 @@
1
- import{$n as e,Ha as t,Wa as n}from"./index-B4fa-n2i.js";import{a as r,n as i,t as a}from"./constants-BAtobv15-hfdyP7sx.js";import{c as o,i as s,o as c,s as l}from"./base-input-BruRHirU-Dc9fKcQ_.js";var u=n(t(),1);function d(e){"@babel/helpers - typeof";return d=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},d(e)}var f=[`Root`,`StartEnhancer`,`EndEnhancer`],p=[`startEnhancer`,`endEnhancer`,`overrides`];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function h(e,t){return b(e)||y(e,t)||_(e,t)||g()}function g(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{$n as e,Ha as t,Wa as n}from"./index-lR-QVdnh.js";import{a as r,n as i,t as a}from"./constants-yZa2TGaZ-C7XGmSjZ.js";import{c as o,i as s,o as c,s as l}from"./base-input-Drzzu2Q6-ChupVbXS.js";var u=n(t(),1);function d(e){"@babel/helpers - typeof";return d=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},d(e)}var f=[`Root`,`StartEnhancer`,`EndEnhancer`],p=[`startEnhancer`,`endEnhancer`,`overrides`];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function h(e,t){return b(e)||y(e,t)||_(e,t)||g()}function g(){throw 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 _(e,t){if(e){if(typeof e==`string`)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}function v(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function b(e){if(Array.isArray(e))return e}function x(e,t){if(e==null)return{};var n=S(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function C(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t,n){return t&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t){if(typeof t!=`function`&&t!==null)throw 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&&D(e,t)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function O(e){var t=j();return function(){var n=M(e),r;if(t){var i=M(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){if(t&&(d(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return A(e)}function A(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function j(){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 M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(t){E(r,t);var n=O(r);function r(){var e;C(this,r);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),N(A(e),`state`,{isFocused:e.props.autoFocus||!1}),N(A(e),`onFocus`,function(t){e.setState({isFocused:!0}),e.props.onFocus(t)}),N(A(e),`onBlur`,function(t){e.setState({isFocused:!1}),e.props.onBlur(t)}),e}return T(r,[{key:`render`,value:function(){var t=this.props,n=t.startEnhancer,r=t.endEnhancer,a=t.overrides,d=a.Root,g=a.StartEnhancer,_=a.EndEnhancer,v=x(a,f),y=x(t,p),b=h(e(d,c),2),S=b[0],C=b[1],w=h(e(g,o),2),T=w[0],E=w[1],D=h(e(_,o),2),O=D[0],k=D[1],A=s(this.props,this.state);return u.createElement(S,m({"data-baseweb":`input`},A,C,{$adjoined:F(n,r),$hasIconTrailing:this.props.clearable||this.props.type==`password`}),I(n)&&u.createElement(T,m({},A,E,{$position:i.start}),typeof n==`function`?n(A):n),u.createElement(l,m({},y,{overrides:v,adjoined:F(n,r),onFocus:this.onFocus,onBlur:this.onBlur})),I(r)&&u.createElement(O,m({},A,k,{$position:i.end}),typeof r==`function`?r(A):r))}}]),r}(u.Component);N(P,`defaultProps`,{autoComplete:`on`,autoFocus:!1,disabled:!1,name:``,onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:a.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:`text`,readOnly:!1});function F(e,t){return I(e)&&I(t)?r.both:I(e)?r.left:I(t)?r.right:r.none}function I(e){return!!(e||e===0)}export{P as t};
@@ -1 +1 @@
1
- import{c as e,e as t}from"./es6-BxevHr5y-BFwhOTke.js";var{File:n,Blob:r,DOMException:i}=e,{INVALID:a,GONE:o,MISMATCH:s,MOD_ERR:c,SYNTAX:l,SECURITY:u,DISALLOWED:d}=t,f=class{constructor(e,t){this.fileHandle=e,this.file=t,this.size=t.size,this.position=0}write(e){let t=this.file;if(typeof e==`object`){if(e.type===`write`){if(Number.isInteger(e.position)&&e.position>=0&&(this.position=e.position,this.size<e.position&&(this.file=new n([this.file,new ArrayBuffer(e.position-this.size)],this.file.name,this.file))),!(`data`in e))throw new i(...l(`write requires a data argument`));e=e.data}else if(e.type===`seek`)if(Number.isInteger(e.position)&&e.position>=0){if(this.size<e.position)throw new i(...a);this.position=e.position;return}else throw new i(...l(`seek requires a position argument`));else if(e.type===`truncate`)if(Number.isInteger(e.size)&&e.size>=0){t=e.size<this.size?new n([t.slice(0,e.size)],t.name,t):new n([t,new Uint8Array(e.size-this.size)],t.name),this.size=t.size,this.position>t.size&&(this.position=t.size),this.file=t;return}else throw new i(...l(`truncate requires a size argument`))}e=new r([e]);let o=this.file,s=o.slice(0,this.position),c=o.slice(this.position+e.size),u=this.position-s.size;u<0&&(u=0),o=new n([s,new Uint8Array(u),e,c],o.name),this.size=o.size,this.position+=e.size,this.file=o}close(){if(this.fileHandle._deleted)throw new i(...o);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}},p=class{constructor(e=``,t=new n([],e),r=!0){this._file=t,this.name=e,this.kind=`file`,this._deleted=!1,this.writable=r,this.readable=!0}async getFile(){if(this._deleted)throw new i(...o);return this._file}async createWritable(e){if(!this.writable)throw new i(...d);if(this._deleted)throw new i(...o);let t=e.keepExistingData?await this.getFile():new n([],this.name);return new f(this,t)}async isSameEntry(e){return this===e}async _destroy(){this._deleted=!0,this._file=null}},m=class e{constructor(e,t=!0){this.name=e,this.kind=`directory`,this._deleted=!1,this._entries={},this.writable=t,this.readable=!0}async*entries(){if(this._deleted)throw new i(...o);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(t,n){if(this._deleted)throw new i(...o);let r=this._entries[t];if(r){if(r instanceof p)throw new i(...s);return r}else{if(n.create)return this._entries[t]=new e(t);throw new i(...o)}}async getFileHandle(e,t){let n=this._entries[e],r=n instanceof p;if(n&&r)return n;if(n&&!r)throw new i(...s);if(!n&&!t.create)throw new i(...o);if(!n&&t.create)return this._entries[e]=new p(e)}async removeEntry(e,t){let n=this._entries[e];if(!n)throw new i(...o);await n._destroy(t.recursive),delete this._entries[e]}async _destroy(e){for(let t of Object.values(this._entries)){if(!e)throw new i(...c);await t._destroy(e)}this._entries={},this._deleted=!0}},h=new m(``),g=()=>h;export{p as FileHandle,m as FolderHandle,f as Sink,g as default};
1
+ import{c as e,e as t}from"./es6-BxevHr5y-CS3OejqZ.js";var{File:n,Blob:r,DOMException:i}=e,{INVALID:a,GONE:o,MISMATCH:s,MOD_ERR:c,SYNTAX:l,SECURITY:u,DISALLOWED:d}=t,f=class{constructor(e,t){this.fileHandle=e,this.file=t,this.size=t.size,this.position=0}write(e){let t=this.file;if(typeof e==`object`){if(e.type===`write`){if(Number.isInteger(e.position)&&e.position>=0&&(this.position=e.position,this.size<e.position&&(this.file=new n([this.file,new ArrayBuffer(e.position-this.size)],this.file.name,this.file))),!(`data`in e))throw new i(...l(`write requires a data argument`));e=e.data}else if(e.type===`seek`)if(Number.isInteger(e.position)&&e.position>=0){if(this.size<e.position)throw new i(...a);this.position=e.position;return}else throw new i(...l(`seek requires a position argument`));else if(e.type===`truncate`)if(Number.isInteger(e.size)&&e.size>=0){t=e.size<this.size?new n([t.slice(0,e.size)],t.name,t):new n([t,new Uint8Array(e.size-this.size)],t.name),this.size=t.size,this.position>t.size&&(this.position=t.size),this.file=t;return}else throw new i(...l(`truncate requires a size argument`))}e=new r([e]);let o=this.file,s=o.slice(0,this.position),c=o.slice(this.position+e.size),u=this.position-s.size;u<0&&(u=0),o=new n([s,new Uint8Array(u),e,c],o.name),this.size=o.size,this.position+=e.size,this.file=o}close(){if(this.fileHandle._deleted)throw new i(...o);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}},p=class{constructor(e=``,t=new n([],e),r=!0){this._file=t,this.name=e,this.kind=`file`,this._deleted=!1,this.writable=r,this.readable=!0}async getFile(){if(this._deleted)throw new i(...o);return this._file}async createWritable(e){if(!this.writable)throw new i(...d);if(this._deleted)throw new i(...o);let t=e.keepExistingData?await this.getFile():new n([],this.name);return new f(this,t)}async isSameEntry(e){return this===e}async _destroy(){this._deleted=!0,this._file=null}},m=class e{constructor(e,t=!0){this.name=e,this.kind=`directory`,this._deleted=!1,this._entries={},this.writable=t,this.readable=!0}async*entries(){if(this._deleted)throw new i(...o);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(t,n){if(this._deleted)throw new i(...o);let r=this._entries[t];if(r){if(r instanceof p)throw new i(...s);return r}else{if(n.create)return this._entries[t]=new e(t);throw new i(...o)}}async getFileHandle(e,t){let n=this._entries[e],r=n instanceof p;if(n&&r)return n;if(n&&!r)throw new i(...s);if(!n&&!t.create)throw new i(...o);if(!n&&t.create)return this._entries[e]=new p(e)}async removeEntry(e,t){let n=this._entries[e];if(!n)throw new i(...o);await n._destroy(t.recursive),delete this._entries[e]}async _destroy(e){for(let t of Object.values(this._entries)){if(!e)throw new i(...c);await t._destroy(e)}this._entries={},this._deleted=!0}},h=new m(``),g=()=>h;export{p as FileHandle,m as FolderHandle,f as Sink,g as default};
@@ -1,4 +1,4 @@
1
- import{Ua as e}from"./index-B4fa-n2i.js";var t;function n(){return t.apply(null,arguments)}function r(e){t=e}function i(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function a(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(o(e,t))return!1;return!0}function c(e){return e===void 0}function l(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function u(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function d(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,`toString`)&&(e.toString=t.toString),o(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return or(e,t,n,r,!0).utc()}function ee(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return e._pf??=ee(),e._pf}var te=Array.prototype.some?Array.prototype.some:function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ne(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),n=te.call(t.parsedDateParts,function(e){return e!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function re(e){var t=p(NaN);return e==null?m(t).userInvalidated=!0:f(m(t),e),t}var ie=n.momentProperties=[],ae=!1;function oe(e,t){var n,r,i,a=ie.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=ie[n],i=t[r],c(i)||(e[r]=i);return e}function se(e){oe(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),ae===!1&&(ae=!0,n.updateOffset(this),ae=!1)}function h(e){return e instanceof se||e!=null&&e._isAMomentObject!=null}function ce(e){n.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function g(e,t){var r=!0;return f(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,e),r){var i=[],a,s,c,l=arguments.length;for(s=0;s<l;s++){if(a=``,typeof arguments[s]==`object`){for(c in a+=`
1
+ import{Ua as e}from"./index-lR-QVdnh.js";var t;function n(){return t.apply(null,arguments)}function r(e){t=e}function i(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function a(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(o(e,t))return!1;return!0}function c(e){return e===void 0}function l(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function u(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function d(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,`toString`)&&(e.toString=t.toString),o(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return or(e,t,n,r,!0).utc()}function ee(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return e._pf??=ee(),e._pf}var te=Array.prototype.some?Array.prototype.some:function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ne(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),n=te.call(t.parsedDateParts,function(e){return e!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function re(e){var t=p(NaN);return e==null?m(t).userInvalidated=!0:f(m(t),e),t}var ie=n.momentProperties=[],ae=!1;function oe(e,t){var n,r,i,a=ie.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=ie[n],i=t[r],c(i)||(e[r]=i);return e}function se(e){oe(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),ae===!1&&(ae=!0,n.updateOffset(this),ae=!1)}function h(e){return e instanceof se||e!=null&&e._isAMomentObject!=null}function ce(e){n.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function g(e,t){var r=!0;return f(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,e),r){var i=[],a,s,c,l=arguments.length;for(s=0;s<l;s++){if(a=``,typeof arguments[s]==`object`){for(c in a+=`
2
2
  [`+s+`] `,arguments[0])o(arguments[0],c)&&(a+=c+`: `+arguments[0][c]+`, `);a=a.slice(0,-2)}else a=arguments[s];i.push(a)}ce(e+`
3
3
  Arguments: `+Array.prototype.slice.call(i).join(``)+`
4
4
  `+Error().stack),r=!1}return t.apply(this,arguments)},t)}var le={};function ue(e,t){n.deprecationHandler!=null&&n.deprecationHandler(e,t),le[e]||(ce(t),le[e]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function _(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function de(e){var t,n;for(n in e)o(e,n)&&(t=e[n],_(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|\\d{1,2}`)}function fe(e,t){var n=f({},e),r;for(r in t)o(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)o(e,r)&&!o(t,r)&&a(e[r])&&(n[r]=f({},n[r]));return n}function pe(e){e!=null&&this.set(e)}var me=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n},he={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`};function ge(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r}function v(e,t,n){var r=``+Math.abs(e),i=t-r.length;return(e>=0?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}var _e=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ve=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ye={},be={};function y(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(be[e]=i),t&&(be[t[0]]=function(){return v(i.apply(this,arguments),t[1],t[2])}),n&&(be[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function xe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function Se(e){var t=e.match(_e),n,r;for(n=0,r=t.length;n<r;n++)be[t[n]]?t[n]=be[t[n]]:t[n]=xe(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=_(t[a])?t[a].call(n,e):t[a];return i}}function Ce(e,t){return e.isValid()?(t=we(t,e.localeData()),ye[t]=ye[t]||Se(t),ye[t](e)):e.localeData().invalidDate()}function we(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(ve.lastIndex=0;n>=0&&ve.test(e);)e=e.replace(ve,r),ve.lastIndex=0,--n;return e}var Te={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};function Ee(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(_e).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}var De=`Invalid date`;function Oe(){return this._invalidDate}var ke=`%d`,Ae=/\d{1,2}/;function je(e){return this._ordinal.replace(`%d`,e)}var Me={future:`in %s`,past:`%s ago`,s:`a few seconds`,ss:`%d seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,w:`a week`,ww:`%d weeks`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function Ne(e,t,n,r){var i=this._relativeTime[n];return _(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Pe(e,t){var n=this._relativeTime[e>0?`future`:`past`];return _(n)?n(t):n.replace(/%s/i,t)}var Fe={D:`date`,dates:`date`,date:`date`,d:`day`,days:`day`,day:`day`,e:`weekday`,weekdays:`weekday`,weekday:`weekday`,E:`isoWeekday`,isoweekdays:`isoWeekday`,isoweekday:`isoWeekday`,DDD:`dayOfYear`,dayofyears:`dayOfYear`,dayofyear:`dayOfYear`,h:`hour`,hours:`hour`,hour:`hour`,ms:`millisecond`,milliseconds:`millisecond`,millisecond:`millisecond`,m:`minute`,minutes:`minute`,minute:`minute`,M:`month`,months:`month`,month:`month`,Q:`quarter`,quarters:`quarter`,quarter:`quarter`,s:`second`,seconds:`second`,second:`second`,gg:`weekYear`,weekyears:`weekYear`,weekyear:`weekYear`,GG:`isoWeekYear`,isoweekyears:`isoWeekYear`,isoweekyear:`isoWeekYear`,w:`week`,weeks:`week`,week:`week`,W:`isoWeek`,isoweeks:`isoWeek`,isoweek:`isoWeek`,y:`year`,years:`year`,year:`year`};function b(e){return typeof e==`string`?Fe[e]||Fe[e.toLowerCase()]:void 0}function Ie(e){var t={},n,r;for(r in e)o(e,r)&&(n=b(r),n&&(t[n]=e[r]));return t}var Le={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Re(e){var t=[],n;for(n in e)o(e,n)&&t.push({unit:n,priority:Le[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}var ze=/\d/,x=/\d\d/,Be=/\d{3}/,Ve=/\d{4}/,He=/[+-]?\d{6}/,S=/\d\d?/,Ue=/\d\d\d\d?/,We=/\d\d\d\d\d\d?/,Ge=/\d{1,3}/,Ke=/\d{1,4}/,qe=/[+-]?\d{1,6}/,C=/\d+/,Je=/[+-]?\d+/,Ye=/Z|[+-]\d\d:?\d\d/gi,Xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ze=/[+-]?\d+(\.\d{1,3})?/,Qe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,w=/^[1-9]\d?/,$e=/^([1-9]\d|\d)/,et={};function T(e,t,n){et[e]=_(t)?t:function(e,r){return e&&n?n:t}}function tt(e,t){return o(et,e)?et[e](t._strict,t._locale):new RegExp(nt(e))}function nt(e){return E(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function E(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function D(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function O(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=D(t)),n}var rt={};function k(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),l(t)&&(r=function(e,n){n[t]=O(e)}),i=e.length,n=0;n<i;n++)rt[e[n]]=r}function it(e,t){k(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function at(e,t,n){t!=null&&o(rt,e)&&rt[e](t,n._a,n,e)}function ot(e){return e%4==0&&e%100!=0||e%400==0}var A=0,j=1,M=2,N=3,P=4,F=5,I=6,st=7,ct=8;y(`Y`,0,0,function(){var e=this.year();return e<=9999?v(e,4):`+`+e}),y(0,[`YY`,2],0,function(){return this.year()%100}),y(0,[`YYYY`,4],0,`year`),y(0,[`YYYYY`,5],0,`year`),y(0,[`YYYYYY`,6,!0],0,`year`),T(`Y`,Je),T(`YY`,S,x),T(`YYYY`,Ke,Ve),T(`YYYYY`,qe,He),T(`YYYYYY`,qe,He),k([`YYYYY`,`YYYYYY`],A),k(`YYYY`,function(e,t){t[A]=e.length===2?n.parseTwoDigitYear(e):O(e)}),k(`YY`,function(e,t){t[A]=n.parseTwoDigitYear(e)}),k(`Y`,function(e,t){t[A]=parseInt(e,10)});function lt(e){return ot(e)?366:365}n.parseTwoDigitYear=function(e){return O(e)+(O(e)>68?1900:2e3)};var ut=ft(`FullYear`,!0);function dt(){return ot(this.year())}function ft(e,t){return function(r){return r==null?pt(this,e):(mt(this,e,r),n.updateOffset(this,t),this)}}function pt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case`Milliseconds`:return r?n.getUTCMilliseconds():n.getMilliseconds();case`Seconds`:return r?n.getUTCSeconds():n.getSeconds();case`Minutes`:return r?n.getUTCMinutes():n.getMinutes();case`Hours`:return r?n.getUTCHours():n.getHours();case`Date`:return r?n.getUTCDate():n.getDate();case`Day`:return r?n.getUTCDay():n.getDay();case`Month`:return r?n.getUTCMonth():n.getMonth();case`FullYear`:return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function mt(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:i?r.setUTCMilliseconds(n):r.setMilliseconds(n);return;case`Seconds`:i?r.setUTCSeconds(n):r.setSeconds(n);return;case`Minutes`:i?r.setUTCMinutes(n):r.setMinutes(n);return;case`Hours`:i?r.setUTCHours(n):r.setHours(n);return;case`Date`:i?r.setUTCDate(n):r.setDate(n);return;case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!ot(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function ht(e){return e=b(e),_(this[e])?this[e]():this}function gt(e,t){if(typeof e==`object`){e=Ie(e);var n=Re(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=b(e),_(this[e]))return this[e](t);return this}function _t(e,t){return(e%t+t)%t}var L=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function vt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=_t(t,12);return e+=(t-n)/12,n===1?ot(e)?29:28:31-n%7%2}y(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),y(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),y(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),T(`M`,S,w),T(`MM`,S,x),T(`MMM`,function(e,t){return t.monthsShortRegex(e)}),T(`MMMM`,function(e,t){return t.monthsRegex(e)}),k([`M`,`MM`],function(e,t){t[j]=O(e)-1}),k([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?m(n).invalidMonth=e:t[j]=i});var yt=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),bt=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),xt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,St=Qe,Ct=Qe;function wt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xt).test(t)?`format`:`standalone`][e.month()]:i(this._months)?this._months:this._months.standalone}function Tt(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xt.test(t)?`format`:`standalone`][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Et(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=L.call(this._shortMonthsParse,o),i===-1?null:i):(i=L.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=L.call(this._shortMonthsParse,o),i===-1?(i=L.call(this._longMonthsParse,o),i===-1?null:i):i):(i=L.call(this._longMonthsParse,o),i===-1?(i=L.call(this._shortMonthsParse,o),i===-1?null:i):i)}function Dt(e,t,n){var r,i,a;if(this._monthsParseExact)return Et.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp(`^`+this.months(i,``).replace(`.`,``)+`$`,`i`),this._shortMonthsParse[r]=RegExp(`^`+this.monthsShort(i,``).replace(`.`,``)+`$`,`i`)),!n&&!this._monthsParse[r]&&(a=`^`+this.months(i,``)+`|^`+this.monthsShort(i,``),this._monthsParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`MMMM`&&this._longMonthsParse[r].test(e)||n&&t===`MMM`&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Ot(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=O(t);else if(t=e.localeData().monthsParse(t),!l(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,vt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function kt(e){return e==null?pt(this,`Month`):(Ot(this,e),n.updateOffset(this,!0),this)}function At(){return vt(this.year(),this.month())}function jt(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Nt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,`_monthsShortRegex`)||(this._monthsShortRegex=St),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Mt(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Nt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,`_monthsRegex`)||(this._monthsRegex=Ct),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Nt(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=p([2e3,i]),o=E(this.monthsShort(a,``)),s=E(this.months(a,``)),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._monthsShortStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function Pt(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ft(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function It(e,t,n){var r=7+t-n;return-((7+Ft(e,0,r).getUTCDay()-t)%7)+r-1}function Lt(e,t,n,r,i){var a=(7+n-r)%7,o=It(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=lt(c)+s):s>lt(e)?(c=e+1,l=s-lt(e)):(c=e,l=s),{year:c,dayOfYear:l}}function Rt(e,t,n){var r=It(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+R(o,t,n)):i>R(e.year(),t,n)?(a=i-R(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function R(e,t,n){var r=It(e,t,n),i=It(e+1,t,n);return(lt(e)-r+i)/7}y(`w`,[`ww`,2],`wo`,`week`),y(`W`,[`WW`,2],`Wo`,`isoWeek`),T(`w`,S,w),T(`ww`,S,x),T(`W`,S,w),T(`WW`,S,x),it([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=O(e)});function zt(e){return Rt(e,this._week.dow,this._week.doy).week}var Bt={dow:0,doy:6};function Vt(){return this._week.dow}function Ht(){return this._week.doy}function Ut(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function Wt(e){var t=Rt(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}y(`d`,0,`do`,`day`),y(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),y(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),y(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),y(`e`,0,0,`weekday`),y(`E`,0,0,`isoWeekday`),T(`d`,S),T(`e`,S),T(`E`,S),T(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),T(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),T(`dddd`,function(e,t){return t.weekdaysRegex(e)}),it([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?m(n).invalidWeekday=e:t.d=i}),it([`d`,`e`,`E`],function(e,t,n,r){t[r]=O(e)});function Gt(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function Kt(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function qt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Jt=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),Yt=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),Xt=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),Zt=Qe,Qt=Qe,$t=Qe;function en(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?qt(n,this._week.dow):e?n[e.day()]:n}function tn(e){return e===!0?qt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function nn(e){return e===!0?qt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rn(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=L.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=L.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=L.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=L.call(this._weekdaysParse,o),i!==-1||(i=L.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=L.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=L.call(this._shortWeekdaysParse,o),i!==-1||(i=L.call(this._weekdaysParse,o),i!==-1)?i:(i=L.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=L.call(this._minWeekdaysParse,o),i!==-1||(i=L.call(this._weekdaysParse,o),i!==-1)?i:(i=L.call(this._shortWeekdaysParse,o),i===-1?null:i))}function an(e,t,n){var r,i,a;if(this._weekdaysParseExact)return rn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function on(e){if(!this.isValid())return e==null?NaN:this;var t=pt(this,`Day`);return e==null?t:(e=Gt(e,this.localeData()),this.add(e-t,`d`))}function sn(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function cn(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=Kt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ln(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||fn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,`_weekdaysRegex`)||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function un(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||fn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function dn(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||fn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=$t),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function fn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=p([2e3,1]).day(a),s=E(this.weekdaysMin(o,``)),c=E(this.weekdaysShort(o,``)),l=E(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function pn(){return this.hours()%12||12}function mn(){return this.hours()||24}y(`H`,[`HH`,2],0,`hour`),y(`h`,[`hh`,2],0,pn),y(`k`,[`kk`,2],0,mn),y(`hmm`,0,0,function(){return``+pn.apply(this)+v(this.minutes(),2)}),y(`hmmss`,0,0,function(){return``+pn.apply(this)+v(this.minutes(),2)+v(this.seconds(),2)}),y(`Hmm`,0,0,function(){return``+this.hours()+v(this.minutes(),2)}),y(`Hmmss`,0,0,function(){return``+this.hours()+v(this.minutes(),2)+v(this.seconds(),2)});function hn(e,t){y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hn(`a`,!0),hn(`A`,!1);function gn(e,t){return t._meridiemParse}T(`a`,gn),T(`A`,gn),T(`H`,S,$e),T(`h`,S,w),T(`k`,S,w),T(`HH`,S,x),T(`hh`,S,x),T(`kk`,S,x),T(`hmm`,Ue),T(`hmmss`,We),T(`Hmm`,Ue),T(`Hmmss`,We),k([`H`,`HH`],N),k([`k`,`kk`],function(e,t,n){var r=O(e);t[N]=r===24?0:r}),k([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),k([`h`,`hh`],function(e,t,n){t[N]=O(e),m(n).bigHour=!0}),k(`hmm`,function(e,t,n){var r=e.length-2;t[N]=O(e.substr(0,r)),t[P]=O(e.substr(r)),m(n).bigHour=!0}),k(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[N]=O(e.substr(0,r)),t[P]=O(e.substr(r,2)),t[F]=O(e.substr(i)),m(n).bigHour=!0}),k(`Hmm`,function(e,t,n){var r=e.length-2;t[N]=O(e.substr(0,r)),t[P]=O(e.substr(r))}),k(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[N]=O(e.substr(0,r)),t[P]=O(e.substr(r,2)),t[F]=O(e.substr(i))});function _n(e){return(e+``).toLowerCase().charAt(0)===`p`}var vn=/[ap]\.?m?\.?/i,yn=ft(`Hours`,!0);function bn(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}var xn={calendar:he,longDateFormat:Te,invalidDate:De,ordinal:ke,dayOfMonthOrdinalParse:Ae,relativeTime:Me,months:yt,monthsShort:bt,week:Bt,weekdays:Jt,weekdaysMin:Xt,weekdaysShort:Yt,meridiemParse:vn},z={},Sn={},Cn;function wn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Tn(e){return e&&e.toLowerCase().replace(`_`,`-`)}function En(e){for(var t=0,n,r,i,a;t<e.length;){for(a=Tn(e[t]).split(`-`),n=a.length,r=Tn(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=On(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&wn(a,r)>=n-1)break;n--}t++}return Cn}function Dn(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function On(t){var n=null,r;if(z[t]===void 0&&typeof module<`u`&&module&&module.exports&&Dn(t))try{n=Cn._abbr,r=e,r(`./locale/`+t),B(n)}catch{z[t]=null}return z[t]}function B(e,t){var n;return e&&(n=c(t)?V(e):kn(e,t),n?Cn=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),Cn._abbr}function kn(e,t){if(t!==null){var n,r=xn;if(t.abbr=e,z[e]!=null)ue(`defineLocaleOverride`,`use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.`),r=z[e]._config;else if(t.parentLocale!=null)if(z[t.parentLocale]!=null)r=z[t.parentLocale]._config;else if(n=On(t.parentLocale),n!=null)r=n._config;else return Sn[t.parentLocale]||(Sn[t.parentLocale]=[]),Sn[t.parentLocale].push({name:e,config:t}),null;return z[e]=new pe(fe(r,t)),Sn[e]&&Sn[e].forEach(function(e){kn(e.name,e.config)}),B(e),z[e]}else return delete z[e],null}function An(e,t){if(t!=null){var n,r,i=xn;z[e]!=null&&z[e].parentLocale!=null?z[e].set(fe(z[e]._config,t)):(r=On(e),r!=null&&(i=r._config),t=fe(i,t),r??(t.abbr=e),n=new pe(t),n.parentLocale=z[e],z[e]=n),B(e)}else z[e]!=null&&(z[e].parentLocale==null?z[e]!=null&&delete z[e]:(z[e]=z[e].parentLocale,e===B()&&B(e)));return z[e]}function V(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Cn;if(!i(e)){if(t=On(e),t)return t;e=[e]}return En(e)}function jn(){return me(z)}function Mn(e){var t,n=e._a;return n&&m(e).overflow===-2&&(t=n[j]<0||n[j]>11?j:n[M]<1||n[M]>vt(n[A],n[j])?M:n[N]<0||n[N]>24||n[N]===24&&(n[P]!==0||n[F]!==0||n[I]!==0)?N:n[P]<0||n[P]>59?P:n[F]<0||n[F]>59?F:n[I]<0||n[I]>999?I:-1,m(e)._overflowDayOfYear&&(t<A||t>M)&&(t=M),m(e)._overflowWeeks&&t===-1&&(t=st),m(e)._overflowWeekday&&t===-1&&(t=ct),m(e).overflow=t),e}var Nn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fn=/Z|[+-]\d\d(?::?\d\d)?/,In=[[`YYYYYY-MM-DD`,/[+-]\d{6}-\d\d-\d\d/],[`YYYY-MM-DD`,/\d{4}-\d\d-\d\d/],[`GGGG-[W]WW-E`,/\d{4}-W\d\d-\d/],[`GGGG-[W]WW`,/\d{4}-W\d\d/,!1],[`YYYY-DDD`,/\d{4}-\d{3}/],[`YYYY-MM`,/\d{4}-\d\d/,!1],[`YYYYYYMMDD`,/[+-]\d{10}/],[`YYYYMMDD`,/\d{8}/],[`GGGG[W]WWE`,/\d{4}W\d{3}/],[`GGGG[W]WW`,/\d{4}W\d{2}/,!1],[`YYYYDDD`,/\d{7}/],[`YYYYMM`,/\d{6}/,!1],[`YYYY`,/\d{4}/,!1]],Ln=[[`HH:mm:ss.SSSS`,/\d\d:\d\d:\d\d\.\d+/],[`HH:mm:ss,SSSS`,/\d\d:\d\d:\d\d,\d+/],[`HH:mm:ss`,/\d\d:\d\d:\d\d/],[`HH:mm`,/\d\d:\d\d/],[`HHmmss.SSSS`,/\d\d\d\d\d\d\.\d+/],[`HHmmss,SSSS`,/\d\d\d\d\d\d,\d+/],[`HHmmss`,/\d\d\d\d\d\d/],[`HHmm`,/\d\d\d\d/],[`HH`,/\d\d/]],Rn=/^\/?Date\((-?\d+)/i,zn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Vn(e){var t,n,r=e._i,i=Nn.exec(r)||Pn.exec(r),a,o,s,c,l=In.length,u=Ln.length;if(i){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(In[t][1].exec(i[1])){o=In[t][0],a=In[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Ln[t][1].exec(i[3])){s=(i[2]||` `)+Ln[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(Fn.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),$n(e)}else e._isValid=!1}function Hn(e,t,n,r,i,a){var o=[Un(e),bt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Un(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Wn(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Gn(e,t,n){return e&&Yt.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay()?(m(n).weekdayMismatch=!0,n._isValid=!1,!1):!0}function Kn(e,t,n){if(e)return Bn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function qn(e){var t=zn.exec(Wn(e._i)),n;if(t){if(n=Hn(t[4],t[3],t[2],t[5],t[6],t[7]),!Gn(t[1],n,e))return;e._a=n,e._tzm=Kn(t[8],t[9],t[10]),e._d=Ft.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Jn(e){var t=Rn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Vn(e),e._isValid===!1)delete e._isValid;else return;if(qn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:n.createFromInputFallback(e)}n.createFromInputFallback=g(`value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.`,function(e){e._d=new Date(e._i+(e._useUTC?` UTC`:``))});function Yn(e,t,n){return e??t??n}function Xn(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Zn(e){var t,n,r=[],i,a,o;if(!e._d){for(i=Xn(e),e._w&&e._a[M]==null&&e._a[j]==null&&Qn(e),e._dayOfYear!=null&&(o=Yn(e._a[A],i[A]),(e._dayOfYear>lt(o)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),n=Ft(o,0,e._dayOfYear),e._a[j]=n.getUTCMonth(),e._a[M]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?+(t===2):e._a[t];e._a[N]===24&&e._a[P]===0&&e._a[F]===0&&e._a[I]===0&&(e._nextDay=!0,e._a[N]=0),e._d=(e._useUTC?Ft:Pt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[N]=24),e._w&&typeof e._w.d<`u`&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function Qn(e){var t=e._w,n,r,i,a,o,s,c,l;t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Yn(t.GG,e._a[A],Rt(H(),1,4).year),r=Yn(t.W,1),i=Yn(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Rt(H(),a,o),n=Yn(t.gg,e._a[A],l.year),r=Yn(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>R(n,a,o)?m(e)._overflowWeeks=!0:c==null?(s=Lt(n,r,i,a,o),e._a[A]=s.year,e._dayOfYear=s.dayOfYear):m(e)._overflowWeekday=!0}n.ISO_8601=function(){},n.RFC_2822=function(){};function $n(e){if(e._f===n.ISO_8601){Vn(e);return}if(e._f===n.RFC_2822){qn(e);return}e._a=[],m(e).empty=!0;var t=``+e._i,r,i,a,o,s,c=t.length,l=0,u,d;for(a=we(e._f,e._locale).match(_e)||[],d=a.length,r=0;r<d;r++)o=a[r],i=(t.match(tt(o,e))||[])[0],i&&(s=t.substr(0,t.indexOf(i)),s.length>0&&m(e).unusedInput.push(s),t=t.slice(t.indexOf(i)+i.length),l+=i.length),be[o]?(i?m(e).empty=!1:m(e).unusedTokens.push(o),at(o,i,e)):e._strict&&!i&&m(e).unusedTokens.push(o);m(e).charsLeftOver=c-l,t.length>0&&m(e).unusedInput.push(t),e._a[N]<=12&&m(e).bigHour===!0&&e._a[N]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[N]=er(e._locale,e._a[N],e._meridiem),u=m(e).era,u!==null&&(e._a[A]=e._locale.erasConvertYear(u,e._a[A])),Zn(e),Mn(e)}function er(e,t,n){var r;return n==null?t:e.meridiemHour==null?(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t):e.meridiemHour(t,n)}function tr(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=oe({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],$n(t),ne(t)&&(o=!0),a+=m(t).charsLeftOver,a+=m(t).unusedTokens.length*10,m(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));f(e,n||t)}function nr(e){if(!e._d){var t=Ie(e._i),n=t.day===void 0?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Zn(e)}}function rr(e){var t=new se(Mn(ir(e)));return t._nextDay&&=(t.add(1,`d`),void 0),t}function ir(e){var t=e._i,n=e._f;return e._locale=e._locale||V(e._l),t===null||n===void 0&&t===``?re({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),h(t)?new se(Mn(t)):(u(t)?e._d=t:i(n)?tr(e):n?$n(e):ar(e),ne(e)||(e._d=null),e))}function ar(e){var t=e._i;c(t)?e._d=new Date(n.now()):u(t)?e._d=new Date(t.valueOf()):typeof t==`string`?Jn(e):i(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Zn(e)):a(t)?nr(e):l(t)?e._d=new Date(t):n.createFromInputFallback(e)}function or(e,t,n,r,o){var c={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(a(e)&&s(e)||i(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=r,rr(c)}function H(e,t,n,r){return or(e,t,n,r,!1)}var sr=g(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:re()}),cr=g(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:re()});function lr(e,t){var n,r;if(t.length===1&&i(t[0])&&(t=t[0]),!t.length)return H();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function ur(){return lr(`isBefore`,[].slice.call(arguments,0))}function dr(){return lr(`isAfter`,[].slice.call(arguments,0))}var fr=function(){return Date.now?Date.now():+new Date},pr=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`];function mr(e){var t,n=!1,r,i=pr.length;for(t in e)if(o(e,t)&&!(L.call(pr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[pr[r]]){if(n)return!1;parseFloat(e[pr[r]])!==O(e[pr[r]])&&(n=!0)}return!0}function hr(){return this._isValid}function gr(){return U(NaN)}function _r(e){var t=Ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=mr(t),this._milliseconds=+u+l*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=V(),this._bubble()}function vr(e){return e instanceof _r}function yr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function br(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)O(e[o])!==O(t[o])&&a++;return a+i}function xr(e,t){y(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+v(~~(e/60),2)+t+v(~~e%60,2)})}xr(`Z`,`:`),xr(`ZZ`,``),T(`Z`,Xe),T(`ZZ`,Xe),k([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=Cr(Xe,e)});var Sr=/([\+\-]|\d\d)/gi;function Cr(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(Sr)||[`-`,0,0],a=+(i[1]*60)+O(i[2]),a===0?0:i[0]===`+`?a:-a)}function wr(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(h(e)||u(e)?e.valueOf():H(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):H(e).local()}function Tr(e){return-Math.round(e._d.getTimezoneOffset())}n.updateOffset=function(){};function Er(e,t,r){var i=this._offset||0,a;if(!this.isValid())return e==null?NaN:this;if(e!=null){if(typeof e==`string`){if(e=Cr(Xe,e),e===null)return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(a=Tr(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,`m`),i!==e&&(!t||this._changeInProgress?Hr(this,U(e-i,`m`),1,!1):this._changeInProgress||=(this._changeInProgress=!0,n.updateOffset(this,!0),null)),this}else return this._isUTC?i:Tr(this)}function Dr(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function Or(e){return this.utcOffset(0,e)}function kr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Tr(this),`m`)),this}function Ar(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=Cr(Ye,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function jr(e){return this.isValid()?(e=e?H(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Nr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oe(e,this),e=ir(e),e._a?(t=e._isUTC?p(e._a):H(e._a),this._isDSTShifted=this.isValid()&&br(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Pr(){return this.isValid()?!this._isUTC:!1}function Fr(){return this.isValid()?this._isUTC:!1}function Ir(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Lr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function U(e,t){var n=e,r=null,i,a,s;return vr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Lr.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:O(r[M])*i,h:O(r[N])*i,m:O(r[P])*i,s:O(r[F])*i,ms:O(yr(r[I]*1e3))*i}):(r=Rr.exec(e))?(i=r[1]===`-`?-1:1,n={y:W(r[2],i),M:W(r[3],i),w:W(r[4],i),d:W(r[5],i),h:W(r[6],i),m:W(r[7],i),s:W(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(s=Br(H(n.from),H(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new _r(n),vr(e)&&o(e,`_locale`)&&(a._locale=e._locale),vr(e)&&o(e,`_isValid`)&&(a._isValid=e._isValid),a}U.fn=_r.prototype,U.invalid=gr;function W(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function zr(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,`M`).isAfter(t)&&--n.months,n.milliseconds=t-+e.clone().add(n.months,`M`),n}function Br(e,t){var n;return e.isValid()&&t.isValid()?(t=wr(t,e),e.isBefore(t)?n=zr(e,t):(n=zr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Vr(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(ue(t,`moment().`+t+`(period, number) is deprecated. Please use moment().`+t+`(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.`),a=n,n=r,r=a),i=U(n,r),Hr(this,i,e),this}}function Hr(e,t,r,i){var a=t._milliseconds,o=yr(t._days),s=yr(t._months);e.isValid()&&(i??=!0,s&&Ot(e,pt(e,`Month`)+s*r),o&&mt(e,`Date`,pt(e,`Date`)+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&n.updateOffset(e,o||s))}var Ur=Vr(1,`add`),Wr=Vr(-1,`subtract`);function Gr(e){return typeof e==`string`||e instanceof String}function Kr(e){return h(e)||u(e)||Gr(e)||l(e)||Jr(e)||qr(e)||e==null}function qr(e){var t=a(e)&&!s(e),n=!1,r=[`years`,`year`,`y`,`months`,`month`,`M`,`days`,`day`,`d`,`dates`,`date`,`D`,`hours`,`hour`,`h`,`minutes`,`minute`,`m`,`seconds`,`second`,`s`,`milliseconds`,`millisecond`,`ms`],i,c,l=r.length;for(i=0;i<l;i+=1)c=r[i],n||=o(e,c);return t&&n}function Jr(e){var t=i(e),n=!1;return t&&(n=e.filter(function(t){return!l(t)&&Gr(e)}).length===0),t&&n}function Yr(e){var t=a(e)&&!s(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,c;for(i=0;i<r.length;i+=1)c=r[i],n||=o(e,c);return t&&n}function Xr(e,t){var n=e.diff(t,`days`,!0);return n<-6?`sameElse`:n<-1?`lastWeek`:n<0?`lastDay`:n<1?`sameDay`:n<2?`nextDay`:n<7?`nextWeek`:`sameElse`}function Zr(e,t){arguments.length===1&&(arguments[0]?Kr(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||H(),i=wr(r,this).startOf(`day`),a=n.calendarFormat(this,i)||`sameElse`,o=t&&(_(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,H(r)))}function Qr(){return new se(this)}function $r(e,t){var n=h(e)?e:H(e);return this.isValid()&&n.isValid()?(t=b(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ei(e,t){var n=h(e)?e:H(e);return this.isValid()&&n.isValid()?(t=b(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ti(e,t,n,r){var i=h(e)?e:H(e),a=h(t)?t:H(t);return this.isValid()&&i.isValid()&&a.isValid()?(r||=`()`,(r[0]===`(`?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===`)`?this.isBefore(a,n):!this.isAfter(a,n))):!1}function ni(e,t){var n=h(e)?e:H(e),r;return this.isValid()&&n.isValid()?(t=b(t)||`millisecond`,t===`millisecond`?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ri(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ii(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ai(e,t,n){var r,i,a;if(!this.isValid()||(r=wr(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=b(t),t){case`year`:a=oi(this,r)/12;break;case`month`:a=oi(this,r);break;case`quarter`:a=oi(this,r)/3;break;case`second`:a=(this-r)/1e3;break;case`minute`:a=(this-r)/6e4;break;case`hour`:a=(this-r)/36e5;break;case`day`:a=(this-r-i)/864e5;break;case`week`:a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:D(a)}function oi(e,t){if(e.date()<t.date())return-oi(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,`months`),i,a;return t-r<0?(i=e.clone().add(n-1,`months`),a=(t-r)/(r-i)):(i=e.clone().add(n+1,`months`),a=(t-r)/(i-r)),-(n+a)||0}n.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,n.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`;function si(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function ci(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ce(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,Ce(n,`Z`)):Ce(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function li(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function ui(e){e||=this.isUtc()?n.defaultFormatUtc:n.defaultFormat;var t=Ce(this,e);return this.localeData().postformat(t)}function di(e,t){return this.isValid()&&(h(e)&&e.isValid()||H(e).isValid())?U({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fi(e){return this.from(H(),e)}function pi(e,t){return this.isValid()&&(h(e)&&e.isValid()||H(e).isValid())?U({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mi(e){return this.to(H(),e)}function hi(e){var t;return e===void 0?this._locale._abbr:(t=V(e),t!=null&&(this._locale=t),this)}var gi=g(`moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.`,function(e){return e===void 0?this.localeData():this.locale(e)});function _i(){return this._locale}var vi=1e3,yi=60*vi,bi=60*yi,xi=146097*24*bi;function Si(e,t){return(e%t+t)%t}function Ci(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xi:new Date(e,t,n).valueOf()}function wi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xi:Date.UTC(e,t,n)}function Ti(e){var t,r;if(e=b(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?wi:Ci,e){case`year`:t=r(this.year(),0,1);break;case`quarter`:t=r(this.year(),this.month()-this.month()%3,1);break;case`month`:t=r(this.year(),this.month(),1);break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday());break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case`day`:case`date`:t=r(this.year(),this.month(),this.date());break;case`hour`:t=this._d.valueOf(),t-=Si(t+(this._isUTC?0:this.utcOffset()*yi),bi);break;case`minute`:t=this._d.valueOf(),t-=Si(t,yi);break;case`second`:t=this._d.valueOf(),t-=Si(t,vi);break}return this._d.setTime(t),n.updateOffset(this,!0),this}function Ei(e){var t,r;if(e=b(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?wi:Ci,e){case`year`:t=r(this.year()+1,0,1)-1;break;case`quarter`:t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case`month`:t=r(this.year(),this.month()+1,1)-1;break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case`day`:case`date`:t=r(this.year(),this.month(),this.date()+1)-1;break;case`hour`:t=this._d.valueOf(),t+=bi-Si(t+(this._isUTC?0:this.utcOffset()*yi),bi)-1;break;case`minute`:t=this._d.valueOf(),t+=yi-Si(t,yi)-1;break;case`second`:t=this._d.valueOf(),t+=vi-Si(t,vi)-1;break}return this._d.setTime(t),n.updateOffset(this,!0),this}function Di(){return this._d.valueOf()-(this._offset||0)*6e4}function Oi(){return Math.floor(this.valueOf()/1e3)}function ki(){return new Date(this.valueOf())}function Ai(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ji(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mi(){return this.isValid()?this.toISOString():null}function Ni(){return ne(this)}function Pi(){return f({},m(this))}function Fi(){return m(this).overflow}function Ii(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}y(`N`,0,0,`eraAbbr`),y(`NN`,0,0,`eraAbbr`),y(`NNN`,0,0,`eraAbbr`),y(`NNNN`,0,0,`eraName`),y(`NNNNN`,0,0,`eraNarrow`),y(`y`,[`y`,1],`yo`,`eraYear`),y(`y`,[`yy`,2],0,`eraYear`),y(`y`,[`yyy`,3],0,`eraYear`),y(`y`,[`yyyy`,4],0,`eraYear`),T(`N`,qi),T(`NN`,qi),T(`NNN`,qi),T(`NNNN`,Ji),T(`NNNNN`,Yi),k([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e}),T(`y`,C),T(`yy`,C),T(`yyy`,C),T(`yyyy`,C),T(`yo`,Xi),k([`y`,`yy`,`yyy`,`yyyy`],A),k([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[A]=n._locale.eraYearOrdinalParse(e,i):t[A]=parseInt(e,10)});function Li(e,t){var r,i,a,o=this._eras||V(`en`)._eras;for(r=0,i=o.length;r<i;++r)switch(typeof o[r].since==`string`&&(a=n(o[r].since).startOf(`day`),o[r].since=a.valueOf()),typeof o[r].until){case`undefined`:o[r].until=1/0;break;case`string`:a=n(o[r].until).startOf(`day`).valueOf(),o[r].until=a.valueOf();break}return o}function Ri(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case`N`:case`NN`:case`NNN`:if(s===e)return a[r];break;case`NNNN`:if(o===e)return a[r];break;case`NNNNN`:if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function zi(e,t){var r=e.since<=e.until?1:-1;return t===void 0?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Bi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return``}function Vi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return``}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return``}function Ui(){var e,t,r,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,i=this.clone().startOf(`day`).valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-n(a[e].since).year())*r+a[e].offset;return this.year()}function Wi(e){return o(this,`_erasNameRegex`)||Zi.call(this),e?this._erasNameRegex:this._erasRegex}function Gi(e){return o(this,`_erasAbbrRegex`)||Zi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ki(e){return o(this,`_erasNarrowRegex`)||Zi.call(this),e?this._erasNarrowRegex:this._erasRegex}function qi(e,t){return t.erasAbbrRegex(e)}function Ji(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Xi(e,t){return t._eraYearOrdinalRegex||C}function Zi(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=E(l[i].name),s=E(l[i].abbr),c=E(l[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),r.push(c);this._erasRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._erasNameRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`),this._erasAbbrRegex=RegExp(`^(`+e.join(`|`)+`)`,`i`),this._erasNarrowRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`)}y(0,[`gg`,2],0,function(){return this.weekYear()%100}),y(0,[`GG`,2],0,function(){return this.isoWeekYear()%100});function Qi(e,t){y(0,[e,e.length],0,t)}Qi(`gggg`,`weekYear`),Qi(`ggggg`,`weekYear`),Qi(`GGGG`,`isoWeekYear`),Qi(`GGGGG`,`isoWeekYear`),T(`G`,Je),T(`g`,Je),T(`GG`,S,x),T(`gg`,S,x),T(`GGGG`,Ke,Ve),T(`gggg`,Ke,Ve),T(`GGGGG`,qe,He),T(`ggggg`,qe,He),it([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=O(e)}),it([`gg`,`GG`],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)});function $i(e){return aa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ea(e){return aa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ta(){return R(this.year(),1,4)}function na(){return R(this.isoWeekYear(),1,4)}function ra(){var e=this.localeData()._week;return R(this.year(),e.dow,e.doy)}function ia(){var e=this.localeData()._week;return R(this.weekYear(),e.dow,e.doy)}function aa(e,t,n,r,i){var a;return e==null?Rt(this,r,i).year:(a=R(e,r,i),t>a&&(t=a),oa.call(this,e,t,n,r,i))}function oa(e,t,n,r,i){var a=Lt(e,t,n,r,i),o=Ft(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}y(`Q`,0,`Qo`,`quarter`),T(`Q`,ze),k(`Q`,function(e,t){t[j]=(O(e)-1)*3});function sa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}y(`D`,[`DD`,2],`Do`,`date`),T(`D`,S,w),T(`DD`,S,x),T(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k([`D`,`DD`],M),k(`Do`,function(e,t){t[M]=O(e.match(S)[0])});var ca=ft(`Date`,!0);y(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),T(`DDD`,Ge),T(`DDDD`,Be),k([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=O(e)});function la(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}y(`m`,[`mm`,2],0,`minute`),T(`m`,S,$e),T(`mm`,S,x),k([`m`,`mm`],P);var ua=ft(`Minutes`,!1);y(`s`,[`ss`,2],0,`second`),T(`s`,S,$e),T(`ss`,S,x),k([`s`,`ss`],F);var da=ft(`Seconds`,!1);y(`S`,0,0,function(){return~~(this.millisecond()/100)}),y(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),y(0,[`SSS`,3],0,`millisecond`),y(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),y(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),y(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),y(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),y(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),y(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),T(`S`,Ge,ze),T(`SS`,Ge,x),T(`SSS`,Ge,Be);var G,fa;for(G=`SSSS`;G.length<=9;G+=`S`)T(G,C);function pa(e,t){t[I]=O((`0.`+e)*1e3)}for(G=`S`;G.length<=9;G+=`S`)k(G,pa);fa=ft(`Milliseconds`,!1),y(`z`,0,0,`zoneAbbr`),y(`zz`,0,0,`zoneName`);function ma(){return this._isUTC?`UTC`:``}function ha(){return this._isUTC?`Coordinated Universal Time`:``}var K=se.prototype;K.add=Ur,K.calendar=Zr,K.clone=Qr,K.diff=ai,K.endOf=Ei,K.format=ui,K.from=di,K.fromNow=fi,K.to=pi,K.toNow=mi,K.get=ht,K.invalidAt=Fi,K.isAfter=$r,K.isBefore=ei,K.isBetween=ti,K.isSame=ni,K.isSameOrAfter=ri,K.isSameOrBefore=ii,K.isValid=Ni,K.lang=gi,K.locale=hi,K.localeData=_i,K.max=cr,K.min=sr,K.parsingFlags=Pi,K.set=gt,K.startOf=Ti,K.subtract=Wr,K.toArray=Ai,K.toObject=ji,K.toDate=ki,K.toISOString=ci,K.inspect=li,typeof Symbol<`u`&&Symbol.for!=null&&(K[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),K.toJSON=Mi,K.toString=si,K.unix=Oi,K.valueOf=Di,K.creationData=Ii,K.eraName=Bi,K.eraNarrow=Vi,K.eraAbbr=Hi,K.eraYear=Ui,K.year=ut,K.isLeapYear=dt,K.weekYear=$i,K.isoWeekYear=ea,K.quarter=K.quarters=sa,K.month=kt,K.daysInMonth=At,K.week=K.weeks=Ut,K.isoWeek=K.isoWeeks=Wt,K.weeksInYear=ra,K.weeksInWeekYear=ia,K.isoWeeksInYear=ta,K.isoWeeksInISOWeekYear=na,K.date=ca,K.day=K.days=on,K.weekday=sn,K.isoWeekday=cn,K.dayOfYear=la,K.hour=K.hours=yn,K.minute=K.minutes=ua,K.second=K.seconds=da,K.millisecond=K.milliseconds=fa,K.utcOffset=Er,K.utc=Or,K.local=kr,K.parseZone=Ar,K.hasAlignedHourOffset=jr,K.isDST=Mr,K.isLocal=Pr,K.isUtcOffset=Fr,K.isUtc=Ir,K.isUTC=Ir,K.zoneAbbr=ma,K.zoneName=ha,K.dates=g(`dates accessor is deprecated. Use date instead.`,ca),K.months=g(`months accessor is deprecated. Use month instead`,kt),K.years=g(`years accessor is deprecated. Use year instead`,ut),K.zone=g(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,Dr),K.isDSTShifted=g(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,Nr);function ga(e){return H(e*1e3)}function _a(){return H.apply(null,arguments).parseZone()}function va(e){return e}var q=pe.prototype;q.calendar=ge,q.longDateFormat=Ee,q.invalidDate=Oe,q.ordinal=je,q.preparse=va,q.postformat=va,q.relativeTime=Ne,q.pastFuture=Pe,q.set=de,q.eras=Li,q.erasParse=Ri,q.erasConvertYear=zi,q.erasAbbrRegex=Gi,q.erasNameRegex=Wi,q.erasNarrowRegex=Ki,q.months=wt,q.monthsShort=Tt,q.monthsParse=Dt,q.monthsRegex=Mt,q.monthsShortRegex=jt,q.week=zt,q.firstDayOfYear=Ht,q.firstDayOfWeek=Vt,q.weekdays=en,q.weekdaysMin=nn,q.weekdaysShort=tn,q.weekdaysParse=an,q.weekdaysRegex=ln,q.weekdaysShortRegex=un,q.weekdaysMinRegex=dn,q.isPM=_n,q.meridiem=bn;function ya(e,t,n,r){var i=V(),a=p().set(r,t);return i[n](a,e)}function ba(e,t,n){if(l(e)&&(t=e,e=void 0),e||=``,t!=null)return ya(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=ya(e,r,n,`month`);return i}function xa(e,t,n,r){typeof e==`boolean`?(l(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t||=``);var i=V(),a=e?i._week.dow:0,o,s=[];if(n!=null)return ya(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=ya(t,(o+a)%7,r,`day`);return s}function Sa(e,t){return ba(e,t,`months`)}function Ca(e,t){return ba(e,t,`monthsShort`)}function wa(e,t,n){return xa(e,t,n,`weekdays`)}function Ta(e,t,n){return xa(e,t,n,`weekdaysShort`)}function Ea(e,t,n){return xa(e,t,n,`weekdaysMin`)}B(`en`,{eras:[{since:`0001-01-01`,until:1/0,offset:1,name:`Anno Domini`,narrow:`AD`,abbr:`AD`},{since:`0000-12-31`,until:-1/0,offset:1,name:`Before Christ`,narrow:`BC`,abbr:`BC`}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(O(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`)}}),n.lang=g(`moment.lang is deprecated. Use moment.locale instead.`,B),n.langData=g(`moment.langData is deprecated. Use moment.localeData instead.`,V);var J=Math.abs;function Da(){var e=this._data;return this._milliseconds=J(this._milliseconds),this._days=J(this._days),this._months=J(this._months),e.milliseconds=J(e.milliseconds),e.seconds=J(e.seconds),e.minutes=J(e.minutes),e.hours=J(e.hours),e.months=J(e.months),e.years=J(e.years),this}function Oa(e,t,n,r){var i=U(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ka(e,t){return Oa(this,e,t,1)}function Aa(e,t){return Oa(this,e,t,-1)}function ja(e){return e<0?Math.floor(e):Math.ceil(e)}function Ma(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ja(Pa(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=D(e/1e3),r.seconds=i%60,a=D(i/60),r.minutes=a%60,o=D(a/60),r.hours=o%24,t+=D(o/24),c=D(Na(t)),n+=c,t-=ja(Pa(c)),s=D(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Na(e){return e*4800/146097}function Pa(e){return e*146097/4800}function Fa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=b(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+Na(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(Pa(this._months)),e){case`week`:return t/7+r/6048e5;case`day`:return t+r/864e5;case`hour`:return t*24+r/36e5;case`minute`:return t*1440+r/6e4;case`second`:return t*86400+r/1e3;case`millisecond`:return Math.floor(t*864e5)+r;default:throw Error(`Unknown unit `+e)}}function Y(e){return function(){return this.as(e)}}var Ia=Y(`ms`),La=Y(`s`),Ra=Y(`m`),za=Y(`h`),Ba=Y(`d`),Va=Y(`w`),Ha=Y(`M`),Ua=Y(`Q`),Wa=Y(`y`),Ga=Ia;function Ka(){return U(this)}function qa(e){return e=b(e),this.isValid()?this[e+`s`]():NaN}function X(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ja=X(`milliseconds`),Ya=X(`seconds`),Xa=X(`minutes`),Za=X(`hours`),Qa=X(`days`),$a=X(`months`),eo=X(`years`);function to(){return D(this.days()/7)}var Z=Math.round,no={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ro(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function io(e,t,n,r){var i=U(e).abs(),a=Z(i.as(`s`)),o=Z(i.as(`m`)),s=Z(i.as(`h`)),c=Z(i.as(`d`)),l=Z(i.as(`M`)),u=Z(i.as(`w`)),d=Z(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a<n.s&&[`ss`,a]||o<=1&&[`m`]||o<n.m&&[`mm`,o]||s<=1&&[`h`]||s<n.h&&[`hh`,s]||c<=1&&[`d`]||c<n.d&&[`dd`,c];return n.w!=null&&(f=f||u<=1&&[`w`]||u<n.w&&[`ww`,u]),f=f||l<=1&&[`M`]||l<n.M&&[`MM`,l]||d<=1&&[`y`]||[`yy`,d],f[2]=t,f[3]=+e>0,f[4]=r,ro.apply(null,f)}function ao(e){return e===void 0?Z:typeof e==`function`?(Z=e,!0):!1}function oo(e,t){return no[e]===void 0?!1:t===void 0?no[e]:(no[e]=t,e===`s`&&(no.ss=t-1),!0)}function so(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=no,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},no,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=io(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var co=Math.abs;function Q(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e=co(this._milliseconds)/1e3,t=co(this._days),n=co(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=D(e/60),i=D(r/60),e%=60,r%=60,a=D(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=Q(this._months)===Q(s)?``:`-`,u=Q(this._days)===Q(s)?``:`-`,d=Q(this._milliseconds)===Q(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var $=_r.prototype;$.isValid=hr,$.abs=Da,$.add=ka,$.subtract=Aa,$.as=Fa,$.asMilliseconds=Ia,$.asSeconds=La,$.asMinutes=Ra,$.asHours=za,$.asDays=Ba,$.asWeeks=Va,$.asMonths=Ha,$.asQuarters=Ua,$.asYears=Wa,$.valueOf=Ga,$._bubble=Ma,$.clone=Ka,$.get=qa,$.milliseconds=Ja,$.seconds=Ya,$.minutes=Xa,$.hours=Za,$.days=Qa,$.weeks=to,$.months=$a,$.years=eo,$.humanize=so,$.toISOString=lo,$.toString=lo,$.toJSON=lo,$.locale=hi,$.localeData=_i,$.toIsoString=g(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,lo),$.lang=gi,y(`X`,0,0,`unix`),y(`x`,0,0,`valueOf`),T(`x`,Je),T(`X`,Ze),k(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),k(`x`,function(e,t,n){n._d=new Date(O(e))}),n.version=`2.30.1`,r(H),n.fn=K,n.min=ur,n.max=dr,n.now=fr,n.utc=p,n.unix=ga,n.months=Sa,n.isDate=u,n.locale=B,n.invalid=re,n.duration=U,n.isMoment=h,n.weekdays=wa,n.parseZone=_a,n.localeData=V,n.isDuration=vr,n.monthsShort=Ca,n.weekdaysMin=Ea,n.defineLocale=kn,n.updateLocale=An,n.locales=jn,n.weekdaysShort=Ta,n.normalizeUnits=b,n.relativeTimeRounding=ao,n.relativeTimeThreshold=oo,n.calendarFormat=Xr,n.prototype=K,n.HTML5_FMT={DATETIME_LOCAL:`YYYY-MM-DDTHH:mm`,DATETIME_LOCAL_SECONDS:`YYYY-MM-DDTHH:mm:ss`,DATETIME_LOCAL_MS:`YYYY-MM-DDTHH:mm:ss.SSS`,DATE:`YYYY-MM-DD`,TIME:`HH:mm`,TIME_SECONDS:`HH:mm:ss`,TIME_MS:`HH:mm:ss.SSS`,WEEK:`GGGG-[W]WW`,MONTH:`YYYY-MM`};var uo=Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:`Module`}));export{n,uo as t};
@@ -1,4 +1,4 @@
1
- import{Ha as e,Wa as t}from"./index-B4fa-n2i.js";import{s as n}from"./DataFrame-CE79SZpX-CVHFe_Oz.js";var r=t(e(),1),i=n(`div`)({name:`NumberOverlayEditorStyle`,class:`gdg-n15fjm3e`,propsAsIs:!1});function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var o;(function(e){e.event=`event`,e.props=`prop`})(o||={});function s(){}function c(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function l(e){return!!(e||``).match(/\d/)}function u(e){return e==null}function d(e){return typeof e==`number`&&isNaN(e)}function f(e){return u(e)||d(e)||typeof e==`number`&&!isFinite(e)}function p(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function m(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function h(e,t,n){var r=m(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function g(e){var t=(0,r.useRef)(e);return t.current=e,(0,r.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function _(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function v(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function y(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function b(e,t){return Array(t+1).join(e)}function x(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+b(`0`,Math.abs(o))+i:o>=s?i+=b(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function S(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=_(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=y(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function C(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var w=c(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),T=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function E(e,t,n){return Math.min(Math.max(e,t),n)}function D(e){return Math.max(e.selectionStart,e.selectionEnd)}function O(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function k(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function A(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function j(e,t,n,r,i,a,o){o===void 0&&(o=A);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function M(e,t,n,r){var i=e.length;if(t=E(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function N(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(l(e[n])||l(e[n-1]));return t}function P(e,t,n,i,a,o){o===void 0&&(o=s);var c=g(function(e,t){var n,r;return f(e)?(r=``,n=``):typeof e==`number`||t?(r=typeof e==`number`?x(e):e,n=i(r)):(r=a(e,void 0),n=i(r)),{formattedValue:n,numAsString:r}}),l=(0,r.useState)(function(){return c(u(e)?t:e,n)}),d=l[0],p=l[1],m=function(e,t){e.formattedValue!==d.formattedValue&&p({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)},h=e,_=n;u(e)&&(h=d.numAsString,_=!0);var v=c(h,_);return(0,r.useMemo)(function(){p(v)},[v.formattedValue]),[d,m]}function F(e){return e.replace(/[^0-9]/g,``)}function I(e){return e}function L(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var i=e.customInput,c=e.renderText,u=e.getInputRef,d=e.format;d===void 0&&(d=I);var f=e.removeFormatting;f===void 0&&(f=F);var p=e.defaultValue,m=e.valueIsNumericString,h=e.onValueChange,g=e.isAllowed,_=e.onChange;_===void 0&&(_=s);var v=e.onKeyDown;v===void 0&&(v=s);var y=e.onMouseUp;y===void 0&&(y=s);var b=e.onFocus;b===void 0&&(b=s);var x=e.onBlur;x===void 0&&(x=s);var S=e.value,E=e.getCaretBoundary;E===void 0&&(E=N);var k=e.isValidInputCharacter;k===void 0&&(k=l);var A=e.isCharacterSame,L=a(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),R=P(S,p,!!m,d,f,h),z=R[0],B=z.formattedValue,V=z.numAsString,ee=R[1],H=(0,r.useRef)(),U=(0,r.useRef)({formattedValue:B,numAsString:V}),W=function(e,t){U.current={formattedValue:e.formattedValue,numAsString:e.value},ee(e,t)},G=(0,r.useState)(!1),te=G[0],K=G[1],q=(0,r.useRef)(null),J=(0,r.useRef)({setCaretTimeout:null,focusTimeout:null});(0,r.useEffect)(function(){return K(!0),function(){clearTimeout(J.current.setCaretTimeout),clearTimeout(J.current.focusTimeout)}},[]);var ne=d,Y=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},X=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(C(e,t),J.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&C(e,t)},0))},Z=function(e,t,n){return M(e,t,E(e),n)},Q=function(e,t,n){var r=E(t),i=j(t,B,e,n,r,k,A);return i=M(t,i,r),i},re=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=D(n);n.value=t,o=Q(s,t,c),o!==void 0&&X(n,o,t)}t!==B&&W(Y(t,a),{event:i,source:r})};(0,r.useEffect)(function(){var e=U.current,t=e.formattedValue,n=e.numAsString;(B!==t||V!==n)&&W(Y(B,V),{event:void 0,source:o.props})},[B,V]);var ie=q.current?D(q.current):void 0;(typeof window<`u`?r.useLayoutEffect:r.useEffect)(function(){var e=q.current;if(B!==U.current.formattedValue&&e){var t=Q(U.current.formattedValue,B,ie);e.value=B,X(e,t,B)}},[B]);var ae=function(e,t,n){var r=t.target,i=H.current?T(H.current,r.selectionEnd):w(B,e),a=Object.assign(Object.assign({},i),{lastValue:B}),o=f(e,a),s=ne(o);if(o=f(s,void 0),g&&!g(Y(s,o))){var c=t.target,l=Q(e,B,D(c));return c.value=B,X(c,l,B),!1}return re({formattedValue:s,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},$=function(e,t){t===void 0&&(t=0),H.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},oe=function(e){var t=e.target.value;ae(t,e,o.event)&&_(e),H.current=void 0},se=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){v(e),$(t,s);return}var l=o;c?(l=Z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!k(a[o])?l=Z(a,o,`right`):n===`Backspace`&&!k(a[o])&&(l=Z(a,o,`left`)),l!==o&&X(t,l,a),v(e),$(t,s)},ce=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=Z(r,e);i!==e&&X(t,i,r)}};n(),requestAnimationFrame(function(){n()}),y(e),$(t)},le=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;q.current=t,J.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=Z(a,r);o!==r&&!(r===0&&i===a.length)&&X(t,o,a),b(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ue=function(e){q.current=null,clearTimeout(J.current.focusTimeout),clearTimeout(J.current.setCaretTimeout),x(e)},de=te&&O()?`numeric`:void 0,fe=Object.assign({inputMode:de},L,{type:t,value:B,onChange:oe,onKeyDown:se,onMouseUp:ce,onFocus:le,onBlur:ue});if(n===`text`)return c?r.createElement(r.Fragment,null,c(B,L)||null):r.createElement(`span`,Object.assign({},L,{ref:u}),B);if(i){var pe=i;return r.createElement(pe,Object.assign({},fe,{ref:u}))}return r.createElement(`input`,Object.assign({},fe,{ref:u}))}function R(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=z(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=_(e,o),p=f.beforeDecimal,m=f.afterDecimal,g=f.addNegation;return n!==void 0&&(m=y(m,n,!!r)),l&&(p=h(p,l,s)),i&&(p=i+p),a&&(m+=a),g&&(p=`-`+p),e=p+(d&&u||``)+m,e}function z(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function B(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function V(e,t){return RegExp(`(^-)|[0-9]|`+p(e),`g`)}function ee(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function H(e,t,n){var r;t===void 0&&(t=k(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,u=t.to,d=u.start,f=u.end,m=z(n),h=m.allowedDecimalSeparators,g=m.decimalSeparator,v=e[f]===g;if(l(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(f-d===1&&h.indexOf(e[d])!==-1){var y=s===0?``:g;e=e.substring(0,d)+y+e.substring(d+1,e.length)}var b=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},x=b(e,d,f),S=x.hasNegation;r=x,e=r.value,d=r.start,f=r.end;var C=b(t.lastValue,c.start,c.end),w=C.start,T=C.end,E=C.value,D=e.substring(d,f);e.length&&E.length&&(w>E.length-o.length||T<a.length)&&!(D&&o.startsWith(D))&&(e=E);var O=0;e.startsWith(a)?O+=a.length:d<a.length&&(O=d),e=e.substring(O),f-=O;var A=e.length,j=e.length-o.length;e.endsWith(o)?A=j:(f>j||f>e.length-o.length)&&(A=f),e=e.substring(0,A),e=B(S?`-`+e:e,i),e=(e.match(V(g))||[]).join(``);var M=e.indexOf(g);e=e.replace(new RegExp(p(g),`g`),function(e,t){return t===M?`.`:``});var N=_(e,i),P=N.beforeDecimal,F=N.afterDecimal,I=N.addNegation;return u.end-u.start<c.end-c.start&&P===``&&v&&!parseFloat(F)&&(e=I?`-`:``),e}function U(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,n.length+ +!!a);var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function W(e){var t=z(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
1
+ import{Ha as e,Wa as t}from"./index-lR-QVdnh.js";import{s as n}from"./DataFrame-ZHi5iyDV-DOvZAfc9.js";var r=t(e(),1),i=n(`div`)({name:`NumberOverlayEditorStyle`,class:`gdg-n15fjm3e`,propsAsIs:!1});function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var o;(function(e){e.event=`event`,e.props=`prop`})(o||={});function s(){}function c(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function l(e){return!!(e||``).match(/\d/)}function u(e){return e==null}function d(e){return typeof e==`number`&&isNaN(e)}function f(e){return u(e)||d(e)||typeof e==`number`&&!isFinite(e)}function p(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function m(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function h(e,t,n){var r=m(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function g(e){var t=(0,r.useRef)(e);return t.current=e,(0,r.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function _(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function v(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function y(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function b(e,t){return Array(t+1).join(e)}function x(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+b(`0`,Math.abs(o))+i:o>=s?i+=b(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function S(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=_(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=y(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function C(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var w=c(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),T=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function E(e,t,n){return Math.min(Math.max(e,t),n)}function D(e){return Math.max(e.selectionStart,e.selectionEnd)}function O(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function k(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function A(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function j(e,t,n,r,i,a,o){o===void 0&&(o=A);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function M(e,t,n,r){var i=e.length;if(t=E(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function N(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(l(e[n])||l(e[n-1]));return t}function P(e,t,n,i,a,o){o===void 0&&(o=s);var c=g(function(e,t){var n,r;return f(e)?(r=``,n=``):typeof e==`number`||t?(r=typeof e==`number`?x(e):e,n=i(r)):(r=a(e,void 0),n=i(r)),{formattedValue:n,numAsString:r}}),l=(0,r.useState)(function(){return c(u(e)?t:e,n)}),d=l[0],p=l[1],m=function(e,t){e.formattedValue!==d.formattedValue&&p({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)},h=e,_=n;u(e)&&(h=d.numAsString,_=!0);var v=c(h,_);return(0,r.useMemo)(function(){p(v)},[v.formattedValue]),[d,m]}function F(e){return e.replace(/[^0-9]/g,``)}function I(e){return e}function L(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var i=e.customInput,c=e.renderText,u=e.getInputRef,d=e.format;d===void 0&&(d=I);var f=e.removeFormatting;f===void 0&&(f=F);var p=e.defaultValue,m=e.valueIsNumericString,h=e.onValueChange,g=e.isAllowed,_=e.onChange;_===void 0&&(_=s);var v=e.onKeyDown;v===void 0&&(v=s);var y=e.onMouseUp;y===void 0&&(y=s);var b=e.onFocus;b===void 0&&(b=s);var x=e.onBlur;x===void 0&&(x=s);var S=e.value,E=e.getCaretBoundary;E===void 0&&(E=N);var k=e.isValidInputCharacter;k===void 0&&(k=l);var A=e.isCharacterSame,L=a(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),R=P(S,p,!!m,d,f,h),z=R[0],B=z.formattedValue,V=z.numAsString,ee=R[1],H=(0,r.useRef)(),U=(0,r.useRef)({formattedValue:B,numAsString:V}),W=function(e,t){U.current={formattedValue:e.formattedValue,numAsString:e.value},ee(e,t)},G=(0,r.useState)(!1),te=G[0],K=G[1],q=(0,r.useRef)(null),J=(0,r.useRef)({setCaretTimeout:null,focusTimeout:null});(0,r.useEffect)(function(){return K(!0),function(){clearTimeout(J.current.setCaretTimeout),clearTimeout(J.current.focusTimeout)}},[]);var ne=d,Y=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},X=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(C(e,t),J.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&C(e,t)},0))},Z=function(e,t,n){return M(e,t,E(e),n)},Q=function(e,t,n){var r=E(t),i=j(t,B,e,n,r,k,A);return i=M(t,i,r),i},re=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=D(n);n.value=t,o=Q(s,t,c),o!==void 0&&X(n,o,t)}t!==B&&W(Y(t,a),{event:i,source:r})};(0,r.useEffect)(function(){var e=U.current,t=e.formattedValue,n=e.numAsString;(B!==t||V!==n)&&W(Y(B,V),{event:void 0,source:o.props})},[B,V]);var ie=q.current?D(q.current):void 0;(typeof window<`u`?r.useLayoutEffect:r.useEffect)(function(){var e=q.current;if(B!==U.current.formattedValue&&e){var t=Q(U.current.formattedValue,B,ie);e.value=B,X(e,t,B)}},[B]);var ae=function(e,t,n){var r=t.target,i=H.current?T(H.current,r.selectionEnd):w(B,e),a=Object.assign(Object.assign({},i),{lastValue:B}),o=f(e,a),s=ne(o);if(o=f(s,void 0),g&&!g(Y(s,o))){var c=t.target,l=Q(e,B,D(c));return c.value=B,X(c,l,B),!1}return re({formattedValue:s,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},$=function(e,t){t===void 0&&(t=0),H.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},oe=function(e){var t=e.target.value;ae(t,e,o.event)&&_(e),H.current=void 0},se=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){v(e),$(t,s);return}var l=o;c?(l=Z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!k(a[o])?l=Z(a,o,`right`):n===`Backspace`&&!k(a[o])&&(l=Z(a,o,`left`)),l!==o&&X(t,l,a),v(e),$(t,s)},ce=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=Z(r,e);i!==e&&X(t,i,r)}};n(),requestAnimationFrame(function(){n()}),y(e),$(t)},le=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;q.current=t,J.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=Z(a,r);o!==r&&!(r===0&&i===a.length)&&X(t,o,a),b(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ue=function(e){q.current=null,clearTimeout(J.current.focusTimeout),clearTimeout(J.current.setCaretTimeout),x(e)},de=te&&O()?`numeric`:void 0,fe=Object.assign({inputMode:de},L,{type:t,value:B,onChange:oe,onKeyDown:se,onMouseUp:ce,onFocus:le,onBlur:ue});if(n===`text`)return c?r.createElement(r.Fragment,null,c(B,L)||null):r.createElement(`span`,Object.assign({},L,{ref:u}),B);if(i){var pe=i;return r.createElement(pe,Object.assign({},fe,{ref:u}))}return r.createElement(`input`,Object.assign({},fe,{ref:u}))}function R(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=z(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=_(e,o),p=f.beforeDecimal,m=f.afterDecimal,g=f.addNegation;return n!==void 0&&(m=y(m,n,!!r)),l&&(p=h(p,l,s)),i&&(p=i+p),a&&(m+=a),g&&(p=`-`+p),e=p+(d&&u||``)+m,e}function z(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function B(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function V(e,t){return RegExp(`(^-)|[0-9]|`+p(e),`g`)}function ee(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function H(e,t,n){var r;t===void 0&&(t=k(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,u=t.to,d=u.start,f=u.end,m=z(n),h=m.allowedDecimalSeparators,g=m.decimalSeparator,v=e[f]===g;if(l(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(f-d===1&&h.indexOf(e[d])!==-1){var y=s===0?``:g;e=e.substring(0,d)+y+e.substring(d+1,e.length)}var b=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},x=b(e,d,f),S=x.hasNegation;r=x,e=r.value,d=r.start,f=r.end;var C=b(t.lastValue,c.start,c.end),w=C.start,T=C.end,E=C.value,D=e.substring(d,f);e.length&&E.length&&(w>E.length-o.length||T<a.length)&&!(D&&o.startsWith(D))&&(e=E);var O=0;e.startsWith(a)?O+=a.length:d<a.length&&(O=d),e=e.substring(O),f-=O;var A=e.length,j=e.length-o.length;e.endsWith(o)?A=j:(f>j||f>e.length-o.length)&&(A=f),e=e.substring(0,A),e=B(S?`-`+e:e,i),e=(e.match(V(g))||[]).join(``);var M=e.indexOf(g);e=e.replace(new RegExp(p(g),`g`),function(e,t){return t===M?`.`:``});var N=_(e,i),P=N.beforeDecimal,F=N.afterDecimal,I=N.addNegation;return u.end-u.start<c.end-c.start&&P===``&&v&&!parseFloat(F)&&(e=I?`-`:``),e}function U(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,n.length+ +!!a);var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function W(e){var t=z(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+r+` (default value for decimalSeparator is .)