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
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[783],{69419:(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:()=>or});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";function z(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 J(t,e){return t%60===0?(t>0?"-":"+")+F(Math.abs(t)/60,2):V(t,e)}function V(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 K={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 J(a);case"XXXX":case"XX":return V(a);default:return V(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return J(a);case"xxxx":case"xx":return V(a);default:return V(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z(a,":");default:return"GMT"+V(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z(a,":");default:return"GMT"+V(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)}};var $=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"})}},Z=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"})}};const tt={p:Z,P:function(t,e){var r,n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return $(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}}",$(a,e)).replace("{{time}}",Z(o,e))}};var et=["D","DD"],rt=["YY","YYYY"];function nt(t){return-1!==et.indexOf(t)}function at(t){return-1!==rt.indexOf(t)}function ot(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 it=r(70786);const ut=it.A;var st=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ct=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lt=/^'([^]*?)'?$/,dt=/''/g,ft=/[a-zA-Z]/;function ht(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:ut,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(ct).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,tt[e])(t,S.formatLong):t})).join("").match(st).map((function(n){if("''"===n)return"'";var a=n[0];if("'"===a)return function(t){var e=t.match(lt);if(!e)return t;return e[1].replace(dt,"'")}(n);var o=K[a];if(o)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!at(n)||ot(n,e,String(t)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!nt(n)||ot(n,e,String(t)),o(H,n,S.localize,N);if(a.match(ft))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n})).join("")}function vt(t,e){o(2,arguments);var r=i(t),n=i(e);return r.getTime()>n.getTime()}function pt(t,e){o(2,arguments);var r=i(t),n=i(e);return r.getTime()<n.getTime()}function mt(t){o(1,arguments);var e=i(t);return e.setMinutes(0,0,0),e}var yt=r(16438);function gt(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=(0,yt.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 wt(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 bt=r(72367),At=r(50171),Tt=r(38235),Mt=r(92099),kt=r(48183),Dt=r(41705),Ct=function(){function t(){(0,Mt.A)(this,t),(0,Dt.A)(this,"priority",void 0),(0,Dt.A)(this,"subPriority",0)}return(0,kt.A)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),xt=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(t,n,a,o,i){var u;return(0,Mt.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,kt.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}(Ct),St=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",10),(0,Dt.A)((0,bt.A)(t),"subPriority",-1),t}return(0,kt.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}(Ct),Ot=function(){function t(){(0,Mt.A)(this,t),(0,Dt.A)(this,"incompatibleTokens",void 0),(0,Dt.A)(this,"priority",void 0),(0,Dt.A)(this,"subPriority",void 0)}return(0,kt.A)(t,[{key:"run",value:function(t,e,r,n){var a=this.parse(t,e,r,n);return a?{setter:new xt(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(t,e,r){return!0}}]),t}(),Pt=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",140),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["R","u","t","T"]),t}return(0,kt.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}(Ot),Et=/^(1[0-2]|0?\d)/,Ut=/^(3[0-1]|[0-2]?\d)/,Yt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ht=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Wt=/^(2[0-4]|[0-1]?\d)/,Lt=/^(1[0-1]|0?\d)/,qt=/^(1[0-2]|0?\d)/,jt=/^[0-5]?\d/,Ft=/^[0-5]?\d/,Rt=/^\d/,It=/^\d{1,2}/,Qt=/^\d{1,3}/,Bt=/^\d{1,4}/,Gt=/^-?\d+/,Xt=/^-?\d/,_t=/^-?\d{1,2}/,zt=/^-?\d{1,3}/,Jt=/^-?\d{1,4}/,Vt=/^([+-])(\d{2})(\d{2})?|Z/,Kt=/^([+-])(\d{2})(\d{2})|Z/,$t=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Zt=/^([+-])(\d{2}):(\d{2})|Z/,te=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(t,e){return t?{value:e(t.value),rest:t.rest}:t}function re(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function ne(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 ae(t){return re(Gt,t)}function oe(t,e){switch(t){case 1:return re(Rt,e);case 2:return re(It,e);case 3:return re(Qt,e);case 4:return re(Bt,e);default:return re(new RegExp("^\\d{1,"+t+"}"),e)}}function ie(t,e){switch(t){case 1:return re(Xt,e);case 2:return re(_t,e);case 3:return re(zt,e);case 4:return re(Jt,e);default:return re(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ue(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(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 ce(t){return t%400===0||t%4===0&&t%100!==0}var le=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",130),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ee(oe(4,t),n);case"yo":return ee(r.ordinalNumber(t,{unit:"year"}),n);default:return ee(oe(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=se(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}(Ot),de=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",130),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ee(oe(4,t),n);case"Yo":return ee(r.ordinalNumber(t,{unit:"year"}),n);default:return ee(oe(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=se(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}(Ot),fe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",130),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e){return ie("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}(Ot),he=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",130),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e){return ie("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}(Ot),ve=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",120),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return oe(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}(Ot),pe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",120),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return oe(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}(Ot),me=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,Dt.A)((0,bt.A)(t),"priority",110),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return ee(re(Et,t),n);case"MM":return ee(oe(2,t),n);case"Mo":return ee(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}(Ot),ye=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",110),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return ee(re(Et,t),n);case"LL":return ee(oe(2,t),n);case"Lo":return ee(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}(Ot);var ge=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",100),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"w":return re(Ht,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return oe(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}(Ot);var we=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",100),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"I":return re(Ht,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return oe(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}(Ot),be=[31,28,31,30,31,30,31,31,30,31,30,31],Ae=[31,29,31,30,31,30,31,31,30,31,30,31],Te=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"subPriority",1),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"d":return re(Ut,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return oe(e.length,t)}}},{key:"validate",value:function(t,e){var r=ce(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=Ae[n]:e>=1&&e<=be[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),r}(Ot),Me=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"subpriority",1),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return re(Yt,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return oe(e.length,t)}}},{key:"validate",value:function(t,e){return ce(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}(Ot);function ke(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 De=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return(0,kt.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=ke(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(Ot),Ce=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return(0,kt.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 ee(oe(e.length,t),a);case"eo":return ee(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=ke(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(Ot),xe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return(0,kt.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 ee(oe(e.length,t),a);case"co":return ee(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=ke(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(Ot);var Se=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",90),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return(0,kt.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 oe(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return ee(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 ee(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return ee(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return ee(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}(Ot),Oe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",80),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return(0,kt.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(ue(r),0,0,0),t}}]),r}(Ot),Pe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",80),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return(0,kt.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(ue(r),0,0,0),t}}]),r}(Ot),Ee=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",80),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["a","b","t","T"]),t}return(0,kt.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(ue(r),0,0,0),t}}]),r}(Ot),Ue=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",70),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"h":return re(qt,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return oe(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}(Ot),Ye=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",70),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"H":return re(Nt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return oe(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}(Ot),He=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",70),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"K":return re(Lt,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return oe(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}(Ot),Ne=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",70),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"k":return re(Wt,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return oe(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}(Ot),We=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",60),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"m":return re(jt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return oe(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}(Ot),Le=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",50),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e,r){switch(e){case"s":return re(Ft,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return oe(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}(Ot),qe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",30),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["t","T"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e){return ee(oe(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}(Ot),je=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",10),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["t","T","x"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e){switch(e){case"X":return ne(Vt,t);case"XX":return ne(Kt,t);case"XXXX":return ne($t,t);case"XXXXX":return ne(te,t);default:return ne(Zt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(Ot),Fe=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",10),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens",["t","T","X"]),t}return(0,kt.A)(r,[{key:"parse",value:function(t,e){switch(e){case"x":return ne(Vt,t);case"xx":return ne(Kt,t);case"xxxx":return ne($t,t);case"xxxxx":return ne(te,t);default:return ne(Zt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(Ot),Re=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",40),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens","*"),t}return(0,kt.A)(r,[{key:"parse",value:function(t){return ae(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),r}(Ot),Ie=function(t){(0,At.A)(r,t);var e=(0,Tt.A)(r);function r(){var t;(0,Mt.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,Dt.A)((0,bt.A)(t),"priority",20),(0,Dt.A)((0,bt.A)(t),"incompatibleTokens","*"),t}return(0,kt.A)(r,[{key:"parse",value:function(t){return ae(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),r}(Ot),Qe={G:new Pt,y:new le,Y:new de,R:new fe,u:new he,Q:new ve,q:new pe,M:new me,L:new ye,w:new ge,I:new we,d:new Te,D:new Me,E:new De,e:new Ce,c:new xe,i:new Se,a:new Oe,b:new Pe,B:new Ee,h:new Ue,H:new Ye,K:new He,k:new Ne,m:new We,s:new Le,S:new qe,X:new je,x:new Fe,t:new Re,T:new Ie},Be=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xe=/^'([^]*?)'?$/,_e=/''/g,ze=/\S/,Je=/[a-zA-Z]/;function Ve(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:ut;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 St],q=O.match(Ge).map((function(t){var e=t[0];return e in tt?(0,tt[e])(t,U.formatLong):t})).join("").match(Be),j=[],F=gt(q);try{var R=function(){var e=N.value;null!==u&&void 0!==u&&u.useAdditionalWeekYearTokens||!at(e)||ot(e,O,t),null!==u&&void 0!==u&&u.useAdditionalDayOfYearTokens||!nt(e)||ot(e,O,t);var r=e[0],n=Qe[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(Je))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=e.match(Xe)[1].replace(_e,"'")),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&&ze.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=gt(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],wt(_,V[1])):X=V}}catch(K){z.e(K)}finally{z.f()}return X}function Ke(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 $e(t){o(1,arguments);var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Ze(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 tr(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 er=r(22926),rr=r.n(er),nr={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"},ar=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({},nr,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||it.A;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,rr()[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 vt(t,e)},t.prototype.isBefore=function(t,e){return pt(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=mt(t),n=mt(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return $e(t)},t.prototype.endOfMonth=function(t){return v(t)},t.prototype.startOfWeek=function(t){return Ze(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:Ve(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 ht(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 vt(t,h(e))},t.prototype.isBeforeDay=function(t,e){return pt(t,b(e))},t.prototype.isBeforeYear=function(t,e){return pt(t,tr(e))},t.prototype.isAfterYear=function(t,e){return vt(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 Ke(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=Ke(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=[tr(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:Ze(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=Ze($e(t),{locale:this.locale}),r=S(v(t),{locale:this.locale}),n=0,a=e,o=[];pt(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=tr(t),n=O(e),a=[],o=r;pt(o,n);)a.push(o),o=l(o,1);return a},t}();const or=new ar({})},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(69419);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},70786:(t,e,r)=>{r.d(e,{A:()=>d});var n={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 a=function(t,e,r){var a,o=n[t];return a="string"===typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function o(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 i={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({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:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(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 c(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 l;const d={code:"en-US",formatDistance:a,formatLong:i,formatRelative:function(t,e,r,n){return u[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:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({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:s({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:s({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:s({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:(l={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(l.matchPattern);if(!r)return null;var n=r[0],a=t.match(l.parsePattern);if(!a)return null;var o=l.valueCallback?l.valueCallback(a[0]):a[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(n.length)}}),era:c({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:c({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:c({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:c({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:c({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}}},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)}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8148],{67163:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var n=i(58878),a=i(68262),s=i(13170),r=i(84996),h=i(6244),o=i(70691),l=i(4494),d=i(59323),c=i(75760);const u=(0,i(89653).A)("div",{target:"e1uym6o70"})((e=>{let{theme:t,isFullScreen:i}=e;return{"& *":{fontFamily:t.genericFonts.bodyFont,fontSize:`calc(${t.fontSizes.twoSm} * 0.8)`},"& svg":{maxWidth:"100%",width:i?"100%":"auto",height:i?"100%":"auto"},width:i?"100%":"auto",height:i?"100%":"auto"}}),"");var p=i(90782);const g=(0,c.A)((function(e){let{element:t,disableFullscreenMode:i}=e;const c=`st-graphviz-chart-${t.elementId}`,{expanded:g,width:m,height:f,expand:v,collapse:x}=(0,d.i)(l.T);return(0,n.useEffect)((()=>{try{if((0,s.graphviz)(`#${c}`).zoom(!1).fit(!0).scale(1).engine(t.engine).renderDot(t.spec),g||t.useContainerWidth){const e=(0,a.Ltv)(`#${c} > svg`).node();e.removeAttribute("width"),e.removeAttribute("height")}}catch(e){(0,r.vV)(e)}}),[c,t.engine,t.spec,t.useContainerWidth,g]),(0,p.jsxs)(h.mx,{width:m,height:f,useContainerWidth:g,children:[(0,p.jsx)(o.A,{target:h.mx,isFullScreen:g,onExpand:v,onCollapse:x,disableFullscreenMode:i}),(0,p.jsx)(u,{className:"stGraphVizChart","data-testid":"stGraphVizChart",id:c,isFullScreen:g})]})}))},34654:()=>{},7908:()=>{},62292:()=>{}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8237],{78237:(e,l,o)=>{o.r(l),o.d(l,{default:()=>F});var t=o(58878),r=o(8151),n=o(43978),i=o(29669),c=o(25571),a=o(34752),s=o(4494),d=o(59323),u=o(75760),p=o(37638),f=o.n(p),m=o(16795),g=o(58144),h=o(67253),y=o(84996);function A(e,l,o){return e=function(e,l){return(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("#000032",(0,m.$E)(l))).replaceAll("#000033",(0,m.pf)(l))).replaceAll("#000034",(0,m.h7)(l))).replaceAll("#000035",(0,m.V9)(l))).replaceAll("#000036",(0,m.lH)(l))).replaceAll("#000037",(0,m.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",n="#000003",i="#000004",c="#000005",a="#000006",s="#000007",d="#000008",u="#000009",p="#000010";if("streamlit"===o){const o=(0,m.c6)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(n,o[2])).replaceAll(i,o[3])).replaceAll(c,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(u,o[8])).replaceAll(p,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#636efa")).replaceAll(r,"#EF553B")).replaceAll(n,"#00cc96")).replaceAll(i,"#ab63fa")).replaceAll(c,"#FFA15A")).replaceAll(a,"#19d3f3")).replaceAll(s,"#FF6692")).replaceAll(d,"#B6E880")).replaceAll(u,"#FF97FF")).replaceAll(p,"#FECB52");return e}(e,l,o),e=function(e,l,o){const t="#000011",r="#000012",n="#000013",i="#000014",c="#000015",a="#000016",s="#000017",d="#000018",u="#000019",p="#000020";if("streamlit"===o){const o=(0,m.rp)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(n,o[2])).replaceAll(i,o[3])).replaceAll(c,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(u,o[8])).replaceAll(p,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#0d0887")).replaceAll(r,"#46039f")).replaceAll(n,"#7201a8")).replaceAll(i,"#9c179e")).replaceAll(c,"#bd3786")).replaceAll(a,"#d8576b")).replaceAll(s,"#ed7953")).replaceAll(d,"#fb9f3a")).replaceAll(u,"#fdca26")).replaceAll(p,"#f0f921");return e}(e,l,o),e=function(e,l,o){const t="#000021",r="#000022",n="#000023",i="#000024",c="#000025",a="#000026",s="#000027",d="#000028",u="#000029",p="#000030",f="#000031";if("streamlit"===o){const o=(0,m.vk)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(r,o[1])).replaceAll(n,o[2])).replaceAll(i,o[3])).replaceAll(c,o[4])).replaceAll(a,o[5])).replaceAll(s,o[6])).replaceAll(d,o[7])).replaceAll(u,o[8])).replaceAll(p,o[9])).replaceAll(f,o[10])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#8e0152")).replaceAll(r,"#c51b7d")).replaceAll(n,"#de77ae")).replaceAll(i,"#f1b6da")).replaceAll(c,"#fde0ef")).replaceAll(a,"#f7f7f7")).replaceAll(s,"#e6f5d0")).replaceAll(d,"#b8e186")).replaceAll(u,"#7fbc41")).replaceAll(p,"#4d9221")).replaceAll(f,"#276419");return e}(e,l,o),e}function v(e,l){try{!function(e,l){const{genericFonts:o,colors:t,fontSizes:r}=l,n={font:{color:(0,m.lH)(l),family:o.bodyFont,size:r.twoSmPx},title:{color:t.headingColor,subtitleColor:t.bodyText,font:{family:o.headingFont,size:(0,g.BY)(r.md),color:t.headingColor},pad:{l:(0,g.BY)(l.spacing.twoXS)},xanchor:"left",x:0},legend:{title:{font:{size:r.twoSmPx,color:(0,m.lH)(l)},side:"top"},valign:"top",bordercolor:t.transparent,borderwidth:0,font:{size:r.twoSmPx,color:(0,m.ZA)(l)}},paper_bgcolor:t.bgColor,plot_bgcolor:t.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,m.V9)(l),title:{font:{color:(0,m.lH)(l),size:r.smPx},standoff:(0,g.BY)(l.spacing.twoXL)},tickcolor:(0,m.V9)(l),tickfont:{color:(0,m.lH)(l),size:r.twoSmPx},gridcolor:(0,m.V9)(l),minor:{gridcolor:(0,m.V9)(l)},automargin:!0},xaxis:{zerolinecolor:(0,m.V9)(l),gridcolor:(0,m.V9)(l),showgrid:!1,tickfont:{color:(0,m.lH)(l),size:r.twoSmPx},tickcolor:(0,m.V9)(l),title:{font:{color:(0,m.lH)(l),size:r.smPx},standoff:(0,g.BY)(l.spacing.xl)},minor:{gridcolor:(0,m.V9)(l)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:t.bgColor,bordercolor:(0,m.V9)(l),borderwidth:1,x:0}},margin:{pad:(0,g.BY)(l.spacing.sm),r:0,l:0},hoverlabel:{bgcolor:t.bgColor,bordercolor:t.borderColor,font:{color:(0,m.lH)(l),family:o.bodyFont,size:r.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:(0,g.BY)(l.spacing.twoXL),ticklabelposition:"outside",outlinecolor:t.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,m.lH)(l),size:r.smPx}},tickfont:{color:(0,m.lH)(l),size:r.twoSmPx}}},ternary:{gridcolor:(0,m.lH)(l),bgcolor:t.bgColor,title:{font:{family:o.bodyFont,size:r.smPx}},color:(0,m.lH)(l),aaxis:{gridcolor:(0,m.lH)(l),linecolor:(0,m.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}},baxis:{linecolor:(0,m.lH)(l),gridcolor:(0,m.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}},caxis:{linecolor:(0,m.lH)(l),gridcolor:(0,m.lH)(l),tickfont:{family:o.bodyFont,size:r.twoSmPx}}}};f()(e,n)}(e.layout.template.layout,l)}catch(o){const e=(0,h.$)(o);(0,y.vV)(e)}"title"in e.layout&&(e.layout.title=f()(e.layout.title,{text:`<b>${e.layout.title.text}</b>`}))}var x=o(90782);const b={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"},w={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 C(e,l,o){const t=JSON.parse(A(JSON.stringify(e),o,l));return"streamlit"===l?v(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:[]}},n=new Set,a=[],s=[],d=[],{selections:u,points:p}=e;if(p&&p.forEach((function(e){d.push({...e,legendgroup:e.data.legendgroup||void 0,data:void 0,fullData:void 0}),(0,c.se)(e.pointIndex)&&n.add(e.pointIndex),(0,c.se)(e.pointIndices)&&e.pointIndices.length>0&&e.pointIndices.forEach((e=>n.add(e)))})),u&&u.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};a.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(n),r.selection.points=d.map((e=>(0,c.wJ)(e))),r.selection.box=a,r.selection.lasso=s,r.selection.box.length>0&&!o.selectionMode.includes(i.P_.SelectionMode.BOX))return;if(r.selection.lasso.length>0&&!o.selectionMode.includes(i.P_.SelectionMode.LASSO))return;const f=l.getStringValue(o),m=JSON.stringify(r);f!==m&&l.setStringValue(o,m,{fromUi:!0},t)}const F=(0,u.A)((function(e){var l,o,c,u,p;let{element:f,widgetMgr:m,disabled:g,fragmentId:h,disableFullscreenMode:y}=e;const A=(0,r.u)(),{expanded:v,width:F,height:k,expand:z,collapse:M}=(0,d.i)(s.T),H=(0,t.useMemo)((()=>f.spec?JSON.parse(f.spec):{layout:{},data:[],frames:void 0}),[f.id,f.spec]),[_,E]=(0,t.useState)((()=>{const e=m.getElementState(f.id,"figure");return e||C(H,f.theme,A)})),P=f.selectionMode.length>0&&!g,V=P&&f.selectionMode.includes(i.P_.SelectionMode.LASSO),I=P&&f.selectionMode.includes(i.P_.SelectionMode.BOX),B=P&&f.selectionMode.includes(i.P_.SelectionMode.POINTS),L=(0,t.useMemo)((()=>{if(!f.config)return{};const e=JSON.parse(f.config);var l;y||(e.modeBarButtonsToAdd=[{name:v?"Close fullscreen":"Fullscreen",icon:v?w:b,click:()=>{v&&M?M():z&&z()}},...null!==(l=e.modeBarButtonsToAdd)&&void 0!==l?l:[]]);if(!e.modeBarButtonsToRemove){e.displaylogo=!1;const l=["sendDataToCloud"];P?(V||l.push("lasso2d"),I||l.push("select2d")):l.push("lasso2d","select2d"),e.modeBarButtonsToRemove=l}return e}),[f.id,f.config,v,y,P,V,I,M,z]);(0,t.useEffect)((()=>{E((e=>C(e,f.theme,A)))}),[f.id,A,f.theme]),(0,t.useEffect)((()=>{let e=H.layout.clickmode,l=H.layout.hovermode,o=H.layout.dragmode;g?(e="none",o="pan"):P&&(H.layout.clickmode||(e=B?"event+select":"none"),H.layout.hovermode||(l="closest"),H.layout.dragmode||(o=B?"pan":I?"select":V?"lasso":"pan")),E((t=>t.layout.clickmode===e&&t.layout.hovermode===l&&t.layout.dragmode===o?t:{...t,layout:{...t.layout,clickmode:e,hovermode:l,dragmode:o}}))}),[f.id,P,B,I,V,g]);let T=-1===F?null===(l=_.layout)||void 0===l?void 0:l.width:Math.max(f.useContainerWidth?F:Math.min(null!==(o=H.layout.width)&&void 0!==o?o:F,F),150),N=H.layout.height;v&&(T=F,N=k),_.layout.height===N&&_.layout.width===T||E((e=>({...e,layout:{...e.layout,height:N,width:T}})));const O=(0,t.useCallback)((e=>{S(e,m,f,h)}),[f.id,m,h]),W=(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,f,h),e&&setTimeout((()=>{E((e=>({...e,data:e.data.map((e=>({...e,selectedpoints:null}))),layout:{...e.layout,selections:[]}})))}),50)}),[f.id,m,h]);return(0,t.useEffect)((()=>{if(!f.formId||!P)return;const e=new a.o;return e.manageFormClearListener(m,f.formId,W),()=>{e.disconnect()}}),[f.formId,m,P,W]),(0,t.useEffect)((()=>{var e,l,o;if(!P)return;let t;t="select"===(null===(e=_.layout)||void 0===e?void 0:e.dragmode)||"lasso"===(null===(l=_.layout)||void 0===l?void 0:l.dragmode)?"event":B?"event+select":"none",(null===(o=_.layout)||void 0===o?void 0:o.clickmode)!==t&&E((e=>({...e,layout:{...e.layout,clickmode:t}})))}),[null===(c=_.layout)||void 0===c?void 0:c.dragmode]),(0,x.jsx)("div",{className:"stPlotlyChart","data-testid":"stPlotlyChart",children:(0,x.jsx)(n.A,{data:_.data,layout:_.layout,config:L,frames:null!==(u=_.frames)&&void 0!==u?u:void 0,style:{visibility:void 0===(null===(p=_.layout)||void 0===p?void 0:p.width)?"hidden":void 0},onSelected:P?O:()=>{},onDoubleClick:P?()=>W():void 0,onDeselect:P?()=>{W(!1)}:void 0,onInitialized:e=>{m.setElementState(f.id,"figure",e)},onUpdate:e=>{m.setElementState(f.id,"figure",e),E(e)}},v?"fullscreen":"original")})}))},4494:(e,l,o)=>{o.d(l,{T:()=>t});const t=(0,o(58878).createContext)(null);t.displayName="ElementFullscreenContext"},75760:(e,l,o)=>{o.d(l,{A:()=>m});var t=o(58878),r=o(53124),n=o.n(r),i=o(8151);const c=(0,o(89653).A)("div",{target:"elp1w7k0"})((e=>{let{theme:l,isExpanded:o}=e;return{...o?{position:"fixed",top:0,left:0,bottom:0,right:0,background:l.colors.bgColor,zIndex:l.zIndices.fullscreenWrapper,padding:l.spacing.md,paddingTop:l.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var a=o(4494),s=o(84152),d=o(19342),u=o(59323);var p=o(90782);const f=e=>{let{children:l,height:o,width:r}=e;const n=(0,i.u)(),{expanded:f,fullHeight:m,fullWidth:g,zoomIn:h,zoomOut:y}=(()=>{const{setFullScreen:e}=(0,t.useContext)(s.n),[l,o]=(0,t.useState)(!1),{fullHeight:r,fullWidth:n}=(0,u.i)(d.j),i=(0,t.useCallback)((l=>{o(l),e(l)}),[e]),c=(0,t.useCallback)((()=>{document.body.style.overflow="hidden",i(!0)}),[i]),a=(0,t.useCallback)((()=>{document.body.style.overflow="unset",i(!1)}),[i]),p=(0,t.useCallback)((e=>{27===e.keyCode&&l&&a()}),[a,l]);return(0,t.useEffect)((()=>(document.addEventListener("keydown",p,!1),()=>{document.removeEventListener("keydown",p,!1)})),[p]),(0,t.useMemo)((()=>({expanded:l,zoomIn:c,zoomOut:a,fullHeight:r,fullWidth:n})),[l,c,a,r,n])})(),A=(0,t.useMemo)((()=>({width:f?g:r,height:f?m:o,expanded:f,expand:h,collapse:y})),[f,m,g,o,r,h,y]);return(0,p.jsx)(a.T.Provider,{value:A,children:(0,p.jsx)(c,{isExpanded:f,"data-testid":"stFullScreenFrame",theme:n,children:l})})};const m=function(e){const l=l=>(0,p.jsx)(f,{width:l.width,children:(0,p.jsx)(e,{...l})});return l.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,n()(l,e)}},34752:(e,l,o)=>{o.d(l,{X:()=>i,o:()=>n});var t=o(58878),r=o(25571);class n{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 i(e){let{element:l,widgetMgr:o,onFormCleared:n}=e;(0,t.useEffect)((()=>{if(!(0,r._L)(l.formId))return;const e=o.addFormClearedListener(l.formId,n);return()=>{e.disconnect()}}),[l,o,n])}},59323:(e,l,o)=>{o.d(l,{i:()=>r});var t=o(58878);const r=e=>{const l=(0,t.useContext)(e);var o;if(null===l||void 0===l)throw new Error(`useRequiredContext: ${null!==(o=e.displayName)&&void 0!==o?o:"context"} not found`);return l}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8380],{4494:(e,t,n)=>{n.d(t,{T:()=>o});const o=(0,n(58878).createContext)(null);o.displayName="ElementFullscreenContext"},75760:(e,t,n)=>{n.d(t,{A:()=>m});var o=n(58878),l=n(53124),i=n.n(l),s=n(8151);const a=(0,n(89653).A)("div",{target:"elp1w7k0"})((e=>{let{theme:t,isExpanded:n}=e;return{...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var r=n(4494),d=n(84152),c=n(19342),u=n(59323);var p=n(90782);const h=e=>{let{children:t,height:n,width:l}=e;const i=(0,s.u)(),{expanded:h,fullHeight:m,fullWidth:x,zoomIn:f,zoomOut:g}=(()=>{const{setFullScreen:e}=(0,o.useContext)(d.n),[t,n]=(0,o.useState)(!1),{fullHeight:l,fullWidth:i}=(0,u.i)(c.j),s=(0,o.useCallback)((t=>{n(t),e(t)}),[e]),a=(0,o.useCallback)((()=>{document.body.style.overflow="hidden",s(!0)}),[s]),r=(0,o.useCallback)((()=>{document.body.style.overflow="unset",s(!1)}),[s]),p=(0,o.useCallback)((e=>{27===e.keyCode&&t&&r()}),[r,t]);return(0,o.useEffect)((()=>(document.addEventListener("keydown",p,!1),()=>{document.removeEventListener("keydown",p,!1)})),[p]),(0,o.useMemo)((()=>({expanded:t,zoomIn:a,zoomOut:r,fullHeight:l,fullWidth:i})),[t,a,r,l,i])})(),b=(0,o.useMemo)((()=>({width:h?x:l,height:h?m:n,expanded:h,expand:f,collapse:g})),[h,m,x,n,l,f,g]);return(0,p.jsx)(r.T.Provider,{value:b,children:(0,p.jsx)(a,{isExpanded:h,"data-testid":"stFullScreenFrame",theme:i,children:t})})};const m=function(e){const t=t=>(0,p.jsx)(h,{width:t.width,children:(0,p.jsx)(e,{...t})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,i()(t,e)}},70691:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>h});n(58878);var o=n(8151),l=n(12274),i=n(63186),s=n(4629),a=n(997),r=n(36459),d=n(84720),c=n(64611),u=n(6244),p=n(90782);function h(e){let{label:t,show_label:n,icon:l,onClick:i}=e;const u=(0,o.u)(),h=n?t:"";return(0,p.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,p.jsx)(a.A,{content:(0,p.jsx)(s.Ay,{source:t,allowHTML:!1,style:{fontSize:u.fontSizes.sm}}),placement:a.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,p.jsxs)(r.Ay,{onClick:e=>{i&&i(),e.stopPropagation()},kind:d.KX.ELEMENT_TOOLBAR,"aria-label":t,children:[l&&(0,p.jsx)(c.A,{content:l,size:"md",testid:"stElementToolbarButtonIcon"}),h&&(0,p.jsx)("span",{children:h})]})})})}const m=e=>{let{onExpand:t,onCollapse:n,isFullScreen:o,locked:s,children:a,target:r,disableFullscreenMode:d}=e;return(0,p.jsx)(u.Sq,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:s||o,target:r,children:(0,p.jsxs)(u.x8,{children:[a,t&&!d&&!o&&(0,p.jsx)(h,{label:"Fullscreen",icon:l.g,onClick:()=>t()}),n&&!d&&o&&(0,p.jsx)(h,{label:"Close fullscreen",icon:i.Q,onClick:()=>n()})]})})}},6244:(e,t,n)=>{n.d(t,{Sq:()=>s,mx:()=>r,x8:()=>a});var o=n(89653),l=n(16795);const i="-2.4rem",s=(0,o.A)("div",{target:"e2wxzia2"})((e=>{let{theme:t,locked:n,target:o}=e;return{padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:n?i:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:i},...o&&{[`${o}:hover &, ${o}:active &, ${o}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:i}}}}}),""),a=(0,o.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t}=e;return{color:(0,l.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}}),""),r=(0,o.A)("div",{target:"e2wxzia0"})((e=>{let{width:t,height:n,useContainerWidth:o}=e;return{position:"relative",height:o?n:"fit-content",width:o?t:"fit-content",maxWidth:"100%"}}),"")},59323:(e,t,n)=>{n.d(t,{i:()=>l});var o=n(58878);const l=e=>{const t=(0,o.useContext)(e);var n;if(null===t||void 0===t)throw new Error(`useRequiredContext: ${null!==(n=e.displayName)&&void 0!==n?n:"context"} not found`);return t}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8460],{78460:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});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),p=i(67253),m=i(34752),u=i(6244),f=i(70691),b=i(4494),v=i(59323),w=i(75760),y=i(85729);const S={DATAFRAME_INDEX:"(index)"},x=new Set([y.sj.DatetimeIndex,y.sj.Float64Index,y.sj.Int64Index,y.sj.RangeIndex,y.sj.UInt64Index]);function F(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 C(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=y.D0.getTypeName(e.types.index[0]),s=x.has(a);for(let r=t;r<o;r++){const t={};if(s){const i=e.getIndexValue(r,0);t[S.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=y.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 z=i(37638),W=i.n(z),V=i(42274),k=i.n(V),T=i(16795),D=i(58144);function I(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,T.lH)(t),titleFontStyle:"normal",labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,T.lH)(t),labelFontStyle:"normal"},axis:{labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,T.lH)(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.smPx,titleColor:(0,T.lH)(t),titleFontStyle:"normal",ticks:!1,gridColor:(0,T.V9)(t),domain:!1,domainWidth:1,domainColor:(0,T.V9)(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:(0,D.BY)(t.spacing.lg),labelPadding:(0,D.BY)(t.spacing.lg),labelSeparation:(0,D.BY)(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:t.fontSizes.smPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,T.lH)(t),titleFontSize:t.fontSizes.smPx,titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:(0,T.lH)(t),titlePadding:5,labelPadding:(0,D.BY)(t.spacing.lg),columnPadding:(0,D.BY)(t.spacing.sm),rowPadding:(0,D.BY)(t.spacing.twoXS),padding:7,symbolStrokeWidth:4},range:{category:(0,T.c6)(t),diverging:(0,T.vk)(t),ramp:(0,T.rp)(t),heatmap:(0,T.rp)(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,color:(0,T.h7)(t)},bar:{binSpacing:(0,D.BY)(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?k()({},i,e,((e,t)=>Array.isArray(t)?t:void 0)):i}var M=i(89653),N=i(32735);const O=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,N.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"}}}}}),P=(0,M.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 L=i(90782);const A="source";class E extends o.PureComponent{constructor(){super(...arguments),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=A,this.element=null,this.formClearHelper=new m.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=I(r.config,o):"streamlit"===(null===(e=r.usermeta)||void 0===e||null===(t=e.embedOptions)||void 0===t?void 0:t.theme)?(r.config=I(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,T.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,T.V9)(t),continuousHeight:350,continuousWidth:400},mark:{tooltip:!0}};return e?W()({},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=F(t)||{},h=F(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,C(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,C(i)),(0,g.OG)(`Had to clear the ${e} dataset before inserting data through Vega view.`)):o<a&&this.vegaView.insert(e,C(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=F(e);if((0,h.hX)(t))return null;const i={};for(const[o,n]of Object.entries(t))i[o]=C(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=A);const c=function(e){const t=e.data;return t&&0!==t.data.numRows?C(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,L.jsxs)(u.mx,{width:this.props.width,height:this.props.height,useContainerWidth:this.props.element.useContainerWidth,children:[(0,L.jsx)(f.A,{target:u.mx,isFullScreen:this.props.isFullScreen,onExpand:this.props.expand,onCollapse:this.props.collapse,disableFullscreenMode:this.props.disableFullscreenMode}),(0,L.jsx)(n.mL,{styles:O}),(0,L.jsx)(P,{"data-testid":"stVegaLiteChart",className:"stVegaLiteChart",useContainerWidth:this.props.element.useContainerWidth,isFullScreen:this.props.isFullScreen,ref:e=>{this.element=e}})]})}}const $=(0,w.A)((e=>{const t=(0,a.u)(),{expanded:i,width:o,height:n,expand:s,collapse:r}=(0,v.i)(b.T);return(0,L.jsx)(E,{theme:t,isFullScreen:i,...e,height:n,width:i?o:e.width,expand:s,collapse:r})}))},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])}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9923,8380],{19923:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});n(58878);var i=n(6244),l=n(70691),o=n(4494),a=n(59323),r=n(75760),s=n(89653);const d=(0,s.A)("div",{target:"e115fcil2"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.spacing.lg,maxWidth:"100%"}}),""),c=(0,s.A)("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),h=(0,s.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 u,m=n(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"}(u||(u={}));const p=(0,r.A)((function(e){let{element:t,width:n,endpoints:r,disableFullscreenMode:s}=e;const{expanded:p,width:x,height:g,expand:f,collapse:v}=(0,a.i)(o.T);let w;const C=t.width;if([u.OriginalWidth,u.AutoWidth,u.MinImageOrContainer].includes(C))w=void 0;else if([u.ColumnWidth,u.MaxImageOrContainer].includes(C))w=p?x:n;else{if(!(C>0))throw Error(`Invalid image width: ${C}`);w=C}const b={};return g&&p?(b.maxHeight=g,b.objectFit="contain"):(b.width=w,b.maxWidth="100%"),(0,m.jsxs)(i.mx,{width:w,height:g,useContainerWidth:p,children:[(0,m.jsx)(l.A,{target:i.mx,isFullScreen:p,onExpand:f,onCollapse:v,disableFullscreenMode:s}),(0,m.jsx)(d,{className:"stImage","data-testid":"stImage",style:{width:w},children:t.imgs.map(((e,t)=>{const n=e;return(0,m.jsxs)(c,{"data-testid":"stImageContainer",children:[(0,m.jsx)("img",{style:b,src:r.buildMediaURL(n.url),alt:t.toString()}),n.caption&&(0,m.jsx)(h,{"data-testid":"stImageCaption",style:b,children:` ${n.caption} `})]},t)}))})]})}))},4494:(e,t,n)=>{n.d(t,{T:()=>i});const i=(0,n(58878).createContext)(null);i.displayName="ElementFullscreenContext"},75760:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(58878),l=n(53124),o=n.n(l),a=n(8151);const r=(0,n(89653).A)("div",{target:"elp1w7k0"})((e=>{let{theme:t,isExpanded:n}=e;return{...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var s=n(4494),d=n(84152),c=n(19342),h=n(59323);var u=n(90782);const m=e=>{let{children:t,height:n,width:l}=e;const o=(0,a.u)(),{expanded:m,fullHeight:p,fullWidth:x,zoomIn:g,zoomOut:f}=(()=>{const{setFullScreen:e}=(0,i.useContext)(d.n),[t,n]=(0,i.useState)(!1),{fullHeight:l,fullWidth:o}=(0,h.i)(c.j),a=(0,i.useCallback)((t=>{n(t),e(t)}),[e]),r=(0,i.useCallback)((()=>{document.body.style.overflow="hidden",a(!0)}),[a]),s=(0,i.useCallback)((()=>{document.body.style.overflow="unset",a(!1)}),[a]),u=(0,i.useCallback)((e=>{27===e.keyCode&&t&&s()}),[s,t]);return(0,i.useEffect)((()=>(document.addEventListener("keydown",u,!1),()=>{document.removeEventListener("keydown",u,!1)})),[u]),(0,i.useMemo)((()=>({expanded:t,zoomIn:r,zoomOut:s,fullHeight:l,fullWidth:o})),[t,r,s,l,o])})(),v=(0,i.useMemo)((()=>({width:m?x:l,height:m?p:n,expanded:m,expand:g,collapse:f})),[m,p,x,n,l,g,f]);return(0,u.jsx)(s.T.Provider,{value:v,children:(0,u.jsx)(r,{isExpanded:m,"data-testid":"stFullScreenFrame",theme:o,children:t})})};const p=function(e){const t=t=>(0,u.jsx)(m,{width:t.width,children:(0,u.jsx)(e,{...t})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,o()(t,e)}},70691:(e,t,n)=>{n.d(t,{A:()=>p,K:()=>m});n(58878);var i=n(8151),l=n(12274),o=n(63186),a=n(4629),r=n(997),s=n(36459),d=n(84720),c=n(64611),h=n(6244),u=n(90782);function m(e){let{label:t,show_label:n,icon:l,onClick:o}=e;const h=(0,i.u)(),m=n?t:"";return(0,u.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,u.jsx)(r.A,{content:(0,u.jsx)(a.Ay,{source:t,allowHTML:!1,style:{fontSize:h.fontSizes.sm}}),placement:r.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,u.jsxs)(s.Ay,{onClick:e=>{o&&o(),e.stopPropagation()},kind:d.KX.ELEMENT_TOOLBAR,"aria-label":t,children:[l&&(0,u.jsx)(c.A,{content:l,size:"md",testid:"stElementToolbarButtonIcon"}),m&&(0,u.jsx)("span",{children:m})]})})})}const p=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:a,children:r,target:s,disableFullscreenMode:d}=e;return(0,u.jsx)(h.Sq,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:a||i,target:s,children:(0,u.jsxs)(h.x8,{children:[r,t&&!d&&!i&&(0,u.jsx)(m,{label:"Fullscreen",icon:l.g,onClick:()=>t()}),n&&!d&&i&&(0,u.jsx)(m,{label:"Close fullscreen",icon:o.Q,onClick:()=>n()})]})})}},6244:(e,t,n)=>{n.d(t,{Sq:()=>a,mx:()=>s,x8:()=>r});var i=n(89653),l=n(16795);const o="-2.4rem",a=(0,i.A)("div",{target:"e2wxzia2"})((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?o:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:o},...i&&{[`${i}:hover &, ${i}:active &, ${i}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:o}}}}}),""),r=(0,i.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t}=e;return{color:(0,l.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}}),""),s=(0,i.A)("div",{target:"e2wxzia0"})((e=>{let{width:t,height:n,useContainerWidth:i}=e;return{position:"relative",height:i?n:"fit-content",width:i?t:"fit-content",maxWidth:"100%"}}),"")},59323:(e,t,n)=>{n.d(t,{i:()=>l});var i=n(58878);const l=e=>{const t=(0,i.useContext)(e);var n;if(null===t||void 0===t)throw new Error(`useRequiredContext: ${null!==(n=e.displayName)&&void 0!==n?n:"context"} not found`);return t}},12274:(e,t,n)=>{n.d(t,{g:()=>a});var i=n(68102),l=n(58878),o=n(68622),a=l.forwardRef((function(e,t){return l.createElement(o.I,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),l.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))}));a.displayName="Fullscreen"},63186:(e,t,n)=>{n.d(t,{Q:()=>a});var i=n(68102),l=n(58878),o=n(68622),a=l.forwardRef((function(e,t){return l.createElement(o.I,(0,i.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),l.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),l.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))}));a.displayName="FullscreenExit"}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9943],{4494:(e,t,n)=>{n.d(t,{T:()=>i});const i=(0,n(58878).createContext)(null);i.displayName="ElementFullscreenContext"},75760:(e,t,n)=>{n.d(t,{A:()=>g});var i=n(58878),o=n(53124),l=n.n(o),r=n(8151);const a=(0,n(89653).A)("div",{target:"elp1w7k0"})((e=>{let{theme:t,isExpanded:n}=e;return{...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var s=n(4494),d=n(84152),u=n(19342),c=n(59323);var m=n(90782);const h=e=>{let{children:t,height:n,width:o}=e;const l=(0,r.u)(),{expanded:h,fullHeight:g,fullWidth:f,zoomIn:p,zoomOut:v}=(()=>{const{setFullScreen:e}=(0,i.useContext)(d.n),[t,n]=(0,i.useState)(!1),{fullHeight:o,fullWidth:l}=(0,c.i)(u.j),r=(0,i.useCallback)((t=>{n(t),e(t)}),[e]),a=(0,i.useCallback)((()=>{document.body.style.overflow="hidden",r(!0)}),[r]),s=(0,i.useCallback)((()=>{document.body.style.overflow="unset",r(!1)}),[r]),m=(0,i.useCallback)((e=>{27===e.keyCode&&t&&s()}),[s,t]);return(0,i.useEffect)((()=>(document.addEventListener("keydown",m,!1),()=>{document.removeEventListener("keydown",m,!1)})),[m]),(0,i.useMemo)((()=>({expanded:t,zoomIn:a,zoomOut:s,fullHeight:o,fullWidth:l})),[t,a,s,o,l])})(),y=(0,i.useMemo)((()=>({width:h?f:o,height:h?g:n,expanded:h,expand:p,collapse:v})),[h,g,f,n,o,p,v]);return(0,m.jsx)(s.T.Provider,{value:y,children:(0,m.jsx)(a,{isExpanded:h,"data-testid":"stFullScreenFrame",theme:l,children:t})})};const g=function(e){const t=t=>(0,m.jsx)(h,{width:t.width,children:(0,m.jsx)(e,{...t})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,l()(t,e)}},251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_t});var i=n(58878),o=n(35753),l=n(79104),r=n(52583),a=n(68994),s=n(95241),d=n(61730),u=n(18364),c=n(2128),m=n(34752),h=n(75760),g=n(29669),f=n(25571),p=n(70691),v=n(84152),y=n(4494),b=n(59323),w=n(37638),x=n.n(w),C=n(30136),M=n.n(C),S=n(17643),k=n.n(S),E=(n(20641),n(91381)),T=n.n(E),R=n(37904),N=n.n(R),I=n(34694),_=n(85729);const O=["true","t","yes","y","on","1"],D=["false","f","no","n","off","0"];function A(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 F(e){return e.hasOwnProperty("isError")&&e.isError}function $(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function H(){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 X(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function z(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 V(e,t){return(0,f.hX)(e)?t||{}:(0,f.hX)(t)?e||{}:x()(e,t)}function L(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:W(e))):[W(t)]}catch(t){return[W(e)]}}function W(e){try{try{return M()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function j(e){if((0,f.hX)(e))return null;if("boolean"===typeof e)return e;const t=W(e).toLowerCase().trim();return""===t?null:!!O.includes(t)||!D.includes(t)&&void 0}function B(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=N().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 Y(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,f.hX)(t)||""===t?(0===n&&(e=Math.round(e)),N()(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?k().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?_.D0.formatPeriodType(BigInt(e),t):(0,I.sprintf)(t,e)}function P(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 U(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=k().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=k().utc(e);if(t.isValid())return t.toDate();const n=k().utc(e,[k().HTML5_FMT.TIME_MS,k().HTML5_FMT.TIME_SECONDS,k().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function q(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 J=new RegExp(/(\r\n|\n|\r)/gm);function G(e){return-1!==e.indexOf("\n")?e.replace(J," "):e}var K=n(8151),Z=n(84996);function Q(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)?W(e):null,i=(0,f.se)(n)?G(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,f.hX)(e)}}catch(n){return A(W(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}Q.isEditableType=!1;const ee=Q;function te(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(r){n=`Invalid validate regex: ${t.validate}.\nError: ${r}`}const i={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},l=i=>{if((0,f.hX)(i))return!e.isRequired;let o=W(i),l=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),l=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!l||o)};return{...e,kind:"text",sortMode:"default",validateInput:l,getCell(e,t){if("string"===typeof n)return A(W(e),n);if(t){const t=l(e);if(!1===t)return A(W(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,f.se)(e)?W(e):null,n=(0,f.se)(t)?G(t):"";return{...i,isMissingValue:(0,f.hX)(t),data:t,displayData:n}}catch(r){return A("Incompatible value",`The value cannot be interpreted as string. Error: ${r}`)}},getCellValue:e=>void 0===e.data?null:e.data}}te.isEditableType=!0;const ne=te;function ie(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function oe(e,t,n,i,l,r,a){var s;const d=V({format:n,step:i,timezone:a},t.columnTypeOptions);let u,c,m;if((0,f.se)(d.timezone))try{var h;u=(null===(h=ie(T()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(v){}(0,f.se)(d.min_value)&&(c=U(d.min_value)||void 0),(0,f.se)(d.max_value)&&(m=U(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:l,min:c,max:m}},p=e=>{const n=U(e);return null===n?!t.isRequired:void 0!==n&&(!((0,f.se)(c)&&r(n)<r(c))&&!((0,f.se)(m)&&r(n)>r(m)))};return{...t,kind:e,sortMode:"default",validateInput:p,getCell(e,t){if(!0===t){const t=p(e);if(!1===t)return A(W(e),"Invalid input.");t instanceof Date&&(e=t)}const i=U(e);let o="",l="",r=u;if(void 0===i)return A(W(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=T().utc(i);if(!e.isValid())return A(W(i),`This should never happen. Please report this bug. \nError: ${e.toString()}`);if(d.timezone){try{e=ie(e,d.timezone)}catch(v){return A(e.toISOString(),`Failed to adjust to the provided timezone: ${d.timezone}. \nError: ${v}`)}r=e.utcOffset()}try{l=P(e,d.format||n)}catch(v){return A(e.toISOString(),`Failed to format the date for rendering with: ${d.format}. \nError: ${v}`)}o=P(e,n)}return{...g,copyData:o,isMissingValue:(0,f.hX)(i),data:{...g.data,date:i,displayDate:l,timezoneOffset:r}}},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:r(e.data.date)}}}function le(e){var t,n,i,o,l;let r="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?r="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(r="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===(l=e.columnTypeOptions)||void 0===l?void 0:l.timezone);return oe("datetime",e,s?r+"Z":r,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function re(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"),oe("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function ae(e){return oe("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function se(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=j(e),void 0===n?A(W(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}}le.isEditableType=!0,re.isEditableType=!0,ae.isEditableType=!0,se.isEditableType=!0;const de=se;function ue(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function ce(e){const t=_.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=V({step:ue(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),l=(0,f.hX)(i.min_value)||i.min_value<0,r=(0,f.se)(i.step)&&!Number.isNaN(i.step)?q(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:l,fixedDecimals:r,thousandSeparator:""},s=t=>{let n=B(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 A(W(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=B(e),o="";if((0,f.se)(n)){if(Number.isNaN(n))return A(W(e),"The value cannot be interpreted as a number.");if((0,f.se)(r)&&(l=n,n=0===(d=r)?Math.trunc(l):Math.trunc(l*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return A(W(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=Y(n,i.format,r)}catch(u){return A(W(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 l,d;return{...a,data:n,displayData:o,isMissingValue:(0,f.hX)(n),copyData:(0,f.hX)(n)?"":W(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ce.isEditableType=!0;const me=ce;function he(e){let t="string";const n=V({options:"bool"===_.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 l={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=>W(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,f.se)(e)&&""!==e&&(n=W(e)),t&&!l.data.allowedValues.includes(n)?A(W(n),"The value is not part of the allowed options."):{...l,isMissingValue:null===n,copyData:n||"",data:{...l.data,value:n}}},getCellValue(e){var n,i,o,l,r,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!==(l=B(null===(r=e.data)||void 0===r?void 0:r.value))&&void 0!==l?l:null:"boolean"===t?null!==(a=j(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}}}he.isEditableType=!0;const ge=he;function fe(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)?[]:L(e);return{...t,data:n,isMissingValue:(0,f.hX)(e),copyData:(0,f.hX)(e)?"":W(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,f.hX)(e.data)||$(e)?null:e.data}}fe.isEditableType=!1;const pe=fe;function ve(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 ye(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===_.D0.getTypeName(n)&&(o=!1),{id:`index-${t}`,name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function be(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 l,r=e.types.data[t];if((0,f.hX)(r)&&(r={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===_.D0.getTypeName(r)){const n=e.getCategoricalOptions(t);(0,f.se)(n)&&(l={options:n})}return{id:`column-${i}-${t}`,name:i,title:i,isEditable:!0,arrowType:r,columnTypeOptions:l,isIndex:!1,isHidden:!1,group:o}}function we(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?_.D0.getTypeName(e.arrowType):null;let l;if("object"===e.kind)l=e.getCell((0,f.se)(t.content)?G(_.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 r,a;let n;var s,d,u;if("time"===i&&(0,f.se)(null===(r=t.field)||void 0===r||null===(a=r.type)||void 0===a?void 0:a.unit))n=k().unix(_.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=k().utc(Number(t.content)).toDate();l=e.getCell(n)}else if("decimal"===i){const n=(0,f.hX)(t.content)?null:_.D0.format(t.content,t.contentType,t.field);l=e.getCell(n)}else l=e.getCell(t.content);if(F(l))return l;if(!e.isEditable){if((0,f.se)(t.displayContent)){var c,m,h,g;const n=G(t.displayContent);l.kind===o.dd.Text||l.kind===o.dd.Number&&(0,f.hX)(null===(c=e.columnTypeOptions)||void 0===c?void 0:c.format)||l.kind===o.dd.Uri&&(0,f.hX)(null===(m=e.columnTypeOptions)||void 0===m?void 0:m.display_text)?l={...l,displayData:n}:l.kind===o.dd.Custom&&"date-picker-cell"===(null===(h=l.data)||void 0===h?void 0:h.kind)&&(0,f.hX)(null===(g=e.columnTypeOptions)||void 0===g?void 0:g.format)&&(l={...l,data:{...l.data,displayDate:n}})}n&&t.cssId&&(l=function(e,t,n){const i={},o=ve(t,"color",n);o&&(i.textDark=o);const l=ve(t,"background-color",n);return l&&(i.bgCell=l),"yellow"===l&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(l,t.cssId,n))}return l}function xe(e,t,n){const i=V({y_min:0,y_max:1},t.columnTypeOptions),l={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 A("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 H();const t=L(e),n=[];let o=[];if(0===t.length)return H();let r=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=B(t[i]);if(Number.isNaN(e)||(0,f.hX)(e))return A(W(t),`The value cannot be interpreted as a numeric array. ${W(e)} is not a number.`);e>r&&(r=e),e<a&&(a=e),n.push(e)}return o=n.length>0&&(r>i.y_max||a<i.y_min)?n.map((e=>r-a===0?r>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-a)/(r-a))+(i.y_min||0))):n,{...l,copyData:n.join(","),data:{...l.data,values:o,displayValues:n.map((e=>Y(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 Ce(e){return xe("line_chart",e,"line")}function Me(e){return xe("bar_chart",e,"bar")}function Se(e){return xe("area_chart",e,"area")}function ke(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)?[W(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]}}Ce.isEditableType=!1,Me.isEditableType=!1,Se.isEditableType=!1,ke.isEditableType=!1;const Ee=ke;function Te(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 l={kind:o.dd.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},r=i=>{if((0,f.hX)(i))return!e.isRequired;const o=W(i);return!(t.max_chars&&o.length>t.max_chars)&&!(n instanceof RegExp&&!1===n.test(o))};return{...e,kind:"link",sortMode:"default",validateInput:r,getCell(e,o){if((0,f.hX)(e))return{...l,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return A(W(s),n);if(o){if(!1===r(s))return A(W(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),{...l,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}}Te.isEditableType=!0;const Re=Te;function Ne(e){const t=ue(_.D0.getTypeName(e.arrowType)),n=V({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=Y(n.max_value,n.format)}catch(a){i=W(n.max_value)}const l=(0,f.hX)(n.step)||Number.isNaN(n.step)?void 0:q(n.step),r={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 H();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 A("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 A("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=B(e);if(Number.isNaN(t)||(0,f.hX)(t))return A(W(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return A(W(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=Y(t,n.format,l)}catch(a){return A(W(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{...r,isMissingValue:(0,f.hX)(e),copyData:String(t),data:{...r.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}}}Ne.isEditableType=!1;const Ie=Ne,_e=new Map(Object.entries({object:ee,text:ne,checkbox:de,selectbox:ge,list:pe,number:me,link:Re,datetime:le,date:ae,time:re,line_chart:Ce,bar_chart:Me,area_chart:Se,image:Ee,progress:Ie})),Oe=[],De="_index",Ae="_pos:",Fe={small:75,medium:200,large:400};function $e(e){if(!(0,f.hX)(e))return"number"===typeof e?e:e in Fe?Fe[e]:void 0}function He(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==De?n=t.get(e.name):t.has(`${Ae}${e.indexNumber}`)?n=t.get(`${Ae}${e.indexNumber}`):e.isIndex&&t.has(De)&&(n=t.get(De)),n?x()({...e},{title:n.label,width:$e(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 Xe(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,f.se)(n)&&(_e.has(n)?i=_e.get(n):(0,Z.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,f.hX)(i)&&(i=function(e){let t=e?_.D0.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty","large_string[pyarrow]"].includes(t)?ne:["datetime","datetimetz"].includes(t)?le:"time"===t?re:"date"===t?ae:["object","bytes"].includes(t)?ee:["bool"].includes(t)?de:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?me:"categorical"===t?ge:t.startsWith("list")?pe:ee):ee}(e.arrowType)),i}const ze=function(e,t,n){const o=(0,K.u)(),l=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,Z.vV)(t),new Map}}(e.columns)),[e.columns]),r=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 l=0;l<i;l++){const n={...ye(e,l),indexNumber:l};t.push(n)}for(let l=0;l<o;l++){const n={...be(e,l),indexNumber:l+i};t.push(n)}return t}(t).map((t=>{let i={...t,...He(t,l),isStretched:r};const a=Xe(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:[ee({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,l,r,n,e.editingMode,e.columnOrder,o])}};function Ve(e){return e.isIndex?De:(0,f.hX)(e.name)?"":e.name}const Le=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 l={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(l[Ve(o)]=o.getCellValue(e))})),n.edited_rows[i]=l})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,l)=>{const r=t.get(n);if(r){const t=r.getCellValue(e);r.isRequired&&r.isEditable&&$(e)&&(o=!0),(0,f.se)(t)&&(i[Ve(r)]=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(Ve(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],l=o.get(e);if(l){const e=l.getCell(n);var r;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(r=this.editedCells.get(t))||void 0===r||r.set(l.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],l=o.get(t);if(l){const e=l.getCell(i);e&&n.set(l.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 We=n(32735);const je=function(){const e=(0,K.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,We.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,We.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,We.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 Be=function(e,t,n,o){const l=e.columns.length;return{getCellContent:i.useCallback((i=>{let[r,a]=i;if(r>t.length-1)return A("Column index out of bounds.","This should never happen. Please report this bug.");if(a>n-1)return A("Row index out of bounds.","This should never happen. Please report this bug.");const s=t[r],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 A("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 we(s,e.getCell(u+l,d),e.cssStyles)}catch(m){return A("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${m}`)}}),[t,n,e,o,l])}};var Ye=n(53221);const Pe=function(e,t,n){const[o,l]=i.useState(),{getCellContent:r,getOriginalIndex:a}=(0,Ye.uf)({columns:t.map((e=>z(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 l(void 0);t="desc"}l({column:z(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:r}};var Ue=n(71034),qe=n.n(Ue);const Je=function(e,t,n,l,r){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=!qe()(e.rows.toArray(),a.rows.toArray()),n=!qe()(e.columns.toArray(),a.columns.toArray()),i=!qe()(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;l.forEach(((t,n)=>{t.isIndex&&(e=e.remove(n))})),e.length<u.columns.length&&(u={...u,columns:e})}s(u),o&&r(u)}),[a,d,c,r,l]),y=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)&&r(n)}),[a,d,c,r]);return{gridSelection:a,isRowSelectionActivated:d,isMultiRowSelectionActivated:u,isColumnSelectionActivated:c,isMultiColumnSelectionActivated:m,isRowSelected:h,isColumnSelected:f,isCellSelected:p,clearSelection:y,processSelectionChange:v}};var Ge=n(55562);const Ke=",",Ze='"',Qe='"',et="\n",tt="\ufeff",nt=new RegExp(`[${[Ke,Ze,et].join("")}]`);function it(e){return e.map((e=>function(e){if((0,f.hX)(e))return"";const t=W(e);if(nt.test(t))return`${Ze}${t.replace(new RegExp(Ze,"g"),Qe+Ze)}${Ze}`;return t}(e))).join(Ke)+et}async function ot(e,t,n,i){const o=new TextEncoder;await e.write(o.encode(tt));const l=n.map((e=>e.name));await e.write(o.encode(it(l)));for(let r=0;r<i;r++){const i=[];n.forEach(((e,n,o)=>{i.push(e.getCellValue(t([n,r])))})),await e.write(o.encode(it(i)))}await e.close()}const lt=function(e,t,o,l){return{exportToCsv:i.useCallback((async()=>{const i=`${(new Date).toISOString().slice(0,16).replace(":","-")}_export.csv`;try{const l=await n.e(3966).then(n.bind(n,93966)),r=await l.showSaveFilePicker({suggestedName:i,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),a=await r.createWritable();await ot(a,e,t,o)}catch(r){if(r instanceof Error&&"AbortError"===r.name)return;try{(0,Z.FF)("Failed to export data as CSV with FileSystem API, trying fallback method",r);let n="";const a=new WritableStream({write:async e=>{n+=new TextDecoder("utf-8").decode(e)},close:async()=>{}});await ot(a.getWriter(),e,t,o);const s=new Blob([n],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(s),u=(0,Ge.A)({enforceDownloadInNewTab:l,url:d,filename:i});u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(d)}catch(r){(0,Z.vV)("Failed to export data as CSV",r)}}}),[t,o,e,l])}};const rt=function(e,t,n,o,l,r,a,s,d){const u=i.useCallback(((t,i)=>{let[r,a]=t;const d=e[r];if(!d.isEditable)return;const u=d.indexNumber,c=n.current.getOriginalRowIndex(l(a)),m=o([r,a]),h=d.getCellValue(m),g=d.getCellValue(i);if(!F(m)&&g===h)return;const f=d.getCell(g,!0);F(f)?(0,Z.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,l,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(l(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(),r(t)),!1}return!0}),[e,n,t,r,l,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 r=i[t],a=h+u,s=t+d;if(s>=e.length)break;const c=e[s];if(c.isEditable){const e=c.getCell(r,!0);if((0,f.se)(e)&&!F(e)){const t=c.indexNumber,i=n.current.getOriginalRowIndex(l(a)),r=c.getCellValue(o([s,a]));c.getCellValue(e)!==r&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,a]}))}}}m.length>0&&(s(),r(m))}return!1}),[e,n,t,l,o,c,s,r]),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 at=function(e,t){const[n,o]=i.useState(),l=i.useRef(null),r=i.useCallback((n=>{if(clearTimeout(l.current),l.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],r=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,r]);s.isRequired&&s.isEditable&&$(e)?a="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(a=e.tooltip)}a&&(l.current=setTimeout((()=>{a&&o({content:a,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,l]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:r}};var st=n(28873),dt=n(70128),ut=n(13914),ct=n(43301),mt=n(67338);const ht=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:l,rect:r}=t,a=t.col;if($(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,st.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()}(l,r,o))}n()}),[e]),customRenderers:i.useMemo((()=>[dt.A,ut.A,ct.A,mt.Ay,...Oe]),[])}};const gt=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,l)=>{e.id&&n(new Map(t).set(e.id,l))}),[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}},ft=2,pt=35,vt=50+ft,yt=2*pt+ft;const bt=function(e,t,n,o,l,r){let a=function(e){return Math.max(e*pt+ft,yt)}(t+(n?2:1)+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,yt),a=Math.max(e.height,a)),l&&(s=Math.min(s,l),a=Math.min(a,l),e.height||(s=a));const d=Math.max(o,vt);let u,c=d;e.useContainerWidth?u=d:e.width&&(u=Math.min(Math.max(e.width,vt),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(r){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})}),[r]),{minHeight:yt,maxHeight:a,minWidth:vt,maxWidth:c,resizableSize:m,setResizableSize:h}};var wt=n(89653),xt=n(90782);const Ct=(0,wt.A)("img",{target:"e24uaba0"})({name:"6eya2z",styles:"max-width:100%;max-height:37.5rem;object-fit:scale-down"}),Mt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,xt.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,xt.jsx)(Ct,{src:n})}):(0,xt.jsx)(Ct,{src:n})};var St=n(3074),kt=n(41639),Et=n(4629),Tt=n(88044),Rt=n(16795);const Nt=function(e){let{top:t,left:n,content:o,clearTooltip:l}=e;const[r,a]=i.useState(!0),s=(0,K.u)(),{colors:d,fontSizes:u,radii:c,fontWeights:m}=s,h=i.useCallback((()=>{a(!1),l()}),[l,a]);return(0,xt.jsx)(St.A,{content:(0,xt.jsx)(Tt.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,xt.jsx)(Et.Ay,{style:{fontSize:u.sm},source:o,allowHTML:!1})}),placement:kt.El.top,accessibilityType:kt.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,Rt.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:r,children:(0,xt.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},It=(0,wt.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 _t=(0,h.A)((function(e){let{element:t,data:n,disabled:h,widgetMgr:w,disableFullscreenMode:x,fragmentId:C,width:M,height:S}=e;const{expanded:k,expand:E,collapse:T}=(0,b.i)(y.T),R=i.useRef(null),N=i.useRef(null),I=i.useRef(null),{theme:_,headerIcons:O,tableBorderRadius:D,tableBorderWidth:A}=je(),{libConfig:{enforceDownloadInNewTab:F=!1}}=i.useContext(v.n),[$,H]=i.useState(!0),[V,L]=i.useState(!1),[W,j]=i.useState(!1),[B,Y]=i.useState(!1),P=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),U=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:q,DYNAMIC:J}=g.i3.EditingMode,G=n.dimensions,K=Math.max(0,G.dataRows),Z=0===K&&!(t.editingMode===J&&G.dataColumns>0),Q=K>15e4,ee=i.useRef(new Le(K)),[te,ne]=i.useState(ee.current.getNumRows());i.useEffect((()=>{ee.current=new Le(K),ne(ee.current.getNumRows())}),[K]);const ie=i.useCallback((()=>{ee.current=new Le(K),ne(ee.current.getNumRows())}),[K]),{columns:oe}=ze(t,n,h);i.useEffect((()=>{if(t.editingMode===q)return;const e=w.getStringValue({id:t.id,formId:t.formId});e&&(ee.current.fromJson(e,oe),ne(ee.current.getNumRows()))}),[]);const{getCellContent:le}=Be(n,oe,te,ee),{columns:re,sortColumn:ae,getOriginalIndex:se,getCellContent:de}=Pe(K,oe,le),ue=i.useCallback((0,f.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>se(e))),n.selection.columns=e.columns.toArray().map((e=>Ve(re[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},C)})),[t.id,t.formId,w,C,se,Ve]),{gridSelection:ce,isRowSelectionActivated:me,isMultiRowSelectionActivated:he,isColumnSelectionActivated:ge,isMultiColumnSelectionActivated:fe,isRowSelected:pe,isColumnSelected:ve,isCellSelected:ye,clearSelection:be,processSelectionChange:we}=Je(t,Z,h,re,ue);i.useEffect((()=>{be(!0,!0)}),[k]);const xe=i.useCallback((e=>{var t;null===(t=N.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!me&&!ge)return;const e=w.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,l,r;const t=re.map((e=>Ve(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===(l=a.selection)||void 0===l||null===(r=l.columns)||void 0===r||r.forEach((e=>{d=d.add(t.indexOf(e))})),s.length>0||d.length>0){we({rows:s,columns:d,current:void 0})}}}),[]);const Ce=i.useCallback((()=>{te!==ee.current.getNumRows()&&ne(ee.current.getNumRows())}),[te]),Me=i.useCallback((0,f.sg)(150,(()=>{const e=ee.current.toJson(re);let n=w.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new Le(0).toJson([])),e!==n&&w.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},C)})),[t.id,t.formId,w,C,re,ee.current]),{exportToCsv:Se}=lt(de,re,te,F),{onCellEdited:ke,onPaste:Ee,onRowAppended:Te,onDelete:Re,validateCell:Ne}=rt(re,t.editingMode!==J,ee,de,se,xe,Ce,Me,be),{tooltip:Ie,clearTooltip:_e,onItemHovered:Oe}=at(re,de),{drawCell:De,customRenderers:Ae}=ht(re),Fe=i.useMemo((()=>re.map((e=>z(e)))),[re]),{columns:$e,onColumnResize:He}=gt(Fe),Xe=n.columns.length>1,{minHeight:We,maxHeight:Ye,minWidth:Ue,maxWidth:qe,resizableSize:Ge,setResizableSize:Ke}=bt(t,te,Xe,M,S,k),Ze=i.useCallback((e=>{let[t,n]=e;return{...X(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:_.textLight},span:[0,Math.max(re.length-1,0)]}}),[re,_.textLight]),Qe=i.useCallback((()=>{ie(),be()}),[ie,be]);(0,m.X)({element:t,widgetMgr:w,onFormCleared:Qe});const et=!Z&&t.editingMode===J&&!h,tt=Z?0:re.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(I.current&&N.current){var e,t;const n=null===(e=I.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(j(n.height>I.current.clientHeight),Y(n.width>I.current.clientWidth))}}),1)}),[Ge,te,$e]),(0,xt.jsxs)(It,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:U,ref:I,onMouseDown:e=>{if(I.current&&U){const t=I.current.getBoundingClientRect();B&&t.height-7<e.clientY-t.top&&e.stopPropagation(),W&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{$||P||e.currentTarget.contains(e.relatedTarget)||be(!0,!0)},children:[(0,xt.jsxs)(p.A,{isFullScreen:k,disableFullscreenMode:x,locked:pe&&!me||ye||P&&$,onExpand:E,onCollapse:T,target:It,children:[(me&&pe||ge&&ve)&&(0,xt.jsx)(p.K,{label:"Clear selection",icon:a.b,onClick:()=>{be(),_e()}}),et&&pe&&(0,xt.jsx)(p.K,{label:"Delete row(s)",icon:s.e,onClick:()=>{Re&&(Re(ce),_e())}}),et&&!pe&&(0,xt.jsx)(p.K,{label:"Add row",icon:d.O,onClick:()=>{Te&&(H(!0),Te(),_e())}}),!Q&&!Z&&(0,xt.jsx)(p.K,{label:"Download as CSV",icon:u.n,onClick:()=>Se()}),!Z&&(0,xt.jsx)(p.K,{label:"Search",icon:c.v,onClick:()=>{V?L(!1):(H(!0),L(!0)),_e()}})]}),(0,xt.jsx)(r.c,{"data-testid":"stDataFrameResizable",ref:R,defaultSize:Ge,style:{border:`${A} solid ${_.borderColor}`,borderRadius:`${D}`},minHeight:We,maxHeight:Ye,minWidth:Ue,maxWidth:qe,size:Ge,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,pt],snapGap:pt/3,onResizeStop:(e,t,n,i)=>{R.current&&Ke({width:R.current.size.width,height:Ye-R.current.size.height===ft?R.current.size.height+ft:R.current.size.height})},children:(0,xt.jsx)(l.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:N,columns:$e,rows:Z?1:te,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:pt,headerHeight:pt,getCellContent:Z?Ze:de,onColumnResize:P?void 0:He,resizeIndicator:"header",freezeColumns:tt,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:P?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Oe,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(L((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:V,onSearchClose:()=>{L(!1),_e()},onHeaderClicked:(e,t)=>{Z||Q||ge||(me&&pe&&be(),ae(e))},gridSelection:ce,onGridSelectionChange:e=>{($||P)&&(we(e),void 0!==Ie&&_e())},theme:_,onMouseMove:e=>{"out-of-bounds"===e.kind&&$?H(!1):"out-of-bounds"===e.kind||$||H(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...U&&{paddingBottom:B?-6:void 0,paddingRight:W?-6:void 0}},drawCell:De,customRenderers:Ae,imageEditorOverride:Mt,headerIcons:O,validateCell:Ne,onPaste:!1,...me&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:_.bgHeader,bgCellMedium:_.bgHeader}},rowSelectionMode:he?"multi":"auto",rowSelect:h?"none":he?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...ge&&{columnSelect:h?"none":fe?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!Z&&t.editingMode!==q&&!h&&{fillHandle:!P,onCellEdited:ke,onPaste:Ee,onDelete:Re},...!Z&&t.editingMode===J&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:_.bgHeader,bgCellMedium:_.bgHeader}},rowSelectionMode:"multi",rowSelect:h?"none":"multi",onRowAppended:h?void 0:Te,onHeaderClicked:void 0}})}),Ie&&Ie.content&&(0,xt.jsx)(Nt,{top:Ie.top,left:Ie.left,content:Ie.content,clearTooltip:_e})]})}))},59323:(e,t,n)=>{n.d(t,{i:()=>o});var i=n(58878);const o=e=>{const t=(0,i.useContext)(e);var n;if(null===t||void 0===t)throw new Error(`useRequiredContext: ${null!==(n=e.displayName)&&void 0!==n?n:"context"} not found`);return t}}}]);
|