@stlite/desktop 0.21.3 → 0.22.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.
- package/build/asset-manifest.json +93 -93
- package/build/index.html +1 -1
- package/build/static/css/{6.03f87ee7.chunk.css → 6.69790b96.chunk.css} +1 -1
- package/build/static/css/{main.b6e9910c.chunk.css → main.7bc75681.chunk.css} +1 -1
- package/build/static/js/{0.db2b8db1.chunk.js → 0.14aa4233.chunk.js} +1 -1
- package/build/static/js/{1.d8a95919.chunk.js → 1.176aded5.chunk.js} +1 -1
- package/build/static/js/{10.dae52f04.chunk.js → 10.e5ea6d64.chunk.js} +1 -1
- package/build/static/js/{11.9fe45850.chunk.js → 11.5e15526e.chunk.js} +2 -2
- package/build/static/js/{11.9fe45850.chunk.js.LICENSE.txt → 11.5e15526e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{12.209a1965.chunk.js → 12.8105987b.chunk.js} +2 -2
- package/build/static/js/{12.209a1965.chunk.js.LICENSE.txt → 12.8105987b.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{13.a3dda2ea.chunk.js → 13.6f270c1f.chunk.js} +2 -2
- package/build/static/js/{13.a3dda2ea.chunk.js.LICENSE.txt → 13.6f270c1f.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{14.86cd17bd.chunk.js → 14.3da5e7a9.chunk.js} +1 -1
- package/build/static/js/{15.1bdac30d.chunk.js → 15.91a85aa0.chunk.js} +2 -2
- package/build/static/js/{15.1bdac30d.chunk.js.LICENSE.txt → 15.91a85aa0.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{16.be849095.chunk.js → 16.650490ee.chunk.js} +2 -2
- package/build/static/js/{16.be849095.chunk.js.LICENSE.txt → 16.650490ee.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{17.cc750fa1.chunk.js → 17.4c6481b3.chunk.js} +1 -1
- package/build/static/js/{18.5007c118.chunk.js → 18.e3d4364d.chunk.js} +2 -2
- package/build/static/js/{18.5007c118.chunk.js.LICENSE.txt → 18.e3d4364d.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{19.1d97adb1.chunk.js → 19.9004a138.chunk.js} +3 -3
- package/build/static/js/{19.1d97adb1.chunk.js.LICENSE.txt → 19.9004a138.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{2.42f468c9.chunk.js → 2.26deed5e.chunk.js} +2 -2
- package/build/static/js/{2.42f468c9.chunk.js.LICENSE.txt → 2.26deed5e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{20.d86738b4.chunk.js → 20.1e287e6d.chunk.js} +1 -1
- package/build/static/js/{21.8fca1019.chunk.js → 21.cc58bd99.chunk.js} +1 -1
- package/build/static/js/{22.d22eb326.chunk.js → 22.fe58abe1.chunk.js} +2 -2
- package/build/static/js/{22.d22eb326.chunk.js.LICENSE.txt → 22.fe58abe1.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{23.703a0005.chunk.js → 23.ee721415.chunk.js} +3 -3
- package/build/static/js/{23.703a0005.chunk.js.LICENSE.txt → 23.ee721415.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{24.bbdd8ad5.chunk.js → 24.36b10d26.chunk.js} +2 -2
- package/build/static/js/{24.bbdd8ad5.chunk.js.LICENSE.txt → 24.36b10d26.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{25.7a13965c.chunk.js → 25.edf85627.chunk.js} +2 -2
- package/build/static/js/{25.7a13965c.chunk.js.LICENSE.txt → 25.edf85627.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{26.5d02767c.chunk.js → 26.99f3cc19.chunk.js} +2 -2
- package/build/static/js/{26.5d02767c.chunk.js.LICENSE.txt → 26.99f3cc19.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{27.a1975825.chunk.js → 27.d7aacc94.chunk.js} +2 -2
- package/build/static/js/{27.a1975825.chunk.js.LICENSE.txt → 27.d7aacc94.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{28.8fe6cf95.chunk.js → 28.d24eb9cf.chunk.js} +3 -3
- package/build/static/js/{28.8fe6cf95.chunk.js.LICENSE.txt → 28.d24eb9cf.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{29.2a3ece9e.chunk.js → 29.fbb528d8.chunk.js} +2 -2
- package/build/static/js/{29.2a3ece9e.chunk.js.LICENSE.txt → 29.fbb528d8.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{3.82223a8f.chunk.js → 3.f4fb8871.chunk.js} +1 -1
- package/build/static/js/{30.99b51097.chunk.js → 30.32ab2cb4.chunk.js} +2 -2
- package/build/static/js/{30.99b51097.chunk.js.LICENSE.txt → 30.32ab2cb4.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{31.ff33aa2d.chunk.js → 31.9c06312e.chunk.js} +2 -2
- package/build/static/js/{31.ff33aa2d.chunk.js.LICENSE.txt → 31.9c06312e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{32.a0448bd6.chunk.js → 32.a1f2009d.chunk.js} +2 -2
- package/build/static/js/{32.a0448bd6.chunk.js.LICENSE.txt → 32.a1f2009d.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{33.4e785a88.chunk.js → 33.1d5fce1c.chunk.js} +2 -2
- package/build/static/js/{33.4e785a88.chunk.js.LICENSE.txt → 33.1d5fce1c.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{34.a91bbe12.chunk.js → 34.edb9c338.chunk.js} +2 -2
- package/build/static/js/{34.a91bbe12.chunk.js.LICENSE.txt → 34.edb9c338.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{35.d2720d0c.chunk.js → 35.6bd7c1ed.chunk.js} +2 -2
- package/build/static/js/{35.d2720d0c.chunk.js.LICENSE.txt → 35.6bd7c1ed.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{36.19b6ded6.chunk.js → 36.be12d12e.chunk.js} +2 -2
- package/build/static/js/{36.19b6ded6.chunk.js.LICENSE.txt → 36.be12d12e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{37.c8ade714.chunk.js → 37.b845d4ba.chunk.js} +2 -2
- package/build/static/js/{37.c8ade714.chunk.js.LICENSE.txt → 37.b845d4ba.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{38.a8e76ebd.chunk.js → 38.0e8cfb78.chunk.js} +2 -2
- package/build/static/js/{38.a8e76ebd.chunk.js.LICENSE.txt → 38.0e8cfb78.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{39.815183b5.chunk.js → 39.73c851be.chunk.js} +2 -2
- package/build/static/js/{39.815183b5.chunk.js.LICENSE.txt → 39.73c851be.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{40.5e639584.chunk.js → 40.1fc38a50.chunk.js} +2 -2
- package/build/static/js/{40.5e639584.chunk.js.LICENSE.txt → 40.1fc38a50.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{41.1811bda2.chunk.js → 41.4ddf36bc.chunk.js} +2 -2
- package/build/static/js/{41.1811bda2.chunk.js.LICENSE.txt → 41.4ddf36bc.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{42.ccc87d41.chunk.js → 42.e5620440.chunk.js} +2 -2
- package/build/static/js/{42.ccc87d41.chunk.js.LICENSE.txt → 42.e5620440.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{43.dd888752.chunk.js → 43.44eb58de.chunk.js} +2 -2
- package/build/static/js/{43.dd888752.chunk.js.LICENSE.txt → 43.44eb58de.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{44.14f2e50d.chunk.js → 44.35b43369.chunk.js} +2 -2
- package/build/static/js/{44.14f2e50d.chunk.js.LICENSE.txt → 44.35b43369.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{45.61ea1afe.chunk.js → 45.91664b3c.chunk.js} +2 -2
- package/build/static/js/{45.61ea1afe.chunk.js.LICENSE.txt → 45.91664b3c.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{46.3201e0ba.chunk.js → 46.e9639103.chunk.js} +2 -2
- package/build/static/js/{46.3201e0ba.chunk.js.LICENSE.txt → 46.e9639103.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{47.f6442eb9.chunk.js → 47.77b33a34.chunk.js} +2 -2
- package/build/static/js/{47.f6442eb9.chunk.js.LICENSE.txt → 47.77b33a34.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/6.8496e815.chunk.js +2 -0
- package/build/static/js/{6.cfeb0558.chunk.js.LICENSE.txt → 6.8496e815.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{7.e179a232.chunk.js → 7.54bbd037.chunk.js} +2 -2
- package/build/static/js/{7.e179a232.chunk.js.LICENSE.txt → 7.54bbd037.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{8.89ddb52f.chunk.js → 8.934b1bbd.chunk.js} +2 -2
- package/build/static/js/{8.89ddb52f.chunk.js.LICENSE.txt → 8.934b1bbd.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{9.ea63c205.chunk.js → 9.8ff376a2.chunk.js} +1 -1
- package/build/static/js/main.118127a6.chunk.js +28 -0
- package/build/static/js/{main.984ac8f5.chunk.js.LICENSE.txt → main.118127a6.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/runtime-main.fe933feb.js +1 -0
- package/package.json +5 -3
- package/build/static/js/6.cfeb0558.chunk.js +0 -2
- package/build/static/js/main.984ac8f5.chunk.js +0 -28
- package/build/static/js/runtime-main.bae92e60.js +0 -1
package/build/static/js/{26.5d02767c.chunk.js.LICENSE.txt → 26.99f3cc19.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 27.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[27],{
|
|
1
|
+
/*! For license information please see 27.d7aacc94.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[27],{1662:function(t,e){},1791:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return b}));var n=i(0),r=i(1637),a=i.n(r),o=i(88),s=i(53),c=i(194),d=i(85),l=i(5);const h=Object(l.a)("div",{target:"etr89bj2"})((({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.spacing.lg})),""),u=Object(l.a)("div",{target:"etr89bj1"})((({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:"auto",flexGrow:0})),""),p=Object(l.a)("div",{target:"etr89bj0"})((({theme:t})=>({fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,color:t.colors.fadedText60,textAlign:"center",marginTop:t.spacing.xs,wordWrap:"break-word",padding:"0.125rem"})),"");var g,m=i(1);!function(t){t[t.OriginalWidth=-1]="OriginalWidth",t[t.ColumnWidth=-2]="ColumnWidth",t[t.AutoWidth=-3]="AutoWidth"}(g||(g={}));var b=Object(c.a)((function({width:t,isFullScreen:e,element:i,height:r}){const{getBaseUriParts:c}=Object(n.useContext)(s.a),l=Object(o.h)(i.imgs);let b;const f=i.width;if(f===g.OriginalWidth||f===g.AutoWidth)b=void 0;else if(f===g.ColumnWidth)b=t;else{if(!(f>0))throw Error(`Invalid image width: ${f}`);b=f}const j={};return r&&e?(j.maxHeight=r,j["object-fit"]="contain"):(j.width=b,f===g.AutoWidth&&(j.maxWidth="100%")),Object(m.jsx)(h,{style:{width:t},children:l.map(((t,e)=>{const i=t;return Object(m.jsxs)(u,{"data-testid":"stImage",children:[i.markup?a()(Object(d.e)(i.markup)):Object(m.jsx)("img",{style:j,src:Object(d.b)(i.url,c()),alt:e.toString()}),i.caption&&Object(m.jsx)(p,{"data-testid":"caption",style:j,children:` ${i.caption} `})]},e)}))})}))}}]);
|
package/build/static/js/{27.a1975825.chunk.js.LICENSE.txt → 27.d7aacc94.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! For license information please see 28.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[28],{
|
|
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
3
|
50% {
|
|
4
4
|
color: rgba(0, 0, 0, 0);
|
|
5
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})}},
|
|
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}}]);
|
package/build/static/js/{28.8fe6cf95.chunk.js.LICENSE.txt → 28.d24eb9cf.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 29.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[29],{
|
|
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))}}]);
|
package/build/static/js/{29.2a3ece9e.chunk.js.LICENSE.txt → 29.fbb528d8.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[3],{1225: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)}},1226: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(1679),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},1679: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},1680:function(t,e,r){"use strict";var n=r(0),a=r(11),i=r(74),o=r(455),u=r(1109),s=r(1225),c=r(1226);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
|
+
(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 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 30.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[30],{
|
|
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}})}}}]);
|
package/build/static/js/{30.99b51097.chunk.js.LICENSE.txt → 30.32ab2cb4.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 31.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[31],{
|
|
1
|
+
/*! For license information please see 31.9c06312e.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[31],{1798:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return c}));var o=i(0),s=i(194),r=i(1);var c=Object(s.a)((function({width:t,element:e,height:i}){const s=`bokeh-chart-${e.elementId}`,c=Object(o.useCallback)((()=>JSON.parse(e.figure)),[e]),h=Object(o.useCallback)((o=>{const{Bokeh:r}=window,c=document.getElementById(s),h=o&&o.doc&&o.doc.roots&&o.doc.roots.references?o.doc.roots.references.find((t=>"Plot"===t.type)):void 0;if(h){const{chartWidth:o,chartHeight:s}=(o=>{let s=o.attributes.plot_width,r=o.attributes.plot_height;return i?(s=t,r=i):e.useContainerWidth&&(s=t),{chartWidth:s,chartHeight:r}})(h);o>0&&(h.attributes.plot_width=o),s>0&&(h.attributes.plot_height=s)}null!==c&&((t=>{for(;t.lastChild;)t.lastChild.remove()})(c),r.embed.embed_item(o,s))}),[t,i,e]);return Object(o.useEffect)((()=>{h(c())}),[t,i,e,c,h]),Object(r.jsx)("div",{id:s,className:"stBokehChart"})}))}}]);
|
package/build/static/js/{31.ff33aa2d.chunk.js.LICENSE.txt → 31.9c06312e.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|