@stlite/desktop 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/build/asset-manifest.json +63 -91
  2. package/build/electron/file.js +13 -6
  3. package/build/index.html +1 -1
  4. package/build/static/css/9.f71f4f0d.chunk.css +1 -0
  5. package/build/static/js/0.1470a040.chunk.js +1 -0
  6. package/build/static/js/{1.176aded5.chunk.js → 1.75536554.chunk.js} +1 -1
  7. package/build/static/js/10.e9d08ce6.chunk.js +1 -0
  8. package/build/static/js/11.245d6c33.chunk.js +9 -0
  9. package/build/static/js/12.a31ecc8c.chunk.js +17 -0
  10. package/build/static/js/13.6a2e32ae.chunk.js +1 -0
  11. package/build/static/js/14.1655f4db.chunk.js +1 -0
  12. package/build/static/js/15.b28e3a9f.chunk.js +2 -0
  13. package/build/static/js/{15.91a85aa0.chunk.js.LICENSE.txt → 15.b28e3a9f.chunk.js.LICENSE.txt} +0 -0
  14. package/build/static/js/16.4002de21.chunk.js +1 -0
  15. package/build/static/js/17.f01379ea.chunk.js +1 -0
  16. package/build/static/js/18.b32ef4e7.chunk.js +2 -0
  17. package/build/static/js/18.b32ef4e7.chunk.js.LICENSE.txt +60 -0
  18. package/build/static/js/19.757ce6cd.chunk.js +1 -0
  19. package/build/static/js/2.90589c59.chunk.js +2 -0
  20. package/build/static/js/{2.26deed5e.chunk.js.LICENSE.txt → 2.90589c59.chunk.js.LICENSE.txt} +7 -1
  21. package/build/static/js/{18.e3d4364d.chunk.js → 20.06333e7b.chunk.js} +1 -2
  22. package/build/static/js/21.3fab05ae.chunk.js +5 -0
  23. package/build/static/js/22.a1775ac4.chunk.js +1 -0
  24. package/build/static/js/23.fd21f92a.chunk.js +1 -0
  25. package/build/static/js/24.50f424ba.chunk.js +5 -0
  26. package/build/static/js/25.3855f89c.chunk.js +1 -0
  27. package/build/static/js/26.5f51a172.chunk.js +1 -0
  28. package/build/static/js/{27.d7aacc94.chunk.js → 27.f075da8f.chunk.js} +1 -2
  29. package/build/static/js/28.e76203d9.chunk.js +5 -0
  30. package/build/static/js/29.12291bff.chunk.js +1 -0
  31. package/build/static/js/3.8dacc9e7.chunk.js +1 -0
  32. package/build/static/js/30.9780f1e6.chunk.js +1 -0
  33. package/build/static/js/{31.9c06312e.chunk.js → 31.622e28f6.chunk.js} +1 -2
  34. package/build/static/js/{32.a1f2009d.chunk.js → 32.44bddfd2.chunk.js} +1 -2
  35. package/build/static/js/{33.1d5fce1c.chunk.js → 33.e3480cb9.chunk.js} +1 -2
  36. package/build/static/js/34.4e913e44.chunk.js +1 -0
  37. package/build/static/js/35.d8c3a90e.chunk.js +1 -0
  38. package/build/static/js/36.d7336b9b.chunk.js +1 -0
  39. package/build/static/js/{37.b845d4ba.chunk.js → 37.b06f1532.chunk.js} +1 -2
  40. package/build/static/js/38.2303d913.chunk.js +1 -0
  41. package/build/static/js/39.9cb4bae4.chunk.js +1 -0
  42. package/build/static/js/40.b8f90b9a.chunk.js +1 -0
  43. package/build/static/js/41.bb169dbf.chunk.js +1 -0
  44. package/build/static/js/42.e8639ee2.chunk.js +1 -0
  45. package/build/static/js/43.b5e07f4c.chunk.js +1 -0
  46. package/build/static/js/44.0206e0dc.chunk.js +1 -0
  47. package/build/static/js/45.db4595ee.chunk.js +1 -0
  48. package/build/static/js/46.f534e5a2.chunk.js +1 -0
  49. package/build/static/js/47.89ae0b12.chunk.js +1 -0
  50. package/build/static/js/48.86b245a1.chunk.js +1 -0
  51. package/build/static/js/49.1db19a37.chunk.js +1 -0
  52. package/build/static/js/6.9c8c6dae.chunk.js +2 -0
  53. package/build/static/js/{6.8496e815.chunk.js.LICENSE.txt → 6.9c8c6dae.chunk.js.LICENSE.txt} +6 -6
  54. package/build/static/js/7.e8b702b0.chunk.js +2 -0
  55. package/build/static/js/{7.54bbd037.chunk.js.LICENSE.txt → 7.e8b702b0.chunk.js.LICENSE.txt} +0 -0
  56. package/build/static/js/{8.934b1bbd.chunk.js → 8.348fb43a.chunk.js} +2 -2
  57. package/build/static/js/{8.934b1bbd.chunk.js.LICENSE.txt → 8.348fb43a.chunk.js.LICENSE.txt} +0 -0
  58. package/build/static/js/9.d99eed24.chunk.js +2 -0
  59. package/build/static/js/9.d99eed24.chunk.js.LICENSE.txt +5 -0
  60. package/build/static/js/main.f2516e2f.chunk.js +27 -0
  61. package/build/static/js/runtime-main.e5a1f36a.js +1 -0
  62. package/build/static/media/fireworks.0906f02e.gif +0 -0
  63. package/package.json +4 -4
  64. package/build/static/css/10.fd9811dd.chunk.css +0 -1
  65. package/build/static/js/0.14aa4233.chunk.js +0 -1
  66. package/build/static/js/10.e5ea6d64.chunk.js +0 -1
  67. package/build/static/js/11.5e15526e.chunk.js +0 -10
  68. package/build/static/js/11.5e15526e.chunk.js.LICENSE.txt +0 -16
  69. package/build/static/js/12.8105987b.chunk.js +0 -18
  70. package/build/static/js/12.8105987b.chunk.js.LICENSE.txt +0 -16
  71. package/build/static/js/13.6f270c1f.chunk.js +0 -2
  72. package/build/static/js/13.6f270c1f.chunk.js.LICENSE.txt +0 -16
  73. package/build/static/js/14.3da5e7a9.chunk.js +0 -1
  74. package/build/static/js/15.91a85aa0.chunk.js +0 -2
  75. package/build/static/js/16.650490ee.chunk.js +0 -2
  76. package/build/static/js/16.650490ee.chunk.js.LICENSE.txt +0 -16
  77. package/build/static/js/17.4c6481b3.chunk.js +0 -1
  78. package/build/static/js/18.e3d4364d.chunk.js.LICENSE.txt +0 -16
  79. package/build/static/js/19.9004a138.chunk.js +0 -6
  80. package/build/static/js/19.9004a138.chunk.js.LICENSE.txt +0 -16
  81. package/build/static/js/2.26deed5e.chunk.js +0 -2
  82. package/build/static/js/20.1e287e6d.chunk.js +0 -1
  83. package/build/static/js/21.cc58bd99.chunk.js +0 -1
  84. package/build/static/js/22.fe58abe1.chunk.js +0 -2
  85. package/build/static/js/22.fe58abe1.chunk.js.LICENSE.txt +0 -16
  86. package/build/static/js/23.ee721415.chunk.js +0 -6
  87. package/build/static/js/23.ee721415.chunk.js.LICENSE.txt +0 -16
  88. package/build/static/js/24.36b10d26.chunk.js +0 -2
  89. package/build/static/js/24.36b10d26.chunk.js.LICENSE.txt +0 -16
  90. package/build/static/js/25.edf85627.chunk.js +0 -2
  91. package/build/static/js/25.edf85627.chunk.js.LICENSE.txt +0 -16
  92. package/build/static/js/26.99f3cc19.chunk.js +0 -2
  93. package/build/static/js/26.99f3cc19.chunk.js.LICENSE.txt +0 -58
  94. package/build/static/js/27.d7aacc94.chunk.js.LICENSE.txt +0 -16
  95. package/build/static/js/28.d24eb9cf.chunk.js +0 -6
  96. package/build/static/js/28.d24eb9cf.chunk.js.LICENSE.txt +0 -16
  97. package/build/static/js/29.fbb528d8.chunk.js +0 -2
  98. package/build/static/js/29.fbb528d8.chunk.js.LICENSE.txt +0 -16
  99. package/build/static/js/3.f4fb8871.chunk.js +0 -1
  100. package/build/static/js/30.32ab2cb4.chunk.js +0 -2
  101. package/build/static/js/30.32ab2cb4.chunk.js.LICENSE.txt +0 -16
  102. package/build/static/js/31.9c06312e.chunk.js.LICENSE.txt +0 -16
  103. package/build/static/js/32.a1f2009d.chunk.js.LICENSE.txt +0 -16
  104. package/build/static/js/33.1d5fce1c.chunk.js.LICENSE.txt +0 -16
  105. package/build/static/js/34.edb9c338.chunk.js +0 -2
  106. package/build/static/js/34.edb9c338.chunk.js.LICENSE.txt +0 -16
  107. package/build/static/js/35.6bd7c1ed.chunk.js +0 -2
  108. package/build/static/js/35.6bd7c1ed.chunk.js.LICENSE.txt +0 -16
  109. package/build/static/js/36.be12d12e.chunk.js +0 -2
  110. package/build/static/js/36.be12d12e.chunk.js.LICENSE.txt +0 -16
  111. package/build/static/js/37.b845d4ba.chunk.js.LICENSE.txt +0 -16
  112. package/build/static/js/38.0e8cfb78.chunk.js +0 -2
  113. package/build/static/js/38.0e8cfb78.chunk.js.LICENSE.txt +0 -16
  114. package/build/static/js/39.73c851be.chunk.js +0 -2
  115. package/build/static/js/39.73c851be.chunk.js.LICENSE.txt +0 -16
  116. package/build/static/js/40.1fc38a50.chunk.js +0 -2
  117. package/build/static/js/40.1fc38a50.chunk.js.LICENSE.txt +0 -16
  118. package/build/static/js/41.4ddf36bc.chunk.js +0 -2
  119. package/build/static/js/41.4ddf36bc.chunk.js.LICENSE.txt +0 -16
  120. package/build/static/js/42.e5620440.chunk.js +0 -2
  121. package/build/static/js/42.e5620440.chunk.js.LICENSE.txt +0 -16
  122. package/build/static/js/43.44eb58de.chunk.js +0 -2
  123. package/build/static/js/43.44eb58de.chunk.js.LICENSE.txt +0 -16
  124. package/build/static/js/44.35b43369.chunk.js +0 -2
  125. package/build/static/js/44.35b43369.chunk.js.LICENSE.txt +0 -16
  126. package/build/static/js/45.91664b3c.chunk.js +0 -2
  127. package/build/static/js/45.91664b3c.chunk.js.LICENSE.txt +0 -16
  128. package/build/static/js/46.e9639103.chunk.js +0 -2
  129. package/build/static/js/46.e9639103.chunk.js.LICENSE.txt +0 -16
  130. package/build/static/js/47.77b33a34.chunk.js +0 -2
  131. package/build/static/js/47.77b33a34.chunk.js.LICENSE.txt +0 -16
  132. package/build/static/js/6.8496e815.chunk.js +0 -2
  133. package/build/static/js/7.54bbd037.chunk.js +0 -2
  134. package/build/static/js/9.8ff376a2.chunk.js +0 -1
  135. package/build/static/js/main.118127a6.chunk.js +0 -28
  136. package/build/static/js/main.118127a6.chunk.js.LICENSE.txt +0 -33
  137. package/build/static/js/runtime-main.fe933feb.js +0 -1
