streamlit-nightly 1.39.1.dev20241029__py2.py3-none-any.whl → 1.39.1.dev20241031__py2.py3-none-any.whl
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.
- streamlit/connections/base_connection.py +4 -0
- streamlit/connections/snowflake_connection.py +310 -36
- streamlit/connections/snowpark_connection.py +1 -1
- streamlit/connections/sql_connection.py +140 -26
- streamlit/proto/MetricsEvent_pb2.py +30 -0
- streamlit/proto/MetricsEvent_pb2.pyi +200 -0
- streamlit/runtime/connection_factory.py +122 -37
- streamlit/static/asset-manifest.json +21 -19
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/1504.51c32670.chunk.js +2 -0
- streamlit/static/static/js/223.7f54d4fe.chunk.js +1 -0
- streamlit/static/static/js/2601.677fbaac.chunk.js +1 -0
- streamlit/static/static/js/3224.919d670d.chunk.js +1 -0
- streamlit/static/static/js/3682.8ecb602d.chunk.js +1 -0
- streamlit/static/static/js/3978.58bcc6a4.chunk.js +2 -0
- streamlit/static/static/js/4133.5d5fe118.chunk.js +2 -0
- streamlit/static/static/js/{4942.e4db7877.chunk.js → 4942.cd41b09c.chunk.js} +1 -1
- streamlit/static/static/js/5361.913e291a.chunk.js +1 -0
- streamlit/static/static/js/5503.0917ff70.chunk.js +1 -0
- streamlit/static/static/js/7612.3f409b56.chunk.js +2 -0
- streamlit/static/static/js/783.403d1195.chunk.js +1 -0
- streamlit/static/static/js/8148.9b76a4cd.chunk.js +1 -0
- streamlit/static/static/js/8237.86c539f3.chunk.js +1 -0
- streamlit/static/static/js/8380.9d225c39.chunk.js +1 -0
- streamlit/static/static/js/8460.570de48a.chunk.js +1 -0
- streamlit/static/static/js/9923.14294b15.chunk.js +1 -0
- streamlit/static/static/js/9943.ac0530dc.chunk.js +1 -0
- streamlit/static/static/js/main.754d974e.js +28 -0
- streamlit/web/server/routes.py +1 -0
- streamlit/web/server/server.py +6 -1
- {streamlit_nightly-1.39.1.dev20241029.dist-info → streamlit_nightly-1.39.1.dev20241031.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.39.1.dev20241029.dist-info → streamlit_nightly-1.39.1.dev20241031.dist-info}/RECORD +42 -38
- streamlit/static/static/js/223.2359dae5.chunk.js +0 -1
- streamlit/static/static/js/3224.a04b49ba.chunk.js +0 -1
- streamlit/static/static/js/3389.71902a75.chunk.js +0 -1
- streamlit/static/static/js/4096.178414b7.chunk.js +0 -2
- streamlit/static/static/js/4297.3afbdd03.chunk.js +0 -2
- streamlit/static/static/js/4856.03868952.chunk.js +0 -2
- streamlit/static/static/js/5849.e92568db.chunk.js +0 -1
- streamlit/static/static/js/6198.956025ac.chunk.js +0 -2
- streamlit/static/static/js/6360.50be2ff5.chunk.js +0 -1
- streamlit/static/static/js/783.788bb3ab.chunk.js +0 -1
- streamlit/static/static/js/8148.b29e43b5.chunk.js +0 -1
- streamlit/static/static/js/8237.58ae67da.chunk.js +0 -1
- streamlit/static/static/js/8460.8b3f792f.chunk.js +0 -1
- streamlit/static/static/js/9923.8dc9e5ed.chunk.js +0 -1
- streamlit/static/static/js/9943.51b39296.chunk.js +0 -1
- streamlit/static/static/js/main.8c705f66.js +0 -28
- /streamlit/static/static/css/{4096.8b8f33d6.chunk.css → 1504.8b8f33d6.chunk.css} +0 -0
- /streamlit/static/static/js/{4096.178414b7.chunk.js.LICENSE.txt → 1504.51c32670.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{6198.956025ac.chunk.js.LICENSE.txt → 3978.58bcc6a4.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{4297.3afbdd03.chunk.js.LICENSE.txt → 4133.5d5fe118.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{4856.03868952.chunk.js.LICENSE.txt → 7612.3f409b56.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{main.8c705f66.js.LICENSE.txt → main.754d974e.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.39.1.dev20241029.data → streamlit_nightly-1.39.1.dev20241031.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.39.1.dev20241029.dist-info → streamlit_nightly-1.39.1.dev20241031.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.39.1.dev20241029.dist-info → streamlit_nightly-1.39.1.dev20241031.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.39.1.dev20241029.dist-info → streamlit_nightly-1.39.1.dev20241031.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[6360],{36360:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});var a=r(58878),o=r(17643),i=r.n(o),n=r(8151),l=r(64942),d=r(754),s=r(41639),u=r(25571),g=r(3101),m=r(70474),c=r(78286),f=r(93480),p=r(997),h=r(90782);const v="YYYY/MM/DD";function b(e){return e.map((e=>new Date(e)))}function C(e){var t;let{disabled:r,element:o,widgetMgr:C,width:I,fragmentId:F}=e;const[k,D]=(0,g.t)({getStateFromWidgetMgr:S,getDefaultStateFromProto:y,getCurrStateFromProto:W,updateWidgetMgrState:M,element:o,widgetMgr:C,fragmentId:F}),[L,w]=(0,a.useState)(!1),{colors:x,fontSizes:$,lineHeights:A,spacing:R,sizes:j}=(0,n.u)(),z={width:I},U=i()(o.min,v).toDate(),_=function(e){const t=e.max;return t&&t.length>0?i()(t,v).toDate():void 0}(o),B=0===o.default.length&&!r,P=(0,a.useMemo)((()=>o.format.replaceAll(/[a-zA-Z]/g,"9")),[o.format]),H=(0,a.useMemo)((()=>o.format.replaceAll("Y","y").replaceAll("D","d")),[o.format]),T=(0,a.useCallback)((e=>{let{date:t}=e;if((0,u.hX)(t))return D({value:[],fromUi:!0}),void w(!0);const r=[];Array.isArray(t)?t.forEach((e=>{e&&r.push(e)})):r.push(t),D({value:r,fromUi:!0}),w(!r)}),[D]),V=(0,a.useCallback)((()=>{if(!L)return;const e=b(o.default);D({value:e,fromUi:!0}),w(!e)}),[L,o,D]);return(0,h.jsxs)("div",{className:"stDateInput","data-testid":"stDateInput",style:z,children:[(0,h.jsx)(m.L,{label:o.label,disabled:r,labelVisibility:(0,u.yv)(null===(t=o.labelVisibility)||void 0===t?void 0:t.value),children:o.help&&(0,h.jsx)(c.j,{children:(0,h.jsx)(f.A,{content:o.help,placement:p.W.TOP_RIGHT})})}),(0,h.jsx)(l.A,{density:d.fY.high,formatString:H,mask:o.isRange?`${P} \u2013 ${P}`:P,placeholder:o.isRange?`${o.format} \u2013 ${o.format}`:o.format,disabled:r,onChange:T,onClose:V,overrides:{Popover:{props:{placement:s.El.bottomLeft,overrides:{Body:{style:{border:`${j.borderWidth} solid ${x.borderColor}`}}}}},CalendarContainer:{style:{fontSize:$.sm,paddingRight:R.sm,paddingLeft:R.sm,paddingBottom:R.sm,paddingTop:R.sm}},Week:{style:{fontSize:$.sm}},Day:{style:e=>{let{$pseudoHighlighted:t,$pseudoSelected:r,$selected:a,$isHovered:o}=e;return{fontSize:$.sm,lineHeight:A.base,"::before":{backgroundColor:a||r||t||o?`${x.secondaryBg} !important`:x.transparent},"::after":{borderColor:x.transparent}}}},PrevButton:{style:()=>({display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:x.transparent},":focus":{backgroundColor:x.transparent,outline:0}})},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:x.transparent},":focus":{backgroundColor:x.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:j.borderWidth,borderRightWidth:j.borderWidth,borderTopWidth:j.borderWidth,borderBottomWidth:j.borderWidth,paddingRight:R.twoXS}},ClearIcon:{props:{overrides:{Svg:{style:{color:x.darkGray,padding:R.threeXS,height:j.clearIconSize,width:j.clearIconSize,":hover":{fill:x.bodyText}}}}}},Input:{style:{paddingRight:R.sm,paddingLeft:R.sm,paddingBottom:R.sm,paddingTop:R.sm,lineHeight:A.inputWidget},props:{"data-testid":"stDateInputField"}}}}}},value:k,minDate:U,maxDate:_,range:o.isRange,clearable:B})]})}function S(e,t){const r=e.getStringArrayValue(t);return b(void 0!==r?r:t.default||[])}function y(e){var t;return null!==(t=b(e.default))&&void 0!==t?t:[]}function W(e){var t;return null!==(t=b(e.value))&&void 0!==t?t:[]}function M(e,t,r,a){var o;t.setStringArrayValue(e,(o=r.value)?o.map((e=>i()(e).format(v))):[],{fromUi:r.fromUi},a)}const I=(0,a.memo)(C)},34752:(e,t,r)=>{r.d(t,{X:()=>n,o:()=>i});var a=r(58878),o=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,r){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function n(e){let{element:t,widgetMgr:r,onFormCleared:i}=e;(0,a.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=r.addFormClearedListener(t.formId,i);return()=>{e.disconnect()}}),[t,r,i])}},3101:(e,t,r)=>{r.d(t,{_:()=>n,t:()=>l});var a=r(58878),o=r(34752),i=r(25571);function n(e){let{getStateFromWidgetMgr:t,getDefaultState:r,updateWidgetMgrState:n,element:l,widgetMgr:d,fragmentId:s,onFormCleared:u}=e;const[g,m]=(0,a.useState)((()=>{var e;return null!==(e=t(d,l))&&void 0!==e?e:r(d,l)})),[c,f]=(0,a.useState)({value:g,fromUi:!1});(0,a.useEffect)((()=>{(0,i.hX)(c)||(f(null),m(c.value),n(l,d,c,s))}),[c,n,l,d,s]);const p=(0,a.useCallback)((()=>{f({value:r(d,l),fromUi:!0}),null===u||void 0===u||u()}),[f,l,r,d,u]);return(0,o.X)({widgetMgr:d,element:l,onFormCleared:p}),[g,f]}function l(e){let{getStateFromWidgetMgr:t,getDefaultStateFromProto:r,getCurrStateFromProto:o,updateWidgetMgrState:i,element:l,widgetMgr:d,fragmentId:s,onFormCleared:u}=e;const g=(0,a.useCallback)(((e,t)=>r(t)),[r]),[m,c]=n({getStateFromWidgetMgr:t,getDefaultState:g,updateWidgetMgrState:i,element:l,widgetMgr:d,fragmentId:s,onFormCleared:u});return(0,a.useEffect)((()=>{l.setValue&&(l.setValue=!1,c({value:o(l),fromUi:!1}))}),[l,o,c]),[m,c]}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[783],{85378:(t,e,r)=>{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)}r.d(e,{A:()=>pr});var a=r(40694);function o(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function i(t){o(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,a.A)(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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function u(t,e){o(2,arguments);var r=i(t),a=n(e);return isNaN(a)?new Date(NaN):a?(r.setDate(r.getDate()+a),r):r}function s(t,e){o(2,arguments);var r=i(t).getTime(),a=n(e);return new Date(r+a)}function c(t,e){o(2,arguments);var r=i(t),a=n(e);if(isNaN(a))return new Date(NaN);if(!a)return r;var u=r.getDate(),s=new Date(r.getTime());return s.setMonth(r.getMonth()+a+1,0),u>=s.getDate()?s:(r.setFullYear(s.getFullYear(),s.getMonth(),u),r)}function l(t,e){return o(2,arguments),c(t,12*n(e))}function d(t,e){o(2,arguments);var r=i(t),n=i(e),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function f(t,e){o(2,arguments);var r=i(t),n=i(e),a=d(r,n),u=Math.abs(function(t,e){o(2,arguments);var r=i(t),n=i(e);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);var s=d(r,n)===-a,c=a*(u-Number(s));return 0===c?0:c}function h(t){o(1,arguments);var e=i(t);return e.setHours(23,59,59,999),e}function v(t){o(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 p(t,e){o(2,arguments);var r,n=i(t),a=i(e),u=d(n,a),s=Math.abs(function(t,e){o(2,arguments);var r=i(t),n=i(e);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,a));if(s<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-u*s);var c=d(n,a)===-u;(function(t){o(1,arguments);var e=i(t);return h(e).getTime()===v(e).getTime()})(i(t))&&1===s&&1===d(t,a)&&(c=!1),r=u*(s-Number(c))}return 0===r?0:r}var m={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},y="trunc";function g(t){return t?m[t]:m[y]}function w(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function b(t){o(1,arguments);var e=i(t);return e.setHours(0,0,0,0),e}var A=864e5;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){o(2,arguments);var r=i(t),n=i(e),a=T(r,n),u=Math.abs(function(t,e){o(2,arguments);var r=b(t),n=b(e),a=r.getTime()-w(r),i=n.getTime()-w(n);return Math.round((a-i)/A)}(r,n));r.setDate(r.getDate()-a*u);var s=a*(u-Number(T(r,n)===-a));return 0===s?0:s}Math.pow(10,8);var k=36e5;function D(t,e){return o(2,arguments),i(t).getTime()-i(e).getTime()}var C={};function x(){return C}function S(t,e){var r,a,u,s,c,l,d,f;o(1,arguments);var h=x(),v=n(null!==(r=null!==(a=null!==(u=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=i(t),m=p.getDay(),y=6+(m<v?-7:0)-(m-v);return p.setDate(p.getDate()+y),p.setHours(23,59,59,999),p}function O(t){o(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){if(o(1,arguments),!function(t){return o(1,arguments),t instanceof Date||"object"===(0,a.A)(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!==typeof t)return!1;var e=i(t);return!isNaN(Number(e))}function E(t,e){return o(2,arguments),s(t,-n(e))}function U(t){o(1,arguments);var e=i(t),r=e.getUTCDay(),n=(r<1?7:0)+r-1;return e.setUTCDate(e.getUTCDate()-n),e.setUTCHours(0,0,0,0),e}function Y(t){o(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 a=U(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=U(u);return e.getTime()>=a.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}var H=6048e5;function N(t){o(1,arguments);var e=i(t),r=U(e).getTime()-function(t){o(1,arguments);var e=Y(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),U(r)}(e).getTime();return Math.round(r/H)+1}function W(t,e){var r,a,u,s,c,l,d,f;o(1,arguments);var h=x(),v=n(null!==(r=null!==(a=null!==(u=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=i(t),m=p.getUTCDay(),y=(m<v?7:0)+m-v;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function L(t,e){var r,a,u,s,c,l,d,f;o(1,arguments);var h=i(t),v=h.getUTCFullYear(),p=x(),m=n(null!==(r=null!==(a=null!==(u=null!==(s=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null===e||void 0===e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==u?u:p.firstWeekContainsDate)&&void 0!==a?a:null===(d=p.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,m),y.setUTCHours(0,0,0,0);var g=W(y,e),w=new Date(0);w.setUTCFullYear(v,0,m),w.setUTCHours(0,0,0,0);var b=W(w,e);return h.getTime()>=g.getTime()?v+1:h.getTime()>=b.getTime()?v:v-1}var q=6048e5;function j(t,e){o(1,arguments);var r=i(t),a=W(r,e).getTime()-function(t,e){var r,a,i,u,s,c,l,d;o(1,arguments);var f=x(),h=n(null!==(r=null!==(a=null!==(i=null!==(u=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==u?u:null===e||void 0===e||null===(s=e.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==i?i:f.firstWeekContainsDate)&&void 0!==a?a:null===(l=f.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1),v=L(t,e),p=new Date(0);return p.setUTCFullYear(v,0,h),p.setUTCHours(0,0,0,0),W(p,e)}(r,e).getTime();return Math.round(a/q)+1}function F(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}const R={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":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];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)}};var I="midnight",Q="noon",B="morning",G="afternoon",X="evening",_="night",z={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"});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 R.y(t,e)},Y:function(t,e,r,n){var a=L(t,n),o=a>0?a:1-a;return"YY"===e?F(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):F(o,e.length)},R:function(t,e){return F(Y(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"});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"});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 R.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"});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"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var a=j(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):F(a,e.length)},I:function(t,e,r){var n=N(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"}):R.d(t,e)},D:function(t,e,r){var n=function(t){o(1,arguments);var e=i(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=r-e.getTime();return Math.floor(n/864e5)+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"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return F(o,2);case"eo":return r.ordinalNumber(o,{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"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return F(o,e.length);case"co":return r.ordinalNumber(o,{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"});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"});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":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?Q:0===a?I:a/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?X:a>=12?G:a>=4?B:_,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"});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 R.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):R.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"}):R.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):R.s(t,e)},S:function(t,e){return R.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 V(a);case"XXXX":case"XX":return K(a);default:return K(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return V(a);case"xxxx":case"xx":return K(a);default:return K(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+J(a,":");default:return"GMT"+K(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+J(a,":");default:return"GMT"+K(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 J(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(0===o)return r+String(a);var i=e||"";return r+String(a)+i+F(o,2)}function V(t,e){return t%60===0?(t>0?"-":"+")+F(Math.abs(t)/60,2):K(t,e)}function K(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)}const $=z;var Z=function(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"});default:return e.date({width:"full"})}},tt=function(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"});default:return e.time({width:"full"})}},et={p:tt,P:function(t,e){var r,n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Z(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;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",Z(a,e)).replace("{{time}}",tt(o,e))}};const rt=et;var nt=["D","DD"],at=["YY","YYYY"];function ot(t){return-1!==nt.indexOf(t)}function it(t){return-1!==at.indexOf(t)}function ut(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://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));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://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));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://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var st={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"}};const ct=function(t,e,r){var n,a=st[t];return n="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function lt(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var dt={date:lt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:lt({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:lt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ft={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ht(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,o=null!==r&&void 0!==r&&r.width?String(r.width):a;n=t.formattingValues[o]||t.formattingValues[a]}else{var i=t.defaultWidth,u=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[u]||t.values[i]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function vt(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;var i,u=o[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r;return}(s,(function(t){return t.test(u)})):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r;return}(s,(function(t){return t.test(u)}));return i=t.valueCallback?t.valueCallback(c):c,{value:i=r.valueCallback?r.valueCallback(i):i,rest:e.slice(u.length)}}}var pt;const mt={code:"en-US",formatDistance:ct,formatLong:dt,formatRelative:function(t,e,r,n){return ft[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:ht({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ht({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 t-1}}),month:ht({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:ht({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:ht({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:(pt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(pt.matchPattern);if(!r)return null;var n=r[0],a=t.match(pt.parsePattern);if(!a)return null;var o=pt.valueCallback?pt.valueCallback(a[0]):a[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(n.length)}}),era:vt({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:vt({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:vt({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:vt({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:vt({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}},yt=mt;var gt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bt=/^'([^]*?)'?$/,At=/''/g,Tt=/[a-zA-Z]/;function Mt(t,e,r){var a,u,s,c,l,d,f,h,v,p,m,y,g,b,A,T,M,k;o(2,arguments);var D=String(e),C=x(),S=null!==(a=null!==(u=null===r||void 0===r?void 0:r.locale)&&void 0!==u?u:C.locale)&&void 0!==a?a:yt,O=n(null!==(s=null!==(c=null!==(l=null!==(d=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==d?d:null===r||void 0===r||null===(f=r.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==l?l:C.firstWeekContainsDate)&&void 0!==c?c:null===(v=C.locale)||void 0===v||null===(p=v.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=n(null!==(m=null!==(y=null!==(g=null!==(b=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==b?b:null===r||void 0===r||null===(A=r.locale)||void 0===A||null===(T=A.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==y?y:null===(M=C.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==m?m:0);if(!(U>=0&&U<=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 Y=i(t);if(!P(Y))throw new RangeError("Invalid time value");var H=E(Y,w(Y)),N={firstWeekContainsDate:O,weekStartsOn:U,locale:S,_originalDate:Y};return D.match(wt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,rt[e])(t,S.formatLong):t})).join("").match(gt).map((function(n){if("''"===n)return"'";var a=n[0];if("'"===a)return function(t){var e=t.match(bt);if(!e)return t;return e[1].replace(At,"'")}(n);var o=$[a];if(o)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!it(n)||ut(n,e,String(t)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!ot(n)||ut(n,e,String(t)),o(H,n,S.localize,N);if(a.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n})).join("")}function kt(t,e){o(2,arguments);var r=i(t),n=i(e);return r.getTime()>n.getTime()}function Dt(t,e){o(2,arguments);var r=i(t),n=i(e);return r.getTime()<n.getTime()}function Ct(t){o(1,arguments);var e=i(t);return e.setMinutes(0,0,0),e}var xt=r(16438);function St(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=(0,xt.A)(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function Ot(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var Pt=r(72367),Et=r(50171),Ut=r(38235),Yt=r(92099),Ht=r(48183),Nt=r(41705),Wt=function(){function t(){(0,Yt.A)(this,t),(0,Nt.A)(this,"priority",void 0),(0,Nt.A)(this,"subPriority",0)}return(0,Ht.A)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Lt=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(t,n,a,o,i){var u;return(0,Yt.A)(this,r),(u=e.call(this)).value=t,u.validateValue=n,u.setValue=a,u.priority=o,i&&(u.subPriority=i),u}return(0,Ht.A)(r,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,r){return this.setValue(t,e,this.value,r)}}]),r}(Wt),qt=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",10),(0,Nt.A)((0,Pt.A)(t),"subPriority",-1),t}return(0,Ht.A)(r,[{key:"set",value:function(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}}]),r}(Wt),jt=function(){function t(){(0,Yt.A)(this,t),(0,Nt.A)(this,"incompatibleTokens",void 0),(0,Nt.A)(this,"priority",void 0),(0,Nt.A)(this,"subPriority",void 0)}return(0,Ht.A)(t,[{key:"run",value:function(t,e,r,n){var a=this.parse(t,e,r,n);return a?{setter:new Lt(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(t,e,r){return!0}}]),t}(),Ft=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",140),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["R","u","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){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"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,r){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(jt),Rt=/^(1[0-2]|0?\d)/,It=/^(3[0-1]|[0-2]?\d)/,Qt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Bt=/^(5[0-3]|[0-4]?\d)/,Gt=/^(2[0-3]|[0-1]?\d)/,Xt=/^(2[0-4]|[0-1]?\d)/,_t=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,Jt=/^[0-5]?\d/,Vt=/^[0-5]?\d/,Kt=/^\d/,$t=/^\d{1,2}/,Zt=/^\d{1,3}/,te=/^\d{1,4}/,ee=/^-?\d+/,re=/^-?\d/,ne=/^-?\d{1,2}/,ae=/^-?\d{1,3}/,oe=/^-?\d{1,4}/,ie=/^([+-])(\d{2})(\d{2})?|Z/,ue=/^([+-])(\d{2})(\d{2})|Z/,se=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ce=/^([+-])(\d{2}):(\d{2})|Z/,le=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function de(t,e){return t?{value:e(t.value),rest:t.rest}:t}function fe(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function he(t,e){var r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};var n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:n*(a*k+6e4*o+1e3*i),rest:e.slice(r[0].length)}}function ve(t){return fe(ee,t)}function pe(t,e){switch(t){case 1:return fe(Kt,e);case 2:return fe($t,e);case 3:return fe(Zt,e);case 4:return fe(te,e);default:return fe(new RegExp("^\\d{1,"+t+"}"),e)}}function me(t,e){switch(t){case 1:return fe(re,e);case 2:return fe(ne,e);case 3:return fe(ae,e);case 4:return fe(oe,e);default:return fe(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ye(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ge(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var o=a+50;r=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?r:1-r}function we(t){return t%400===0||t%4===0&&t%100!==0}var be=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",130),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return de(pe(4,t),n);case"yo":return de(r.ordinalNumber(t,{unit:"year"}),n);default:return de(pe(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r){var n=t.getUTCFullYear();if(r.isTwoDigitYear){var a=ge(r.year,n);return t.setUTCFullYear(a,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}}]),r}(jt),Ae=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",130),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return de(pe(4,t),n);case"Yo":return de(r.ordinalNumber(t,{unit:"year"}),n);default:return de(pe(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r,n){var a=L(t,n);if(r.isTwoDigitYear){var o=ge(r.year,a);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),W(t,n)}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),W(t,n)}}]),r}(jt),Te=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",130),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e){return me("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),U(n)}}]),r}(jt),Me=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",130),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e){return me("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(jt),ke=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",120),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return pe(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"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),r}(jt),De=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",120),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return pe(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"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),r}(jt),Ce=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,Nt.A)((0,Pt.A)(t),"priority",110),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return de(fe(Rt,t),n);case"MM":return de(pe(2,t),n);case"Mo":return de(r.ordinalNumber(t,{unit:"month"}),n);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"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(jt),xe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",110),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return de(fe(Rt,t),n);case"LL":return de(pe(2,t),n);case"Lo":return de(r.ordinalNumber(t,{unit:"month"}),n);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"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(jt);var Se=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",100),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"w":return fe(Bt,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r,a){return W(function(t,e,r){o(2,arguments);var a=i(t),u=n(e),s=j(a,r)-u;return a.setUTCDate(a.getUTCDate()-7*s),a}(t,r,a),a)}}]),r}(jt);var Oe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",100),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"I":return fe(Bt,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r){return U(function(t,e){o(2,arguments);var r=i(t),a=n(e),u=N(r)-a;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r))}}]),r}(jt),Pe=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],Ue=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"subPriority",1),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"d":return fe(It,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){var r=we(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=Ee[n]:e>=1&&e<=Pe[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),r}(jt),Ye=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"subpriority",1),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return fe(Qt,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return we(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,r){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t}}]),r}(jt);function He(t,e,r){var a,u,s,c,l,d,f,h;o(2,arguments);var v=x(),p=n(null!==(a=null!==(u=null!==(s=null!==(c=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==c?c:null===r||void 0===r||null===(l=r.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:v.weekStartsOn)&&void 0!==u?u:null===(f=v.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==a?a:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=i(t),y=n(e),g=((y%7+7)%7<p?7:0)+y-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+g),m}var Ne=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){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"});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"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=He(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(jt),We=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value: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 de(pe(e.length,t),a);case"eo":return de(r.ordinalNumber(t,{unit:"day"}),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"});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"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=He(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(jt),Le=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value: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 de(pe(e.length,t),a);case"co":return de(r.ordinalNumber(t,{unit:"day"}),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"});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"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=He(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(jt);var qe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",90),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return pe(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return de(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return de(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return de(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return de(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"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,r){return t=function(t,e){o(2,arguments);var r=n(e);r%7===0&&(r-=7);var a=i(t),u=((r%7+7)%7<1?7:0)+r-a.getUTCDay();return a.setUTCDate(a.getUTCDate()+u),a}(t,r),t.setUTCHours(0,0,0,0),t}}]),r}(jt),je=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",80),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){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"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ye(r),0,0,0),t}}]),r}(jt),Fe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",80),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){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"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ye(r),0,0,0),t}}]),r}(jt),Re=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",80),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["a","b","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){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"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ye(r),0,0,0),t}}]),r}(jt),Ie=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",70),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"h":return fe(zt,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,r){var n=t.getUTCHours()>=12;return n&&r<12?t.setUTCHours(r+12,0,0,0):n||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t}}]),r}(jt),Qe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",70),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"H":return fe(Gt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,r){return t.setUTCHours(r,0,0,0),t}}]),r}(jt),Be=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",70),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"K":return fe(_t,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t}}]),r}(jt),Ge=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",70),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"k":return fe(Xt,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,r){var n=r<=24?r%24:r;return t.setUTCHours(n,0,0,0),t}}]),r}(jt),Xe=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",60),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"m":return fe(Jt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCMinutes(r,0,0),t}}]),r}(jt),_e=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",50),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"s":return fe(Vt,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return pe(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCSeconds(r,0),t}}]),r}(jt),ze=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",30),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e){return de(pe(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,r){return t.setUTCMilliseconds(r),t}}]),r}(jt),Je=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",10),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["t","T","x"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e){switch(e){case"X":return he(ie,t);case"XX":return he(ue,t);case"XXXX":return he(se,t);case"XXXXX":return he(le,t);default:return he(ce,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(jt),Ve=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",10),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens",["t","T","X"]),t}return(0,Ht.A)(r,[{key:"parse",value:function(t,e){switch(e){case"x":return he(ie,t);case"xx":return he(ue,t);case"xxxx":return he(se,t);case"xxxxx":return he(le,t);default:return he(ce,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(jt),Ke=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",40),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens","*"),t}return(0,Ht.A)(r,[{key:"parse",value:function(t){return ve(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),r}(jt),$e=function(t){(0,Et.A)(r,t);var e=(0,Ut.A)(r);function r(){var t;(0,Yt.A)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a)),(0,Nt.A)((0,Pt.A)(t),"priority",20),(0,Nt.A)((0,Pt.A)(t),"incompatibleTokens","*"),t}return(0,Ht.A)(r,[{key:"parse",value:function(t){return ve(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),r}(jt),Ze={G:new Ft,y:new be,Y:new Ae,R:new Te,u:new Me,Q:new ke,q:new De,M:new Ce,L:new xe,w:new Se,I:new Oe,d:new Ue,D:new Ye,E:new Ne,e:new We,c:new Le,i:new qe,a:new je,b:new Fe,B:new Re,h:new Ie,H:new Qe,K:new Be,k:new Ge,m:new Xe,s:new _e,S:new ze,X:new Je,x:new Ve,t:new Ke,T:new $e},tr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,er=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rr=/^'([^]*?)'?$/,nr=/''/g,ar=/\S/,or=/[a-zA-Z]/;function ir(t,e,r,u){var s,c,l,d,f,h,v,p,m,y,g,b,A,T,M,k,D,C;o(3,arguments);var S=String(t),O=String(e),P=x(),U=null!==(s=null!==(c=null===u||void 0===u?void 0:u.locale)&&void 0!==c?c:P.locale)&&void 0!==s?s:yt;if(!U.match)throw new RangeError("locale must contain match property");var Y=n(null!==(l=null!==(d=null!==(f=null!==(h=null===u||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==h?h:null===u||void 0===u||null===(v=u.locale)||void 0===v||null===(p=v.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==f?f:P.firstWeekContainsDate)&&void 0!==d?d:null===(m=P.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==l?l:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=n(null!==(g=null!==(b=null!==(A=null!==(T=null===u||void 0===u?void 0:u.weekStartsOn)&&void 0!==T?T:null===u||void 0===u||null===(M=u.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==A?A:P.weekStartsOn)&&void 0!==b?b:null===(D=P.locale)||void 0===D||null===(C=D.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==g?g:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===O)return""===S?i(r):new Date(NaN);var N,W={firstWeekContainsDate:Y,weekStartsOn:H,locale:U},L=[new qt],q=O.match(er).map((function(t){var e=t[0];return e in rt?(0,rt[e])(t,U.formatLong):t})).join("").match(tr),j=[],F=St(q);try{var R=function(){var e=N.value;null!==u&&void 0!==u&&u.useAdditionalWeekYearTokens||!it(e)||ut(e,O,t),null!==u&&void 0!==u&&u.useAdditionalDayOfYearTokens||!ot(e)||ut(e,O,t);var r=e[0],n=Ze[r];if(n){var a=n.incompatibleTokens;if(Array.isArray(a)){var o=j.find((function(t){return a.includes(t.token)||t.token===r}));if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===n.incompatibleTokens&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));j.push({token:r,fullToken:e});var i=n.run(S,e,U.match,W);if(!i)return{v:new Date(NaN)};L.push(i.setter),S=i.rest}else{if(r.match(or))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=e.match(rr)[1].replace(nr,"'")),0!==S.indexOf(e))return{v:new Date(NaN)};S=S.slice(e.length)}};for(F.s();!(N=F.n()).done;){var I=R();if("object"===(0,a.A)(I))return I.v}}catch(K){F.e(K)}finally{F.f()}if(S.length>0&&ar.test(S))return new Date(NaN);var Q=L.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 L.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),B=i(r);if(isNaN(B.getTime()))return new Date(NaN);var G,X=E(B,w(B)),_={},z=St(Q);try{for(z.s();!(G=z.n()).done;){var J=G.value;if(!J.validate(X,W))return new Date(NaN);var V=J.set(X,_,W);Array.isArray(V)?(X=V[0],Ot(_,V[1])):X=V}}catch(K){z.e(K)}finally{z.f()}return X}function ur(t){o(1,arguments);var e=i(t),r=e.getFullYear(),n=e.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function sr(t){o(1,arguments);var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}function cr(t,e){var r,a,u,s,c,l,d,f;o(1,arguments);var h=x(),v=n(null!==(r=null!==(a=null!==(u=null!==(s=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==s?s:null===e||void 0===e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=i(t),m=p.getDay(),y=(m<v?7:0)+m-v;return p.setDate(p.getDate()-y),p.setHours(0,0,0,0),p}function lr(t){o(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 dr=r(22926),fr=r.n(dr),hr={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"},vr=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({},hr,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||mt;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,fr()[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){return o(2,arguments),s(t,1e3*n(e))}(t,e)},t.prototype.addMinutes=function(t,e){return function(t,e){return o(2,arguments),s(t,6e4*n(e))}(t,e)},t.prototype.addHours=function(t,e){return function(t,e){return o(2,arguments),s(t,36e5*n(e))}(t,e)},t.prototype.addDays=function(t,e){return u(t,e)},t.prototype.addWeeks=function(t,e){return function(t,e){return o(2,arguments),u(t,7*n(e))}(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 f(t,this.date(e));case"quarters":return function(t,e,r){o(2,arguments);var n=p(t,e)/3;return g(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,this.date(e));case"months":return p(t,this.date(e));case"weeks":return function(t,e,r){o(2,arguments);var n=M(t,e)/7;return g(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,this.date(e));case"days":return M(t,this.date(e));case"hours":return function(t,e,r){o(2,arguments);var n=D(t,e)/k;return g(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,this.date(e));case"minutes":return function(t,e,r){o(2,arguments);var n=D(t,e)/6e4;return g(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,this.date(e));case"seconds":return function(t,e,r){o(2,arguments);var n=D(t,e)/1e3;return g(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,this.date(e));default:return D(t,this.date(e))}},t.prototype.isAfter=function(t,e){return kt(t,e)},t.prototype.isBefore=function(t,e){return Dt(t,e)},t.prototype.startOfDay=function(t){return b(t)},t.prototype.endOfDay=function(t){return h(t)},t.prototype.getHours=function(t){return function(t){return o(1,arguments),i(t).getHours()}(t)},t.prototype.setHours=function(t,e){return function(t,e){o(2,arguments);var r=i(t),a=n(e);return r.setHours(a),r}(t,e)},t.prototype.setMinutes=function(t,e){return function(t,e){o(2,arguments);var r=i(t),a=n(e);return r.setMinutes(a),r}(t,e)},t.prototype.getSeconds=function(t){return function(t){return o(1,arguments),i(t).getSeconds()}(t)},t.prototype.setSeconds=function(t,e){return function(t,e){o(2,arguments);var r=i(t),a=n(e);return r.setSeconds(a),r}(t,e)},t.prototype.isSameDay=function(t,e){return function(t,e){o(2,arguments);var r=b(t),n=b(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isSameMonth=function(t,e){return function(t,e){o(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){o(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){o(2,arguments);var r=Ct(t),n=Ct(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return sr(t)},t.prototype.endOfMonth=function(t){return v(t)},t.prototype.startOfWeek=function(t){return cr(t,{locale:this.locale})},t.prototype.endOfWeek=function(t){return S(t,{locale:this.locale})},t.prototype.getYear=function(t){return function(t){return o(1,arguments),i(t).getFullYear()}(t)},t.prototype.setYear=function(t,e){return function(t,e){o(2,arguments);var r=i(t),a=n(e);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(a),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:ir(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 Mt(t,e,{locale:this.locale})},t.prototype.isEqual=function(t,e){return null===t&&null===e||function(t,e){o(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 kt(t,h(e))},t.prototype.isBeforeDay=function(t,e){return Dt(t,b(e))},t.prototype.isBeforeYear=function(t,e){return Dt(t,lr(e))},t.prototype.isAfterYear=function(t,e){return kt(t,O(e))},t.prototype.isWithinRange=function(t,e){return function(t,e){o(2,arguments);var r=i(t).getTime(),n=i(e.start).getTime(),a=i(e.end).getTime();if(!(n<=a))throw new RangeError("Invalid interval");return r>=n&&r<=a}(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 ur(t)},t.prototype.setMonth=function(t,e){return function(t,e){o(2,arguments);var r=i(t),a=n(e),u=r.getFullYear(),s=r.getDate(),c=new Date(0);c.setFullYear(u,a,15),c.setHours(0,0,0,0);var l=ur(c);return r.setMonth(a,Math.min(s,l)),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=[lr(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){var r;o(1,arguments);var n=t||{},a=i(n.start),u=i(n.end).getTime();if(!(a.getTime()<=u))throw new RangeError("Invalid interval");var s=[],c=a;c.setHours(0,0,0,0);var l=Number(null!==(r=null===e||void 0===e?void 0:e.step)&&void 0!==r?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=u;)s.push(i(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}({start:cr(e,{locale:this.locale}),end:S(e,{locale:this.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},t.prototype.getWeekArray=function(t){for(var e=cr(sr(t),{locale:this.locale}),r=S(v(t),{locale:this.locale}),n=0,a=e,o=[];Dt(a,r);){var i=Math.floor(n/7);o[i]=o[i]||[],o[i].push(a),a=u(a,1),n+=1}return o},t.prototype.getYearRange=function(t,e){for(var r=lr(t),n=O(e),a=[],o=r;Dt(o,n);)a.push(o),o=l(o,1);return a},t}();const pr=new vr({})},15761:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return a(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 a(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 a(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 o(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(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 s(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{A:()=>l});const l=s((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),c(this,"adapter",void 0),c(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:"EEEEEE",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,o=t.constructor,i=r[t.constructor.name]||r.DateFnsUtils,u=i.getOptions,s=void 0===u?n:u,c=i.formats,l=s(t);return new o(Object.assign({},a(Object.assign({},l,{formats:Object.assign({},l.formats,c)}))))})),c(this,"format",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).format(t,e)})),c(this,"getAdapterWithNewLocale",(function(t){return r.cloneAdapter(r.adapter,(function(e){return i(i({},e),{},{locale:t})}))})),c(this,"date",(function(t){return r.adapter.date(t)})),c(this,"dateToSeconds",(function(t){return r.adapter.getSeconds(t)+60*r.adapter.getMinutes(t)+3600*r.adapter.getHours(t)})),c(this,"secondsToHourMinute",(function(t){var e=r.adapter.toJsDate(r.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),c(this,"differenceInCalendarMonths",(function(t,e){return 12*(r.adapter.getYear(t)-r.adapter.getYear(e))+(r.adapter.getMonth(t)-r.adapter.getMonth(e))})),c(this,"getStartOfWeek",(function(t,e){var n=e?r.getAdapterWithNewLocale(e):r.adapter;return n.startOfWeek(n.date(t))})),c(this,"formatDate",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).formatByString(t,e)})),c(this,"getWeekdayMinInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),c(this,"getMonthInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t),"month")})),c(this,"getWeekdayInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekday")})),c(this,"getQuarterInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),3*t),"quarter")})),c(this,"getEndOfWeek",(function(t){return r.adapter.endOfWeek(t)})),c(this,"getDay",(function(t){return Number(r.adapter.formatByString(t,"e"))-1})),c(this,"addWeeks",(function(t,e){return r.adapter.addDays(t,7*e)})),c(this,"subWeeks",(function(t,e){return r.addWeeks(t,-1*e)})),c(this,"addYears",(function(t,e){return r.adapter.addMonths(t,12*e)})),c(this,"subYears",(function(t,e){return r.addYears(t,-1*e)})),c(this,"isSameYear",(function(t,e){return!(!t||!e)&&r.adapter.isSameYear(t,e)})),c(this,"isStartOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.startOfMonth(t))})),c(this,"isEndOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.endOfMonth(t))})),c(this,"isDayInRange",(function(t,e,n){return r.adapter.isWithinRange(t,[e,n])})),c(this,"isSameDay",(function(t,e){return!(!t||!e)&&r.adapter.isSameDay(t,e)})),c(this,"isSameMonth",(function(t,e){return!(!t||!e)&&r.adapter.isSameMonth(t,e)})),c(this,"dateRangeIncludesDates",(function(t,e){var a=n(t,2),o=a[0],i=a[1];if(o&&i&&Array.isArray(e)&&e.length)for(var u=0;u<e.length;u++){var s=e[u];if(r.isDayInRange(s,o,i))return!0}return!1})),c(this,"subDays",(function(t,e){return r.adapter.addDays(t,-1*e)})),c(this,"subMonths",(function(t,e){return r.adapter.addMonths(t,-1*e)})),c(this,"min",(function(t){return t.reduce((function(t,e){return r.adapter.isBefore(e,t)?e:t}))})),c(this,"max",(function(t){return t.reduce((function(t,e){return r.adapter.isAfter(e,t)?e:t}))})),c(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})),c(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()})),c(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.includeDates,o=r.subMonths(t,1);return!!n&&r.differenceInCalendarMonths(n,o)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(t,o)>0}))||!1})),c(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxDate,a=e.includeDates,o=r.adapter.addMonths(t,1);return!!n&&r.differenceInCalendarMonths(o,n)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(o,t)>0}))||!1})),c(this,"setDate",(function(t,e){var n=r.adapter.startOfMonth(t),a=r.adapter.mergeDateAndTime(n,t),o=r.adapter.setSeconds(a,r.adapter.getSeconds(t));return r.adapter.addDays(o,e-1)})),c(this,"getDate",(function(t){return Number(r.adapter.format(t,"dayOfMonthNumber"))})),c(this,"applyDateToTime",(function(t,e){if(!t)return e;var n=r.adapter.getYear(e),a=r.adapter.getMonth(e),o=r.getDate(e),i=r.adapter.setYear(t,n),u=r.adapter.setMonth(i,a);return r.setDate(u,o)})),c(this,"applyTimeToDate",(function(t,e){return t?r.adapter.setSeconds(r.adapter.mergeDateAndTime(t,e),0):e})),c(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate,o=e.excludeDates,i=e.includeDates,u=e.filterDate;return r.isOutOfBounds(t,{minDate:n,maxDate:a})||o&&o.some((function(e){return r.adapter.isSameDay(t,e)}))||i&&!i.some((function(e){return r.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),c(this,"isOnOrAfterDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isAfter(t,e)})),c(this,"isOnOrBeforeDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isBefore(t,e)})),c(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)})),c(this,"parseString",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).parse(t,e)})),c(this,"parse",(function(t,e,n){var a=n?r.getAdapterWithNewLocale(n):r.adapter;return a.parse(t,a.formats[e])})),c(this,"setMilliseconds",(function(t,e){return r.adapter.date(1e3*r.adapter.getSeconds(r.adapter.startOfDay(t))+e)})),c(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})),c(this,"getQuarter",(function(t){return Math.floor(r.getMonth(t)/3)+1})),c(this,"setSeconds",(function(t,e){return r.adapter.setSeconds(t,e)})),c(this,"setMinutes",(function(t,e){return r.adapter.setMinutes(t,e)})),c(this,"setHours",(function(t,e){return r.adapter.setHours(t,e)})),c(this,"setMonth",(function(t,e){return r.adapter.setMonth(t,e)})),c(this,"setYear",(function(t,e){return r.adapter.setYear(t,e)})),c(this,"getMinutes",(function(t){return r.adapter.getMinutes(t)})),c(this,"getHours",(function(t){return r.adapter.getHours(t)})),c(this,"getMonth",(function(t){return r.adapter.getMonth(t)})),c(this,"getYear",(function(t){return r.adapter.getYear(t)})),c(this,"getStartOfMonth",(function(t){return r.adapter.startOfMonth(t)})),c(this,"getEndOfMonth",(function(t){return r.adapter.endOfMonth(t)})),c(this,"addDays",(function(t,e){return r.adapter.addDays(t,e)})),c(this,"addMonths",(function(t,e){return r.adapter.addMonths(t,e)})),c(this,"isBefore",(function(t,e){return r.adapter.isBefore(t,e)})),c(this,"isAfter",(function(t,e){return r.adapter.isAfter(t,e)})),c(this,"isEqual",(function(t,e){return r.adapter.isEqual(t,e)})),c(this,"isValid",(function(t){return r.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}))},10783:(t,e,r)=>{r.d(e,{A:()=>A});var n=r(58878),a=r(35331),o=r(65266),i=r(91922),u=r(4314),s=r(15761),c=r(85378);function l(t){return l="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},l(t)}function d(){return d=Object.assign?Object.assign.bind():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},d.apply(this,arguments)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(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 v(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?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function m(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g(t);if(e){var a=g(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===l(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}(this,r)}}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(h,t);var e,r,c,l=m(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),w(y(e=l.call(this,t)),"dateHelpers",void 0),w(y(e),"state",{steps:[],value:null}),w(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)})),w(y(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],o=n[1],i=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(i(o)," ").concat(u?"PM":"AM")}return"".concat(i(a),":").concat(i(o))})),w(y(e),"stringToOptions",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n="12"===r?/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/:/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,a=t.match(n);if(!a)return[];var o=Number(a[1]),i=Number(a[2]),u=[];if("24"===r)u=[{hours:o,minutes:i}];else{var s=o%12,c=a[3];u=c?[{hours:"a"===c.toLowerCase()[0]?s:s+12,minutes:i}]:[{hours:s,minutes:i},{hours:s+12,minutes:i}]}return u.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),w(y(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],o=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(o)})),w(y(e),"setTime",(function(t,r,n,a){var o=e.dateHelpers;return(0,o.setSeconds)((0,o.setMinutes)((0,o.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),w(y(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,o=r.ignoreMinMaxDateComponent,i=e.setTime(e.props.value,0,0,0),u=e.setTime(e.props.value,24,0,0);n=!n||e.props.adapter.isBefore(n,i)&&!o?i:e.setTime(e.props.value,e.props.adapter.getHours(n),e.props.adapter.getMinutes(n),e.props.adapter.getSeconds(n)),a=!a||e.props.adapter.isAfter(a,u)&&!o?u:e.setTime(e.props.value,e.props.adapter.getHours(a),e.props.adapter.getMinutes(a),e.props.adapter.getSeconds(a)+1);var s=e.props.adapter.toJsDate(n),c=e.props.adapter.toJsDate(a),l=e.props.adapter.toJsDate(i);return{start:(s-l)/1e3,end:(c-l)/1e3}})),w(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 o=[],i=n.start;i<n.end;i+=r)o.push(i);return o})),w(y(e),"creatableFilterOptions",(function(t,r,n,a){var o=e.stringToOptions(r,e.props.format);return o.length?o:(0,i.A)(t,r,n,a)})),w(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,this.props.format)}}),(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,o=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.A(this.props.adapter)),e||r||a||o){var i=this.buildSteps();this.setState({steps:i})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,i=e.overrides,s=void 0===i?{}:i,c=e.adapter,l=f((0,a._O)(s.Select,u.A),2),h=l[0],v=l[1];v.overrides=(0,a.Qp)({Dropdown:{style:{maxHeight:"126px"}}},v.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(o.U.Consumer,null,(function(e){var a="12"===r?e.datepicker.timePickerAriaLabel12Hour:e.datepicker.timePickerAriaLabel24Hour;return n.createElement(h,d({"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"},v))}))}}])&&v(e.prototype,r),c&&v(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.Component);w(b,"defaultProps",{format:"12",step:900,creatable:!1,adapter:c.A,ignoreMinMaxDateComponent:!1});const A=b},22926:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(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"});default:return e.date({width:"full"})}},n=function(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"});default:return e.time({width:"full"})}},a={p:n,P:function(t,e){var a,o=t.match(/(P+)(p+)?/)||[],i=o[1],u=o[2];if(!u)return r(t,e);switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",r(i,e)).replace("{{time}}",n(u,e))}};e.default=a,t.exports=e.default},92099:(t,e,r)=>{function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,{A:()=>n})},48183:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(92162);function a(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(0,n.A)(a.key),a)}}function o(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}},38235:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(74572);var a=r(42912);function o(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=(0,n.A)(t);if(e){var i=(0,n.A)(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return(0,a.A)(this,r)}}},74572:(t,e,r)=>{function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}r.d(e,{A:()=>n})},50171:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(91576);function a(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,n.A)(t,e)}},42912:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(40694),a=r(72367);function o(t,e){if(e&&("object"===(0,n.A)(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(t)}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8148],{67163:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(58878),l=n(68262),s=n(13170),a=n(84996),r=n(55516);const d=(0,n(89653).A)("div",{target:"e1uym6o70"})((e=>{let{theme:t,isFullScreen:n}=e;return{"& *":{fontFamily:t.genericFonts.bodyFont,fontSize:`calc(${t.fontSizes.twoSm} * 0.8)`},"& svg":{maxWidth:"100%",width:n?"100%":"auto",height:n?"100%":"auto"},width:n?"100%":"auto",height:n?"100%":"auto"}}),"");var h=n(90782);const c=(0,r.A)((function(e){let{element:t,isFullScreen:n}=e;const r=`st-graphviz-chart-${t.elementId}`;return(0,i.useEffect)((()=>{try{if((0,s.graphviz)(`#${r}`).zoom(!1).fit(!0).scale(1).engine(t.engine).renderDot(t.spec),n||t.useContainerWidth){const e=(0,l.Ltv)(`#${r} > svg`).node();e.removeAttribute("width"),e.removeAttribute("height")}}catch(e){(0,a.vV)(e)}}),[r,t.engine,t.spec,t.useContainerWidth,n]),(0,h.jsx)(d,{className:"stGraphVizChart","data-testid":"stGraphVizChart",id:r,isFullScreen:n})}))},55516:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var i=n(58878),l=n(53124),s=n.n(l),a=n(41514),r=n(67214),d=n(64611),h=n(98226),c=n(4883),o=n(90782);const u=e=>{let{children:t,width:n,height:i,disableFullscreenMode:l}=e;const{expanded:s,fullHeight:u,fullWidth:p,zoomIn:m,zoomOut:g}=(0,h.H)();let f=a.u,x=m,w="View fullscreen";return s&&(f=r.Q,x=g,w="Exit fullscreen"),(0,o.jsxs)(c.g,{isExpanded:s,"data-testid":"stFullScreenFrame",children:[!l&&(0,o.jsx)(c.j,{"data-testid":"StyledFullScreenButton",onClick:x,title:w,isExpanded:s,children:(0,o.jsx)(d.A,{content:f})}),t({width:s?p:n,height:s?u:i,expanded:s,expand:m,collapse:g})]})},p=(0,i.memo)(u);const m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,i.memo)((function(n){const{width:i,height:l,disableFullscreenMode:s}=n;return(0,o.jsx)(p,{width:i,height:l,disableFullscreenMode:t||s,children:t=>{let{width:i,height:l,expanded:s,expand:a,collapse:r}=t;return(0,o.jsx)(e,{...n,width:i,height:l,isFullScreen:s,expand:a,collapse:r})}})}));return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,s()(n,e)}},34654:()=>{},7908:()=>{},62292:()=>{}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8237],{78237:(e,l,o)=>{o.r(l),o.d(l,{default:()=>w});var t=o(58878),r=o(8151),i=o(43978),c=o(29669),n=o(55516),a=o(25571),s=o(34752),d=o(37638),p=o.n(d),u=o(16795),f=o(58144),m=o(67253),h=o(84996);function g(e,l,o){return e=function(e,l){return(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("#000032",(0,u.$E)(l))).replaceAll("#000033",(0,u.pf)(l))).replaceAll("#000034",(0,u.h7)(l))).replaceAll("#000035",(0,u.V9)(l))).replaceAll("#000036",(0,u.lH)(l))).replaceAll("#000037",(0,u.ZA)(l))).replaceAll("#000038",l.colors.bgColor)).replaceAll("#000039",l.colors.fadedText05)).replaceAll("#000040",l.colors.bgMix)}(e,l),e=function(e,l,o){const t="#000001",r="#000002",i="#000003",c="#000004",n="#000005",a="#000006",s="#000007",d="#000008",p="#000009",f="#000010";if("streamlit"===o){const o=(0,u.c6)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(i,o[2])).replaceAll(c,o[3])).replaceAll(n,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(f,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#636efa")).replaceAll(r,"#EF553B")).replaceAll(i,"#00cc96")).replaceAll(c,"#ab63fa")).replaceAll(n,"#FFA15A")).replaceAll(a,"#19d3f3")).replaceAll(s,"#FF6692")).replaceAll(d,"#B6E880")).replaceAll(p,"#FF97FF")).replaceAll(f,"#FECB52");return e}(e,l,o),e=function(e,l,o){const t="#000011",r="#000012",i="#000013",c="#000014",n="#000015",a="#000016",s="#000017",d="#000018",p="#000019",f="#000020";if("streamlit"===o){const o=(0,u.rp)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(i,o[2])).replaceAll(c,o[3])).replaceAll(n,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(f,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#0d0887")).replaceAll(r,"#46039f")).replaceAll(i,"#7201a8")).replaceAll(c,"#9c179e")).replaceAll(n,"#bd3786")).replaceAll(a,"#d8576b")).replaceAll(s,"#ed7953")).replaceAll(d,"#fb9f3a")).replaceAll(p,"#fdca26")).replaceAll(f,"#f0f921");return e}(e,l,o),e=function(e,l,o){const t="#000021",r="#000022",i="#000023",c="#000024",n="#000025",a="#000026",s="#000027",d="#000028",p="#000029",f="#000030",m="#000031";if("streamlit"===o){const o=(0,u.vk)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(i,o[2])).replaceAll(c,o[3])).replaceAll(n,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(f,o[9])).replaceAll(m,o[10])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#8e0152")).replaceAll(r,"#c51b7d")).replaceAll(i,"#de77ae")).replaceAll(c,"#f1b6da")).replaceAll(n,"#fde0ef")).replaceAll(a,"#f7f7f7")).replaceAll(s,"#e6f5d0")).replaceAll(d,"#b8e186")).replaceAll(p,"#7fbc41")).replaceAll(f,"#4d9221")).replaceAll(m,"#276419");return e}(e,l,o),e}function y(e,l){try{!function(e,l){const{genericFonts:o,colors:t,fontSizes:r}=l,i={font:{color:(0,u.lH)(l),family:o.bodyFont,size:r.twoSmPx},title:{color:t.headingColor,subtitleColor:t.bodyText,font:{family:o.headingFont,size:(0,f.BY)(r.md),color:t.headingColor},pad:{l:(0,f.BY)(l.spacing.twoXS)},xanchor:"left",x:0},legend:{title:{font:{size:r.twoSmPx,color:(0,u.lH)(l)},side:"top"},valign:"top",bordercolor:t.transparent,borderwidth:0,font:{size:r.twoSmPx,color:(0,u.ZA)(l)}},paper_bgcolor:t.bgColor,plot_bgcolor:t.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,u.V9)(l),title:{font:{color:(0,u.lH)(l),size:r.smPx},standoff:(0,f.BY)(l.spacing.twoXL)},tickcolor:(0,u.V9)(l),tickfont:{color:(0,u.lH)(l),size:r.twoSmPx},gridcolor:(0,u.V9)(l),minor:{gridcolor:(0,u.V9)(l)},automargin:!0},xaxis:{zerolinecolor:(0,u.V9)(l),gridcolor:(0,u.V9)(l),showgrid:!1,tickfont:{color:(0,u.lH)(l),size:r.twoSmPx},tickcolor:(0,u.V9)(l),title:{font:{color:(0,u.lH)(l),size:r.smPx},standoff:(0,f.BY)(l.spacing.xl)},minor:{gridcolor:(0,u.V9)(l)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:t.bgColor,bordercolor:(0,u.V9)(l),borderwidth:1,x:0}},margin:{pad:(0,f.BY)(l.spacing.sm),r:0,l:0},hoverlabel:{bgcolor:t.bgColor,bordercolor:t.borderColor,font:{color:(0,u.lH)(l),family:o.bodyFont,size:r.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:(0,f.BY)(l.spacing.twoXL),ticklabelposition:"outside",outlinecolor:t.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,u.lH)(l),size:r.smPx}},tickfont:{color:(0,u.lH)(l),size:r.twoSmPx}}},ternary:{gridcolor:(0,u.lH)(l),bgcolor:t.bgColor,title:{font:{family:o.bodyFont,size:r.smPx}},color:(0,u.lH)(l),aaxis:{gridcolor:(0,u.lH)(l),linecolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}},baxis:{linecolor:(0,u.lH)(l),gridcolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}},caxis:{linecolor:(0,u.lH)(l),gridcolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}}}};p()(e,i)}(e.layout.template.layout,l)}catch(o){const e=(0,m.$)(o);(0,h.vV)(e)}"title"in e.layout&&(e.layout.title=p()(e.layout.title,{text:`<b>${e.layout.title.text}</b>`}))}var A=o(90782);const x={width:600,height:470,name:"fullscreen-expand",path:"M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"},b={width:600,height:470,name:"fullscreen-collapse",path:"M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"};function v(e,l,o){const t=JSON.parse(g(JSON.stringify(e),o,l));return"streamlit"===l?y(t,o):t.layout=function(e,l){const{colors:o,genericFonts:t}=l,r={font:{color:o.bodyText,family:t.bodyFont},paper_bgcolor:o.bgColor,plot_bgcolor:o.secondaryBg};return{...e,font:{...r.font,...e.font},paper_bgcolor:e.paper_bgcolor||r.paper_bgcolor,plot_bgcolor:e.plot_bgcolor||r.plot_bgcolor}}(t.layout,o),t}function S(e,l,o,t){if(!e)return;const r={selection:{points:[],point_indices:[],box:[],lasso:[]}},i=new Set,n=[],s=[],d=[],{selections:p,points:u}=e;if(u&&u.forEach((function(e){d.push({...e,legendgroup:e.data.legendgroup||void 0,data:void 0,fullData:void 0}),(0,a.se)(e.pointIndex)&&i.add(e.pointIndex),(0,a.se)(e.pointIndices)&&e.pointIndices.length>0&&e.pointIndices.forEach((e=>i.add(e)))})),p&&p.forEach((e=>{if("rect"===e.type){const l=function(e){return"x0"in e&&"x1"in e&&"y0"in e&&"y1"in e?{x:[e.x0,e.x1],y:[e.y0,e.y1]}:{x:[],y:[]}}(e),o={xref:e.xref,yref:e.yref,x:l.x,y:l.y};n.push(o)}if("path"===e.type){const l=function(e){if(""===e)return{x:[],y:[]};const l=e.replace("M","").replace("Z","").split("L"),o=[],t=[];return l.forEach((e=>{const[l,r]=e.split(",").map(Number);o.push(l),t.push(r)})),{x:o,y:t}}(e.path),o={xref:e.xref,yref:e.yref,x:l.x,y:l.y};s.push(o)}})),r.selection.point_indices=Array.from(i),r.selection.points=d.map((e=>(0,a.wJ)(e))),r.selection.box=n,r.selection.lasso=s,r.selection.box.length>0&&!o.selectionMode.includes(c.P_.SelectionMode.BOX))return;if(r.selection.lasso.length>0&&!o.selectionMode.includes(c.P_.SelectionMode.LASSO))return;const f=l.getStringValue(o),m=JSON.stringify(r);f!==m&&l.setStringValue(o,m,{fromUi:!0},t)}const w=(0,n.A)((function(e){var l,o,n,a,d;let{element:p,width:u,height:f,widgetMgr:m,disabled:h,fragmentId:g,isFullScreen:y,expand:w,collapse:F,disableFullscreenMode:M}=e;const C=(0,r.u)(),z=(0,t.useMemo)((()=>p.spec?JSON.parse(p.spec):{layout:{},data:[],frames:void 0}),[p.id,p.spec]),[H,k]=(0,t.useState)((()=>{const e=m.getElementState(p.id,"figure");return e||v(z,p.theme,C)})),V=p.selectionMode.length>0&&!h,_=V&&p.selectionMode.includes(c.P_.SelectionMode.LASSO),P=V&&p.selectionMode.includes(c.P_.SelectionMode.BOX),B=V&&p.selectionMode.includes(c.P_.SelectionMode.POINTS),E=(0,t.useMemo)((()=>{if(!p.config)return{};const e=JSON.parse(p.config);var l;M||(e.modeBarButtonsToAdd=[{name:y?"Close fullscreen":"Fullscreen",icon:y?b:x,click:()=>{y&&F?F():w&&w()}},...null!==(l=e.modeBarButtonsToAdd)&&void 0!==l?l:[]]);if(!e.modeBarButtonsToRemove){e.displaylogo=!1;const l=["sendDataToCloud"];V?(_||l.push("lasso2d"),P||l.push("select2d")):l.push("lasso2d","select2d"),e.modeBarButtonsToRemove=l}return e}),[p.id,p.config,y,M,V,_,P,F,w]);(0,t.useEffect)((()=>{k((e=>v(e,p.theme,C)))}),[p.id,C,p.theme]),(0,t.useEffect)((()=>{let e=z.layout.clickmode,l=z.layout.hovermode,o=z.layout.dragmode;h?(e="none",o="pan"):V&&(z.layout.clickmode||(e=B?"event+select":"none"),z.layout.hovermode||(l="closest"),z.layout.dragmode||(o=B?"pan":P?"select":_?"lasso":"pan")),k((t=>t.layout.clickmode===e&&t.layout.hovermode===l&&t.layout.dragmode===o?t:{...t,layout:{...t.layout,clickmode:e,hovermode:l,dragmode:o}}))}),[p.id,V,B,P,_,h]);let I=-1===u?null===(l=H.layout)||void 0===l?void 0:l.width:Math.max(p.useContainerWidth?u:Math.min(null!==(o=z.layout.width)&&void 0!==o?o:u,u),150),L=z.layout.height;y&&(I=u,L=f),H.layout.height===L&&H.layout.width===I||k((e=>({...e,layout:{...e.layout,height:L,width:I}})));const O=(0,t.useCallback)((e=>{S(e,m,p,g)}),[p.id,m,g]),N=(0,t.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!function(e,l,o){const t=e.getStringValue(l),r=JSON.stringify({selection:{points:[],point_indices:[],box:[],lasso:[]}});t!==r&&e.setStringValue(l,r,{fromUi:!0},o)}(m,p,g),e&&setTimeout((()=>{k((e=>({...e,data:e.data.map((e=>({...e,selectedpoints:null}))),layout:{...e.layout,selections:[]}})))}),50)}),[p.id,m,g]);return(0,t.useEffect)((()=>{if(!p.formId||!V)return;const e=new s.o;return e.manageFormClearListener(m,p.formId,N),()=>{e.disconnect()}}),[p.formId,m,V,N]),(0,t.useEffect)((()=>{var e,l,o;if(!V)return;let t;t="select"===(null===(e=H.layout)||void 0===e?void 0:e.dragmode)||"lasso"===(null===(l=H.layout)||void 0===l?void 0:l.dragmode)?"event":B?"event+select":"none",(null===(o=H.layout)||void 0===o?void 0:o.clickmode)!==t&&k((e=>({...e,layout:{...e.layout,clickmode:t}})))}),[null===(n=H.layout)||void 0===n?void 0:n.dragmode]),(0,A.jsx)("div",{className:"stPlotlyChart","data-testid":"stPlotlyChart",children:(0,A.jsx)(i.A,{data:H.data,layout:H.layout,config:E,frames:null!==(a=H.frames)&&void 0!==a?a:void 0,style:{visibility:void 0===(null===(d=H.layout)||void 0===d?void 0:d.width)?"hidden":void 0},onSelected:V?O:()=>{},onDoubleClick:V?()=>N():void 0,onDeselect:V?()=>{N(!1)}:void 0,onInitialized:e=>{m.setElementState(p.id,"figure",e)},onUpdate:e=>{m.setElementState(p.id,"figure",e),k(e)}},y?"fullscreen":"original")})}),!0)},55516:(e,l,o)=>{o.d(l,{A:()=>m});var t=o(58878),r=o(53124),i=o.n(r),c=o(41514),n=o(67214),a=o(64611),s=o(98226),d=o(4883),p=o(90782);const u=e=>{let{children:l,width:o,height:t,disableFullscreenMode:r}=e;const{expanded:i,fullHeight:u,fullWidth:f,zoomIn:m,zoomOut:h}=(0,s.H)();let g=c.u,y=m,A="View fullscreen";return i&&(g=n.Q,y=h,A="Exit fullscreen"),(0,p.jsxs)(d.g,{isExpanded:i,"data-testid":"stFullScreenFrame",children:[!r&&(0,p.jsx)(d.j,{"data-testid":"StyledFullScreenButton",onClick:y,title:A,isExpanded:i,children:(0,p.jsx)(a.A,{content:g})}),l({width:i?f:o,height:i?u:t,expanded:i,expand:m,collapse:h})]})},f=(0,t.memo)(u);const m=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(0,t.memo)((function(o){const{width:t,height:r,disableFullscreenMode:i}=o;return(0,p.jsx)(f,{width:t,height:r,disableFullscreenMode:l||i,children:l=>{let{width:t,height:r,expanded:i,expand:c,collapse:n}=l;return(0,p.jsx)(e,{...o,width:t,height:r,isFullScreen:i,expand:c,collapse:n})}})}));return o.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,i()(o,e)}},34752:(e,l,o)=>{o.d(l,{X:()=>c,o:()=>i});var t=o(58878),r=o(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,l,o){(0,r.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===l||(this.disconnect(),(0,r._L)(l)&&(this.formClearListener=e.addFormClearedListener(l,o),this.lastWidgetMgr=e,this.lastFormId=l))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function c(e){let{element:l,widgetMgr:o,onFormCleared:i}=e;(0,t.useEffect)((()=>{if(!(0,r._L)(l.formId))return;const e=o.addFormClearedListener(l.formId,i);return()=>{e.disconnect()}}),[l,o,i])}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8460],{78460:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var o=i(58878),n=i(60667),a=i(8151),s=i(72037),r=i(14716),l=i(28430),d=i(71034),c=i.n(d),h=i(25571),g=i(84996),m=i(55516),p=i(67253),u=i(34752),f=i(85729);const b={DATAFRAME_INDEX:"(index)"},v=new Set([f.sj.DatetimeIndex,f.sj.Float64Index,f.sj.Int64Index,f.sj.RangeIndex,f.sj.UInt64Index]);function w(e){var t;if(0===(null===(t=e.datasets)||void 0===t?void 0:t.length))return null;const i={};return e.datasets.forEach((e=>{if(!e)return;const t=e.hasName?e.name:null;i[t]=e.data})),i}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return[];const i=[],{dataRows:o,dataColumns:n}=e.dimensions,a=f.D0.getTypeName(e.types.index[0]),s=v.has(a);for(let r=t;r<o;r++){const t={};if(s){const i=e.getIndexValue(r,0);t[b.DATAFRAME_INDEX]="bigint"===typeof i?Number(i):i}for(let i=0;i<n;i++){const o=e.getDataValue(r,i),n=e.types.data[i],a=f.D0.getTypeName(n);if("datetimetz"!==a&&(o instanceof Date||Number.isFinite(o))&&(a.startsWith("datetime")||"date"===a)){const n=60*new Date(o).getTimezoneOffset()*1e3;t[e.columns[0][i]]=o.valueOf()+n}else t[e.columns[0][i]]="bigint"===typeof o?Number(o):o}i.push(t)}return i}var x=i(37638),S=i.n(x),F=i(42274),C=i.n(F),z=i(16795),W=i(58144);function V(e,t){const i={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:t.fontSizes.mdPx,orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.mdPx,titleColor:(0,z.lH)(t),titleFontStyle:"normal",labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,z.lH)(t),labelFontStyle:"normal"},axis:{labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,z.lH)(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.smPx,titleColor:(0,z.lH)(t),titleFontStyle:"normal",ticks:!1,gridColor:(0,z.V9)(t),domain:!1,domainWidth:1,domainColor:(0,z.V9)(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:(0,W.BY)(t.spacing.lg),labelPadding:(0,W.BY)(t.spacing.lg),labelSeparation:(0,W.BY)(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:t.fontSizes.smPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,z.lH)(t),titleFontSize:t.fontSizes.smPx,titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:(0,z.lH)(t),titlePadding:5,labelPadding:(0,W.BY)(t.spacing.lg),columnPadding:(0,W.BY)(t.spacing.sm),rowPadding:(0,W.BY)(t.spacing.twoXS),padding:7,symbolStrokeWidth:4},range:{category:(0,z.c6)(t),diverging:(0,z.vk)(t),ramp:(0,z.rp)(t),heatmap:(0,z.rp)(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,color:(0,z.h7)(t)},bar:{binSpacing:(0,W.BY)(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?C()({},i,e,((e,t)=>Array.isArray(t)?t:void 0)):i}var k=i(89653),D=i(32735);const T=e=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,backgroundColor:(0,D.No)(e.colors.bgColor,.05),fontSize:e.fontSizes.twoSm,boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px",maxWidth:e.sizes.maxChartTooltipWidth,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.default,zIndex:e.zIndices.vegaTooltips,"&.visible":{visibility:"visible"},h2:{marginTop:e.spacing.none,marginBottom:e.spacing.sm,fontSize:e.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:e.spacing.threeXS,paddingBottom:e.spacing.threeXS},"td.key":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.4)`,textAlign:"right",color:e.colors.fadedText60,whiteSpace:"nowrap",paddingRight:e.spacing.twoXS},"td.value":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),I=(0,k.A)("div",{target:"egd2k5h0"})((e=>{let{theme:t,useContainerWidth:i,isFullScreen:o}=e;return{width:i||o?"100%":"auto",height:o?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,zIndex:t.zIndices.popupMenu,top:`calc(${t.iconSizes.md} + 2 * ${t.spacing.xs} + ${t.spacing.xs})`,right:0,backgroundColor:t.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`${t.sizes.borderWidth} solid ${t.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:t.radii.default,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,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:t.colors.secondaryBg,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",padding:t.spacing.xs,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.default,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",cursor:"pointer",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix25},svg:{width:t.iconSizes.md,height:t.iconSizes.md}}}}}),"");var N=i(90782);const M="source";class O extends o.PureComponent{constructor(){super(...arguments),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=M,this.element=null,this.formClearHelper=new u.o,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{var e,t;const{element:i,theme:o,isFullScreen:n,width:a,height:s}=this.props,r=JSON.parse(i.spec),{useContainerWidth:l}=i;if("streamlit"===i.vegaLiteTheme?r.config=V(r.config,o):"streamlit"===(null===(e=r.usermeta)||void 0===e||null===(t=e.embedOptions)||void 0===t?void 0:t.theme)?(r.config=V(r.config,o),r.usermeta.embedOptions.theme=void 0):r.config=function(e,t){const{colors:i,fontSizes:o,genericFonts:n}=t,a={labelFont:n.bodyFont,titleFont:n.bodyFont,labelFontSize:o.twoSmPx,titleFontSize:o.twoSmPx},s={background:i.bgColor,axis:{labelColor:i.bodyText,titleColor:i.bodyText,gridColor:(0,z.V9)(t),...a},legend:{labelColor:i.bodyText,titleColor:i.bodyText,...a},title:{color:i.bodyText,subtitleColor:i.bodyText,...a},header:{labelColor:i.bodyText,titleColor:i.bodyText,...a},view:{stroke:(0,z.V9)(t),continuousHeight:350,continuousWidth:400},mark:{tooltip:!0}};return e?S()({},s,e):s}(r.config,o),n?(r.width=a,r.height=s,"vconcat"in r&&r.vconcat.forEach((e=>{e.width=a}))):l&&(r.width=a,"vconcat"in r&&r.vconcat.forEach((e=>{e.width=a}))),r.padding||(r.padding={}),(0,h.hX)(r.padding.bottom)&&(r.padding.bottom=20),r.datasets)throw new Error("Datasets should not be passed as part of the spec");return i.selectionMode.length>0&&function(e){"params"in e&&"encoding"in e&&e.params.forEach((t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&"point"===t.select.type&&!("encodings"in t.select)&&(0,h.hX)(t.select.encodings)&&(t.select.encodings=Object.keys(e.encoding)))}))}(r),r},this.maybeConfigureSelections=()=>{if(void 0===this.vegaView)return;const{widgetMgr:e,element:t}=this.props;if(null===t||void 0===t||!t.id||0===t.selectionMode.length)return;const i=e.getElementState(this.props.element.id,"viewState");if((0,h.se)(i))try{this.vegaView=this.vegaView.setState(i)}catch(n){(0,g.FF)("Failed to restore view state",n)}t.selectionMode.forEach(((i,o)=>{var n;null===(n=this.vegaView)||void 0===n||n.addSignalListener(i,(0,h.sg)(150,((i,o)=>{var n;const a=null===(n=this.vegaView)||void 0===n?void 0:n.getState({data:(e,i)=>t.selectionMode.some((t=>`${t}_store`===e)),recurse:!1});(0,h.se)(a)&&e.setElementState(t.id,"viewState",a);let s=o;"vlPoint"in o&&"or"in o.vlPoint&&(s=o.vlPoint.or);const r=JSON.parse(e.getStringValue(t)||"{}"),l={selection:{...(null===r||void 0===r?void 0:r.selection)||{},[i]:s||{}}};c()(r,l)||e.setStringValue(t,JSON.stringify(l),{fromUi:!0},this.props.fragmentId)})))}));const o=()=>{const i={selection:{}};this.props.element.selectionMode.forEach((e=>{i.selection[e]={}}));const o=e.getStringValue(t),n=o?JSON.parse(o):i;var a;c()(n,i)||(null===(a=this.props.widgetMgr)||void 0===a||a.setStringValue(this.props.element,JSON.stringify(i),{fromUi:!0},this.props.fragmentId))};this.props.element.formId&&this.formClearHelper.manageFormClearListener(this.props.widgetMgr,this.props.element.formId,o)}}async componentDidMount(){try{await this.createView()}catch(e){const t=(0,p.$)(e);this.setState({error:t})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(e){const{element:t,theme:i}=e,{element:o,theme:n}=this.props,a=t.spec,{spec:s}=o;if(!this.vegaView||a!==s||i!==n||e.width!==this.props.width||e.height!==this.props.height||e.element.vegaLiteTheme!==this.props.element.vegaLiteTheme||!c()(e.element.selectionMode,this.props.element.selectionMode)){(0,g.OG)("Vega spec changed.");try{await this.createView()}catch(m){const e=(0,p.$)(m);this.setState({error:e})}return}const r=t.data,{data:l}=o;(r||l)&&this.updateData(this.defaultDataName,r,l);const d=w(t)||{},h=w(o)||{};for(const[c,g]of Object.entries(h)){const e=c||this.defaultDataName,t=d[e];this.updateData(e,t,g)}for(const c of Object.keys(d))h.hasOwnProperty(c)||c===this.defaultDataName||this.updateData(c,null,null);this.vegaView.resize().runAsync()}updateData(e,t,i){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!i||0===i.data.numRows)try{this.vegaView.remove(e,r.truthy)}finally{return}if(!t||0===t.data.numRows)return void this.vegaView.insert(e,y(i));const{dataRows:o,dataColumns:n}=t.dimensions,{dataRows:a,dataColumns:s}=i.dimensions;!function(e,t,i,o,n,a){if(i!==a)return!1;if(t>=n)return!1;if(0===t)return!1;const s=a-1,r=t-1;return e.getDataValue(0,s)===o.getDataValue(0,s)&&e.getDataValue(r,s)===o.getDataValue(r,s)}(t,o,n,i,a,s)?(this.vegaView.data(e,y(i)),(0,g.OG)(`Had to clear the ${e} dataset before inserting data through Vega view.`)):o<a&&this.vegaView.insert(e,y(i,o))}async createView(){if((0,g.OG)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const{element:e}=this.props,t=this.generateSpec(),i={ast:!0,expr:l.P,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},{vgSpec:o,view:n,finalize:a}=await(0,s.Ay)(this.element,t,i);this.vegaView=n,this.maybeConfigureSelections(),this.vegaFinalizer=a;const r=function(e){const t=w(e);if((0,h.hX)(t))return null;const i={};for(const[o,n]of Object.entries(t))i[o]=y(n);return i}(e),d=r?Object.keys(r):[];if(1===d.length){const[e]=d;this.defaultDataName=e}else 0===d.length&&o.data&&(this.defaultDataName=M);const c=function(e){const t=e.data;return t&&0!==t.data.numRows?y(t):null}(e);if(c&&n.insert(this.defaultDataName,c),r)for(const[s,l]of Object.entries(r))n.insert(s,l);await n.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(n.mL,{styles:T}),(0,N.jsx)(I,{"data-testid":"stVegaLiteChart",className:"stVegaLiteChart",useContainerWidth:this.props.element.useContainerWidth,isFullScreen:this.props.isFullScreen,ref:e=>{this.element=e}})]})}}const P=(0,a.b)((0,m.A)(O))},55516:(e,t,i)=>{i.d(t,{A:()=>p});var o=i(58878),n=i(53124),a=i.n(n),s=i(41514),r=i(67214),l=i(64611),d=i(98226),c=i(4883),h=i(90782);const g=e=>{let{children:t,width:i,height:o,disableFullscreenMode:n}=e;const{expanded:a,fullHeight:g,fullWidth:m,zoomIn:p,zoomOut:u}=(0,d.H)();let f=s.u,b=p,v="View fullscreen";return a&&(f=r.Q,b=u,v="Exit fullscreen"),(0,h.jsxs)(c.g,{isExpanded:a,"data-testid":"stFullScreenFrame",children:[!n&&(0,h.jsx)(c.j,{"data-testid":"StyledFullScreenButton",onClick:b,title:v,isExpanded:a,children:(0,h.jsx)(l.A,{content:f})}),t({width:a?m:i,height:a?g:o,expanded:a,expand:p,collapse:u})]})},m=(0,o.memo)(g);const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=(0,o.memo)((function(i){const{width:o,height:n,disableFullscreenMode:a}=i;return(0,h.jsx)(m,{width:o,height:n,disableFullscreenMode:t||a,children:t=>{let{width:o,height:n,expanded:a,expand:s,collapse:r}=t;return(0,h.jsx)(e,{...i,width:o,height:n,isFullScreen:a,expand:s,collapse:r})}})}));return i.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,a()(i,e)}},34752:(e,t,i)=>{i.d(t,{X:()=>s,o:()=>a});var o=i(58878),n=i(25571);class a{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,i){(0,n.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,n._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,i),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function s(e){let{element:t,widgetMgr:i,onFormCleared:a}=e;(0,o.useEffect)((()=>{if(!(0,n._L)(t.formId))return;const e=i.addFormClearedListener(t.formId,a);return()=>{e.disconnect()}}),[t,i,a])}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9923],{19923:(e,t,i)=>{i.r(t),i.d(t,{default:()=>c});i(58878);var n=i(55516),l=i(89653);const r=(0,l.A)("div",{target:"e115fcil2"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.spacing.lg}}),""),a=(0,l.A)("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),d=(0,l.A)("div",{target:"e115fcil0"})((e=>{let{theme:t}=e;return{fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,color:t.colors.fadedText60,textAlign:"center",marginTop:t.spacing.xs,wordWrap:"break-word",padding:t.spacing.threeXS}}),"");var s,o=i(90782);!function(e){e[e.OriginalWidth=-1]="OriginalWidth",e[e.ColumnWidth=-2]="ColumnWidth",e[e.AutoWidth=-3]="AutoWidth",e[e.MinImageOrContainer=-4]="MinImageOrContainer",e[e.MaxImageOrContainer=-5]="MaxImageOrContainer"}(s||(s={}));const c=(0,n.A)((function(e){let t,{width:i,isFullScreen:n,element:l,height:c,endpoints:h}=e;const u=l.width;if([s.OriginalWidth,s.AutoWidth,s.MinImageOrContainer].includes(u))t=void 0;else if([s.ColumnWidth,s.MaxImageOrContainer].includes(u))t=i;else{if(!(u>0))throw Error(`Invalid image width: ${u}`);t=u}const m={};return c&&n?(m.maxHeight=c,m.objectFit="contain"):(m.width=t,m.maxWidth="100%"),(0,o.jsx)(r,{className:"stImage","data-testid":"stImage",style:{width:i},children:l.imgs.map(((e,t)=>{const i=e;return(0,o.jsxs)(a,{"data-testid":"stImageContainer",children:[(0,o.jsx)("img",{style:m,src:h.buildMediaURL(i.url),alt:t.toString()}),i.caption&&(0,o.jsx)(d,{"data-testid":"stImageCaption",style:m,children:` ${i.caption} `})]},t)}))})}))},55516:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(58878),l=i(53124),r=i.n(l),a=i(41514),d=i(67214),s=i(64611),o=i(98226),c=i(4883),h=i(90782);const u=e=>{let{children:t,width:i,height:n,disableFullscreenMode:l}=e;const{expanded:r,fullHeight:u,fullWidth:m,zoomIn:g,zoomOut:p}=(0,o.H)();let f=a.u,x=g,w="View fullscreen";return r&&(f=d.Q,x=p,w="Exit fullscreen"),(0,h.jsxs)(c.g,{isExpanded:r,"data-testid":"stFullScreenFrame",children:[!l&&(0,h.jsx)(c.j,{"data-testid":"StyledFullScreenButton",onClick:x,title:w,isExpanded:r,children:(0,h.jsx)(s.A,{content:f})}),t({width:r?m:i,height:r?u:n,expanded:r,expand:g,collapse:p})]})},m=(0,n.memo)(u);const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=(0,n.memo)((function(i){const{width:n,height:l,disableFullscreenMode:r}=i;return(0,h.jsx)(m,{width:n,height:l,disableFullscreenMode:t||r,children:t=>{let{width:n,height:l,expanded:r,expand:a,collapse:d}=t;return(0,h.jsx)(e,{...i,width:n,height:l,isFullScreen:r,expand:a,collapse:d})}})}));return i.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,r()(i,e)}},41514:(e,t,i)=>{i.d(t,{u:()=>a});var n=i(68102),l=i(58878),r=i(68622),a=l.forwardRef((function(e,t){return l.createElement(r.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),l.createElement("path",{d:"M0 0v4l1.5-1.5L3 4l1-1-1.5-1.5L4 0H0zm5 4L4 5l1.5 1.5L4 8h4V4L6.5 5.5 5 4z"}))}));a.displayName="FullscreenEnter"},67214:(e,t,i)=>{i.d(t,{Q:()=>a});var n=i(68102),l=i(58878),r=i(68622),a=l.forwardRef((function(e,t){return l.createElement(r.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),l.createElement("path",{d:"M1 0L0 1l1.5 1.5L0 4h4V0L2.5 1.5 1 0zm3 4v4l1.5-1.5L7 8l1-1-1.5-1.5L8 4H4z"}))}));a.displayName="FullscreenExit"}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9943],{55516:(e,t,n)=>{n.d(t,{A:()=>g});var i=n(58878),o=n(53124),r=n.n(o),l=n(41514),a=n(67214),s=n(64611),d=n(98226),u=n(4883),c=n(90782);const m=e=>{let{children:t,width:n,height:i,disableFullscreenMode:o}=e;const{expanded:r,fullHeight:m,fullWidth:h,zoomIn:g,zoomOut:f}=(0,d.H)();let p=l.u,v=g,b="View fullscreen";return r&&(p=a.Q,v=f,b="Exit fullscreen"),(0,c.jsxs)(u.g,{isExpanded:r,"data-testid":"stFullScreenFrame",children:[!o&&(0,c.jsx)(u.j,{"data-testid":"StyledFullScreenButton",onClick:v,title:b,isExpanded:r,children:(0,c.jsx)(s.A,{content:p})}),t({width:r?h:n,height:r?m:i,expanded:r,expand:g,collapse:f})]})},h=(0,i.memo)(m);const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,i.memo)((function(n){const{width:i,height:o,disableFullscreenMode:r}=n;return(0,c.jsx)(h,{width:i,height:o,disableFullscreenMode:t||r,children:t=>{let{width:i,height:o,expanded:r,expand:l,collapse:a}=t;return(0,c.jsx)(e,{...n,width:i,height:o,isFullScreen:r,expand:l,collapse:a})}})}));return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,r()(n,e)}},85850:(e,t,n)=>{n.d(t,{K:()=>v,A:()=>b});n(58878);var i=n(8151),o=n(12274),r=n(63186),l=n(4629),a=n(997),s=n(36459),d=n(84720),u=n(64611),c=n(89653),m=n(16795);const h="-2.4rem",g=(0,c.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:i}=e;return{padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:n?h:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:h},...i&&{[`${i}:hover &, ${i}:active &, ${i}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:h}}}}}),""),f=(0,c.A)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,m.iq)(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.default,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var p=n(90782);function v(e){let{label:t,show_label:n,icon:o,onClick:r}=e;const c=(0,i.u)(),m=n?t:"";return(0,p.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,p.jsx)(a.A,{content:(0,p.jsx)(l.Ay,{source:t,allowHTML:!1,style:{fontSize:c.fontSizes.sm}}),placement:a.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,p.jsxs)(s.Ay,{onClick:e=>{r&&r(),e.stopPropagation()},kind:d.KX.ELEMENT_TOOLBAR,"aria-label":t,children:[o&&(0,p.jsx)(u.A,{content:o,size:"md",testid:"stElementToolbarButtonIcon"}),m&&(0,p.jsx)("span",{children:m})]})})})}const b=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:l,children:a,target:s,disableFullscreenMode:d}=e;return(0,p.jsx)(g,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:l||i,target:s,children:(0,p.jsxs)(f,{children:[a,t&&!d&&!i&&(0,p.jsx)(v,{label:"Fullscreen",icon:o.g,onClick:()=>t()}),n&&!d&&i&&(0,p.jsx)(v,{label:"Close fullscreen",icon:r.Q,onClick:()=>n()})]})})}},251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Nt});var i=n(58878),o=n(35753),r=n(79104),l=n(52583),a=n(68994),s=n(95241),d=n(61730),u=n(18364),c=n(2128),m=n(34752),h=n(55516),g=n(29669),f=n(25571),p=n(85850),v=n(84152),b=n(37638),y=n.n(b),w=n(30136),x=n.n(w),C=n(17643),M=n.n(C),S=(n(20641),n(91381)),E=n.n(S),k=n(37904),T=n.n(k),R=n(34694),N=n(85729);const I=["true","t","yes","y","on","1"],_=["false","f","no","n","off","0"];function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=`\u26a0\ufe0f ${e}`,{kind:o.dd.Text,readonly:!0,allowOverlay:!0,data:e+(t?`\n\n${t}\n`:""),displayData:e,isError:!0}}function D(e){return e.hasOwnProperty("isError")&&e.isError}function A(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function F(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.dd.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.dd.Loading,allowOverlay:!1}}function $(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function L(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,group:e.group,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function X(e,t){return(0,f.hX)(e)?t||{}:(0,f.hX)(t)?e||{}:y()(e,t)}function z(e){if((0,f.hX)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(t){return[e]}}try{const t=JSON.parse(JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)));return Array.isArray(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:H(e))):[H(t)]}catch(t){return[H(e)]}}function H(e){try{try{return x()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function V(e){if((0,f.hX)(e))return null;if("boolean"===typeof e)return e;const t=H(e).toLowerCase().trim();return""===t?null:!!I.includes(t)||!_.includes(t)&&void 0}function j(e){if((0,f.hX)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=T().unformat(e.trim());if((0,f.se)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function W(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,f.hX)(t)||""===t?(0===n&&(e=Math.round(e)),T()(e).format((0,f.se)(n)?`0,0.${"0".repeat(n)}`:"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):"duration[ns]"===t?M().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?N.D0.formatPeriodType(BigInt(e),t):(0,R.sprintf)(t,e)}function B(e,t){return"locale"===t?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate()):"distance"===t?e.fromNow():"relative"===t?e.calendar():e.format(t)}function Y(e){if((0,f.hX)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{const t=Number(e);if(!isNaN(t)){let e=t;t>=10**18?e=t/1e3**3:t>=10**15?e=t/1e6:t>=10**12&&(e=t/1e3);const n=M().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=M().utc(e);if(t.isValid())return t.toDate();const n=M().utc(e,[M().HTML5_FMT.TIME_MS,M().HTML5_FMT.TIME_SECONDS,M().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function P(e){if(e%1===0)return 0;let t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}const U=new RegExp(/(\r\n|\n|\r)/gm);function q(e){return-1!==e.indexOf("\n")?e.replace(U," "):e}var J=n(8151),G=n(84996);function K(e){const t={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return{...e,kind:"object",sortMode:"default",isEditable:!1,getCell(e){try{const n=(0,f.se)(e)?H(e):null,i=(0,f.se)(n)?q(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,f.hX)(e)}}catch(n){return O(H(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}K.isEditableType=!1;const Z=K;function Q(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n=`Invalid validate regex: ${t.validate}.\nError: ${l}`}const i={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},r=i=>{if((0,f.hX)(i))return!e.isRequired;let o=H(i),r=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),r=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!r||o)};return{...e,kind:"text",sortMode:"default",validateInput:r,getCell(e,t){if("string"===typeof n)return O(H(e),n);if(t){const t=r(e);if(!1===t)return O(H(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,f.se)(e)?H(e):null,n=(0,f.se)(t)?q(t):"";return{...i,isMissingValue:(0,f.hX)(t),data:t,displayData:n}}catch(l){return O("Incompatible value",`The value cannot be interpreted as string. Error: ${l}`)}},getCellValue:e=>void 0===e.data?null:e.data}}Q.isEditableType=!0;const ee=Q;function te(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function ne(e,t,n,i,r,l,a){var s;const d=X({format:n,step:i,timezone:a},t.columnTypeOptions);let u,c,m;if((0,f.se)(d.timezone))try{var h;u=(null===(h=te(E()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(v){}(0,f.se)(d.min_value)&&(c=Y(d.min_value)||void 0),(0,f.se)(d.max_value)&&(m=Y(d.max_value)||void 0);const g={kind:o.dd.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-picker-cell",date:void 0,displayDate:"",step:(null===(s=d.step)||void 0===s?void 0:s.toString())||"1",format:r,min:c,max:m}},p=e=>{const n=Y(e);return null===n?!t.isRequired:void 0!==n&&(!((0,f.se)(c)&&l(n)<l(c))&&!((0,f.se)(m)&&l(n)>l(m)))};return{...t,kind:e,sortMode:"default",validateInput:p,getCell(e,t){if(!0===t){const t=p(e);if(!1===t)return O(H(e),"Invalid input.");t instanceof Date&&(e=t)}const i=Y(e);let o="",r="",l=u;if(void 0===i)return O(H(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=E().utc(i);if(!e.isValid())return O(H(i),`This should never happen. Please report this bug. \nError: ${e.toString()}`);if(d.timezone){try{e=te(e,d.timezone)}catch(v){return O(e.toISOString(),`Failed to adjust to the provided timezone: ${d.timezone}. \nError: ${v}`)}l=e.utcOffset()}try{r=B(e,d.format||n)}catch(v){return O(e.toISOString(),`Failed to format the date for rendering with: ${d.format}. \nError: ${v}`)}o=B(e,n)}return{...g,copyData:o,isMissingValue:(0,f.hX)(i),data:{...g.data,date:i,displayDate:r,timezoneOffset:l}}},getCellValue(e){var t;return(0,f.hX)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}}}function ie(e){var t,n,i,o,r;let l="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?l="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(l="YYYY-MM-DD HH:mm:ss.SSS");const a=null===(i=e.arrowType)||void 0===i||null===(o=i.meta)||void 0===o?void 0:o.timezone,s=(0,f.se)(a)||(0,f.se)(null===e||void 0===e||null===(r=e.columnTypeOptions)||void 0===r?void 0:r.timezone);return ne("datetime",e,s?l+"Z":l,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function oe(e){var t,n;let i="HH:mm:ss";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(i="HH:mm:ss.SSS"),ne("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function re(e){return ne("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function le(e){const t={kind:o.dd.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"checkbox",sortMode:"default",getCell(e){let n=null;return n=V(e),void 0===n?O(H(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,f.hX)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ie.isEditableType=!0,oe.isEditableType=!0,re.isEditableType=!0,le.isEditableType=!0;const ae=le;function se(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function de(e){const t=N.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=X({step:se(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),r=(0,f.hX)(i.min_value)||i.min_value<0,l=(0,f.se)(i.step)&&!Number.isNaN(i.step)?P(i.step):void 0,a={kind:o.dd.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:r,fixedDecimals:l,thousandSeparator:""},s=t=>{let n=j(t);if((0,f.hX)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,f.se)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,f.se)(i.min_value)&&n<i.min_value)&&(!o||n)};return{...e,kind:"number",sortMode:"smart",validateInput:s,getCell(e,t){if(!0===t){const t=s(e);if(!1===t)return O(H(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=j(e),o="";if((0,f.se)(n)){if(Number.isNaN(n))return O(H(e),"The value cannot be interpreted as a number.");if((0,f.se)(l)&&(r=n,n=0===(d=l)?Math.trunc(r):Math.trunc(r*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return O(H(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=W(n,i.format,l)}catch(u){return O(H(n),(0,f.se)(i.format)?`Failed to format the number based on the provided format configuration: (${i.format}). Error: ${u}`:`Failed to format the number. Error: ${u}`)}}var r,d;return{...a,data:n,displayData:o,isMissingValue:(0,f.hX)(n),copyData:(0,f.hX)(n)?"":H(n)}},getCellValue:e=>void 0===e.data?null:e.data}}de.isEditableType=!0;const ue=de;function ce(e){let t="string";const n=X({options:"bool"===N.D0.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),i=new Set(n.options.map((e=>typeof e)));1===i.size&&(i.has("number")||i.has("bigint")?t="number":i.has("boolean")&&(t="boolean"));const r={kind:o.dd.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal",data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>H(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,f.se)(e)&&""!==e&&(n=H(e)),t&&!r.data.allowedValues.includes(n)?O(H(n),"The value is not part of the allowed options."):{...r,isMissingValue:null===n,copyData:n||"",data:{...r.data,value:n}}},getCellValue(e){var n,i,o,r,l,a,s;return(0,f.hX)(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(r=j(null===(l=e.data)||void 0===l?void 0:l.value))&&void 0!==r?r:null:"boolean"===t?null!==(a=V(null===(s=e.data)||void 0===s?void 0:s.value))&&void 0!==a?a:null:null===(o=e.data)||void 0===o?void 0:o.value}}}ce.isEditableType=!0;const me=ce;function he(e){const t={kind:o.dd.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return{...e,kind:"list",sortMode:"default",isEditable:!1,getCell(e){const n=(0,f.hX)(e)?[]:z(e);return{...t,data:n,isMissingValue:(0,f.hX)(e),copyData:(0,f.hX)(e)?"":H(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,f.hX)(e.data)||A(e)?null:e.data}}he.isEditableType=!1;const ge=he;function fe(e,t,n){const i=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function pe(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===N.D0.getTypeName(n)&&(o=!1),{id:`index-${t}`,name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ve(e,t){const n=e.columns.map((e=>e[t])),i=n.length>0?n[n.length-1]:"",o=n.length>1?n.filter((e=>""!==e)).slice(0,-1).join(" / "):void 0;let r,l=e.types.data[t];if((0,f.hX)(l)&&(l={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===N.D0.getTypeName(l)){const n=e.getCategoricalOptions(t);(0,f.se)(n)&&(r={options:n})}return{id:`column-${i}-${t}`,name:i,title:i,isEditable:!0,arrowType:l,columnTypeOptions:r,isIndex:!1,isHidden:!1,group:o}}function be(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?N.D0.getTypeName(e.arrowType):null;let r;if("object"===e.kind)r=e.getCell((0,f.se)(t.content)?q(N.D0.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,f.se)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,a;let n;var s,d,u;if("time"===i&&(0,f.se)(null===(l=t.field)||void 0===l||null===(a=l.type)||void 0===a?void 0:a.unit))n=M().unix(N.D0.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(u=d.type)||void 0===u?void 0:u.unit)&&void 0!==s?s:0)).utc().toDate();else n=M().utc(Number(t.content)).toDate();r=e.getCell(n)}else if("decimal"===i){const n=(0,f.hX)(t.content)?null:N.D0.format(t.content,t.contentType,t.field);r=e.getCell(n)}else r=e.getCell(t.content);if(D(r))return r;if(!e.isEditable){if((0,f.se)(t.displayContent)){var c,m,h,g;const n=q(t.displayContent);r.kind===o.dd.Text||r.kind===o.dd.Number&&(0,f.hX)(null===(c=e.columnTypeOptions)||void 0===c?void 0:c.format)||r.kind===o.dd.Uri&&(0,f.hX)(null===(m=e.columnTypeOptions)||void 0===m?void 0:m.display_text)?r={...r,displayData:n}:r.kind===o.dd.Custom&&"date-picker-cell"===(null===(h=r.data)||void 0===h?void 0:h.kind)&&(0,f.hX)(null===(g=e.columnTypeOptions)||void 0===g?void 0:g.format)&&(r={...r,data:{...r.data,displayDate:n}})}n&&t.cssId&&(r=function(e,t,n){const i={},o=fe(t,"color",n);o&&(i.textDark=o);const r=fe(t,"background-color",n);return r&&(i.bgCell=r),"yellow"===r&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(r,t.cssId,n))}return r}function ye(e,t,n){const i=X({y_min:0,y_max:1},t.columnTypeOptions),r={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[i.y_min,i.y_max]}};return{...t,kind:e,sortMode:"default",isEditable:!1,getCell(e){if((0,f.hX)(i.y_min)||(0,f.hX)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return O("Invalid min/max y-axis configuration",`The y_min (${i.y_min}) and y_max (${i.y_max}) configuration options must be valid numbers.`);if((0,f.hX)(e))return F();const t=z(e),n=[];let o=[];if(0===t.length)return F();let l=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=j(t[i]);if(Number.isNaN(e)||(0,f.hX)(e))return O(H(t),`The value cannot be interpreted as a numeric array. ${H(e)} is not a number.`);e>l&&(l=e),e<a&&(a=e),n.push(e)}return o=n.length>0&&(l>i.y_max||a<i.y_min)?n.map((e=>l-a===0?l>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-a)/(l-a))+(i.y_min||0))):n,{...r,copyData:n.join(","),data:{...r.data,values:o,displayValues:n.map((e=>W(e)))},isMissingValue:(0,f.hX)(e)}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}}}function we(e){return ye("line_chart",e,"line")}function xe(e){return ye("bar_chart",e,"bar")}function Ce(e){return ye("area_chart",e,"area")}function Me(e){const t={kind:o.dd.Image,data:[],displayData:[],readonly:!0,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return{...e,kind:"image",sortMode:"default",isEditable:!1,getCell(e){const n=(0,f.se)(e)?[H(e)]:[];return{...t,data:n,isMissingValue:!(0,f.se)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}we.isEditableType=!1,xe.isEditableType=!1,Ce.isEditableType=!1,Me.isEditableType=!1;const Se=Me;function Ee(e){const t=e.columnTypeOptions||{};let n,i;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(a){n=`Invalid validate regex: ${t.validate}.\nError: ${a}`}if(!(0,f.hX)(t.display_text)&&t.display_text.includes("(")&&t.display_text.includes(")"))try{i=new RegExp(t.display_text,"us")}catch(a){i=void 0}const r={kind:o.dd.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},l=i=>{if((0,f.hX)(i))return!e.isRequired;const o=H(i);return!(t.max_chars&&o.length>t.max_chars)&&!(n instanceof RegExp&&!1===n.test(o))};return{...e,kind:"link",sortMode:"default",validateInput:l,getCell(e,o){if((0,f.hX)(e))return{...r,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return O(H(s),n);if(o){if(!1===l(s))return O(H(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,f.hX)(t))return"";try{const n=t.match(e);return n&&void 0!==n[1]?decodeURI(n[1]):t}catch(a){return t}}(i,s):t.display_text||s),{...r,data:s,displayData:d,isMissingValue:(0,f.hX)(s),onClickUri:e=>{window.open(s.startsWith("www.")?`https://${s}`:s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,f.hX)(e.data)?null:e.data}}Ee.isEditableType=!0;const ke=Ee;function Te(e){const t=se(N.D0.getTypeName(e.arrowType)),n=X({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=W(n.max_value,n.format)}catch(a){i=H(n.max_value)}const r=(0,f.hX)(n.step)||Number.isNaN(n.step)?void 0:P(n.step),l={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:n.min_value,max:n.max_value,step:n.step,value:n.min_value,label:String(n.min_value),measureLabel:i,readonly:!0}};return{...e,kind:"progress",sortMode:"smart",isEditable:!1,getCell(e){if((0,f.hX)(e))return F();if((0,f.hX)(n.min_value)||(0,f.hX)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return O("Invalid min/max parameters",`The min_value (${n.min_value}) and max_value (${n.max_value}) parameters must be valid numbers.`);if((0,f.hX)(n.step)||Number.isNaN(n.step))return O("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=j(e);if(Number.isNaN(t)||(0,f.hX)(t))return O(H(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return O(H(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=W(t,n.format,r)}catch(a){return O(H(t),(0,f.se)(n.format)?`Failed to format the number based on the provided format configuration: (${n.format}). Error: ${a}`:`Failed to format the number. Error: ${a}`)}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...l,isMissingValue:(0,f.hX)(e),copyData:String(t),data:{...l.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}}}Te.isEditableType=!1;const Re=Te,Ne=new Map(Object.entries({object:Z,text:ee,checkbox:ae,selectbox:me,list:ge,number:ue,link:ke,datetime:ie,date:re,time:oe,line_chart:we,bar_chart:xe,area_chart:Ce,image:Se,progress:Re})),Ie=[],_e="_index",Oe="_pos:",De={small:75,medium:200,large:400};function Ae(e){if(!(0,f.hX)(e))return"number"===typeof e?e:e in De?De[e]:void 0}function Fe(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==_e?n=t.get(e.name):t.has(`${Oe}${e.indexNumber}`)?n=t.get(`${Oe}${e.indexNumber}`):e.isIndex&&t.has(_e)&&(n=t.get(_e)),n?y()({...e},{title:n.label,width:Ae(n.width),isEditable:(0,f.se)(n.disabled)?!n.disabled:void 0,isHidden:n.hidden,isRequired:n.required,columnTypeOptions:n.type_config,contentAlignment:n.alignment,defaultValue:n.default,help:n.help}):e}function $e(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,f.se)(n)&&(Ne.has(n)?i=Ne.get(n):(0,G.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,f.hX)(i)&&(i=function(e){let t=e?N.D0.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty","large_string[pyarrow]"].includes(t)?ee:["datetime","datetimetz"].includes(t)?ie:"time"===t?oe:"date"===t?re:["object","bytes"].includes(t)?Z:["bool"].includes(t)?ae:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?ue:"categorical"===t?me:t.startsWith("list")?ge:Z):Z}(e.arrowType)),i}const Le=function(e,t,n){const o=(0,J.u)(),r=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,G.vV)(t),new Map}}(e.columns)),[e.columns]),l=e.useContainerWidth||(0,f.se)(e.width)&&e.width>0;return{columns:i.useMemo((()=>{let i=function(e){const t=[],{dimensions:n}=e,i=n.headerColumns,o=n.dataColumns;if(0===i&&0===o)return t.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),t;for(let r=0;r<i;r++){const n={...pe(e,r),indexNumber:r};t.push(n)}for(let r=0;r<o;r++){const n={...ve(e,r),indexNumber:r+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Fe(t,r),isStretched:l};const a=$e(i);return(e.editingMode===g.i3.EditingMode.READ_ONLY||n||!1===a.isEditableType)&&(i={...i,isEditable:!1}),e.editingMode!==g.i3.EditingMode.READ_ONLY&&1==i.isEditable&&(i={...i,icon:"editable"},i.isRequired&&e.editingMode===g.i3.EditingMode.DYNAMIC&&(i={...i,isHidden:!1})),a(i,o)})).filter((e=>!e.isHidden));if(e.columnOrder&&e.columnOrder.length>0){const t=[];i.forEach((e=>{e.isIndex&&t.push(e)})),e.columnOrder.forEach((e=>{const n=i.find((t=>t.name===e));n&&!n.isIndex&&t.push(n)})),i=t}return i.length>0?i:[Z({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,r,l,n,e.editingMode,e.columnOrder,o])}};function Xe(e){return e.isIndex?_e:(0,f.hX)(e.name)?"":e.name}const ze=class{constructor(e){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=e}toJson(e){const t=new Map;e.forEach((e=>{t.set(e.indexNumber,e)}));const n={edited_rows:{},added_rows:[],deleted_rows:[]};this.editedCells.forEach(((e,i,o)=>{const r={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(r[Xe(o)]=o.getCellValue(e))})),n.edited_rows[i]=r})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,r)=>{const l=t.get(n);if(l){const t=l.getCellValue(e);l.isRequired&&l.isEditable&&A(e)&&(o=!0),(0,f.se)(t)&&(i[Xe(l)]=t)}})),o||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}fromJson(e,t){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];const n=JSON.parse(e),i=new Map;t.forEach((e=>{i.set(e.indexNumber,e)}));const o=new Map;t.forEach((e=>{o.set(Xe(e),e)})),Object.keys(n.edited_rows).forEach((e=>{const t=Number(e),i=n.edited_rows[e];Object.keys(i).forEach((e=>{const n=i[e],r=o.get(e);if(r){const e=r.getCell(n);var l;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(l=this.editedCells.get(t))||void 0===l||l.set(r.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const n=new Map;t.forEach((e=>{n.set(e.indexNumber,e.getCell(null))})),Object.keys(e).forEach((t=>{const i=e[t],r=o.get(t);if(r){const e=r.getCell(i);e&&n.set(r.indexNumber,e)}})),this.addedRows.push(n)})),this.deletedRows=n.deleted_rows}isAddedRow(e){return e>=this.numRows}getCell(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);const n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}setCell(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map);this.editedCells.get(t).set(e,n)}}addRow(e){this.addedRows.push(e)}deleteRows(e){e.sort(((e,t)=>t-e)).forEach((e=>{this.deleteRow(e)}))}deleteRow(e){(0,f.hX)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort(((e,t)=>e-t))),this.editedCells.delete(e)))}getOriginalRowIndex(e){let t=e;for(let n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}getNumRows(){return this.numRows+this.addedRows.length-this.deletedRows.length}};var He=n(32735);const Ve=function(){const e=(0,J.u)(),t=i.useMemo((()=>({editable:e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="${e.bgColor}"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>`})),[]);return{theme:i.useMemo((()=>({accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,He.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,He.No)(e.colors.primary,.9),resizeIndicatorColor:e.colors.primary,bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.secondaryBg,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,He.No)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25})),[e]),tableBorderRadius:e.radii.default,tableBorderWidth:e.sizes.borderWidth,headerIcons:t}};const je=function(e,t,n,o){const r=e.columns.length;return{getCellContent:i.useCallback((i=>{let[l,a]=i;if(l>t.length-1)return O("Column index out of bounds.","This should never happen. Please report this bug.");if(a>n-1)return O("Row index out of bounds.","This should never happen. Please report this bug.");const s=t[l],d=s.indexNumber,u=o.current.getOriginalRowIndex(a),c=o.current.isAddedRow(u);if(s.isEditable||c){const e=o.current.getCell(d,u);if((0,f.se)(e))return e;if(c)return O("Error during cell creation.",`This should never happen. Please report this bug. No cell found for an added row: col=${d}; row=${u}`)}try{return be(s,e.getCell(u+r,d),e.cssStyles)}catch(m){return O("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${m}`)}}),[t,n,e,o,r])}};var We=n(53221);const Be=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,We.uf)({columns:t.map((e=>L(e))),getCellContent:n,rows:e,sort:o}),s=i.useMemo((()=>function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(t,o)),[t,o]),d=i.useCallback((e=>{let t="asc";const n=s[e];if(o&&o.column.id===n.id){if("asc"!==o.direction)return void r(void 0);t="desc"}r({column:L(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};var Ye=n(71034),Pe=n.n(Ye);const Ue=function(e,t,n,r,l){const[a,s]=i.useState({columns:o.I1.empty(),rows:o.I1.empty(),current:void 0}),d=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW)||e.selectionMode.includes(g.i3.SelectionMode.SINGLE_ROW)),u=d&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW),c=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.SINGLE_COLUMN)||e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN)),m=c&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN),h=a.rows.length>0,f=a.columns.length>0,p=void 0!==a.current,v=i.useCallback((e=>{const t=!Pe()(e.rows.toArray(),a.rows.toArray()),n=!Pe()(e.columns.toArray(),a.columns.toArray()),i=!Pe()(e.current,a.current);let o=d&&t||c&&n,u=e;if((d||c)&&void 0!==e.current&&i&&(u={...e,rows:a.rows,columns:a.columns},o=!1),t&&e.rows.length>0&&n&&0===e.columns.length&&(u={...u,columns:a.columns},o=!0),n&&e.columns.length>0&&t&&0===e.rows.length&&(u={...u,rows:a.rows},o=!0),n&&u.columns.length>=0){let e=u.columns;r.forEach(((t,n)=>{t.isIndex&&(e=e.remove(n))})),e.length<u.columns.length&&(u={...u,columns:e})}s(u),o&&l(u)}),[a,d,c,l,r]),b=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={columns:t?a.columns:o.I1.empty(),rows:e?a.rows:o.I1.empty(),current:void 0};s(n),(!e&&d||!t&&c)&&l(n)}),[a,d,c,l]);return{gridSelection:a,isRowSelectionActivated:d,isMultiRowSelectionActivated:u,isColumnSelectionActivated:c,isMultiColumnSelectionActivated:m,isRowSelected:h,isColumnSelected:f,isCellSelected:p,clearSelection:b,processSelectionChange:v}};var qe=n(55562);const Je=",",Ge='"',Ke='"',Ze="\n",Qe="\ufeff",et=new RegExp(`[${[Je,Ge,Ze].join("")}]`);function tt(e){return e.map((e=>function(e){if((0,f.hX)(e))return"";const t=H(e);if(et.test(t))return`${Ge}${t.replace(new RegExp(Ge,"g"),Ke+Ge)}${Ge}`;return t}(e))).join(Je)+Ze}async function nt(e,t,n,i){const o=new TextEncoder;await e.write(o.encode(Qe));const r=n.map((e=>e.name));await e.write(o.encode(tt(r)));for(let l=0;l<i;l++){const i=[];n.forEach(((e,n,o)=>{i.push(e.getCellValue(t([n,l])))})),await e.write(o.encode(tt(i)))}await e.close()}const it=function(e,t,o,r){return{exportToCsv:i.useCallback((async()=>{const i=`${(new Date).toISOString().slice(0,16).replace(":","-")}_export.csv`;try{const r=await n.e(3966).then(n.bind(n,93966)),l=await r.showSaveFilePicker({suggestedName:i,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),a=await l.createWritable();await nt(a,e,t,o)}catch(l){if(l instanceof Error&&"AbortError"===l.name)return;try{(0,G.FF)("Failed to export data as CSV with FileSystem API, trying fallback method",l);let n="";const a=new WritableStream({write:async e=>{n+=new TextDecoder("utf-8").decode(e)},close:async()=>{}});await nt(a.getWriter(),e,t,o);const s=new Blob([n],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(s),u=(0,qe.A)({enforceDownloadInNewTab:r,url:d,filename:i});u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(d)}catch(l){(0,G.vV)("Failed to export data as CSV",l)}}}),[t,o,e,r])}};const ot=function(e,t,n,o,r,l,a,s,d){const u=i.useCallback(((t,i)=>{let[l,a]=t;const d=e[l];if(!d.isEditable)return;const u=d.indexNumber,c=n.current.getOriginalRowIndex(r(a)),m=o([l,a]),h=d.getCellValue(m),g=d.getCellValue(i);if(!D(m)&&g===h)return;const f=d.getCell(g,!0);D(f)?(0,G.FF)(`Not applying the cell edit since it causes this error:\n ${f.data}`):(n.current.setCell(u,c,{...f,lastUpdated:performance.now()}),s())}),[e,n,r,o,s]),c=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i),a()}),[e,n,t,a]),m=i.useCallback((()=>{t||(c(),s())}),[c,s,t]),h=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(r(e))));return n.current.deleteRows(e),a(),d(),s(),!1}if(null!==(o=i.current)&&void 0!==o&&o.range){const t=[],n=i.current.range;for(let i=n.y;i<n.y+n.height;i++)for(let o=n.x;o<n.x+n.width;o++){const n=e[o];n.isEditable&&!n.isRequired&&(t.push({cell:[o,i]}),u([o,i],n.getCell(null)))}return t.length>0&&(s(),l(t)),!1}return!0}),[e,n,t,l,r,s,u,d,a]),g=i.useCallback(((i,a)=>{const[d,u]=i,m=[];for(let h=0;h<a.length;h++){const i=a[h];if(h+u>=n.current.getNumRows()){if(t)break;c()}for(let t=0;t<i.length;t++){const l=i[t],a=h+u,s=t+d;if(s>=e.length)break;const c=e[s];if(c.isEditable){const e=c.getCell(l,!0);if((0,f.se)(e)&&!D(e)){const t=c.indexNumber,i=n.current.getOriginalRowIndex(r(a)),l=c.getCellValue(o([s,a]));c.getCellValue(e)!==l&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,a]}))}}}m.length>0&&(s(),l(m))}return!1}),[e,n,t,r,o,c,s,l]),p=i.useCallback(((t,n)=>{const i=t[0];if(i>=e.length)return!0;const o=e[i];if(o.validateInput){const e=o.validateInput(o.getCellValue(n));return!0===e||!1===e?e:o.getCell(e)}return!0}),[e]);return{onCellEdited:u,onPaste:g,onRowAppended:m,onDelete:h,validateCell:p}};const rt=function(e,t){const[n,o]=i.useState(),r=i.useRef(null),l=i.useCallback((n=>{if(clearTimeout(r.current),r.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],l=n.location[1];let a;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,f.se)(s))a=s.help;else if("cell"===n.kind){const e=t([i,l]);s.isRequired&&s.isEditable&&A(e)?a="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(a=e.tooltip)}a&&(r.current=setTimeout((()=>{a&&o({content:a,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,r]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:l}};var lt=n(28873),at=n(70128),st=n(13914),dt=n(43301),ut=n(67338);const ct=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:r,rect:l}=t,a=t.col;if(A(i)&&a<e.length){const i=e[a];return["checkbox","line_chart","bar_chart","progress"].includes(i.kind)?n():(e=>{const{cell:t,theme:n,ctx:i}=e;(0,lt.lR)({...e,theme:{...n,textDark:n.textLight,headerFontFull:`${n.headerFontStyle} ${n.fontFamily}`,baseFontFull:`${n.baseFontStyle} ${n.fontFamily}`,markerFontFull:`${n.markerFontStyle} ${n.fontFamily}`},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign),i.fillStyle=n.textDark})(t),void(i.isRequired&&i.isEditable&&function(e,t,n){e.save(),e.beginPath(),e.moveTo(t.x+t.width-8,t.y+1),e.lineTo(t.x+t.width,t.y+1),e.lineTo(t.x+t.width,t.y+1+8),e.fillStyle=n.accentColor,e.fill(),e.restore()}(r,l,o))}n()}),[e]),customRenderers:i.useMemo((()=>[at.A,st.A,dt.A,ut.Ay,...Ie]),[])}};const mt=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,r)=>{e.id&&n(new Map(t).set(e.id,r))}),[t]);return{columns:i.useMemo((()=>e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e))),[e,t]),onColumnResize:o}},ht=2,gt=35,ft=50+ht,pt=2*gt+ht;const vt=function(e,t,n,o,r,l){let a=function(e){return Math.max(e*gt+ht,pt)}(t+(n?2:1)+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,pt),a=Math.max(e.height,a)),r&&(s=Math.min(s,r),a=Math.min(a,r),e.height||(s=a));const d=Math.max(o,ft);let u,c=d;e.useContainerWidth?u=d:e.width&&(u=Math.min(Math.max(e.width,ft),d),c=Math.min(Math.max(e.width,c),d));const[m,h]=i.useState({width:u||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===m.width&&h({width:d,height:m.height})}),[d]),i.useLayoutEffect((()=>{h({width:m.width,height:s})}),[t]),i.useLayoutEffect((()=>{h({width:u||"100%",height:m.height})}),[u]),i.useLayoutEffect((()=>{h({width:m.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(l){const t=e.useContainerWidth||(0,f.se)(e.width)&&e.width>0;h({width:t?c:"100%",height:a})}else h({width:u||"100%",height:s})}),[l]),{minHeight:pt,maxHeight:a,minWidth:ft,maxWidth:c,resizableSize:m,setResizableSize:h}};var bt=n(89653),yt=n(90782);const wt=(0,bt.A)("img",{target:"e24uaba0"})({name:"6eya2z",styles:"max-width:100%;max-height:37.5rem;object-fit:scale-down"}),xt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,yt.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,yt.jsx)(wt,{src:n})}):(0,yt.jsx)(wt,{src:n})};var Ct=n(3074),Mt=n(41639),St=n(4629),Et=n(88044),kt=n(16795);const Tt=function(e){let{top:t,left:n,content:o,clearTooltip:r}=e;const[l,a]=i.useState(!0),s=(0,J.u)(),{colors:d,fontSizes:u,radii:c,fontWeights:m}=s,h=i.useCallback((()=>{a(!1),r()}),[r,a]);return(0,yt.jsx)(Ct.A,{content:(0,yt.jsx)(Et.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,yt.jsx)(St.Ay,{style:{fontSize:u.sm},source:o,allowHTML:!1})}),placement:Mt.El.top,accessibilityType:Mt.IP.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:h,onEsc:h,overrides:{Body:{style:{borderTopLeftRadius:c.default,borderTopRightRadius:c.default,borderBottomLeftRadius:c.default,borderBottomRightRadius:c.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,kt.iq)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:u.sm,fontWeight:m.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:l,children:(0,yt.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},Rt=(0,bt.A)("div",{target:"e1w7nams0"})((e=>{let{hasCustomizedScrollbars:t,theme:n}=e;return{position:"relative",display:"inline-block","& .stDataFrameGlideDataEditor":{height:"100%",minWidth:"100%",borderRadius:n.radii.default},"& .dvn-scroller":{...!t&&{scrollbarWidth:"thin"},overflowX:"auto !important",overflowY:"auto !important"}}}),"");n(32595),n(1627);const Nt=(0,h.A)((function(e){let{element:t,data:n,width:h,height:b,disabled:y,widgetMgr:w,isFullScreen:x,disableFullscreenMode:C,expand:M,collapse:S,fragmentId:E}=e;const k=i.useRef(null),T=i.useRef(null),R=i.useRef(null),{theme:N,headerIcons:I,tableBorderRadius:_,tableBorderWidth:O}=Ve(),{libConfig:{enforceDownloadInNewTab:D=!1}}=i.useContext(v.n),[A,F]=i.useState(!0),[X,z]=i.useState(!1),[H,V]=i.useState(!1),[j,W]=i.useState(!1),B=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),Y=i.useMemo((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")||window.navigator.userAgent.includes("Chrome")),[]);(0,f.hX)(t.editingMode)&&(t.editingMode=g.i3.EditingMode.READ_ONLY);const{READ_ONLY:P,DYNAMIC:U}=g.i3.EditingMode,q=n.dimensions,J=Math.max(0,q.dataRows),G=0===J&&!(t.editingMode===U&&q.dataColumns>0),K=J>15e4,Z=i.useRef(new ze(J)),[Q,ee]=i.useState(Z.current.getNumRows());i.useEffect((()=>{Z.current=new ze(J),ee(Z.current.getNumRows())}),[J]);const te=i.useCallback((()=>{Z.current=new ze(J),ee(Z.current.getNumRows())}),[J]),{columns:ne}=Le(t,n,y);i.useEffect((()=>{if(t.editingMode===P)return;const e=w.getStringValue({id:t.id,formId:t.formId});e&&(Z.current.fromJson(e,ne),ee(Z.current.getNumRows()))}),[]);const{getCellContent:ie}=je(n,ne,Q,Z),{columns:oe,sortColumn:re,getOriginalIndex:le,getCellContent:ae}=Be(J,ne,ie),se=i.useCallback((0,f.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>le(e))),n.selection.columns=e.columns.toArray().map((e=>Xe(oe[e])));const i=JSON.stringify(n),o=w.getStringValue({id:t.id,formId:t.formId});void 0!==o&&o===i||w.setStringValue({id:t.id,formId:t.formId},i,{fromUi:!0},E)})),[t.id,t.formId,w,E,le,Xe]),{gridSelection:de,isRowSelectionActivated:ue,isMultiRowSelectionActivated:ce,isColumnSelectionActivated:me,isMultiColumnSelectionActivated:he,isRowSelected:ge,isColumnSelected:fe,isCellSelected:pe,clearSelection:ve,processSelectionChange:be}=Ue(t,G,y,oe,se);i.useEffect((()=>{ve(!0,!0)}),[x]);const ye=i.useCallback((e=>{var t;null===(t=T.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!ue&&!me)return;const e=w.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,r,l;const t=oe.map((e=>Xe(e))),a=JSON.parse(e);let s=o.I1.empty(),d=o.I1.empty();if(null===(n=a.selection)||void 0===n||null===(i=n.rows)||void 0===i||i.forEach((e=>{s=s.add(e)})),null===(r=a.selection)||void 0===r||null===(l=r.columns)||void 0===l||l.forEach((e=>{d=d.add(t.indexOf(e))})),s.length>0||d.length>0){be({rows:s,columns:d,current:void 0})}}}),[]);const we=i.useCallback((()=>{Q!==Z.current.getNumRows()&&ee(Z.current.getNumRows())}),[Q]),xe=i.useCallback((0,f.sg)(150,(()=>{const e=Z.current.toJson(oe);let n=w.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new ze(0).toJson([])),e!==n&&w.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},E)})),[t.id,t.formId,w,E,oe,Z.current]),{exportToCsv:Ce}=it(ae,oe,Q,D),{onCellEdited:Me,onPaste:Se,onRowAppended:Ee,onDelete:ke,validateCell:Te}=ot(oe,t.editingMode!==U,Z,ae,le,ye,we,xe,ve),{tooltip:Re,clearTooltip:Ne,onItemHovered:Ie}=rt(oe,ae),{drawCell:_e,customRenderers:Oe}=ct(oe),De=i.useMemo((()=>oe.map((e=>L(e)))),[oe]),{columns:Ae,onColumnResize:Fe}=mt(De),$e=n.columns.length>1,{minHeight:He,maxHeight:We,minWidth:Ye,maxWidth:Pe,resizableSize:qe,setResizableSize:Je}=vt(t,Q,$e,h,b,x),Ge=i.useCallback((e=>{let[t,n]=e;return{...$(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:N.textLight},span:[0,Math.max(oe.length-1,0)]}}),[oe,N.textLight]),Ke=i.useCallback((()=>{te(),ve()}),[te,ve]);(0,m.X)({element:t,widgetMgr:w,onFormCleared:Ke});const Ze=!G&&t.editingMode===U&&!y,Qe=G?0:oe.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(R.current&&T.current){var e,t;const n=null===(e=R.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(V(n.height>R.current.clientHeight),W(n.width>R.current.clientWidth))}}),1)}),[qe,Q,Ae]),(0,yt.jsxs)(Rt,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:Y,ref:R,onMouseDown:e=>{if(R.current&&Y){const t=R.current.getBoundingClientRect();j&&t.height-7<e.clientY-t.top&&e.stopPropagation(),H&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{A||B||e.currentTarget.contains(e.relatedTarget)||ve(!0,!0)},children:[(0,yt.jsxs)(p.A,{isFullScreen:x,disableFullscreenMode:C,locked:ge&&!ue||pe||B&&A,onExpand:M,onCollapse:S,target:Rt,children:[(ue&&ge||me&&fe)&&(0,yt.jsx)(p.K,{label:"Clear selection",icon:a.b,onClick:()=>{ve(),Ne()}}),Ze&&ge&&(0,yt.jsx)(p.K,{label:"Delete row(s)",icon:s.e,onClick:()=>{ke&&(ke(de),Ne())}}),Ze&&!ge&&(0,yt.jsx)(p.K,{label:"Add row",icon:d.O,onClick:()=>{Ee&&(F(!0),Ee(),Ne())}}),!K&&!G&&(0,yt.jsx)(p.K,{label:"Download as CSV",icon:u.n,onClick:()=>Ce()}),!G&&(0,yt.jsx)(p.K,{label:"Search",icon:c.v,onClick:()=>{X?z(!1):(F(!0),z(!0)),Ne()}})]}),(0,yt.jsx)(l.c,{"data-testid":"stDataFrameResizable",ref:k,defaultSize:qe,style:{border:`${O} solid ${N.borderColor}`,borderRadius:`${_}`},minHeight:He,maxHeight:We,minWidth:Ye,maxWidth:Pe,size:qe,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,gt],snapGap:gt/3,onResizeStop:(e,t,n,i)=>{k.current&&Je({width:k.current.size.width,height:We-k.current.size.height===ht?k.current.size.height+ht:k.current.size.height})},children:(0,yt.jsx)(r.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:T,columns:Ae,rows:G?1:Q,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:gt,headerHeight:gt,getCellContent:G?Ge:ae,onColumnResize:B?void 0:Fe,resizeIndicator:"header",freezeColumns:Qe,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:B?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Ie,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(z((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:X,onSearchClose:()=>{z(!1),Ne()},onHeaderClicked:(e,t)=>{G||K||me||(ue&&ge&&ve(),re(e))},gridSelection:de,onGridSelectionChange:e=>{(A||B)&&(be(e),void 0!==Re&&Ne())},theme:N,onMouseMove:e=>{"out-of-bounds"===e.kind&&A?F(!1):"out-of-bounds"===e.kind||A||F(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...Y&&{paddingBottom:j?-6:void 0,paddingRight:H?-6:void 0}},drawCell:_e,customRenderers:Oe,imageEditorOverride:xt,headerIcons:I,validateCell:Te,onPaste:!1,...ue&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:N.bgHeader,bgCellMedium:N.bgHeader}},rowSelectionMode:ce?"multi":"auto",rowSelect:y?"none":ce?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...me&&{columnSelect:y?"none":he?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!G&&t.editingMode!==P&&!y&&{fillHandle:!B,onCellEdited:Me,onPaste:Se,onDelete:ke},...!G&&t.editingMode===U&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:N.bgHeader,bgCellMedium:N.bgHeader}},rowSelectionMode:"multi",rowSelect:y?"none":"multi",onRowAppended:y?void 0:Ee,onHeaderClicked:void 0}})}),Re&&Re.content&&(0,yt.jsx)(Tt,{top:Re.top,left:Re.left,content:Re.content,clearTooltip:Ne})]})}),!0)},34752:(e,t,n)=>{n.d(t,{X:()=>l,o:()=>r});var i=n(58878),o=n(25571);class r{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function l(e){let{element:t,widgetMgr:n,onFormCleared:r}=e;(0,i.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=n.addFormClearedListener(t.formId,r);return()=>{e.disconnect()}}),[t,n,r])}},55562:(e,t,n)=>{n.d(t,{A:()=>i});const i=e=>{let{enforceDownloadInNewTab:t,url:n,filename:i}=e;const o=document.createElement("a");return o.setAttribute("href",n),t?o.setAttribute("target","_blank"):o.setAttribute("target","_self"),o.setAttribute("download",i),o}}}]);
|