@@ -1,58 +0,0 @@
1
- /*
2
- * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
3
- * @license MIT
4
- * @preserve Project Home: https://github.com/voidqk/polybooljs
5
- */
6
-
7
- /*
8
- object-assign
9
- (c) Sindre Sorhus
10
- @license MIT
11
- */
12
-
13
- /*!
14
- * The buffer module from node.js, for the browser.
15
- *
16
- * @author Feross Aboukhadijeh <https://feross.org>
17
- * @license MIT
18
- */
19
-
20
- /*!
21
- * Determine if an object is a Buffer
22
- *
23
- * @author Feross Aboukhadijeh <https://feross.org>
24
- * @license MIT
25
- */
26
-
27
- /*!
28
- * pad-left <https://github.com/jonschlinkert/pad-left>
29
- *
30
- * Copyright (c) 2014-2015, Jon Schlinkert.
31
- * Licensed under the MIT license.
32
- */
33
-
34
- /*!
35
- * repeat-string <https://github.com/jonschlinkert/repeat-string>
36
- *
37
- * Copyright (c) 2014-2015, Jon Schlinkert.
38
- * Licensed under the MIT License.
39
- */
40
-
41
- /*!
42
- * The buffer module from node.js, for the browser.
43
- *
44
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
45
- * @license MIT
46
- */
47
-
48
- /*!
49
- * The buffer module from node.js, for the browser.
50
- *
51
- * @author Feross Aboukhadijeh <https://feross.org>
52
- * @license MIT
53
- */
54
-
55
- /*! Native Promise Only
56
- v0.8.1 (c) Kyle Simpson
57
- MIT License: http://getify.mit-license.org
58
- */
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,6 +0,0 @@
1
- /*! For license information please see 28.d24eb9cf.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[28],{1275:function(e,t,r){"use strict";r(0);var n=r(33),o=r(113),i=r(5);const a=r(40).c`
3
- 50% {
4
- color: rgba(0, 0, 0, 0);
5
- }
6
- `,s=Object(i.a)("span",{target:"e1m4n6jn0"})((({includeDot:e,shouldBlink:t,theme:r})=>({...e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:r.colors.gray,margin:"0 5px"}}:{},...t?{color:r.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}})),"");var l=r(1);t.a=({dirty:e,value:t,maxLength:r,className:i,type:a="single"})=>{const c=[],u=(e,t=!1)=>{c.push(Object(l.jsx)(s,{includeDot:c.length>0,shouldBlink:t,children:e},c.length))};return e&&("multiline"===a?Object(n.f)()?u("Press \u2318+Enter to apply"):u("Press Ctrl+Enter to apply"):u("Press Enter to apply")),r&&u(`${t.length}/${r}`,e&&t.length>=r),Object(l.jsx)(o.a,{className:i,children:c})}},1784:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return _}));var n=r(0),o=r.n(n),i=r(193),a=r(11),s=r(1382),l=r(78),c=r(22),u=r(1248);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=Object(c.a)("div",(function(e){return Object(u.j)(f(f({},e),{},{$hasIconTrailing:!1}))}));h.displayName="StyledTextAreaRoot";var m=Object(c.a)("div",(function(e){return f({},Object(u.h)(e))}));m.displayName="StyledTextareaContainer";var y=Object(c.a)("textarea",(function(e){return f(f({},Object(u.i)(e)),{},{resize:"none"})}));function b(e){return(b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}y.displayName="StyledTextarea";var V=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(c,e);var t,r,o,i=x(c);function c(){var e;O(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return D(C(e=i.call.apply(i,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),D(C(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),D(C(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=c,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=g(Object(a.c)(t.Root,h),2),o=r[0],i=r[1],c=Object(a.e)({Input:{component:y},InputContainer:{component:m}},t);return n.createElement(o,v({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required},i),n.createElement(s.a,v({},this.props,{type:l.b.textarea,overrides:c,onFocus:this.onFocus,onBlur:this.onBlur})))}}])&&w(t.prototype,r),o&&w(t,o),c}(n.Component);D(V,"defaultProps",{autoFocus:!1,disabled:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:l.d.default,value:""});var E=V,k=r(1275),T=r(113),U=r(114),B=r(50),$=r(33),A=r(5);const I=Object(A.a)("div",{target:"e1y61itm0"})({name:"1om1ktf",styles:"div{border-width:1px;}"});var K=r(1);class R extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new i.b,this.state={dirty:!1,value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e),this.setState({dirty:!1})},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onBlur=()=>{this.state.dirty&&this.commitWidgetValue({fromUi:!0})},this.onChange=e=>{const{value:t}=e.target,{element:r}=this.props,{maxChars:n}=r;0!==n&&t.length>n||(Object($.h)(this.props.element)?this.setState({dirty:!1,value:t},(()=>this.commitWidgetValue({fromUi:!0}))):this.setState({dirty:!0,value:t}))},this.isEnterKeyPressed=e=>{const{keyCode:t,key:r}=e;return"Enter"===r||13===t||10===t},this.onKeyDown=e=>{const{metaKey:t,ctrlKey:r}=e,{dirty:n}=this.state;this.isEnterKeyPressed(e)&&(r||t)&&n&&(e.preventDefault(),this.commitWidgetValue({fromUi:!0}))}}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,disabled:r,width:n,widgetMgr:o}=this.props,{value:i,dirty:a}=this.state,s={width:n},{height:l,placeholder:c}=t;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),Object(K.jsxs)("div",{className:"stTextArea",style:s,children:[Object(K.jsx)(T.d,{label:t.label,disabled:r,labelVisibility:Object($.j)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&Object(K.jsx)(T.b,{children:Object(K.jsx)(U.a,{content:t.help,placement:B.b.TOP_RIGHT})})}),Object(K.jsx)(I,{children:Object(K.jsx)(E,{"data-testid":"stTextArea",value:i,placeholder:c,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,"aria-label":t.label,disabled:r,overrides:{Input:{style:{lineHeight:"1.4",height:l?`${l}px`:"",minHeight:"95px",resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:"1rem",paddingLeft:"1rem",paddingBottom:"1rem",paddingTop:"1rem"}}}})}),Object(K.jsx)(k.a,{dirty:a,value:i,maxLength:t.maxChars,type:"multiline"})]})}}var _=R}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 29.fbb528d8.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[29],{1788:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return x}));var n=o(0),a=o(61),i=o(1478),r=o(1203),s=o(19),l=o(194),d=o(75),c=o(118),h=o(36),g=o(20);var u=o(5);const F=Object(u.a)("div",{target:"everg990"})((({theme:t})=>({"&.vega-embed":{"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&.has-actions":{paddingRight:0},".vega-actions":{zIndex:t.zIndices.popupMenu,backgroundColor:t.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`1px solid ${t.colors.fadedText10}`,a:{fontFamily:t.genericFonts.bodyFont,fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.md,margin:0,padding:`${t.spacing.twoXS} ${t.spacing.twoXL}`,color:t.colors.bodyText},"a:hover":{backgroundColor:t.colors.secondaryBg,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},summary:{opacity:0,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.md,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms","&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix25}}}})),"");var m=o(1);const f="(index)",b="source",p=new Set([c.a.DatetimeIndex,c.a.Float64Index,c.a.Int64Index,c.a.RangeIndex,c.a.UInt64Index]);class C extends n.PureComponent{constructor(...t){super(...t),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=b,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{var t,e;const{element:o,theme:n}=this.props,a=JSON.parse(o.spec),{useContainerWidth:i}=o;if("streamlit"===(null===(t=a.usermeta)||void 0===t||null===(e=t.embedOptions)||void 0===e?void 0:e.theme)?(a.config=function(t,e){const o=Object(g.b)(e.colors.bgColor)>.5,n={font:e.genericFonts.bodyFont,background:e.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:e.colors.headingColor,titleFontStyle:"normal",fontWeight:e.fontWeights.bold,fontSize:e.fontSizes.smPx+2,orient:"top",offset:26},axis:{labelFontSize:e.fontSizes.twoSmPx,labelFontWeight:e.fontWeights.normal,labelColor:e.colors.fadedText60,labelFontStyle:"normal",titleFontWeight:e.fontWeights.normal,titleFontSize:e.fontSizes.smPx,titleColor:e.colors.fadedText60,titleFontStyle:"normal",ticks:!1,gridColor:e.colors.fadedText05,domain:!1,domainWidth:1,domainColor:e.colors.fadedText05,labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:16,labelPadding:16,labelSeparation:4,labelOverlap:!0},legend:{labelFontSize:e.fontSizes.smPx,labelFontWeight:e.fontWeights.normal,labelColor:e.colors.bodyText,titleFontSize:e.fontSizes.smPx,titleFontWeight:e.fontWeights.normal,titleFontStyle:"normal",titleColor:e.colors.fadedText60,titlePadding:12,labelPadding:16,columnPadding:8,rowPadding:4,padding:-1,orient:"bottom"},range:{...o?{category:["#0068C9","#83C9FF","#FF2B2B","#FFABAB","#29B09D","#7DEFA1","#FF8700","#FFD16A","#6D3FC0","#D5DAE5"],diverging:["#004280","#0054A3","#1C83E1","#60B4FF","#A6DCFF","#FFC7C7","#FF8C8C","#FF4B4B","#BD4043","#7D353B"],ramp:["#E4F5FF","#C7EBFF","#A6DCFF","#83C9FF","#60B4FF","#3D9DF3","#1C83E1","#0068C9","#0054A3","#004280"],heatmap:["#E4F5FF","#C7EBFF","#A6DCFF","#83C9FF","#60B4FF","#3D9DF3","#1C83E1","#0068C9","#0054A3","#004280"]}:{category:["#83C9FF","#0068C9","#FFABAB","#FF2B2B","#7DEFA1","#29B09D","#FFD16A","#FF8700","#6D3FC0","#D5DAE5"],diverging:["#A6DCFF","#60B4FF","#1C83E1","#0054A3","#004280","#7D353B","#BD4043","#FF4B4B","#FF8C8C","#FFC7C7"],ramp:["#004280","#0054A3","#0068C9","#1C83E1","#3D9DF3","#60B4FF","#83C9FF","#A6DCFF","#C7EBFF","#E4F5FF"],heatmap:["#004280","#0054A3","#0068C9","#1C83E1","#3D9DF3","#60B4FF","#83C9FF","#A6DCFF","#C7EBFF","#E4F5FF"]}},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,...o?{color:"#0068C9"}:{color:"#83C9FF"}},bar:{binSpacing:4,discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return t?Object(h.mergeWith)({},n,t,((t,e)=>Object(h.isArray)(e)?e:void 0)):n}(a.config,n),a.usermeta.embedOptions.theme=void 0):a.config=function(t,e){const{colors:o,fontSizes:n,genericFonts:a}=e,i={labelFont:a.bodyFont,titleFont:a.bodyFont,labelFontSize:n.twoSmPx,titleFontSize:n.twoSmPx},r={background:o.bgColor,axis:{labelColor:o.bodyText,titleColor:o.bodyText,gridColor:o.fadedText10,...i},legend:{labelColor:o.bodyText,titleColor:o.bodyText,...i},title:{color:o.bodyText,subtitleColor:o.bodyText,...i},header:{labelColor:o.bodyText},view:{continuousHeight:350,continuousWidth:400}};return t?Object(h.merge)({},r,t||{}):r}(a.config,n),this.props.height?(a.width=this.props.width,a.height=this.props.height):i&&(a.width=this.props.width),a.padding||(a.padding={}),null==a.padding.bottom&&(a.padding.bottom=20),a.datasets)throw new Error("Datasets should not be passed as part of the spec");return a}}async componentDidMount(){try{await this.createView()}catch(t){const e=Object(d.a)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:o}=t,{element:n,theme:a}=this.props,i=e.spec,{spec:r}=n;if(!this.vegaView||i!==r||o!==a||t.width!==this.props.width||t.height!==this.props.height){Object(s.c)("Vega spec changed.");try{await this.createView()}catch(u){const t=Object(d.a)(u);this.setState({error:t})}return}const l=e.data,{data:c}=n;(l||c)&&this.updateData(this.defaultDataName,l,c);const h=w(e)||{},g=w(n)||{};for(const[s,d]of Object.entries(g)){const t=s||this.defaultDataName,e=h[t];this.updateData(t,e,d)}for(const s of Object.keys(h))g.hasOwnProperty(s)||s===this.defaultDataName||this.updateData(s,null,null);this.vegaView.resize().runAsync()}updateData(t,e,o){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!o||0===o.data.numRows){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,r.truthy))}if(!e||0===e.data.numRows)return void this.vegaView.insert(t,v(o));const{dataRows:n,dataColumns:a}=e.dimensions,{dataRows:i,dataColumns:l}=o.dimensions;if(function(t,e,o,n,a,i){if(o!==i)return!1;if(e>=a)return!1;if(0===e)return!1;const r=i-1,s=e-1;if(t.getDataValue(0,r)!==n.getDataValue(0,r)||t.getDataValue(s,r)!==n.getDataValue(s,r))return!1;return!0}(e,n,a,o,i,l))n<i&&this.vegaView.insert(t,v(o,n));else{const e=r.changeset().remove(r.truthy).insert(v(o));this.vegaView.change(t,e),Object(s.c)(`Had to clear the ${t} dataset before inserting data through Vega view.`)}}async createView(){if(Object(s.c)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),{vgSpec:o,view:n,finalize:a}=await Object(i.a)(this.element,e,{defaultStyle:!0});this.vegaView=n,this.vegaFinalizer=a;const r=function(t){const e=w(t);if(null==e)return null;const o={};for(const[n,a]of Object.entries(e))o[n]=v(a);return o}(t),l=r?Object.keys(r):[];if(1===l.length){const[t]=l;this.defaultDataName=t}else 0===l.length&&o.data&&(this.defaultDataName=b);const d=function(t){const e=t.data;if(!e||0===e.data.numRows)return null;return v(e)}(t);if(d&&n.insert(this.defaultDataName,d),r)for(const[i,s]of Object.entries(r))n.insert(i,s);await n.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return Object(m.jsx)(F,{"data-testid":"stArrowVegaLiteChart",ref:t=>{this.element=t}})}}function w(t){var e;if(0===(null===(e=t.datasets)||void 0===e?void 0:e.length))return null;const o={};return t.datasets.forEach((t=>{if(!t)return;const e=t.hasName?t.name:null;o[e]=t.data})),o}function v(t,e=0){if(t.isEmpty())return[];const o=[],{dataRows:n,dataColumns:a}=t.dimensions,i=c.b.getTypeName(t.types.index[0]),r=p.has(i);for(let s=e;s<n;s++){const e={};if(r){const o=t.getIndexValue(s,0);e[f]="bigint"===typeof o?Number(o):o}for(let o=0;o<a;o++){const n=t.getDataValue(s,o);e[t.columns[0][o]]="bigint"===typeof n?Number(n):n}o.push(e)}return o}var x=Object(a.f)(Object(l.a)(C))}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1 +0,0 @@
1
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[3],{1230:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.a=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,"adapter",void 0),i(this,"cloneAdapter",(function(t,e){var r={MomentUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"D",fullOrdinalWeek:"dddd, MMMM Do YYYY",slashDate:"YYYY/MM/DD",weekday:"dddd",weekdaymin:"dd",quarter:"[Q]Q"}},DateFnsUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM do yyyy",quarter:"QQQ"}},LuxonUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM dd yyyy",quarter:"Qq"}}},n=function(t){return{formats:t.formats,locale:t.locale}},a=e||n,i=t.constructor,o=r[t.constructor.name]||r.DateFnsUtils,u=o.getOptions,s=void 0===u?n:u,c=o.formats,d=s(t);return new i(Object.assign({},a(Object.assign({},d,{formats:Object.assign({},d.formats,c)}))))})),i(this,"format",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).format(t,e)})),i(this,"getAdapterWithNewLocale",(function(t){return r.cloneAdapter(r.adapter,(function(e){return a(a({},e),{},{locale:t})}))})),i(this,"date",(function(t){return r.adapter.date(t)})),i(this,"dateToSeconds",(function(t){return r.adapter.getSeconds(t)+60*r.adapter.getMinutes(t)+3600*r.adapter.getHours(t)})),i(this,"secondsToHourMinute",(function(t){var e=r.adapter.toJsDate(r.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),i(this,"differenceInCalendarMonths",(function(t,e){return 12*(r.adapter.getYear(t)-r.adapter.getYear(e))+(r.adapter.getMonth(t)-r.adapter.getMonth(e))})),i(this,"getStartOfWeek",(function(t,e){var n=e?r.getAdapterWithNewLocale(e):r.adapter;return n.startOfWeek(n.date(t))})),i(this,"formatDate",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).formatByString(t,e)})),i(this,"getWeekdayMinInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),i(this,"getMonthInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t),"month")})),i(this,"getWeekdayInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekday")})),i(this,"getQuarterInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),3*t),"quarter")})),i(this,"getEndOfWeek",(function(t){return r.adapter.endOfWeek(t)})),i(this,"getDay",(function(t){return Number(r.adapter.formatByString(t,"e"))-1})),i(this,"addWeeks",(function(t,e){return r.adapter.addDays(t,7*e)})),i(this,"subWeeks",(function(t,e){return r.addWeeks(t,-1*e)})),i(this,"addYears",(function(t,e){return r.adapter.addMonths(t,12*e)})),i(this,"subYears",(function(t,e){return r.addYears(t,-1*e)})),i(this,"isSameYear",(function(t,e){return!(!t||!e)&&r.adapter.isSameYear(t,e)})),i(this,"isStartOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.startOfMonth(t))})),i(this,"isEndOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.endOfMonth(t))})),i(this,"isDayInRange",(function(t,e,n){return r.adapter.isWithinRange(t,[e,n])})),i(this,"isSameDay",(function(t,e){return!(!t||!e)&&r.adapter.isSameDay(t,e)})),i(this,"isSameMonth",(function(t,e){return!(!t||!e)&&r.adapter.isSameMonth(t,e)})),i(this,"subDays",(function(t,e){return r.adapter.addDays(t,-1*e)})),i(this,"subMonths",(function(t,e){return r.adapter.addMonths(t,-1*e)})),i(this,"min",(function(t){return t.reduce((function(t,e){return r.adapter.isBefore(e,t)?e:t}))})),i(this,"max",(function(t){return t.reduce((function(t,e){return r.adapter.isAfter(e,t)?e:t}))})),i(this,"getEffectiveMinDate",(function(t){var e=t.minDate,n=t.includeDates;if(n&&e){var a=n.filter((function(t){return r.isOnOrAfterDay(t,e)}));return r.min(a)}return n&&n.length?r.min(n):n&&n.length||!e?r.adapter.date():e})),i(this,"getEffectiveMaxDate",(function(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var a=n.filter((function(t){return r.isOnOrBeforeDay(t,e)}));return r.max(a)}return n?r.max(n):!n&&e?e:r.adapter.date()})),i(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.includeDates,i=r.subMonths(t,1);return!!n&&r.differenceInCalendarMonths(n,i)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(t,i)>0}))||!1})),i(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxDate,a=e.includeDates,i=r.adapter.addMonths(t,1);return!!n&&r.differenceInCalendarMonths(i,n)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(i,t)>0}))||!1})),i(this,"setDate",(function(t,e){var n=r.adapter.startOfMonth(t),a=r.adapter.mergeDateAndTime(n,t),i=r.adapter.setSeconds(a,r.adapter.getSeconds(t));return r.adapter.addDays(i,e-1)})),i(this,"getDate",(function(t){return Number(r.adapter.format(t,"dayOfMonthNumber"))})),i(this,"applyDateToTime",(function(t,e){if(!t)return e;var n=r.adapter.getYear(e),a=r.adapter.getMonth(e),i=r.getDate(e),o=r.adapter.setYear(t,n),u=r.adapter.setMonth(o,a);return r.setDate(u,i)})),i(this,"applyTimeToDate",(function(t,e){return t?r.adapter.setSeconds(r.adapter.mergeDateAndTime(t,e),0):e})),i(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate,i=e.excludeDates,o=e.includeDates,u=e.filterDate;return r.isOutOfBounds(t,{minDate:n,maxDate:a})||i&&i.some((function(e){return r.adapter.isSameDay(t,e)}))||o&&!o.some((function(e){return r.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),i(this,"isOnOrAfterDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isAfter(t,e)})),i(this,"isOnOrBeforeDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isBefore(t,e)})),i(this,"isOutOfBounds",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate;return!!n&&!r.isOnOrAfterDay(t,n)||!!a&&!r.isOnOrBeforeDay(t,a)})),i(this,"parseString",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).parse(t,e)})),i(this,"parse",(function(t,e,n){var a=n?r.getAdapterWithNewLocale(n):r.adapter;return a.parse(t,a.formats[e])})),i(this,"setMilliseconds",(function(t,e){return r.adapter.date(1e3*r.adapter.getSeconds(r.adapter.startOfDay(t))+e)})),i(this,"set",(function(t,e){var n=t;return null!=e.year&&(n=r.setYear(n,e.year)),null!=e.month&&(n=r.setMonth(n,e.month)),null!=e.date&&(n=r.setDate(n,Number(e.date))),null!=e.hours&&(n=r.setHours(n,Number(e.hours))),null!=e.minutes&&(n=r.setMinutes(n,Number(e.minutes))),null!=e.seconds&&(n=r.setSeconds(n,Number(e.seconds))),n})),i(this,"getQuarter",(function(t){return Math.floor(r.getMonth(t)/3)+1})),i(this,"setSeconds",(function(t,e){return r.adapter.setSeconds(t,e)})),i(this,"setMinutes",(function(t,e){return r.adapter.setMinutes(t,e)})),i(this,"setHours",(function(t,e){return r.adapter.setHours(t,e)})),i(this,"setMonth",(function(t,e){return r.adapter.setMonth(t,e)})),i(this,"setYear",(function(t,e){return r.adapter.setYear(t,e)})),i(this,"getMinutes",(function(t){return r.adapter.getMinutes(t)})),i(this,"getHours",(function(t){return r.adapter.getHours(t)})),i(this,"getMonth",(function(t){return r.adapter.getMonth(t)})),i(this,"getYear",(function(t){return r.adapter.getYear(t)})),i(this,"getStartOfMonth",(function(t){return r.adapter.startOfMonth(t)})),i(this,"getEndOfMonth",(function(t){return r.adapter.endOfMonth(t)})),i(this,"addDays",(function(t,e){return r.adapter.addDays(t,e)})),i(this,"addMonths",(function(t,e){return r.adapter.addMonths(t,e)})),i(this,"isBefore",(function(t,e){return r.adapter.isBefore(t,e)})),i(this,"isAfter",(function(t,e){return r.adapter.isAfter(t,e)})),i(this,"isEqual",(function(t,e){return r.adapter.isEqual(t,e)})),i(this,"isValid",(function(t){return r.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}},1231:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function i(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function o(t,e){a(2,arguments);var r=i(t),o=n(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}function u(t,e){a(2,arguments);var r=i(t).getTime(),o=n(e);return new Date(r+o)}var s=36e5;function c(t,e){a(2,arguments);var r=i(t),o=n(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var u=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+o+1,0);var c=s.getDate();return u>=c?s:(r.setFullYear(s.getFullYear(),s.getMonth(),u),r)}function d(t,e){a(2,arguments);var r=n(e);return c(t,12*r)}function l(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getFullYear()-n.getFullYear()}function f(t,e){a(2,arguments);var r=i(t),n=i(e),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function h(t,e){a(2,arguments);var r=i(t),n=i(e),o=r.getFullYear()-n.getFullYear(),u=r.getMonth()-n.getMonth();return 12*o+u}function m(t,e){a(2,arguments);var r=i(t),n=i(e),o=f(r,n),u=Math.abs(h(r,n));r.setMonth(r.getMonth()-o*u);var s=f(r,n)===-o,c=o*(u-s);return 0===c?0:c}var p=6e4;function g(t){return t.getTime()%p}function w(t){var e=new Date(t.getTime()),r=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var n=r>0?(p+g(e))%p:g(e);return r*p+n}function y(t){a(1,arguments);var e=i(t);return e.setHours(0,0,0,0),e}var v=864e5;function b(t,e){a(2,arguments);var r=y(t),n=y(e),i=r.getTime()-w(r),o=n.getTime()-w(n);return Math.round((i-o)/v)}function T(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function M(t,e){a(2,arguments);var r=i(t),n=i(e),o=T(r,n),u=Math.abs(b(r,n));r.setDate(r.getDate()-o*u);var s=T(r,n)===-o,c=o*(u-s);return 0===c?0:c}function D(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getTime()-n.getTime()}var k=36e5;function C(t){a(1,arguments);var e=i(t);return e.setHours(23,59,59,999),e}function x(t,e){a(1,arguments);var r=e||{},o=r.locale,u=o&&o.options&&o.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=i(t),l=d.getDay(),f=6+(l<c?-7:0)-(l-c);return d.setDate(d.getDate()+f),d.setHours(23,59,59,999),d}function S(t){a(1,arguments);var e=i(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function P(t){a(1,arguments);var e=i(t);return!isNaN(e)}var O={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function E(t){return function(e){var r=e||{},n=r.width?String(r.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var U={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function H(t){return function(e,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=a.width?String(a.width):i;n=t.formattingValues[o]||t.formattingValues[i]}else{var u=t.defaultWidth,s=a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[u]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function N(t){return function(e,r){var n=String(e),a=r||{},i=a.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],u=n.match(o);if(!u)return null;var s,c=u[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(d)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(d,(function(t){return t.test(c)})):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(d,(function(t){return t.test(c)})),s=t.valueCallback?t.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:n.slice(c.length)}}}var W,L={code:"en-US",formatDistance:function(t,e,r){var n;return r=r||{},n="string"===typeof O[t]?O[t]:1===e?O[t].one:O[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n},formatLong:U,formatRelative:function(t,e,r,n){return Y[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:H({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:H({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:H({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:H({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:H({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(W={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var r=String(t),n=e||{},a=r.match(W.matchPattern);if(!a)return null;var i=a[0],o=r.match(W.parsePattern);if(!o)return null;var u=W.valueCallback?W.valueCallback(o[0]):o[0];return{value:u=n.valueCallback?n.valueCallback(u):u,rest:r.slice(i.length)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function q(t,e){a(2,arguments);var r=n(e);return u(t,-r)}function F(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var A={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return F("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):F(r+1,2)},d:function(t,e){return F(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return F(t.getUTCHours()%12||12,e.length)},H:function(t,e){return F(t.getUTCHours(),e.length)},m:function(t,e){return F(t.getUTCMinutes(),e.length)},s:function(t,e){return F(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds();return F(Math.floor(n*Math.pow(10,r-3)),e.length)}},Q=864e5;function j(t){a(1,arguments);var e=1,r=i(t),n=r.getUTCDay(),o=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function B(t){a(1,arguments);var e=i(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=j(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=j(u);return e.getTime()>=o.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function R(t){a(1,arguments);var e=B(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=j(r);return n}var I=6048e5;function X(t){a(1,arguments);var e=i(t),r=j(e).getTime()-R(e).getTime();return Math.round(r/I)+1}function G(t,e){a(1,arguments);var r=e||{},o=r.locale,u=o&&o.options&&o.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=i(t),l=d.getUTCDay(),f=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function z(t,e){a(1,arguments);var r=i(t,e),o=r.getUTCFullYear(),u=e||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(o+1,0,l),f.setUTCHours(0,0,0,0);var h=G(f,e),m=new Date(0);m.setUTCFullYear(o,0,l),m.setUTCHours(0,0,0,0);var p=G(m,e);return r.getTime()>=h.getTime()?o+1:r.getTime()>=p.getTime()?o:o-1}function _(t,e){a(1,arguments);var r=e||{},i=r.locale,o=i&&i.options&&i.options.firstWeekContainsDate,u=null==o?1:n(o),s=null==r.firstWeekContainsDate?u:n(r.firstWeekContainsDate),c=z(t,e),d=new Date(0);d.setUTCFullYear(c,0,s),d.setUTCHours(0,0,0,0);var l=G(d,e);return l}var J=6048e5;function K(t,e){a(1,arguments);var r=i(t),n=G(r,e).getTime()-_(r,e).getTime();return Math.round(n/J)+1}var $="midnight",V="noon",Z="morning",tt="afternoon",et="evening",rt="night";function nt(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),i=n%60;if(0===i)return r+String(a);var o=e||"";return r+String(a)+o+F(i,2)}function at(t,e){return t%60===0?(t>0?"-":"+")+F(Math.abs(t)/60,2):it(t,e)}function it(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+F(Math.floor(a/60),2)+r+F(a%60,2)}var ot={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return A.y(t,e)},Y:function(t,e,r,n){var a=z(t,n),i=a>0?a:1-a;return"YY"===e?F(i%100,2):"Yo"===e?r.ordinalNumber(i,{unit:"year"}):F(i,e.length)},R:function(t,e){return F(B(t),e.length)},u:function(t,e){return F(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return F(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return F(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return A.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return F(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var a=K(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):F(a,e.length)},I:function(t,e,r){var n=X(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):F(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):A.d(t,e)},D:function(t,e,r){var n=function(t){a(1,arguments);var e=i(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),o=r-n;return Math.floor(o/Q)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):F(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return F(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return F(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return F(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?V:0===a?$:a/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?et:a>=12?tt:a>=4?Z:rt,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return A.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):A.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):F(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):F(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):A.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):A.s(t,e)},S:function(t,e){return A.S(t,e)},X:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return at(a);case"XXXX":case"XX":return it(a);case"XXXXX":case"XXX":default:return it(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return at(a);case"xxxx":case"xx":return it(a);case"xxxxx":case"xxx":default:return it(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nt(a,":");case"OOOO":default:return"GMT"+it(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nt(a,":");case"zzzz":default:return"GMT"+it(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t;return F(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,r,n){return F((n._originalDate||t).getTime(),e.length)}};function ut(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function st(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var ct={p:st,P:function(t,e){var r,n=t.match(/(P+)(p+)?/),a=n[1],i=n[2];if(!i)return ut(t,e);switch(a){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",ut(a,e)).replace("{{time}}",st(i,e))}},dt=["D","DD"],lt=["YY","YYYY"];function ft(t){return-1!==dt.indexOf(t)}function ht(t){return-1!==lt.indexOf(t)}function mt(t,e,r){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var pt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wt=/^'([^]*?)'?$/,yt=/''/g,vt=/[a-zA-Z]/;function bt(t){return t.match(wt)[1].replace(yt,"'")}function Tt(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getTime()>n.getTime()}function Mt(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getTime()<n.getTime()}function Dt(t){a(1,arguments);var e=i(t);return e.setMinutes(0,0,0),e}function kt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e=e||{})e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ct(t,e,r){a(2,arguments);var o=r||{},u=o.locale,s=u&&u.options&&u.options.weekStartsOn,c=null==s?0:n(s),d=null==o.weekStartsOn?c:n(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=i(t),f=n(e),h=l.getUTCDay(),m=f%7,p=(m+7)%7,g=(p<d?7:0)+f-h;return l.setUTCDate(l.getUTCDate()+g),l}var xt=/^(1[0-2]|0?\d)/,St=/^(3[0-1]|[0-2]?\d)/,Pt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ot=/^(5[0-3]|[0-4]?\d)/,Et=/^(2[0-3]|[0-1]?\d)/,Ut=/^(2[0-4]|[0-1]?\d)/,Yt=/^(1[0-1]|0?\d)/,Ht=/^(1[0-2]|0?\d)/,Nt=/^[0-5]?\d/,Wt=/^[0-5]?\d/,Lt=/^\d/,qt=/^\d{1,2}/,Ft=/^\d{1,3}/,At=/^\d{1,4}/,Qt=/^-?\d+/,jt=/^-?\d/,Bt=/^-?\d{1,2}/,Rt=/^-?\d{1,3}/,It=/^-?\d{1,4}/,Xt=/^([+-])(\d{2})(\d{2})?|Z/,Gt=/^([+-])(\d{2})(\d{2})|Z/,zt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,_t=/^([+-])(\d{2}):(\d{2})|Z/,Jt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Kt(t,e,r){var n=e.match(t);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:e.slice(n[0].length)}}function $t(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function Vt(t,e){return Kt(Qt,t,e)}function Zt(t,e,r){switch(t){case 1:return Kt(Lt,e,r);case 2:return Kt(qt,e,r);case 3:return Kt(Ft,e,r);case 4:return Kt(At,e,r);default:return Kt(new RegExp("^\\d{1,"+t+"}"),e,r)}}function te(t,e,r){switch(t){case 1:return Kt(jt,e,r);case 2:return Kt(Bt,e,r);case 3:return Kt(Rt,e,r);case 4:return Kt(It,e,r);default:return Kt(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function ee(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function re(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var i=a+50;r=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return n?r:1-r}var ne=[31,28,31,30,31,30,31,31,30,31,30,31],ae=[31,29,31,30,31,30,31,31,30,31,30,31];function ie(t){return t%400===0||t%4===0&&t%100!==0}var oe={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Zt(4,t,a);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return Zt(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=t.getUTCFullYear();if(r.isTwoDigitYear){var i=re(r.year,a);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Zt(4,t,a);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return Zt(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=z(t,n);if(r.isTwoDigitYear){var i=re(r.year,a);return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),G(t,n)}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),G(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return te("R"===e?4:e.length,t)},set:function(t,e,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),j(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return te("u"===e?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return Zt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return Zt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"M":return Kt(xt,t,a);case"MM":return Zt(2,t,a);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"L":return Kt(xt,t,a);case"LL":return Zt(2,t,a);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return Kt(Ot,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,o){return G(function(t,e,r){a(2,arguments);var o=i(t),u=n(e),s=K(o,r)-u;return o.setUTCDate(o.getUTCDate()-7*s),o}(t,r,o),o)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return Kt(Ot,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,o){return j(function(t,e){a(2,arguments);var r=i(t),o=n(e),u=X(r)-o;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r,o),o)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"d":return Kt(St,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Zt(e.length,t)}},validate:function(t,e,r){var n=ie(t.getUTCFullYear()),a=t.getUTCMonth();return n?e>=1&&e<=ae[a]:e>=1&&e<=ne[a]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"D":case"DD":return Kt(Pt,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Zt(e.length,t)}},validate:function(t,e,r){return ie(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=Ct(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Zt(e.length,t,a);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=Ct(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Zt(e.length,t,a);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=Ct(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){var a=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Zt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return r.day(t,{width:"wide",context:"formatting",valueCallback:a})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(t,e,r){return e>=1&&e<=7},set:function(t,e,r,o){return(t=function(t,e){a(2,arguments);var r=n(e);r%7===0&&(r-=7);var o=1,u=i(t),s=u.getUTCDay(),c=((r%7+7)%7<o?7:0)+r-s;return u.setUTCDate(u.getUTCDate()+c),u}(t,r,o)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ee(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ee(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ee(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return Kt(Ht,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=12},set:function(t,e,r,n){var a=t.getUTCHours()>=12;return a&&r<12?t.setUTCHours(r+12,0,0,0):a||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return Kt(Et,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return Kt(Yt,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return Kt(Ut,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=24},set:function(t,e,r,n){var a=r<=24?r%24:r;return t.setUTCHours(a,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return Kt(Nt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return Kt(Wt,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Zt(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){return Zt(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return $t(Xt,t);case"XX":return $t(Gt,t);case"XXXX":return $t(zt,t);case"XXXXX":return $t(Jt,t);case"XXX":default:return $t(_t,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return $t(Xt,t);case"xx":return $t(Gt,t);case"xxxx":return $t(zt,t);case"xxxxx":return $t(Jt,t);case"xxx":default:return $t(_t,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return Vt(t)},set:function(t,e,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return Vt(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},ue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ce=/^'([^]*?)'?$/,de=/''/g,le=/\S/,fe=/[a-zA-Z]/;function he(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}function me(t){return t.match(ce)[1].replace(de,"'")}function pe(t){a(1,arguments);var e=i(t),r=e.getFullYear(),n=e.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function ge(t){a(1,arguments);var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}function we(t){a(1,arguments);var e=i(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function ye(t,e){a(1,arguments);var r=e||{},o=r.locale,u=o&&o.options&&o.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=i(t),l=d.getDay(),f=(l<c?7:0)+l-c;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}function ve(t){a(1,arguments);var e=i(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}var be=r(1684),Te=r.n(be),Me={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},De=new(function(){function t(t){var e=void 0===t?{}:t,r=e.locale,n=e.formats;this.lib="date-fns",this.locale=r,this.formats=Object.assign({},Me,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||L;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,Te.a[r])(t,e.formatLong,{}):t})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},t.prototype.getCurrentLocaleCode=function(){var t;return(null===(t=this.locale)||void 0===t?void 0:t.code)||"en-US"},t.prototype.addSeconds=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,1e3*r)}(t,e)},t.prototype.addMinutes=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,6e4*r)}(t,e)},t.prototype.addHours=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,r*s)}(t,e)},t.prototype.addDays=function(t,e){return o(t,e)},t.prototype.addWeeks=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return o(t,7*r)}(t,e)},t.prototype.addMonths=function(t,e){return c(t,e)},t.prototype.isValid=function(t){return P(this.date(t))},t.prototype.getDiff=function(t,e,r){switch(r){case"years":return function(t,e){a(2,arguments);var r=i(t),n=i(e),o=f(r,n),u=Math.abs(l(r,n));r.setFullYear("1584"),n.setFullYear("1584");var s=f(r,n)===-o,c=o*(u-s);return 0===c?0:c}(t,this.date(e));case"quarters":return function(t,e){a(2,arguments);var r=m(t,e)/3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"months":return m(t,this.date(e));case"weeks":return function(t,e){a(2,arguments);var r=M(t,e)/7;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"days":return M(t,this.date(e));case"hours":return function(t,e){a(2,arguments);var r=D(t,e)/k;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"minutes":return function(t,e){a(2,arguments);var r=D(t,e)/6e4;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"seconds":return function(t,e){a(2,arguments);var r=D(t,e)/1e3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));default:return D(t,this.date(e))}},t.prototype.isAfter=function(t,e){return Tt(t,e)},t.prototype.isBefore=function(t,e){return Mt(t,e)},t.prototype.startOfDay=function(t){return y(t)},t.prototype.endOfDay=function(t){return C(t)},t.prototype.getHours=function(t){return function(t){return a(1,arguments),i(t).getHours()}(t)},t.prototype.setHours=function(t,e){return function(t,e){a(2,arguments);var r=i(t),o=n(e);return r.setHours(o),r}(t,e)},t.prototype.setMinutes=function(t,e){return function(t,e){a(2,arguments);var r=i(t),o=n(e);return r.setMinutes(o),r}(t,e)},t.prototype.getSeconds=function(t){return function(t){return a(1,arguments),i(t).getSeconds()}(t)},t.prototype.setSeconds=function(t,e){return function(t,e){a(2,arguments);var r=i(t),o=n(e);return r.setSeconds(o),r}(t,e)},t.prototype.isSameDay=function(t,e){return function(t,e){a(2,arguments);var r=y(t),n=y(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isSameMonth=function(t,e){return function(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(t,e)},t.prototype.isSameYear=function(t,e){return function(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getFullYear()===n.getFullYear()}(t,e)},t.prototype.isSameHour=function(t,e){return function(t,e){a(2,arguments);var r=Dt(t),n=Dt(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return ge(t)},t.prototype.endOfMonth=function(t){return we(t)},t.prototype.startOfWeek=function(t){return ye(t,{locale:this.locale})},t.prototype.endOfWeek=function(t){return x(t,{locale:this.locale})},t.prototype.getYear=function(t){return function(t){return a(1,arguments),i(t).getFullYear()}(t)},t.prototype.setYear=function(t,e){return function(t,e){a(2,arguments);var r=i(t),o=n(e);return isNaN(r)?new Date(NaN):(r.setFullYear(o),r)}(t,e)},t.prototype.date=function(t){return"undefined"===typeof t?new Date:null===t?null:new Date(t)},t.prototype.toJsDate=function(t){return t},t.prototype.parse=function(t,e){return""===t?null:function(t,e,r,o){a(3,arguments);var u=String(t),s=String(e),c=o||{},d=c.locale||L;if(!d.match)throw new RangeError("locale must contain match property");var l=d.options&&d.options.firstWeekContainsDate,f=null==l?1:n(l),h=null==c.firstWeekContainsDate?f:n(c.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=d.options&&d.options.weekStartsOn,p=null==m?0:n(m),g=null==c.weekStartsOn?p:n(c.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===u?i(r):new Date(NaN);var y,v={firstWeekContainsDate:h,weekStartsOn:g,locale:d},b=[{priority:10,subPriority:-1,set:he,index:0}],T=s.match(se).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,ct[e])(t,d.formatLong,v):t})).join("").match(ue),M=[];for(y=0;y<T.length;y++){var D=T[y];!c.useAdditionalWeekYearTokens&&ht(D)&&mt(D,s,t),!c.useAdditionalDayOfYearTokens&&ft(D)&&mt(D,s,t);var k=D[0],C=oe[k];if(C){var x=C.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,P=0;P<M.length;P++){var O=M[P].token;if(-1!==x.indexOf(O)||O===k){S=M[P];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(D,"` at the same time"))}else if("*"===C.incompatibleTokens&&M.length)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));M.push({token:k,fullToken:D});var E=C.parse(u,D,d.match,v);if(!E)return new Date(NaN);b.push({priority:C.priority,subPriority:C.subPriority||0,set:C.set,validate:C.validate,value:E.value,index:b.length}),u=E.rest}else{if(k.match(fe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if("''"===D?D="'":"'"===k&&(D=me(D)),0!==u.indexOf(D))return new Date(NaN);u=u.slice(D.length)}}if(u.length>0&&le.test(u))return new Date(NaN);var U=b.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return b.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),Y=i(r);if(isNaN(Y))return new Date(NaN);var H=q(Y,w(Y)),N={};for(y=0;y<U.length;y++){var W=U[y];if(W.validate&&!W.validate(H,W.value,v))return new Date(NaN);var F=W.set(H,N,W.value,v);F[0]?(H=F[0],kt(N,F[1])):H=F}return H}(t,e,new Date,{locale:this.locale})},t.prototype.format=function(t,e){return this.formatByString(t,this.formats[e])},t.prototype.formatByString=function(t,e){return function(t,e,r){a(2,arguments);var o=String(e),u=r||{},s=u.locale||L,c=s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:n(f),m=null==u.weekStartsOn?h:n(u.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var p=i(t);if(!P(p))throw new RangeError("Invalid time value");var g=w(p),y=q(p,g),v={firstWeekContainsDate:l,weekStartsOn:m,locale:s,_originalDate:p};return o.match(gt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,ct[e])(t,s.formatLong,v):t})).join("").match(pt).map((function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return bt(r);var a=ot[n];if(a)return!u.useAdditionalWeekYearTokens&&ht(r)&&mt(r,e,t),!u.useAdditionalDayOfYearTokens&&ft(r)&&mt(r,e,t),a(y,r,s.localize,v);if(n.match(vt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}(t,e,{locale:this.locale})},t.prototype.isEqual=function(t,e){return null===t&&null===e||function(t,e){a(2,arguments);var r=i(t),n=i(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isNull=function(t){return null===t},t.prototype.isAfterDay=function(t,e){return Tt(t,C(e))},t.prototype.isBeforeDay=function(t,e){return Mt(t,y(e))},t.prototype.isBeforeYear=function(t,e){return Mt(t,ve(e))},t.prototype.isAfterYear=function(t,e){return Tt(t,S(e))},t.prototype.isWithinRange=function(t,e){return function(t,e){a(2,arguments);var r=e||{},n=i(t).getTime(),o=i(r.start).getTime(),u=i(r.end).getTime();if(!(o<=u))throw new RangeError("Invalid interval");return n>=o&&n<=u}(t,{start:e[0],end:e[1]})},t.prototype.formatNumber=function(t){return t},t.prototype.getMinutes=function(t){return t.getMinutes()},t.prototype.getMonth=function(t){return t.getMonth()},t.prototype.getDaysInMonth=function(t){return pe(t)},t.prototype.setMonth=function(t,e){return function(t,e){a(2,arguments);var r=i(t),o=n(e),u=r.getFullYear(),s=r.getDate(),c=new Date(0);c.setFullYear(u,o,15),c.setHours(0,0,0,0);var d=pe(c);return r.setMonth(o,Math.min(s,d)),r}(t,e)},t.prototype.getMeridiemText=function(t){return"am"===t?"AM":"PM"},t.prototype.getNextMonth=function(t){return c(t,1)},t.prototype.getPreviousMonth=function(t){return c(t,-1)},t.prototype.getMonthArray=function(t){for(var e=[ve(t)];e.length<12;){var r=e[e.length-1];e.push(this.getNextMonth(r))}return e},t.prototype.mergeDateAndTime=function(t,e){return this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e))},t.prototype.getWeekdays=function(){var t=this,e=new Date;return function(t,e){a(1,arguments);var r=t||{},n=i(r.start),o=i(r.end).getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var u=[],s=n;s.setHours(0,0,0,0);var c=e&&"step"in e?Number(e.step):1;if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)u.push(i(s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return u}({start:ye(e,{locale:this.locale}),end:x(e,{locale:this.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},t.prototype.getWeekArray=function(t){for(var e=ye(ge(t),{locale:this.locale}),r=x(we(t),{locale:this.locale}),n=0,a=e,i=[];Mt(a,r);){var u=Math.floor(n/7);i[u]=i[u]||[],i[u].push(a),a=o(a,1),n+=1}return i},t.prototype.getYearRange=function(t,e){for(var r=ve(t),n=S(e),a=[],i=r;Mt(i,n);)a.push(i),i=d(i,1);return a},t}())({});e.a=De},1684:function(t,e,r){"use strict";function n(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function a(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={p:a,P:function(t,e){var r,i=t.match(/(P+)(p+)?/),o=i[1],u=i[2];if(!u)return n(t,e);switch(o){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",n(o,e)).replace("{{time}}",a(u,e))}};e.default=i,t.exports=e.default},1685:function(t,e,r){"use strict";var n=r(0),a=r(11),i=r(74),o=r(458),u=r(1115),s=r(1230),c=r(1231);function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){a=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(a)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(h,t);var e,r,c,d=g(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),b(y(e=d.call(this,t)),"dateHelpers",void 0),b(y(e),"state",{steps:[],value:null}),b(y(e),"onChange",(function(t){if(e.setState({value:t.value[0]}),0!==t.value.length){var r="string"===typeof t.value[0].id?parseInt(t.value[0].id,10):t.value[0].id||0;e.handleChange(r)}else e.props.nullable&&e.props.onChange&&e.props.onChange(null)})),b(y(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],i=n[1],o=function(t){return t<10?"0".concat(t):t};if("12"===r){var u=t>=43200;return u&&(a-=12),0===a&&(a=12),"".concat(a,":").concat(o(i)," ").concat(u?"PM":"AM")}return"".concat(o(a),":").concat(o(i))})),b(y(e),"stringToOptions",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/,a=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,i="12"===r?n:a,o=t.match(i);if(!o)return[];var u=Number(o[1]),s=Number(o[2]),c=[];switch(r){case"24":c=[{hours:u,minutes:s}];break;case"12":default:var d=u%12,l=o[3];if(l){var f="a"===l.toLowerCase()[0]?d:d+12;c=[{hours:f,minutes:s}]}else c=[{hours:d,minutes:s},{hours:d+12,minutes:s}]}return c.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),b(y(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],i=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(i)})),b(y(e),"setTime",(function(t,r,n,a){var i=e.dateHelpers;return(0,i.setSeconds)((0,i.setMinutes)((0,i.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),b(y(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,i=e.setTime(e.props.value,0,0,0);n||(n=i),a=a?e.props.adapter.setSeconds(e.props.adapter.date(a),e.props.adapter.getSeconds(a)+t):e.setTime(e.props.value,24,0,0);var o=e.props.adapter.toJsDate(n),u=e.props.adapter.toJsDate(a),s=e.props.adapter.toJsDate(i);return{start:(o-s)/1e3,end:(u-s)/1e3}})),b(y(e),"buildSteps",(function(){var t=e.props.step,r=void 0===t?900:t,n=e.getTimeWindowInSeconds(r),a=(n.end-n.start)/r;if(!Number.isInteger(a)){a=Math.round(a)}for(var i=[],o=n.start;o<n.end;o+=r)i.push(o);return i})),b(y(e),"creatableFilterOptions",(function(t,r,n,a){var i=e.stringToOptions(r,e.props.format);return i.length?i:Object(o.a)(t,r,n,a)})),b(y(e),"buildSelectedOption",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=e.dateHelpers.dateToSeconds(t);return{id:n,label:e.secondsToLabel(n,r||"12")}})),e.dateHelpers=new s.a(t.adapter),e}return e=h,(r=[{key:"componentDidMount",value:function(){var t=this.buildSteps();if(this.props.value&&this.props.adapter.isValid(this.props.value))this.setState({steps:t,value:this.buildSelectedOption(this.props.value,this.props.format)});else{var e=this.dateHelpers.dateToSeconds(this.props.adapter.date()),r=43200;t.forEach((function(t){Math.abs(t-e)<Math.abs(r-e)&&(r=t)})),this.setState({steps:t,value:this.props.nullable?void 0:{id:r,label:this.secondsToLabel(r,void 0)}}),(this.props.value||!this.props.nullable&&!this.props.value)&&this.handleChange(r)}}},{key:"componentDidUpdate",value:function(t){var e=t.format!==this.props.format,r=t.step!==this.props.step,n=t.adapter!==this.props.adapter,a=t.minTime!==this.props.minTime,i=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.a(this.props.adapter)),e||r||a||i){var o=this.buildSteps();this.setState({steps:o})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,o=e.overrides,s=void 0===o?{}:o,c=e.adapter,d=f(Object(a.c)(s.Select,u.a),2),h=d[0],m=d[1];m.overrides=Object(a.e)({Dropdown:{style:{maxHeight:"126px"}}},m.overrides);var p=this.props.value&&c.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return n.createElement(i.a.Consumer,null,(function(e){var a;return a=e.datepicker.timePickerAriaLabel?e.datepicker.timePickerAriaLabel:"12"===r?e.datepicker.timePickerAriaLabel12Hour:e.datepicker.timePickerAriaLabel24Hour,n.createElement(h,l({"aria-label":a,disabled:t.props.disabled,error:t.props.error,positive:t.props.positive,size:t.props.size,placeholder:t.props.placeholder||"HH:mm",options:t.state.steps.map((function(e){return{id:e,label:t.secondsToLabel(e,t.props.format)}})),filterOptions:t.props.creatable?t.creatableFilterOptions:void 0,onChange:t.onChange,value:p?[p]:p,clearable:!1,backspaceRemoves:!1,valueKey:"label"},m))}))}}])&&m(e.prototype,r),c&&m(e,c),h}(n.Component);b(T,"defaultProps",{format:"12",step:900,creatable:!1,adapter:c.a}),e.a=T}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 30.32ab2cb4.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[30],{1797:function(t,e,s){"use strict";s.r(e),s.d(e,"default",(function(){return o}));var c=s(0),r=s(53),n=s(85),u=s(88),i=s(1);function o({element:t,width:e}){const s=Object(c.useRef)(null),{getBaseUriParts:o}=Object(c.useContext)(r.a);Object(c.useEffect)((()=>{s.current&&(s.current.currentTime=t.startTime)}),[t.startTime]);const a=Object(u.j)(t.url),d=Object(n.b)(a,o());return Object(i.jsx)("audio",{id:"audio",ref:s,controls:!0,src:d,className:"stAudio",style:{width:e}})}}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 34.edb9c338.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[34],{1800:function(t,o,r){"use strict";r.r(o),r.d(o,"default",(function(){return s}));r(0);var e=r(61),c=r(194),l=r(1677),n=r.n(l),a=r(1);var s=Object(c.a)((function({width:t,element:o,height:r}){const c=()=>!!r,l=l=>{const s=JSON.parse(l.config),{data:i,layout:u,frames:p}=(l=>{const n=JSON.parse(l.spec);c()?(n.layout.width=t,n.layout.height=r):o.useContainerWidth&&(n.layout.width=t);const a=Object(e.c)();return n.layout=function(t,o){const{colors:r,genericFonts:e}=o,c={font:{color:r.bodyText,family:e.bodyFont},paper_bgcolor:r.bgColor,plot_bgcolor:r.secondaryBg};return{...t,font:{...c.font,...t.font},paper_bgcolor:t.paper_bgcolor||c.paper_bgcolor,plot_bgcolor:t.plot_bgcolor||c.plot_bgcolor}}(n.layout,a),n})(l);return Object(a.jsx)(n.a,{className:"stPlotlyChart",data:i,layout:u,config:s,frames:p},c()?"fullscreen":"original")};switch(o.chart){case"url":return(o=>{const e=r||450,c=t;return Object(a.jsx)("iframe",{title:"Plotly",src:o,style:{width:c,height:e}})})(o.url);case"figure":return l(o.figure);default:throw new Error(`Unrecognized PlotlyChart type: ${o.chart}`)}}))}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 35.6bd7c1ed.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[35],{1794:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return u}));var n=s(0),o=s.n(n),i=s(61),r=s(18),a=s(89),c=s(53),l=s(5),p=s(242),d=s(149);const g=Object(l.a)(p.b,{shouldForwardProp:d.a,target:"e17lx80j1"})((({theme:e,$usingCustomTheme:t})=>({marginTop:e.spacing.none,marginBottom:e.spacing.none,marginRight:e.spacing.none,marginLeft:e.spacing.none,borderColor:e.colors.fadedText10,borderTopColor:t?e.colors.primary:e.colors.blue70,flexGrow:0,flexShrink:0})),""),h=Object(l.a)("div",{target:"e17lx80j0"})((({theme:e})=>({display:"flex",gap:e.spacing.lg,alignItems:"center",width:"100%"})),"");var m=s(1);var u=function({width:e,element:t}){const s=Object(i.c)(),{activeTheme:n}=o.a.useContext(c.a),l=!Object(r.isPresetTheme)(n),p={width:e};return Object(m.jsx)("div",{className:"stSpinner",style:p,children:Object(m.jsxs)(h,{children:[Object(m.jsx)(g,{$size:s.iconSizes.twoXL,$usingCustomTheme:l}),Object(m.jsx)(a.a,{source:t.text,allowHTML:!1})]})})}}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 36.be12d12e.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[36],{1792:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return j}));var a=i(0),n=i(61),s=i(19),r=i(221),o=i.n(r),c=i(194),h=i(172),d=i(75),l=i(1478),g=i(1203),u=i(5);const f=Object(u.a)("div",{target:"e10fe9o10"})((({theme:t})=>({"&.vega-embed":{".vega-actions":{zIndex:t.zIndices.popupMenu},summary:{height:"auto",zIndex:t.zIndices.menuButton}}})),"");var p=i(1);const b="(index)",w="source",m=new Set(["datetimeIndex","float_64Index","int_64Index","rangeIndex","timedeltaIndex","uint_64Index"]);class v extends a.PureComponent{constructor(...t){super(...t),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=w,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{const{element:t,theme:e}=this.props,i=JSON.parse(t.get("spec")),a=JSON.parse(t.get("useContainerWidth"));if(i.config=function(t,e){const{colors:i,fontSizes:a,genericFonts:n}=e,s={labelFont:n.bodyFont,titleFont:n.bodyFont,labelFontSize:a.twoSmPx,titleFontSize:a.twoSmPx},r={background:i.bgColor,axis:{labelColor:i.bodyText,titleColor:i.bodyText,gridColor:i.fadedText10,...s},legend:{labelColor:i.bodyText,titleColor:i.bodyText,...s},title:{color:i.bodyText,subtitleColor:i.bodyText,...s},header:{labelColor:i.bodyText},view:{continuousHeight:300,continuousWidth:400}};if(!t)return r;return o()({},r,t||{})}(i.config,e),this.props.height?(i.width=this.props.width-38,i.height=this.props.height):a&&(i.width=this.props.width-38),i.padding||(i.padding={}),null==i.padding.bottom&&(i.padding.bottom=20),i.datasets)throw new Error("Datasets should not be passed as part of the spec");return i}}async componentDidMount(){try{await this.createView()}catch(t){const e=Object(d.a)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:i}=t,{element:a,theme:n}=this.props,r=e.get("spec"),o=a.get("spec");if(!this.vegaView||r!==o||i!==n||t.width!==this.props.width||t.height!==this.props.height){Object(s.c)("Vega spec changed.");try{await this.createView()}catch(u){const t=Object(d.a)(u);this.setState({error:t})}return}const c=e.get("data"),h=a.get("data");(c||h)&&this.updateData(this.defaultDataName,c,h);const l=O(e)||{},g=O(a)||{};for(const[s,d]of Object.entries(g)){const t=s||this.defaultDataName,e=l[t];this.updateData(t,e,d)}for(const s of Object.keys(l))g.hasOwnProperty(s)||s===this.defaultDataName||this.updateData(s,null,null);this.vegaView.resize().runAsync()}updateData(t,e,i){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!i||!i.get("data")){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,g.truthy))}if(!e||!e.get("data"))return void this.vegaView.insert(t,y(i));const[a,n]=Object(h.g)(e.get("data")),[r,o]=Object(h.g)(i.get("data"));if(function(t,e,i,a,n,s){if(i!==s)return!1;if(e>=n)return!1;if(0===e)return!1;const r=t.get("data"),o=a.get("data"),c=s-1,d=e-1;if(Object(h.f)(r,c,0)!==Object(h.f)(o,c,0)||Object(h.f)(r,c,d)!==Object(h.f)(o,c,d))return!1;return!0}(e,a,n,i,r,o))a<r&&this.vegaView.insert(t,y(i,a));else{const e=g.changeset().remove(g.truthy).insert(y(i));this.vegaView.change(t,e),Object(s.c)(`Had to clear the ${t} dataset before inserting data through Vega view.`)}}async createView(){if(Object(s.c)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),{vgSpec:i,view:a,finalize:n}=await Object(l.a)(this.element,e);this.vegaView=a,this.vegaFinalizer=n;const r=function(t){const e=O(t);if(null==e)return null;const i={};for(const[a,n]of Object.entries(e))i[a]=y(n);return i}(t),o=r?Object.keys(r):[];if(1===o.length){const[t]=o;this.defaultDataName=t}else 0===o.length&&i.data&&(this.defaultDataName=w);const c=function(t){const e=t.get("data");if(!e)return null;return y(e)}(t);if(c&&a.insert(this.defaultDataName,c),r)for(const[s,h]of Object.entries(r))a.insert(s,h);await a.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return Object(p.jsx)(f,{"data-testid":"stVegaLiteChart",ref:t=>{this.element=t}})}}function O(t){if(!t.get("datasets")||t.get("datasets").isEmpty())return null;const e={};return t.get("datasets").forEach(((t,i)=>{if(!t)return;const a=t.get("hasName")?t.get("name"):null;e[a]=t.get("data")})),e}function y(t,e=0){if(!t.get("data"))return[];if(!t.get("index"))return[];if(!t.get("columns"))return[];const i=[],[a,n]=Object(h.g)(t.get("data")),s=t.get("index").get("type"),r=m.has(s);for(let o=e;o<a;o++){const e={};r&&(e[b]=Object(h.e)(t.get("index"),0,o));for(let i=0;i<n;i++)e[Object(h.e)(t.get("columns"),0,i)]=Object(h.f)(t.get("data"),i,o);i.push(e)}return i}var j=Object(n.f)(Object(c.a)(v))}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 38.0e8cfb78.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[38],{1802:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return n}));i(0);var s=i(23),d=i(1);var n=function(e){const{disabled:t,element:i,widgetMgr:n,width:l}=e,c={width:l};return Object(d.jsx)("div",{className:"row-widget stButton",style:c,children:Object(d.jsx)(s.a,{help:i.help,children:Object(d.jsx)(s.d,{kind:s.b.PRIMARY,size:s.c.SMALL,disabled:t,onClick:()=>n.setTriggerValue(i,{fromUi:!0}),children:i.label})})})}}}]);
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018-2022 Streamlit Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 39.73c851be.chunk.js.LICENSE.txt */
2
- (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[39],{1783:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return N}));var o=r(0),i=r.n(o),n=r(61),s=r(11),a=r(22),l=r(77),c=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle_round"});Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=e.$disabled,r=e.$checked,o=e.$isIndeterminate,i=e.$isError,n=e.$error,s=e.$isHovered,a=e.$isActive,l=e.$theme,d=e.$checkmarkType===c.toggle,u=l.colors;return t?d?u.toggleFillDisabled:r||o?u.tickFillDisabled:u.tickFill:(n||i)&&(o||r)?a?u.tickFillErrorSelectedHoverActive:s?u.tickFillErrorSelectedHover:u.tickFillErrorSelected:n||i?a?u.tickFillErrorHoverActive:s?u.tickFillErrorHover:u.tickFillError:o||r?a?u.tickFillSelectedHoverActive:s?u.tickFillSelectedHover:u.tickFillSelected:a?d?u.sliderTrackFillActive:u.tickFillActive:s?d?u.sliderTrackFillHover:u.tickFillHover:d?u.toggleTrackFill:u.tickFill}function p(e){var t=e.$disabled,r=e.$theme.colors;return t?r.contentSecondary:r.contentPrimary}var b=Object(a.a)("label",(function(e){var t=e.$disabled,r=e.$labelPlacement;return{flexDirection:"top"===r||"bottom"===r?"column":"row",display:"flex",alignItems:"top"===r||"bottom"===r?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));b.displayName="Root";var g=Object(a.a)("span",(function(e){var t=e.$checked,r=e.$disabled,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.sizing,c=s.animation,d=r?s.colors.tickMarkFillDisabled:o||i?s.colors.tickMarkFillError:s.colors.tickMarkFill,u=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(d,'"/>\n </svg>\n ')),h=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(d,'"/>\n </svg>\n ')),p=s.borders.inputBorderRadius,b=function(e){var t=e.$disabled,r=e.$checked,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.colors;return t?l.tickFillDisabled:r||n?"transparent":i||o?l.borderError:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:c.timing200,transitionTimingFunction:c.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:b,borderRightColor:b,borderTopColor:b,borderBottomColor:b,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,outline:a&&t?"3px solid ".concat(s.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:n?"url('data:image/svg+xml,".concat(u,"');"):t?"url('data:image/svg+xml,".concat(h,"');"):null,backgroundColor:m(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:s.sizing.scale0,marginBottom:s.sizing.scale0,marginLeft:s.sizing.scale0,marginRight:s.sizing.scale0}}));g.displayName="Checkmark";var f=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$checkmarkType,o=t.typography;return u(u(u({flex:r===c.toggle?"auto":null,verticalAlign:"middle"},function(e){var t,r=e.$labelPlacement,o=void 0===r?"":r,i=e.$theme,n=i.sizing.scale300;switch(o){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:case"right":t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),h({},"padding".concat(t),n)}(e)),{},{color:p(e)},o.LabelMedium),{},{lineHeight:"24px"})}));f.displayName="Label";var v=Object(a.a)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});v.displayName="Input";var $=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return u(u({},Object(l.b)(e.$theme.borders.border300)),{},{alignItems:"center",backgroundColor:e.$theme.colors.mono100,borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$theme.lighting.shadow400,outline:"none",display:"flex",justifyContent:"center",height:e.$theme.sizing.scale800,width:e.$theme.sizing.scale800})}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleFill;return e.$disabled?r=e.$theme.colors.toggleFillDisabled:e.$checked&&(e.$error||e.$isError)?r=e.$theme.colors.borderError:e.$checked&&(r=e.$theme.colors.toggleFillChecked),{backgroundColor:r,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}return{}}));$.displayName="Toggle";var k=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){return{height:e.$theme.sizing.scale300,width:e.$theme.sizing.scale0,borderTopLeftRadius:e.$theme.borders.radius100,borderTopRightRadius:e.$theme.borders.radius100,borderBottomRightRadius:e.$theme.borders.radius100,borderBottomLeftRadius:e.$theme.borders.radius100,backgroundColor:e.$disabled?e.$theme.colors.sliderHandleInnerFillDisabled:e.$isActive&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedActive:e.$isHovered&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedHover:e.$theme.colors.toggleTrackFill}}return e.$checkmarkType,c.toggle_round,{}}));k.displayName="ToggleInner";var y=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return{alignItems:"center",backgroundColor:m(e),borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,display:"flex",height:e.$theme.sizing.scale600,justifyContent:e.$checked?"flex-end":"flex-start",marginTop:e.$theme.sizing.scale100,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale100,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleTrackFill;return e.$disabled?r=e.$theme.colors.toggleTrackFillDisabled:(e.$error||e.$isError)&&e.$checked&&(r=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:r,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}return{}}));y.displayName="ToggleTrack";var R=r(39);function F(e){return(F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return C(this,r)}}function C(e,t){return!t||"object"!==F(t)&&"function"!==typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(e){return e.stopPropagation()},P=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(a,e);var t,r,i,n=x(a);function a(){var e;w(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return E(L(e=n.call.apply(n,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),E(L(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),E(L(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),E(L(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),E(L(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),E(L(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),Object(R.d)(t)&&e.setState({isFocusVisible:!0})})),E(L(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),E(L(e),"isToggle",(function(){return e.props.checkmarkType===c.toggle||e.props.checkmarkType===c.toggle_round})),e}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,r=e.inputRef;t&&r.current&&r.current.focus()}},{key:"render",value:function(){var e=this.props.checkmarkType,t=this.props,r=t.overrides,i=void 0===r?{}:r,n=t.onChange,a=t.labelPlacement,l=void 0===a?this.isToggle()?"left":"right":a,c=t.inputRef,d=t.isIndeterminate,u=t.isError,h=t.error,m=t.disabled,p=t.value,R=t.name,F=t.type,w=t.checked,T=t.children,j=t.required,x=t.title,C=t.ariaLabel,L=i.Root,S=i.Checkmark,E=i.Label,P=i.Input,M=i.Toggle,z=i.ToggleInner,H=i.ToggleTrack,I=Object(s.a)(L)||b,V=Object(s.a)(S)||g,D=Object(s.a)(E)||f,A=Object(s.a)(P)||v,U=Object(s.a)(M)||$,_=Object(s.a)(z)||k,W=Object(s.a)(H)||y,N={onChange:n,onFocus:this.onFocus,onBlur:this.onBlur},q={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},J={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$isError:u,$error:h,$checked:w,$isIndeterminate:d,$required:j,$disabled:m,$value:p,$checkmarkType:e},Z=o.createElement(D,O({$labelPlacement:l},J,Object(s.b)(E)),this.props.containsInteractiveElement?o.createElement("div",{onClick:function(e){return e.preventDefault()}},T):T);return o.createElement(I,O({"data-baseweb":"checkbox",title:x||null,$labelPlacement:l},J,q,Object(s.b)(L)),("top"===l||"left"===l)&&Z,this.isToggle()?o.createElement(W,O({},J,Object(s.b)(H)),o.createElement(U,O({},J,Object(s.b)(M)),o.createElement(_,O({},J,Object(s.b)(z))))):o.createElement(V,O({},J,Object(s.b)(S))),o.createElement(A,O({value:p,name:R,checked:w,required:j,"aria-label":C,"aria-checked":d?"mixed":w,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":h||u||null,"aria-required":j||null,disabled:m,type:F,ref:c,onClick:B},J,N,Object(s.b)(P))),("bottom"===l||"right"===l)&&Z)}}])&&T(t.prototype,r),i&&T(t,i),a}(o.Component);E(P,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:o.createRef(),isError:!1,error:!1,type:"checkbox",checkmarkType:c.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});var M=P,z=r(20),H=r(193),I=r(114),V=r(50),D=r(113),A=r(5);const U=Object(A.a)("div",{target:"ek41t0m0"})((({theme:e})=>({verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"})),"");var _=r(1);class W extends i.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new H.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{theme:e,width:t,element:r,disabled:o,widgetMgr:i}=this.props,{colors:n,spacing:s,radii:a}=e,l={width:t},c=o?n.fadedText40:n.bodyText;return this.formClearHelper.manageFormClearListener(i,r.formId,this.onFormCleared),Object(_.jsx)("div",{className:"row-widget stCheckbox",style:l,children:Object(_.jsx)(M,{checked:this.state.value,disabled:o,onChange:this.onChange,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?n.darkenedBgMix25:"",borderTopLeftRadius:a.md,borderTopRightRadius:a.md,borderBottomLeftRadius:a.md,borderBottomRightRadius:a.md,display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const r=t&&!o?n.primary:n.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${Object(z.g)(n.primary,.5)}`:"",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftColor:r,borderRightColor:r,borderTopColor:r,borderBottomColor:r}}},Label:{style:{color:c}}},children:Object(_.jsxs)(U,{children:[r.label,r.help&&Object(_.jsx)(D.c,{color:c,children:Object(_.jsx)(I.a,{content:r.help,placement:V.b.TOP_RIGHT})})]})})})}}var N=Object(n.f)(W)}}]);