@stlite/desktop 0.42.4 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dump_artifacts.js +5 -5
- package/build/asset-manifest.json +77 -74
- package/build/index.html +1 -1
- package/build/static/css/1619.7ce51b75.chunk.css +1 -0
- package/build/static/css/7652.c24b25fa.chunk.css +1 -0
- package/build/static/css/7895.c24b25fa.chunk.css +1 -0
- package/build/static/css/main.fb5f4d99.css +1 -0
- package/build/static/js/1046.ea522608.chunk.js +1 -0
- package/build/static/js/1189.71b89117.chunk.js +1 -0
- package/build/static/js/1261.242b7386.chunk.js +1 -0
- package/build/static/js/142.dbf9ec20.chunk.js +1 -0
- package/build/static/js/144.2477d27a.chunk.js +1 -0
- package/build/static/js/1619.c039c65c.chunk.js +1 -0
- package/build/static/js/1687.a144d952.chunk.js +1 -0
- package/build/static/js/1729.528431ca.chunk.js +1 -0
- package/build/static/js/1740.32a0c10e.chunk.js +1 -0
- package/build/static/js/1839.a1fce0e6.chunk.js +1 -0
- package/build/static/js/2385.2cbc4e3c.chunk.js +1 -0
- package/build/static/js/2448.e6f85eda.chunk.js +1 -0
- package/build/static/js/{6557.fd2f35c8.chunk.js → 2873.cf145dcb.chunk.js} +1 -1
- package/build/static/js/2940.dd2240b9.chunk.js +1 -0
- package/build/static/js/3185.d317b162.chunk.js +1 -0
- package/build/static/js/4021.16f5498a.chunk.js +1 -0
- package/build/static/js/4232.b0bbe2e6.chunk.js +2 -0
- package/build/static/js/4232.b0bbe2e6.chunk.js.LICENSE.txt +52 -0
- package/build/static/js/4482.2f210b65.chunk.js +1 -0
- package/build/static/js/4494.c6ab91c6.chunk.js +1 -0
- package/build/static/js/4694.7e63f0ef.chunk.js +1 -0
- package/build/static/js/4724.366489f9.chunk.js +1 -0
- package/build/static/js/4785.3ac653c2.chunk.js +1 -0
- package/build/static/js/4831.3170175f.chunk.js +1 -0
- package/build/static/js/4949.391c96be.chunk.js +2 -0
- package/build/static/js/{2961.54b0c743.chunk.js.LICENSE.txt → 4949.391c96be.chunk.js.LICENSE.txt} +15 -15
- package/build/static/js/5037.03a99abb.chunk.js +1 -0
- package/build/static/js/5299.ad735cb8.chunk.js +1 -0
- package/build/static/js/5361.bc476229.chunk.js +2 -0
- package/build/static/js/5703.a68ecfdc.chunk.js +2 -0
- package/build/static/js/5703.a68ecfdc.chunk.js.LICENSE.txt +40 -0
- package/build/static/js/6134.5e3e3f58.chunk.js +1 -0
- package/build/static/js/6679.f4ee1d77.chunk.js +2 -0
- package/build/static/js/6679.f4ee1d77.chunk.js.LICENSE.txt +62 -0
- package/build/static/js/6802.ffb6887c.chunk.js +1 -0
- package/build/static/js/6865.12e417bf.chunk.js +1 -0
- package/build/static/js/698.7dce549b.chunk.js +1 -0
- package/build/static/js/7125.21833215.chunk.js +1 -0
- package/build/static/js/{7332.52202888.chunk.js → 7332.cb5400eb.chunk.js} +1 -1
- package/build/static/js/7579.7b9cc9ee.chunk.js +1 -0
- package/build/static/js/7652.f436cbbf.chunk.js +1 -0
- package/build/static/js/7696.406d4ef7.chunk.js +1 -0
- package/build/static/js/7895.198c568c.chunk.js +1 -0
- package/build/static/js/790.4b5acd65.chunk.js +1 -0
- package/build/static/js/865.143ae622.chunk.js +1 -0
- package/build/static/js/8801.77babe65.chunk.js +1 -0
- package/build/static/js/9005.87bae37e.chunk.js +1 -0
- package/build/static/js/9166.d35e76c1.chunk.js +2 -0
- package/build/static/js/9166.d35e76c1.chunk.js.LICENSE.txt +13 -0
- package/build/static/js/9311.f444417e.chunk.js +1 -0
- package/build/static/js/9320.14465db9.chunk.js +1 -0
- package/build/static/js/9813.c894655a.chunk.js +1 -0
- package/build/static/js/main.94addb49.js +28 -0
- package/build/static/js/{main.78d8e51a.js.LICENSE.txt → main.94addb49.js.LICENSE.txt} +23 -3
- package/build/static/media/SourceCodePro-Bold.17a68a0751a813474a0e.woff2 +0 -0
- package/build/static/media/SourceCodePro-BoldItalic.d45b7a3df103d441d78b.woff2 +0 -0
- package/build/static/media/SourceCodePro-Italic.ec122a420df4175e74f2.woff2 +0 -0
- package/build/static/media/SourceCodePro-Regular.84b900b88d09398d86b0.woff2 +0 -0
- package/build/static/media/SourceCodePro-SemiBold.17291d1c493cb25eb2c3.woff2 +0 -0
- package/build/static/media/SourceCodePro-SemiBoldItalic.f879ae27307c3926522b.woff2 +0 -0
- package/build/static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2 +0 -0
- package/build/static/media/SourceSansPro-BoldItalic.1d664be59d2eb5fef029.woff2 +0 -0
- package/build/static/media/SourceSansPro-Italic.8a9bfea74d43927d6eec.woff2 +0 -0
- package/build/static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2 +0 -0
- package/build/static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2 +0 -0
- package/build/static/media/SourceSansPro-SemiBoldItalic.befb0a2824eabc5ce36b.woff2 +0 -0
- package/build/static/media/SourceSerifPro-Bold.d7975b56594770699ae0.woff2 +0 -0
- package/build/static/media/SourceSerifPro-BoldItalic.913697a7178b128caa4c.woff2 +0 -0
- package/build/static/media/SourceSerifPro-Italic.d3529cb5797663ac5d88.woff2 +0 -0
- package/build/static/media/SourceSerifPro-Regular.e6c37aa3926474cc93e1.woff2 +0 -0
- package/build/static/media/SourceSerifPro-SemiBold.5c1d378dd5990ef334ca.woff2 +0 -0
- package/build/static/media/SourceSerifPro-SemiBoldItalic.249e948b885d0c7d30a8.woff2 +0 -0
- package/build/static/media/index.c05687ef19f5bac24939.cjs +1 -0
- package/build/static/media/index.cf5b321a6e04bf47c12e.cjs +1 -0
- package/build/static/media/index.db61103fb7fdd62b9c44.cjs +1 -0
- package/build/static/media/index.f29488c1099d5e3883ac.cjs +1 -0
- package/package.json +5 -5
- package/build/static/css/5099.60b7ada4.chunk.css +0 -1
- package/build/static/css/main.73ab603a.css +0 -1
- package/build/static/js/1318.57c335d2.chunk.js +0 -1
- package/build/static/js/142.3d0fb3e3.chunk.js +0 -1
- package/build/static/js/172.0ee3e7c6.chunk.js +0 -5
- package/build/static/js/1839.29b0ce99.chunk.js +0 -1
- package/build/static/js/2327.b8572a38.chunk.js +0 -1
- package/build/static/js/2775.c1ed54fa.chunk.js +0 -5
- package/build/static/js/291.aa03bc71.chunk.js +0 -1
- package/build/static/js/2961.54b0c743.chunk.js +0 -2
- package/build/static/js/3580.31cb6ce5.chunk.js +0 -1
- package/build/static/js/3603.e3f6f11d.chunk.js +0 -2
- package/build/static/js/3603.e3f6f11d.chunk.js.LICENSE.txt +0 -135
- package/build/static/js/3744.6440bac0.chunk.js +0 -2
- package/build/static/js/3744.6440bac0.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/3975.5538132d.chunk.js +0 -1
- package/build/static/js/4140.edb6c36a.chunk.js +0 -1
- package/build/static/js/4141.623ab362.chunk.js +0 -9
- package/build/static/js/4320.5977ee6b.chunk.js +0 -2
- package/build/static/js/4320.5977ee6b.chunk.js.LICENSE.txt +0 -20
- package/build/static/js/5093.304fcb1e.chunk.js +0 -1
- package/build/static/js/5099.51feed45.chunk.js +0 -1
- package/build/static/js/5177.21c4f353.chunk.js +0 -2
- package/build/static/js/5241.0326c97c.chunk.js +0 -1
- package/build/static/js/5440.c7134ed1.chunk.js +0 -1
- package/build/static/js/5617.837c33c0.chunk.js +0 -1
- package/build/static/js/6679.a8b5d830.chunk.js +0 -2
- package/build/static/js/6679.a8b5d830.chunk.js.LICENSE.txt +0 -60
- package/build/static/js/6683.aab9fa01.chunk.js +0 -1
- package/build/static/js/6756.2cb6963c.chunk.js +0 -1
- package/build/static/js/6862.886eab8e.chunk.js +0 -1
- package/build/static/js/6865.b0803b6b.chunk.js +0 -1
- package/build/static/js/6913.30734208.chunk.js +0 -17
- package/build/static/js/6939.c09d92c1.chunk.js +0 -1
- package/build/static/js/787.a500c8a4.chunk.js +0 -1
- package/build/static/js/792.04aad606.chunk.js +0 -1
- package/build/static/js/8035.dc118cc9.chunk.js +0 -1
- package/build/static/js/8295.c3cd87de.chunk.js +0 -1
- package/build/static/js/8418.aed275df.chunk.js +0 -1
- package/build/static/js/8486.e56533d6.chunk.js +0 -1
- package/build/static/js/865.9e23130b.chunk.js +0 -1
- package/build/static/js/9004.6a66722a.chunk.js +0 -1
- package/build/static/js/9042.a6fcbc74.chunk.js +0 -5
- package/build/static/js/9107.b49ea9ea.chunk.js +0 -5
- package/build/static/js/9130.8e10440e.chunk.js +0 -1
- package/build/static/js/9166.1a468fb9.chunk.js +0 -2
- package/build/static/js/9166.1a468fb9.chunk.js.LICENSE.txt +0 -13
- package/build/static/js/9382.c417d448.chunk.js +0 -1
- package/build/static/js/9615.c725e9d2.chunk.js +0 -1
- package/build/static/js/9733.e3808291.chunk.js +0 -2
- package/build/static/js/9733.e3808291.chunk.js.LICENSE.txt +0 -8
- package/build/static/js/9915.fe11690a.chunk.js +0 -1
- package/build/static/js/main.78d8e51a.js +0 -28
- package/build/static/media/SourceCodePro-Bold.52ac8f3034507f1d9e53.ttf +0 -0
- package/build/static/media/SourceCodePro-BoldItalic.05b618077343fbbd92b7.ttf +0 -0
- package/build/static/media/SourceCodePro-Italic.454577c22304619db035.ttf +0 -0
- package/build/static/media/SourceCodePro-Regular.70cc7ff27245e82ad414.ttf +0 -0
- package/build/static/media/SourceCodePro-SemiBold.4d4c53c06b5bebed1cf3.ttf +0 -0
- package/build/static/media/SourceCodePro-SemiBoldItalic.2f5470bc8b2cd27a5c4b.ttf +0 -0
- package/build/static/media/SourceSansPro-Bold.12e6acd2589d00c9d0aa.ttf +0 -0
- package/build/static/media/SourceSansPro-BoldItalic.7c4f9b00300acb82f0f6.ttf +0 -0
- package/build/static/media/SourceSansPro-Italic.3c01996d38a55834ddcb.ttf +0 -0
- package/build/static/media/SourceSansPro-Regular.efa76f8326aa5cee3bdd.ttf +0 -0
- package/build/static/media/SourceSansPro-SemiBold.43cc81b496222dc9ce3c.ttf +0 -0
- package/build/static/media/SourceSansPro-SemiBoldItalic.c30987e28fc21daba1ae.ttf +0 -0
- package/build/static/media/SourceSerifPro-Bold.bada4fe17051c992f22f.ttf +0 -0
- package/build/static/media/SourceSerifPro-BoldItalic.9f9b1eb2d82e26bb2f4a.ttf +0 -0
- package/build/static/media/SourceSerifPro-Italic.90931d6ad253cd8de8e4.ttf +0 -0
- package/build/static/media/SourceSerifPro-Regular.6f22301c30206f4bad62.ttf +0 -0
- package/build/static/media/SourceSerifPro-SemiBold.b27cb117978bab2c80a3.ttf +0 -0
- package/build/static/media/SourceSerifPro-SemiBoldItalic.1266f2c17835efdcff7b.ttf +0 -0
- package/build/static/media/index.09797f5e19b3c0491904.cjs +0 -1
- package/build/static/media/index.1e3d64b0fcde879f0060.cjs +0 -1
- package/build/static/media/index.85823dd8655ed4119d0c.cjs +0 -1
- package/build/static/media/index.b599194a631d76b49328.cjs +0 -1
- /package/build/static/css/{4320.1edfa457.chunk.css → 5703.1edfa457.chunk.css} +0 -0
- /package/build/static/js/{5177.21c4f353.chunk.js.LICENSE.txt → 5361.bc476229.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[142],{55790:(e,t,r)=>{"use strict";r.d(t,{Z:()=>D});var n=r(5057),i=r(44175),o=r(94253),a=r(53381);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=(0,a.zo)("div",{position:"relative",width:"100%"});l.displayName="Root",l.displayName="Root",l.displayName="StyledRoot";var d=(0,a.zo)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,i=e.$disabled,o=e.$isDragged,a=t.sizing,s="inherit";return i?s="not-allowed":o?s="grabbing":1===n.length&&(s="pointer"),{paddingTop:a.scale600,paddingBottom:a.scale600,paddingRight:a.scale600,paddingLeft:a.scale600,display:"flex",cursor:s,backgroundColor:t.colors.sliderTrackFill}}));d.displayName="Track",d.displayName="Track",d.displayName="StyledTrack";var p=(0,a.zo)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,o=e.$min,a=e.$max,s=e.$disabled,c=t.colors,u=t.borders,l=t.direction,d=t.borders.useRoundedCorners?u.radius100:0;return{borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomRightRadius:d,borderBottomLeftRadius:d,background:(0,i.getTrackBackground)({values:n,colors:1===n.length?[s?c.borderOpaque:c.primary,s?c.backgroundSecondary:c.borderOpaque]:[s?c.backgroundSecondary:c.borderOpaque,s?c.borderOpaque:c.primary,s?c.backgroundSecondary:c.borderOpaque],min:o||0,max:a||0,rtl:"rtl"===l}),height:"2px",width:"100%",alignSelf:"center",cursor:s?"not-allowed":"inherit"}}));p.displayName="InnerTrack",p.displayName="InnerTrack",p.displayName="StyledInnerTrack";var h=(0,a.zo)("div",(function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}}));h.displayName="Mark",h.displayName="Mark",h.displayName="StyledMark";var f=(0,a.zo)("div",(function(e){return c(c({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})}));f.displayName="Tick",f.displayName="Tick",f.displayName="StyledTick";var g=(0,a.zo)("div",(function(e){var t=e.$theme.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:t.scale600,paddingLeft:t.scale600,paddingBottom:t.scale400}}));g.displayName="TickBar",g.displayName="TickBar",g.displayName="StyledTickBar";var m=(0,a.zo)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,i=e.$thumbIndex,o=e.$disabled,a=2===n.length&&0===i,s=2===n.length&&1===i;return"rtl"===t.direction&&(s||a)&&(a=!a,s=!s),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:o?t.colors.sliderHandleFillDisabled:t.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(t.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:o?"not-allowed":"inherit"}}));m.displayName="Thumb",m.displayName="Thumb",m.displayName="StyledThumb";var v=(0,a.zo)("div",(function(e){var t=e.$disabled,r=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:t?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill}}));v.displayName="InnerThumb",v.displayName="InnerThumb",v.displayName="StyledInnerThumb";var b=(0,a.zo)("div",(function(e){var t=e.$disabled,r=e.$theme;return c(c({position:"absolute",top:"-".concat(r.sizing.scale1400)},r.typography.font200),{},{backgroundColor:t?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill,color:r.colors.contentInversePrimary,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,paddingTop:r.sizing.scale500,paddingBottom:r.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})}));b.displayName="ThumbValue",b.displayName="ThumbValue",b.displayName="StyledThumbValue";var y=r(80099),k=r(6532);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e){var t=e.overrides,r=void 0===t?{}:t,a=e.disabled,s=void 0!==a&&a,c=e.marks,u=void 0!==c&&c,w=e.onChange,T=void 0===w?function(){}:w,R=e.onFinalChange,D=void 0===R?function(){}:R,S=e.min,E=void 0===S?0:S,I=e.max,j=void 0===I?100:I,_=e.step,C=void 0===_?1:_,P=e.persistentThumb,L=void 0!==P&&P,z=e.valueToLabel,F=void 0===z?function(e){return e}:z,$=e.value,A=n.useContext(k.N),B=M(n.useState(!1),2),N=B[0],V=B[1],U=M(n.useState(!1),2),X=U[0],Y=U[1],Z=M(n.useState(!1),2),q=Z[0],H=Z[1],K=M(n.useState(-1),2),W=K[0],J=K[1],G=n.useCallback((function(e){(0,o.E)(e)&&H(!0);var t=e.target.parentNode.firstChild===e.target?0:1;J(t)}),[]),Q=n.useCallback((function(e){!1!==q&&H(!1),J(-1)}),[]),ee=function(e){if(e.length>2||0===e.length)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return e}($),te={$disabled:s,$step:C,$min:E,$max:j,$marks:u,$value:ee,$isFocusVisible:q},re=M((0,y.jb)(r.Root,l),2),ne=re[0],ie=re[1],oe=M((0,y.jb)(r.Track,d),2),ae=oe[0],se=oe[1],ce=M((0,y.jb)(r.InnerTrack,p),2),ue=ce[0],le=ce[1],de=M((0,y.jb)(r.Thumb,m),2),pe=de[0],he=de[1],fe=M((0,y.jb)(r.InnerThumb,v),2),ge=fe[0],me=fe[1],ve=M((0,y.jb)(r.ThumbValue,b),2),be=ve[0],ye=ve[1],ke=M((0,y.jb)(r.Tick,f),2),we=ke[0],xe=ke[1],Te=M((0,y.jb)(r.TickBar,g),2),Oe=Te[0],Me=Te[1],Re=M((0,y.jb)(r.Mark,h),2),De=Re[0],Se=Re[1];return n.createElement(ne,O({"data-baseweb":"slider"},te,ie,{onFocus:(0,o.Ah)(ie,G),onBlur:(0,o.Z5)(ie,Q)}),n.createElement(i.Range,O({step:C,min:E,max:j,values:ee,disabled:s,onChange:function(e){return T({value:e})},onFinalChange:function(e){return D({value:e})},rtl:"rtl"===A.direction,renderTrack:function(e){var t=e.props,r=e.children,i=e.isDragged;return n.createElement(ae,O({onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,$isDragged:i},te,se),n.createElement(ue,O({$isDragged:i,ref:t.ref},te,le),r))},renderThumb:function(e){var t=e.props,r=e.index,i=e.isDragged,o=L||(!!r&&X||!r&&N||i)&&!s;return n.createElement(pe,O({},t,{onMouseEnter:function(){0===r?V(!0):Y(!0)},onMouseLeave:function(){0===r?V(!1):Y(!1)},$thumbIndex:r,$isDragged:i,style:x({},t.style)},te,he,{$isFocusVisible:q&&W===r}),o&&n.createElement(be,O({$thumbIndex:r,$isDragged:i},te,ye),F(ee[r])),o&&n.createElement(ge,O({$thumbIndex:r,$isDragged:i},te,me)))}},u?{renderMark:function(e){var t=e.props,r=e.index;return n.createElement(De,O({$markIndex:r},t,te,Se))}}:{})),n.createElement(Oe,O({},te,Me),n.createElement(we,O({},te,xe),F(E)),n.createElement(we,O({},te,xe),F(j))))}},96312:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var c=a(r(5057)),u=r(41669),l=r(45426),d=["ArrowRight","ArrowUp","k","PageUp"],p=["ArrowLeft","ArrowDown","j","PageDown"],h=function(e){function t(t){var r=e.call(this,t)||this;if(r.trackRef=c.createRef(),r.thumbRefs=[],r.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(r.props.values.length).fill(0).map((function(e,t){return t})),isChanged:!1,markOffsets:[]},r.getOffsets=function(){var e=r.props,t=e.direction,n=e.values,i=e.min,o=e.max,a=r.trackRef.current,s=a.getBoundingClientRect(),c=(0,u.getPaddingAndBorder)(a);return r.getThumbs().map((function(e,r){var a={x:0,y:0},d=e.getBoundingClientRect(),p=(0,u.getMargin)(e);switch(t){case l.Direction.Right:return a.x=-1*(p.left+c.left),a.y=-1*((d.height-s.height)/2+c.top),a.x+=s.width*(0,u.relativeValue)(n[r],i,o)-d.width/2,a;case l.Direction.Left:return a.x=-1*(p.right+c.right),a.y=-1*((d.height-s.height)/2+c.top),a.x+=s.width-s.width*(0,u.relativeValue)(n[r],i,o)-d.width/2,a;case l.Direction.Up:return a.x=-1*((d.width-s.width)/2+p.left+c.left),a.y=-c.left,a.y+=s.height-s.height*(0,u.relativeValue)(n[r],i,o)-d.height/2,a;case l.Direction.Down:return a.x=-1*((d.width-s.width)/2+p.left+c.left),a.y=-c.left,a.y+=s.height*(0,u.relativeValue)(n[r],i,o)-d.height/2,a;default:return(0,u.assertUnreachable)(t)}}))},r.getThumbs=function(){return r.trackRef&&r.trackRef.current?Array.from(r.trackRef.current.children).filter((function(e){return e.hasAttribute("aria-valuenow")})):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},r.getTargetIndex=function(e){return r.getThumbs().findIndex((function(t){return t===e.target||t.contains(e.target)}))},r.addTouchEvents=function(e){document.addEventListener("touchmove",r.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",r.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",r.schdOnEnd,{passive:!1})},r.addMouseEvents=function(e){document.addEventListener("mousemove",r.schdOnMouseMove),document.addEventListener("mouseup",r.schdOnEnd)},r.onMouseDownTrack=function(e){var t;if(0===e.button)if(e.persist(),e.preventDefault(),r.addMouseEvents(e.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some((function(t){var r;return null===(r=t.current)||void 0===r?void 0:r.contains(e.target)})))return;r.setState({draggedTrackPos:[e.clientX,e.clientY]},(function(){return r.onMove(e.clientX,e.clientY)}))}else{var n=(0,u.getClosestThumbIndex)(r.thumbRefs.map((function(e){return e.current})),e.clientX,e.clientY,r.props.direction);null===(t=r.thumbRefs[n].current)||void 0===t||t.focus(),r.setState({draggedThumbIndex:n},(function(){return r.onMove(e.clientX,e.clientY)}))}},r.onResize=function(){(0,u.translateThumbs)(r.getThumbs(),r.getOffsets(),r.props.rtl),r.calculateMarkOffsets()},r.onTouchStartTrack=function(e){var t;if(e.persist(),r.addTouchEvents(e.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some((function(t){var r;return null===(r=t.current)||void 0===r?void 0:r.contains(e.target)})))return;r.setState({draggedTrackPos:[e.touches[0].clientX,e.touches[0].clientY]},(function(){return r.onMove(e.touches[0].clientX,e.touches[0].clientY)}))}else{var n=(0,u.getClosestThumbIndex)(r.thumbRefs.map((function(e){return e.current})),e.touches[0].clientX,e.touches[0].clientY,r.props.direction);null===(t=r.thumbRefs[n].current)||void 0===t||t.focus(),r.setState({draggedThumbIndex:n},(function(){return r.onMove(e.touches[0].clientX,e.touches[0].clientY)}))}},r.onMouseOrTouchStart=function(e){if(!r.props.disabled){var t=(0,u.isTouchEvent)(e);if(t||0===e.button){var n=r.getTargetIndex(e);-1!==n&&(t?r.addTouchEvents(e):r.addMouseEvents(e),r.setState({draggedThumbIndex:n,thumbZIndexes:r.state.thumbZIndexes.map((function(e,t){return t===n?Math.max.apply(Math,r.state.thumbZIndexes):e<=r.state.thumbZIndexes[n]?e:e-1}))}))}}},r.onMouseMove=function(e){e.preventDefault(),r.onMove(e.clientX,e.clientY)},r.onTouchMove=function(e){e.preventDefault(),r.onMove(e.touches[0].clientX,e.touches[0].clientY)},r.onKeyDown=function(e){var t=r.props,n=t.values,i=t.onChange,o=t.step,a=t.rtl,s=t.direction,c=r.state.isChanged,h=r.getTargetIndex(e.nativeEvent),f=a||s===l.Direction.Left||s===l.Direction.Down?-1:1;-1!==h&&(d.includes(e.key)?(e.preventDefault(),r.setState({draggedThumbIndex:h,isChanged:!0}),i((0,u.replaceAt)(n,h,r.normalizeValue(n[h]+f*("PageUp"===e.key?10*o:o),h)))):p.includes(e.key)?(e.preventDefault(),r.setState({draggedThumbIndex:h,isChanged:!0}),i((0,u.replaceAt)(n,h,r.normalizeValue(n[h]-f*("PageDown"===e.key?10*o:o),h)))):"Tab"===e.key?r.setState({draggedThumbIndex:-1},(function(){c&&r.fireOnFinalChange()})):c&&r.fireOnFinalChange())},r.onKeyUp=function(e){var t=r.state.isChanged;r.setState({draggedThumbIndex:-1},(function(){t&&r.fireOnFinalChange()}))},r.onMove=function(e,t){var n=r.state,i=n.draggedThumbIndex,o=n.draggedTrackPos,a=r.props,s=a.direction,c=a.min,d=a.max,p=a.onChange,h=a.values,f=a.step,g=a.rtl;if(-1===i&&-1===o[0]&&-1===o[1])return null;var m=r.trackRef.current;if(!m)return null;var v=m.getBoundingClientRect(),b=(0,u.isVertical)(s)?v.height:v.width;if(-1!==o[0]&&-1!==o[1]){var y=e-o[0],k=t-o[1],w=0;switch(s){case l.Direction.Right:case l.Direction.Left:w=y/b*(d-c);break;case l.Direction.Down:case l.Direction.Up:w=k/b*(d-c);break;default:(0,u.assertUnreachable)(s)}if(g&&(w*=-1),Math.abs(w)>=f/2){for(var x=0;x<r.thumbRefs.length;x++){if(h[x]===d&&1===Math.sign(w)||h[x]===c&&-1===Math.sign(w))return;var T=h[x]+w;T>d?w=d-h[x]:T<c&&(w=c-h[x])}var O=h.slice(0);for(x=0;x<r.thumbRefs.length;x++)O=(0,u.replaceAt)(O,x,r.normalizeValue(h[x]+w,x));r.setState({draggedTrackPos:[e,t]}),p(O)}}else{var M=0;switch(s){case l.Direction.Right:M=(e-v.left)/b*(d-c)+c;break;case l.Direction.Left:M=(b-(e-v.left))/b*(d-c)+c;break;case l.Direction.Down:M=(t-v.top)/b*(d-c)+c;break;case l.Direction.Up:M=(b-(t-v.top))/b*(d-c)+c;break;default:(0,u.assertUnreachable)(s)}g&&(M=d+c-M),Math.abs(h[i]-M)>=f/2&&p((0,u.replaceAt)(h,i,r.normalizeValue(M,i)))}},r.normalizeValue=function(e,t){var n=r.props,i=n.min,o=n.max,a=n.step,s=n.allowOverlap,c=n.values;return(0,u.normalizeValue)(e,t,i,o,a,s,c)},r.onEnd=function(e){if(e.preventDefault(),document.removeEventListener("mousemove",r.schdOnMouseMove),document.removeEventListener("touchmove",r.schdOnTouchMove),document.removeEventListener("mouseup",r.schdOnEnd),document.removeEventListener("touchend",r.schdOnEnd),document.removeEventListener("touchcancel",r.schdOnEnd),-1===r.state.draggedThumbIndex&&-1===r.state.draggedTrackPos[0]&&-1===r.state.draggedTrackPos[1])return null;r.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},(function(){r.fireOnFinalChange()}))},r.fireOnFinalChange=function(){r.setState({isChanged:!1});var e=r.props,t=e.onFinalChange,n=e.values;t&&t(n)},r.updateMarkRefs=function(e){if(!e.renderMark)return r.numOfMarks=void 0,void(r.markRefs=void 0);r.numOfMarks=(e.max-e.min)/r.props.step,r.markRefs=[];for(var t=0;t<r.numOfMarks+1;t++)r.markRefs[t]=c.createRef()},r.calculateMarkOffsets=function(){if(r.props.renderMark&&r.trackRef&&r.numOfMarks&&r.markRefs&&null!==r.trackRef.current){for(var e=window.getComputedStyle(r.trackRef.current),t=parseInt(e.width,10),n=parseInt(e.height,10),i=parseInt(e.paddingLeft,10),o=parseInt(e.paddingTop,10),a=[],s=0;s<r.numOfMarks+1;s++){var c=9999,u=9999;if(r.markRefs[s].current){var d=r.markRefs[s].current.getBoundingClientRect();c=d.height,u=d.width}r.props.direction===l.Direction.Left||r.props.direction===l.Direction.Right?a.push([Math.round(t/r.numOfMarks*s+i-u/2),-Math.round((c-n)/2)]):a.push([Math.round(n/r.numOfMarks*s+o-c/2),-Math.round((u-t)/2)])}r.setState({markOffsets:a})}},0===t.step)throw new Error('"step" property should be a positive number');return r.schdOnMouseMove=(0,u.schd)(r.onMouseMove),r.schdOnTouchMove=(0,u.schd)(r.onTouchMove),r.schdOnEnd=(0,u.schd)(r.onEnd),r.thumbRefs=t.values.map((function(){return c.createRef()})),r.updateMarkRefs(t),r}return n(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.values,n=t.min,i=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",e.onResize)},unobserve:function(){return window.removeEventListener("resize",e.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,u.checkInitialOverlap)(this.props.values),this.props.values.forEach((function(t){return(0,u.checkBoundaries)(t,e.props.min,e.props.max)})),this.resizeObserver.observe(this.trackRef.current),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),r.forEach((function(e){(0,u.isStepDivisible)(n,e,i)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},t.prototype.componentDidUpdate=function(e,t){var r=this.props,n=r.max,i=r.min,o=r.step,a=r.values,s=r.rtl;e.max===n&&e.min===i&&e.step===o||this.updateMarkRefs(this.props),(0,u.translateThumbs)(this.getThumbs(),this.getOffsets(),s),e.max===n&&e.min===i&&e.step===o&&t.markOffsets.length===this.state.markOffsets.length||(this.calculateMarkOffsets(),a.forEach((function(e){(0,u.isStepDivisible)(i,e,o)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})))},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},t.prototype.render=function(){var e=this,t=this.props,r=t.renderTrack,n=t.renderThumb,i=t.renderMark,o=void 0===i?function(){return null}:i,a=t.values,c=t.min,d=t.max,p=t.allowOverlap,h=t.disabled,f=this.state,g=f.draggedThumbIndex,m=f.thumbZIndexes,v=f.markOffsets;return r({props:{style:{transform:"scale(1)",cursor:g>-1?"grabbing":this.props.draggableTrack?(0,u.isVertical)(this.props.direction)?"ns-resize":"ew-resize":1!==a.length||h?"inherit":"pointer"},onMouseDown:h?u.voidFn:this.onMouseDownTrack,onTouchStart:h?u.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:h,children:s(s([],v.map((function(t,r,n){return o({props:{style:e.props.direction===l.Direction.Left||e.props.direction===l.Direction.Right?{position:"absolute",left:"".concat(t[0],"px"),marginTop:"".concat(t[1],"px")}:{position:"absolute",top:"".concat(t[0],"px"),marginLeft:"".concat(t[1],"px")},key:"mark".concat(r),ref:e.markRefs[r]},index:r})})),!0),a.map((function(t,r){var i=e.state.draggedThumbIndex===r;return n({index:r,value:t,isDragged:i,props:{style:{position:"absolute",zIndex:m[r],cursor:h?"inherit":i?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:r,tabIndex:h?void 0:0,"aria-valuemax":p?d:a[r+1]||d,"aria-valuemin":p?c:a[r-1]||c,"aria-valuenow":t,draggable:!1,ref:e.thumbRefs[r],role:"slider",onKeyDown:h?u.voidFn:e.onKeyDown,onKeyUp:h?u.voidFn:e.onKeyUp}})})),!0)})},t.defaultProps={step:1,direction:l.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},t}(c.Component);t.default=h},44175:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkValuesAgainstBoundaries=t.relativeValue=t.useThumbOverlap=t.Direction=t.getTrackBackground=t.Range=void 0;var i=n(r(96312));t.Range=i.default;var o=r(41669);Object.defineProperty(t,"getTrackBackground",{enumerable:!0,get:function(){return o.getTrackBackground}}),Object.defineProperty(t,"useThumbOverlap",{enumerable:!0,get:function(){return o.useThumbOverlap}}),Object.defineProperty(t,"relativeValue",{enumerable:!0,get:function(){return o.relativeValue}}),Object.defineProperty(t,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return o.checkValuesAgainstBoundaries}});var a=r(45426);Object.defineProperty(t,"Direction",{enumerable:!0,get:function(){return a.Direction}})},45426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Direction=void 0,function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"}(t.Direction||(t.Direction={}))},41669:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.useThumbOverlap=t.assertUnreachable=t.voidFn=t.getTrackBackground=t.replaceAt=t.schd=t.translate=t.getClosestThumbIndex=t.translateThumbs=t.getPaddingAndBorder=t.getMargin=t.checkInitialOverlap=t.checkValuesAgainstBoundaries=t.checkBoundaries=t.isVertical=t.relativeValue=t.normalizeValue=t.isStepDivisible=t.isTouchEvent=t.getStepDecimals=void 0;var i=r(5057),o=r(45426);function a(e){return e===o.Direction.Up||e===o.Direction.Down}function s(e,t,r){e.style.transform="translate(".concat(t,"px, ").concat(r,"px)")}t.getStepDecimals=function(e){var t=e.toString().split(".")[1];return t?t.length:0},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.isStepDivisible=function(e,t,r){var n=Number(((t-e)/r).toFixed(8));return parseInt(n.toString(),10)===n},t.normalizeValue=function(e,r,n,i,o,a,s){var c=1e11;if(e=Math.round(e*c)/c,!a){var u=s[r-1],l=s[r+1];if(u&&u>e)return u;if(l&&l<e)return l}if(e>i)return i;if(e<n)return n;var d=Math.floor(e*c-n*c)%Math.floor(o*c),p=Math.floor(e*c-Math.abs(d)),h=0===d?e:p/c,f=Math.abs(d/c)<o/2?h:h+o,g=(0,t.getStepDecimals)(o);return parseFloat(f.toFixed(g))},t.relativeValue=function(e,t,r){return(e-t)/(r-t)},t.isVertical=a,t.checkBoundaries=function(e,t,r){if(t>=r)throw new RangeError("min (".concat(t,") is equal/bigger than max (").concat(r,")"));if(e<t)throw new RangeError("value (".concat(e,") is smaller than min (").concat(t,")"));if(e>r)throw new RangeError("value (".concat(e,") is bigger than max (").concat(r,")"))},t.checkValuesAgainstBoundaries=function(e,t,r){return e<t?t:e>r?r:e},t.checkInitialOverlap=function(e){if(!(e.length<2)&&!e.slice(1).every((function(t,r){return e[r]<=t})))throw new RangeError("values={[".concat(e,"]} needs to be sorted when allowOverlap={false}"))},t.getMargin=function(e){var t=window.getComputedStyle(e);return{top:parseInt(t["margin-top"],10),bottom:parseInt(t["margin-bottom"],10),left:parseInt(t["margin-left"],10),right:parseInt(t["margin-right"],10)}},t.getPaddingAndBorder=function(e){var t=window.getComputedStyle(e);return{top:parseInt(t["padding-top"],10)+parseInt(t["border-top-width"],10),bottom:parseInt(t["padding-bottom"],10)+parseInt(t["border-bottom-width"],10),left:parseInt(t["padding-left"],10)+parseInt(t["border-left-width"],10),right:parseInt(t["padding-right"],10)+parseInt(t["border-right-width"],10)}},t.translateThumbs=function(e,t,r){var n=r?-1:1;e.forEach((function(e,r){return s(e,n*t[r].x,t[r].y)}))},t.getClosestThumbIndex=function(e,t,r,n){for(var i=0,o=u(e[0],t,r,n),a=1;a<e.length;a++){var s=u(e[a],t,r,n);s<o&&(o=s,i=a)}return i},t.translate=s;t.schd=function(e){var t=[],r=null;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t=n,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))}},t.replaceAt=function(e,t,r){var n=e.slice(0);return n[t]=r,n},t.getTrackBackground=function(e){var t=e.values,r=e.colors,n=e.min,i=e.max,a=e.direction,s=void 0===a?o.Direction.Right:a,c=e.rtl,u=void 0!==c&&c;u&&s===o.Direction.Right?s=o.Direction.Left:u&&o.Direction.Left&&(s=o.Direction.Right);var l=t.slice(0).sort((function(e,t){return e-t})).map((function(e){return(e-n)/(i-n)*100})).reduce((function(e,t,n){return"".concat(e,", ").concat(r[n]," ").concat(t,"%, ").concat(r[n+1]," ").concat(t,"%")}),"");return"linear-gradient(".concat(s,", ").concat(r[0]," 0%").concat(l,", ").concat(r[r.length-1]," 100%)")},t.voidFn=function(){},t.assertUnreachable=function(e){throw new Error("Didn't expect to get here")};var c=function(e,t,r,i,o){return void 0===o&&(o=function(e){return e}),Math.ceil(n([e],Array.from(e.children),!0).reduce((function(e,n){var a=Math.ceil(n.getBoundingClientRect().width);if(n.innerText&&n.innerText.includes(r)&&0===n.childElementCount){var s=n.cloneNode(!0);s.innerHTML=o(t.toFixed(i)),s.style.visibility="hidden",document.body.appendChild(s),a=Math.ceil(s.getBoundingClientRect().width),document.body.removeChild(s)}return a>e?a:e}),e.getBoundingClientRect().width))};function u(e,t,r,n){var i=e.getBoundingClientRect(),o=i.left,s=i.top,c=i.width,u=i.height;return a(n)?Math.abs(r-(s+u/2)):Math.abs(t-(o+c/2))}t.useThumbOverlap=function(e,r,o,a,s,u){void 0===a&&(a=.1),void 0===s&&(s=" - "),void 0===u&&(u=function(e){return e});var l=(0,t.getStepDecimals)(a),d=(0,i.useState)({}),p=d[0],h=d[1],f=(0,i.useState)(u(r[o].toFixed(l))),g=f[0],m=f[1];return(0,i.useEffect)((function(){if(e){var t=e.getThumbs();if(t.length<1)return;var i={},a=e.getOffsets(),d=function(e,t,r,i,o,a,s){void 0===s&&(s=function(e){return e});var u=[],l=function(e){var d=c(r[e],i[e],o,a,s),p=t[e].x;t.forEach((function(t,h){var f=t.x,g=c(r[h],i[h],o,a,s);e!==h&&(p>=f&&p<=f+g||p+d>=f&&p+d<=f+g)&&(u.includes(h)||(u.push(e),u.push(h),u=n(n([],u,!0),[e,h],!1),l(h)))}))};return l(e),Array.from(new Set(u.sort()))}(o,a,t,r,s,l,u),p=u(r[o].toFixed(l));if(d.length){var f=d.reduce((function(e,t,r,i){return e.length?n(n([],e,!0),[a[i[r]].x],!1):[a[i[r]].x]}),[]);if(Math.min.apply(Math,f)===a[o].x){var g=[];d.forEach((function(e){g.push(r[e].toFixed(l))})),p=Array.from(new Set(g.sort((function(e,t){return parseFloat(e)-parseFloat(t)})))).map(u).join(s);var v=Math.min.apply(Math,f),b=Math.max.apply(Math,f),y=t[d[f.indexOf(b)]].getBoundingClientRect().width;i.left="".concat(Math.abs(v-(b+y))/2,"px"),i.transform="translate(-50%, 0)"}else i.visibility="hidden"}m(p),h(i)}}),[e,r]),[g,p]}},59500:(e,t,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return function(e,t){var r,n,a,s,c,u,l,d,p,h=1,f=e.length,g="";for(n=0;n<f;n++)if("string"===typeof e[n])g+=e[n];else if("object"===typeof e[n]){if((s=e[n]).keys)for(r=t[h],a=0;a<s.keys.length;a++){if(void 0==r)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));r=r[s.keys[a]]}else r=s.param_no?t[s.param_no]:t[h++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!==typeof r&&isNaN(r))throw new TypeError(o("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(d=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||d&&!s.sign?p="":(p=d?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",l=s.width-(p+r).length,c=s.width&&l>0?u.repeat(l):"",g+=s.align?p+r+c:"0"===u?p+c+r:c+p+r)}return g}(function(e){if(s[e])return s[e];var t,r=e,n=[],o=0;for(;r;){if(null!==(t=i.text.exec(r)))n.push(t[0]);else if(null!==(t=i.modulo.exec(r)))n.push("%");else{if(null===(t=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],c=t[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))a.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[e]=n}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=o,t.vsprintf=a,"undefined"!==typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(n=function(){return{sprintf:o,vsprintf:a}}.call(t,r,t,e))||(e.exports=n))}()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[144],{10144:(t,i,e)=>{e.r(i),e.d(i,{default:()=>h});e(5057);var n=e(70800),o=e(19954),l=e(82160);const r=(0,l.Z)("div",{target:"e115fcil2"})((t=>{let{theme:i}=t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:i.spacing.lg}}),""),a=(0,l.Z)("div",{target:"e115fcil1"})((()=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:"auto",flexGrow:0})),""),d=(0,l.Z)("div",{target:"e115fcil0"})((t=>{let{theme:i}=t;return{fontFamily:i.genericFonts.bodyFont,fontSize:i.fontSizes.sm,color:i.colors.fadedText60,textAlign:"center",marginTop:i.spacing.xs,wordWrap:"break-word",padding:"0.125rem"}}),"");var s=e(96266),c=function(t){return t[t.OriginalWidth=-1]="OriginalWidth",t[t.ColumnWidth=-2]="ColumnWidth",t[t.AutoWidth=-3]="AutoWidth",t}(c||{});const h=(0,n.Z)((function(t){let{width:i,isFullScreen:e,element:n,height:l,endpoints:h}=t;const u=(0,o.$R)(n.imgs);let g;const f=n.width;if(f===c.OriginalWidth||f===c.AutoWidth)g=void 0;else if(f===c.ColumnWidth)g=i;else{if(!(f>0))throw Error("Invalid image width: ".concat(f));g=f}const p={};return l&&e?(p.maxHeight=l,p["object-fit"]="contain"):(p.width=g,f===c.AutoWidth&&(p.maxWidth="100%")),(0,s.jsx)(r,{style:{width:i},children:u.map(((t,i)=>{const e=t;return(0,s.jsxs)(a,{"data-testid":"stImage",children:[(0,s.jsx)("img",{style:p,src:h.buildMediaURL(e.url),alt:i.toString()}),e.caption&&(0,s.jsx)(d,{"data-testid":"caption",style:p,children:" ".concat(e.caption," ")})]},i)}))})}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[1619],{72728:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ke});var i=n(5057),o=n(66751),a=n(27179),l=n(52955),r=n(70800),s=n(60913),d=n(50120),u=n(65873),c=n(61918),m=n.n(c),h=n(59500),g=n(88084),f=n.n(g);n(56719),n(21763);const p=["true","t","yes","y","on","1"],b=["false","f","no","n","off","0"];function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e="\u26a0\ufe0f ".concat(e),{kind:o.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?"\n\n".concat(t,"\n"):""),displayData:e,isError:!0}}function y(e){return e.hasOwnProperty("isError")&&e.isError}function w(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function x(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.p6.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.p6.Loading,allowOverlay:!1}}function C(e,t){const n=t?"faded":"normal";return{kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function E(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function M(e,t){return(0,d.le)(e)?t||{}:(0,d.le)(t)?e||{}:(0,u.merge)(e,t)}function T(e){if((0,d.le)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if(e instanceof Uint8Array&&(e=new TextDecoder("utf-8").decode(e)),"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(0,u.isArray)(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:N(e))):[N(t)]}catch(t){return[N(e)]}}function N(e){try{try{return(0,u.toString)(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return"[".concat(typeof e,"]")}}function R(e){if((0,d.le)(e))return null;if("boolean"===typeof e)return e;const t=N(e).toLowerCase().trim();return""===t?null:!!p.includes(t)||!b.includes(t)&&void 0}function k(e){if((0,d.le)(e))return null;if((0,u.isArray)(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=m().unformat(e.trim());if((0,d.bb)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function _(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,d.le)(t)||""===t?(0===n&&(e=Math.round(e)),m()(e).format((0,d.bb)(n)?"0,0.".concat("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):(0,h.sprintf)(t,e)}function S(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 O(e){if((0,d.le)(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=f().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=f().utc(e);if(t.isValid())return t.toDate();const n=f().utc(e,[f().HTML5_FMT.TIME_MS,f().HTML5_FMT.TIME_SECONDS,f().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function I(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 D=new RegExp(/(\r\n|\n|\r)/gm);function H(e){return-1!==e.indexOf("\n")?e.replace(D," "):e}var A=n(70714),V=n(28048);function z(e){const t={kind:o.p6.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,d.bb)(e)?N(e):null,i=(0,d.bb)(n)?H(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,d.le)(e)}}catch(n){return v(N(e),"The value cannot be interpreted as a string. Error: ".concat(n))}},getCellValue:e=>void 0===e.data?null:e.data}}z.isEditableType=!1;const F=z;function L(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(l)}const i={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},a=i=>{if((0,d.le)(i))return!e.isRequired;let o=N(i),a=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),a=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!a||o)};return{...e,kind:"text",sortMode:"default",validateInput:a,getCell(e,t){if("string"===typeof n)return v(N(e),n);if(t){const t=a(e);if(!1===t)return v(N(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,d.bb)(e)?N(e):null,n=(0,d.bb)(t)?H(t):"";return{...i,isMissingValue:(0,d.le)(t),data:t,displayData:n}}catch(l){return v("Incompatible value","The value cannot be interpreted as string. Error: ".concat(l))}},getCellValue:e=>void 0===e.data?null:e.data}}L.isEditableType=!0;const W=L;function j(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function Y(e,t,n,i,a,l,r){var s;const u=M({format:n,step:i,timezone:r},t.columnTypeOptions);let c,m,h;if((0,d.bb)(u.timezone))try{var g;c=(null===(g=j(f()(),u.timezone))||void 0===g?void 0:g.utcOffset())||void 0}catch(y){}(0,d.bb)(u.min_value)&&(m=O(u.min_value)||void 0),(0,d.bb)(u.max_value)&&(h=O(u.max_value)||void 0);const p={kind:o.p6.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=u.step)||void 0===s?void 0:s.toString())||"1",format:a,min:m,max:h}},b=e=>{const n=O(e);return null===n?!t.isRequired:void 0!==n&&(!((0,d.bb)(m)&&l(n)<l(m))&&!((0,d.bb)(h)&&l(n)>l(h)))};return{...t,kind:e,sortMode:"default",validateInput:b,getCell(e,t){if(!0===t){const t=b(e);if(!1===t)return v(N(e),"Invalid input.");t instanceof Date&&(e=t)}const i=O(e);let o="",a="",l=c;if(void 0===i)return v(N(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=f().utc(i);if(!e.isValid())return v(N(i),"This should never happen. Please report this bug. \nError: ".concat(e.toString()));if(u.timezone){try{e=j(e,u.timezone)}catch(y){return v(e.toISOString(),"Failed to adjust to the provided timezone: ".concat(u.timezone,". \nError: ").concat(y))}l=e.utcOffset()}try{a=S(e,u.format||n)}catch(y){return v(e.toISOString(),"Failed to format the date for rendering with: ".concat(u.format,". \nError: ").concat(y))}o=S(e,n)}return{...p,copyData:o,isMissingValue:(0,d.le)(i),data:{...p.data,date:i,displayDate:a,timezoneOffset:l}}},getCellValue(e){var t;return(0,d.le)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}}}function B(e){var t,n,i,o;let a="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?a="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(a="YYYY-MM-DD HH:mm:ss.SSS");const l=null===(i=e.arrowType)||void 0===i||null===(i=i.meta)||void 0===i?void 0:i.timezone,r=(0,d.bb)(l)||(0,d.bb)(null===e||void 0===e||null===(o=e.columnTypeOptions)||void 0===o?void 0:o.timezone);return Y("datetime",e,r?a+"Z":a,1,"datetime-local",(e=>r?e.toISOString():e.toISOString().replace("Z","")),l)}function P(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"),Y("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function Z(e){return Y("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function q(e){const t={kind:o.p6.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=R(e),void 0===n?v(N(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,d.le)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}B.isEditableType=!0,P.isEditableType=!0,Z.isEditableType=!0,q.isEditableType=!0;const J=q;function U(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function G(e){const t=V.fu.getTypeName(e.arrowType),n=M({step:U(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0},e.columnTypeOptions),i=(0,d.le)(n.min_value)||n.min_value<0,a=(0,d.bb)(n.step)&&!Number.isNaN(n.step)?I(n.step):void 0,l={kind:o.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:i,fixedDecimals:a},r=t=>{let i=k(t);if((0,d.le)(i))return!e.isRequired;if(Number.isNaN(i))return!1;let o=!1;return(0,d.bb)(n.max_value)&&i>n.max_value&&(i=n.max_value,o=!0),!((0,d.bb)(n.min_value)&&i<n.min_value)&&(!o||i)};return{...e,kind:"number",sortMode:"smart",validateInput:r,getCell(e,t){if(!0===t){const t=r(e);if(!1===t)return v(N(e),"Invalid input.");"number"===typeof t&&(e=t)}let i=k(e),o="";if((0,d.bb)(i)){if(Number.isNaN(i))return v(N(e),"The value cannot be interpreted as a number.");if((0,d.bb)(a)&&(s=i,i=0===(u=a)?Math.trunc(s):Math.trunc(s*10**u)/10**u),Number.isInteger(i)&&!Number.isSafeInteger(i))return v(N(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=_(i,n.format,a)}catch(c){return v(N(i),(0,d.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(c):"Failed to format the number. Error: ".concat(c))}}var s,u;return{...l,data:i,displayData:o,isMissingValue:(0,d.le)(i)}},getCellValue:e=>void 0===e.data?null:e.data}}G.isEditableType=!0;const K=G;function X(e){let t="string";const n=M({options:"bool"===V.fu.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 a={kind:o.p6.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>N(e)))],value:"",readonly:!e.isEditable}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,d.bb)(e)&&""!==e&&(n=N(e)),t&&!a.data.allowedValues.includes(n)?v(N(n),"The value is not part of the allowed options."):{...a,isMissingValue:null===n,copyData:n||"",data:{...a.data,value:n}}},getCellValue(e){var n,i,o,a,l,r,s;return(0,d.le)(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!==(a=k(null===(l=e.data)||void 0===l?void 0:l.value))&&void 0!==a?a:null:"boolean"===t?null!==(r=R(null===(s=e.data)||void 0===s?void 0:s.value))&&void 0!==r?r:null:null===(o=e.data)||void 0===o?void 0:o.value}}}X.isEditableType=!0;const Q=X;function $(e){const t={kind:o.p6.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,d.le)(e)?[]:T(e);return{...t,data:n,isMissingValue:(0,d.le)(e),copyData:(0,d.le)(e)?"":N(n.map((e=>(0,u.isString)(e)&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,d.le)(e.data)||w(e)?null:e.data}}$.isEditableType=!1;const ee=$;function te(e,t,n){const i=new RegExp("".concat(e,"[,\\s].*{(?:[^}]*[\\s;]{1})?").concat(t,":\\s*([^;}]+)[;]?.*}"),"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function ne(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===V.fu.getTypeName(n)&&(o=!1),{id:"index-".concat(t),name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ie(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,d.le)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===V.fu.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,d.bb)(n)&&(i={options:n})}return{id:"column-".concat(n,"-").concat(t),name:n,title:n,isEditable:!0,arrowType:o,columnTypeOptions:i,isIndex:!1,isHidden:!1}}function oe(e,t){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("object"===e.kind)n=e.getCell((0,d.bb)(t.content)?H(V.fu.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,d.bb)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var a;let i;i="time"===V.fu.getTypeName(e.arrowType)&&(0,d.bb)(null===(a=t.field)||void 0===a||null===(a=a.type)||void 0===a?void 0:a.unit)?f().unix(V.fu.adjustTimestamp(t.content,t.field)).utc().toDate():f().utc(Number(t.content)).toDate(),n=e.getCell(i)}else n=e.getCell(t.content);if(y(n))return n;if(!e.isEditable){if((0,d.bb)(t.displayContent)){var l;const e=H(t.displayContent);n.kind===o.p6.Text||n.kind===o.p6.Number?n={...n,displayData:e}:n.kind===o.p6.Custom&&"date-picker-cell"===(null===(l=n.data)||void 0===l?void 0:l.kind)&&(n={...n,data:{...n.data,displayDate:e}})}i&&t.cssId&&(n=function(e,t,n){const i={},o=te(t,"color",n);o&&(i.textDark=o);const a=te(t,"background-color",n);return a&&(i.bgCell=a),"yellow"===a&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(n,t.cssId,i))}return n}function ae(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(l)}const i={kind:o.p6.Uri,data:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"},a=i=>{if((0,d.le)(i))return!e.isRequired;let o=N(i),a=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),a=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!a||o)};return{...e,kind:"link",sortMode:"default",validateInput:a,getCell(e,t){if("string"===typeof n)return v(N(e),n);if(t){const t=a(e);if(!1===t)return v(N(e),"Invalid input.");"string"===typeof t&&(e=t)}return{...i,data:(0,d.bb)(e)?N(e):null,isMissingValue:(0,d.le)(e)}},getCellValue:e=>void 0===e.data?null:e.data}}ae.isEditableType=!0;const le=ae;function re(e){const t={kind:o.p6.Image,data:[],displayData:[],allowAdd:!1,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return{...e,kind:"image",sortMode:"default",isEditable:!1,getCell(e){const n=(0,d.bb)(e)?[N(e)]:[];return{...t,data:n,isMissingValue:!(0,d.bb)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}re.isEditableType=!1;const se=re;function de(e){const t=U(V.fu.getTypeName(e.arrowType)),n=M({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=_(n.max_value,n.format)}catch(r){i=N(n.max_value)}const a=(0,d.le)(n.step)||Number.isNaN(n.step)?void 0:I(n.step),l={kind:o.p6.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,d.le)(e))return x();if((0,d.le)(n.min_value)||(0,d.le)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return v("Invalid min/max parameters","The min_value (".concat(n.min_value,") and max_value (").concat(n.max_value,") parameters must be valid numbers."));if((0,d.le)(n.step)||Number.isNaN(n.step))return v("Invalid step parameter","The step parameter (".concat(n.step,") must be a valid number."));const t=k(e);if(Number.isNaN(t)||(0,d.le)(t))return v(N(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return v(N(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=_(t,n.format,a)}catch(r){return v(N(t),(0,d.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(r):"Failed to format the number. Error: ".concat(r))}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...l,isMissingValue:(0,d.le)(e),copyData:String(t),data:{...l.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.p6.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}}}de.isEditableType=!1;const ue=de;function ce(e,t,n){const i=M({y_min:0,y_max:1},t.columnTypeOptions),a={kind:o.p6.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,d.le)(i.y_min)||(0,d.le)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return v("Invalid min/max y-axis configuration","The y_min (".concat(i.y_min,") and y_max (").concat(i.y_max,") configuration options must be valid numbers."));if((0,d.le)(e))return x();const t=T(e),o=[];let l=[];if(0===t.length)return x();let r=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER;for(let n=0;n<t.length;n++){const e=k(t[n]);if(Number.isNaN(e)||(0,d.le)(e))return v(N(t),"The value cannot be interpreted as a numeric array. ".concat(N(e)," is not a number."));e>r&&(r=e),e<s&&(s=e),o.push(e)}return"line"===n&&o.length<=2?x():(l=o.length>0&&(r>i.y_max||s<i.y_min)?o.map((e=>r-s===0?r>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-s)/(r-s))+(i.y_min||0))):o,{...a,copyData:o.join(","),data:{...a.data,values:l,displayValues:o.map((e=>_(e)))},isMissingValue:(0,d.le)(e)})},getCellValue(e){var t,n;return e.kind===o.p6.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 me(e){return ce("line_chart",e,"line")}function he(e){return ce("bar_chart",e,"bar")}me.isEditableType=!1,he.isEditableType=!1;const ge=new Map(Object.entries({object:F,text:W,checkbox:J,selectbox:Q,list:ee,number:K,link:le,datetime:B,date:Z,time:P,line_chart:me,bar_chart:he,image:se,progress:ue})),fe=[],pe="_index",be="_pos:",ve={small:75,medium:200,large:400};function ye(e){if(!(0,d.le)(e))return"number"===typeof e?e:e in ve?ve[e]:void 0}function we(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==pe?n=t.get(e.name):t.has("".concat(be).concat(e.indexNumber))?n=t.get("".concat(be).concat(e.indexNumber)):e.isIndex&&t.has(pe)&&(n=t.get(pe)),n?(0,u.merge)({...e},{title:n.label,width:ye(n.width),isEditable:(0,d.bb)(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,d.bb)(n)&&(ge.has(n)?i=ge.get(n):(0,A.KE)("Unknown column type configured in column configuration: ".concat(n))),(0,d.le)(i)&&(i=function(e){let t=e?V.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?W:["datetime","datetimetz"].includes(t)?B:"time"===t?P:"date"===t?Z:["object","decimal","bytes"].includes(t)?F:["bool"].includes(t)?J:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range"].includes(t)?K:"categorical"===t?Q:t.startsWith("list")?ee:F):F}(e.arrowType)),i}const Ce=function(e,t,n){const i=function(e){if(!e.columns)return new Map;try{return new Map(Object.entries(JSON.parse(e.columns)))}catch(t){return(0,A.H)(t),new Map}}(e),o=e.useContainerWidth||(0,d.bb)(e.width)&&e.width>0;let a=function(e){var t,n,i,o;const a=[],l=null!==(t=null===(n=e.types)||void 0===n||null===(n=n.index)||void 0===n?void 0:n.length)&&void 0!==t?t:0,r=null!==(i=null===(o=e.columns)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.length)&&void 0!==i?i:0;if(0===l&&0===r)return a.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),a;for(let s=0;s<l;s++){const t={...ne(e,s),indexNumber:s};a.push(t)}for(let s=0;s<r;s++){const t={...ie(e,s),indexNumber:s+l};a.push(t)}return a}(t).map((t=>{let a={...t,...we(t,i),isStretched:o};const l=xe(a);return(e.editingMode===s.Eh.EditingMode.READ_ONLY||n||!1===l.isEditableType)&&(a={...a,isEditable:!1}),e.editingMode!==s.Eh.EditingMode.READ_ONLY&&1==a.isEditable&&(a={...a,icon:"editable"}),l(a)})).filter((e=>!e.isHidden));if(e.columnOrder&&e.columnOrder.length>0){const t=[];a.forEach((e=>{e.isIndex&&t.push(e)})),e.columnOrder.forEach((e=>{const n=a.find((t=>t.name===e));n&&!n.isIndex&&t.push(n)})),a=t}return{columns:a.length>0?a:[F({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}};function Ee(e){return e.isIndex?pe:(0,d.le)(e.name)?"":e.name}const Me=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 a={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(a[Ee(o)]=o.getCellValue(e))})),n.edited_rows[i]=a})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,a)=>{const l=t.get(n);if(l){const t=l.getCellValue(e);l.isRequired&&l.isEditable&&w(e)&&(o=!0),(0,d.bb)(t)&&(i[Ee(l)]=t)}})),o||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}fromJson(e,t){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];const n=JSON.parse(e),i=new Map;t.forEach((e=>{i.set(e.indexNumber,e)}));const o=new Map;t.forEach((e=>{o.set(Ee(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],a=o.get(e);if(a){const e=a.getCell(n);var l;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(l=this.editedCells.get(t))||void 0===l||l.set(a.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const t=new Map;Object.keys(e).forEach((n=>{const i=e[n],a=o.get(n);if(a){const e=a.getCell(i);e&&t.set(a.indexNumber,e)}})),this.addedRows.push(t)})),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,d.le)(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 Te=n(59990),Ne=n(47206);const Re=function(){const e=(0,Ne.u)(),t=i.useMemo((()=>({editable:e=>'<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="'.concat(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{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,Te.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,Te.DZ)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:"".concat(e.fontSizes.sm),baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,Te.DZ)(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,tableBorderRadius:e.radii.lg,headerIcons:t}};const ke=function(e,t,n,o){return{getCellContent:i.useCallback((i=>{let[a,l]=i;if(a>t.length-1)return v("Column index out of bounds.","This should never happen. Please report this bug.");if(l>n-1)return v("Row index out of bounds.","This should never happen. Please report this bug.");const r=t[a],s=r.indexNumber,d=o.current.getOriginalRowIndex(l);if(r.isEditable||o.current.isAddedRow(d)){const e=o.current.getCell(s,d);if(void 0!==e)return e}try{return oe(r,e.getCell(d+1,s),e.cssStyles)}catch(u){return(0,A.H)(u),v("Error during cell creation.","This should never happen. Please report this bug. \nError: ".concat(u))}}),[t,n,e,o])}};var _e=n(33256);const Se=function(e,t,n){const[o,a]=i.useState(),{getCellContent:l,getOriginalIndex:r}=(0,_e.fF)({columns:t.map((e=>E(e))),getCellContent:n,rows:e,sort:o}),s=function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?"\u2191 ".concat(e.title):"\u2193 ".concat(e.title)}:e))}(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 a(void 0);t="desc"}a({column:E(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:r,getCellContent:l}};const Oe=function(e,t,n,o,a,l,r){const s=i.useCallback(((t,i)=>{let[l,s]=t;const d=e[l];if(!d.isEditable)return;const u=d.indexNumber,c=n.current.getOriginalRowIndex(a(s)),m=o([l,s]),h=d.getCellValue(m),g=d.getCellValue(i);if(!y(m)&&g===h)return;const f=d.getCell(g,!0);y(f)?(0,A.KE)("Not applying the cell edit since it causes this error:\n ".concat(f.data)):(n.current.setCell(u,c,{...f,lastUpdated:performance.now()}),r())}),[e,n,a,o,r]),u=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i)}),[e,n,t]),c=i.useCallback((()=>{t||(u(),r())}),[u,r,t]),m=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(a(e))));return n.current.deleteRows(e),r(!0),!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]}),s([o,i],n.getCell(null)))}return t.length>0&&(r(),l(t)),!1}return!0}),[e,n,t,l,a,r,s]),h=i.useCallback(((i,s)=>{const[c,m]=i,h=[];for(let g=0;g<s.length;g++){const i=s[g];if(g+m>=n.current.getNumRows()){if(t)break;u()}for(let t=0;t<i.length;t++){const l=i[t],r=g+m,s=t+c;if(s>=e.length)break;const u=e[s];if(u.isEditable){const e=u.getCell(l,!0);if((0,d.bb)(e)&&!y(e)){const t=u.indexNumber,i=n.current.getOriginalRowIndex(a(r)),l=u.getCellValue(o([s,r]));u.getCellValue(e)!==l&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),h.push({cell:[s,r]}))}}}h.length>0&&(r(),l(h))}return!1}),[e,n,t,a,o,u,r,l]),g=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:s,onPaste:h,onRowAppended:c,onDelete:m,validateCell:g}};const Ie=function(e,t){const[n,o]=i.useState(),a=i.useRef(null),l=i.useCallback((n=>{if(clearTimeout(a.current),a.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],l=n.location[1];let r;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,d.bb)(s))r=s.help;else if("cell"===n.kind){const e=t([i,l]);s.isRequired&&s.isEditable&&w(e)?r="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(r=e.tooltip)}r&&(a.current=setTimeout((()=>{r&&o({content:r,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,a]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:l}};var De=n(8751);const He=function(e,t){return{drawCell:i.useCallback((n=>{const{cell:i,theme:a,ctx:l,rect:r}=n,s=t?n.col-1:n.col;if(w(i)&&s<e.length){let t=!1;const i=e[s];return["checkbox","line_chart","bar_chart","progress"].includes(i.kind)||((e=>{const{cell:t,theme:n}=e;(0,o.uN)({...e,theme:{...n,textDark:n.textLight,textMedium:n.textLight},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign)})(n),t=!0),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,a),t}return!1}),[e,t]),customRenderers:[...(0,De.Bn)().customRenderers,...fe]}};const Ae=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,a)=>{e.id&&n(new Map(t).set(e.id,a))}),[t]);return{columns:e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e)),onColumnResize:o}},Ve=35,ze=2*Ve+3;const Fe=function(e,t,n,o,a){let l,r=function(e){return Math.max(e*Ve+1+2,ze)}(t+1+(e.editingMode===s.Eh.EditingMode.DYNAMIC?1:0)),u=Math.min(r,400);e.height&&(u=Math.max(e.height,ze),r=Math.max(e.height,r)),o&&(u=Math.min(u,o),r=Math.min(r,o),e.height||(u=r));let c=n;e.useContainerWidth?l=n:e.width&&(l=Math.min(Math.max(e.width,52),n),c=Math.min(Math.max(e.width,c),n));const[m,h]=i.useState({width:l||"100%",height:u});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===m.width&&h({width:n,height:m.height})}),[n]),i.useLayoutEffect((()=>{h({width:m.width,height:u})}),[t]),i.useLayoutEffect((()=>{h({width:l||"100%",height:m.height})}),[l]),i.useLayoutEffect((()=>{h({width:m.width,height:u})}),[u]),i.useLayoutEffect((()=>{if(a){const t=e.useContainerWidth||(0,d.bb)(e.width)&&e.width>0;h({width:t?c:"100%",height:r})}else h({width:l||"100%",height:u})}),[a]),{rowHeight:Ve,minHeight:ze,maxHeight:r,minWidth:52,maxWidth:c,resizableSize:m,setResizableSize:h}};var Le=n(82160),We=n(96266);const je=(0,Le.Z)("img",{target:"e24uaba0"})((()=>({maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"})),""),Ye=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,We.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,We.jsx)(je,{src:n})}):(0,We.jsx)(je,{src:n})},Be=(0,Le.Z)("div",{target:"e1w7nams0"})((e=>{let{theme:t}=e;return{position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:t.radii.lg},"& .dvn-scroller":{scrollbarWidth:"thin",overflowX:"overlay !important",overflowY:"overlay !important"}}}),"");var Pe=n(98399),Ze=n(73830),qe=n(46403),Je=n(37661),Ue=n(17966);const Ge=function(e){let{top:t,left:n,content:o,clearTooltip:a}=e;const[l,r]=i.useState(!0),s=(0,Ne.u)(),{colors:d,fontSizes:u,radii:c}=s,m=i.useCallback((()=>{r(!1),a()}),[a,r]);return(0,We.jsx)(Pe.Z,{content:(0,We.jsx)(Je.Uo,{className:"stTooltipContent",children:(0,We.jsx)(qe.ZP,{style:{fontSize:u.sm},source:o,allowHTML:!1})}),placement:Ze.r4.top,accessibilityType:Ze.SI.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:m,onEsc:m,overrides:{Body:{style:{borderTopLeftRadius:c.md,borderTopRightRadius:c.md,borderBottomLeftRadius:c.md,borderBottomRightRadius:c.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,Ue.Iy)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:u.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:l,children:(0,We.jsx)("div",{className:"stTooltipTarget","data-testid":"stTooltipTarget",style:{position:"fixed",top:t,left:n}})})};n(27235),n(33091);const Ke=(0,r.Z)((function(e){let{element:t,data:n,width:r,height:u,disabled:c,widgetMgr:m,isFullScreen:h}=e;const g=i.useRef(null),f=i.useRef(null),p=Re(),[b,v]=i.useState(!0),y=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),[w,x]=i.useState({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0}),M=i.useCallback((()=>{x({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0})}),[]),T=i.useCallback((e=>{var t;null===(t=f.current)||void 0===t||t.updateCells(e)}),[]);(0,d.le)(t.editingMode)&&(t.editingMode=s.Eh.EditingMode.READ_ONLY);const{READ_ONLY:N,DYNAMIC:R}=s.Eh.EditingMode,k=n.dimensions,_=Math.max(0,k.rows-1),S=0===_&&!(t.editingMode===R&&k.dataColumns>0),O=_>15e4,I=i.useRef(new Me(_)),[D,H]=i.useState(I.current.getNumRows());i.useEffect((()=>{I.current=new Me(_),H(I.current.getNumRows())}),[_]);const A=i.useCallback((()=>{I.current=new Me(_),H(I.current.getNumRows())}),[_]),{columns:V}=Ce(t,n,c);i.useEffect((()=>{if(t.editingMode!==N){const e=m.getStringValue(t);e&&(I.current.fromJson(e,V),H(I.current.getNumRows()))}}),[]);const{getCellContent:z}=ke(n,V,D,I),{columns:F,sortColumn:L,getOriginalIndex:W,getCellContent:j}=Se(_,V,z),Y=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];D!==I.current.getNumRows()&&H(I.current.getNumRows()),e&&M(),(0,d.Ds)(100,(()=>{const e=I.current.toJson(F);let i=m.getStringValue(t);void 0===i&&(i=new Me(0).toJson([])),e!==i&&m.setStringValue(t,e,{fromUi:n})}))()}),[m,t,D,M,F]),{onCellEdited:B,onPaste:P,onRowAppended:Z,onDelete:q,validateCell:J}=Oe(F,t.editingMode!==R,I,j,W,T,Y),{tooltip:U,clearTooltip:G,onItemHovered:K}=Ie(F,j),{drawCell:X,customRenderers:Q}=He(F,t.editingMode===R),{columns:$,onColumnResize:ee}=Ae(F.map((e=>E(e)))),{rowHeight:te,minHeight:ne,maxHeight:ie,minWidth:oe,maxWidth:ae,resizableSize:le,setResizableSize:re}=Fe(t,D,r,u,h),se=i.useCallback((e=>{let[t,n]=e;return{...C(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:p.textLight},span:[0,Math.max(F.length-1,0)]}}),[F,p.textLight]);return i.useEffect((()=>{const e=new l.K;return e.manageFormClearListener(m,t.formId,A),()=>{e.disconnect()}}),[t.formId,A,m]),(0,We.jsxs)(Be,{"data-testid":"stDataFrame",className:"stDataFrame",onBlur:()=>{b||y||M()},children:[(0,We.jsx)(a.e,{"data-testid":"stDataFrameResizable",ref:g,defaultSize:le,style:{border:"1px solid ".concat(p.borderColor),borderRadius:"".concat(p.tableBorderRadius)},minHeight:ne,maxHeight:ie,minWidth:oe,maxWidth:ae,size:le,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,te],snapGap:te/3,onResizeStop:(e,t,n,i)=>{g.current&&re({width:g.current.size.width,height:ie-g.current.size.height===3?g.current.size.height+3:g.current.size.height})},children:(0,We.jsx)(o.Nd,{className:"glideDataEditor",ref:f,columns:$,rows:S?1:D,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:te,headerHeight:te,getCellContent:S?se:j,onColumnResize:ee,freezeColumns:S?0:F.filter((e=>e.isIndex)).length,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:e=>!(e>=F.length&&(t.useContainerWidth||"100%"===le.width)),getCellsForSelection:!0,rowMarkers:"none",rangeSelect:y?"none":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:K,keybindings:{search:!0,downFill:!0},onHeaderClicked:S||O?void 0:L,gridSelection:w,onGridSelectionChange:e=>{(b||y)&&(x(e),void 0!==U&&G())},theme:p,onMouseMove:e=>{"out-of-bounds"===e.kind&&b?v(!1):"out-of-bounds"===e.kind||b||v(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:1},drawCell:X,customRenderers:Q,imageEditorOverride:Ye,headerIcons:p.headerIcons,validateCell:J,onPaste:!1,...!S&&t.editingMode!==N&&!c&&{fillHandle:!y,onCellEdited:B,onPaste:P,onDelete:q},...!S&&t.editingMode===R&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkerTheme:{bgCell:p.bgHeader,bgCellMedium:p.bgHeader},rowMarkers:"checkbox",rowSelectionMode:"auto",rowSelect:c?"none":"multi",onRowAppended:c?void 0:Z,onHeaderClicked:void 0}})}),U&&U.content&&(0,We.jsx)(Ge,{top:U.top,left:U.left,content:U.content,clearTooltip:G})]})}))},52955:(e,t,n)=>{n.d(t,{K:()=>o});var i=n(50120);class o{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[1687],{11687:(e,t,o)=>{o.r(t),o.d(t,{default:()=>j});var n=o(5057),r=o(92627),l=o(70800),i=o(22335);let d=function(e){return e.ASCENDING="ascending",e.DESCENDING="descending",e}({});var a=o(82160);const s=(0,a.Z)("div",{target:"epzu5vs8"})((e=>{let{width:t,theme:o}=e;return{width:t,border:"1px solid ".concat(o.colors.fadedText05),boxSizing:"content-box","& .table-top-right":{overflow:"hidden !important",paddingRight:"6px"},"& .table-bottom-left":{overflow:"hidden !important",paddingBottom:"6px"},"& .table-bottom-right":{overflow:"overlay !important"},"& .table-bottom-right:focus-visible":{outline:"none"},"& .table-bottom-right:focus":{outline:"none"}}}),""),c=(0,a.Z)("div",{target:"epzu5vs7"})((e=>{let{theme:t}=e;return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.xs),borderBottom:"1px solid ".concat(t.colors.fadedText05),borderRight:"1px solid ".concat(t.colors.fadedText05),fontSize:t.fontSizes.md,fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.table,display:"flex",alignItems:"center",justifyContent:"flex-start"}}),""),h=e=>({color:e.colors.fadedText60,borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),zIndex:1}),u=e=>({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:e.lineHeights.table}),m=(0,a.Z)(c,{target:"epzu5vs6"})((e=>{let{theme:t}=e;return h(t)}),""),f=(0,a.Z)(c,{target:"epzu5vs5"})((e=>{let{theme:t}=e;return{userSelect:"none",...h(t),...u(t)}}),""),g=(0,a.Z)(c,{target:"epzu5vs4"})((e=>{let{theme:t}=e;return{userSelect:"none",...h(t),...u(t)}}),""),p=(0,a.Z)(c,{target:"epzu5vs3"})((e=>{let{theme:t}=e;return u(t)}),""),w=(0,a.Z)("div",{target:"epzu5vs2"})((e=>{let{verticalLocator:t,horizontalLocator:o,width:n,height:r}=e;return{position:"absolute",[t]:"0px",[o]:"0px",width:n,height:r}}),""),x=(0,a.Z)("div",{target:"epzu5vs1"})((e=>{let{theme:t}=e;return{fontFamily:t.genericFonts.codeFont,color:t.colors.fadedText60,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),""),b=(0,a.Z)("span",{target:"epzu5vs0"})((e=>{let{theme:t}=e;return{color:t.colors.fadedText05,verticalAlign:"top"}}),"");var v=o(56864),C=o(70714);const y=!("undefined"===typeof window||!window.document||!window.document.createElement);let S;function N(e){if((!S&&0!==S||e)&&y){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),S=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return S}var I=o(27417);const D=2*I.CH.smPx,E=(e,t,o,n)=>{const{headerRows:r,headerCols:l,dataRows:d,cols:a,rows:s}=(0,i.kG)(o),c=D*r,h=t-2-N(),u=function(e,t,o,n,r,l){const i=25,d=e>2?200:400,a=e=>{let{index:o}=e;const r=o,d=8*10/10,a=24,s=100;let c=i;for(let i=0;i<Math.min(t,s);i++){let e=-1;e=i<n?i:t>s?Math.floor(Math.random()*t):i;const{contents:o}=l(r,e),h=(o?o.length:0)*d+a;h>c&&(c=h)}return c};let s=[];const c=Array.from(Array(e),((e,t)=>a({index:t}))),h=c.reduce(((e,t)=>e+t),0),u=r-h,m=e=>e.filter((e=>e>d));if(u<0)s=c.map((e=>e>d?d:e));else{const e=m(c),t=u/e.length;s=c.map(((o,n)=>n in e.keys()?o+t:o))}let f=s.reduce(((e,t)=>e+t),0);if(f>r*(2/3)&&f<r){const t=(r-f)/e;s=s.map((e=>e+t)),f=s.reduce(((e,t)=>e+t),0)}const g=Math.min(f,r),p=e=>{let{index:t}=e;return s[t]},w=s.slice(0,o).reduce(((e,t)=>e+t));return{elementWidth:g,columnWidth:p,headerWidth:w}}(a,s,l,r,h,n);let{elementWidth:m,columnWidth:f,headerWidth:g}=u;if(0===d&&m<60){m=60,g=60;let e=0;for(let t=0;t<a;t++)e+=f({index:t});e<60&&(f=()=>60/a)}const p=s*D,w=(e||300)-2;e=Math.min(p,w);return m+=p>w?N():0,{rowHeight:D,headerHeight:c,border:2,columnWidth:f,headerWidth:g,elementWidth:m,height:e}},R={corner:m,"col-header":f,"row-header":g,data:p};var z=o(7896),G=o(63947),k=n.forwardRef((function(e,t){return n.createElement(G.D,(0,z.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),n.createElement("path",{d:"M4 1L0 5l1.5 1.5L4 4l2.5 2.5L8 5 4 1z"}))}));k.displayName="ChevronTop";var A=n.forwardRef((function(e,t){return n.createElement(G.D,(0,z.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),n.createElement("path",{d:"M1.5 1L0 2.5l4 4 4-4L6.5 1 4 3.5 1.5 1z"}))}));A.displayName="ChevronBottom";var T=o(73401),W=o(96266);function Z(e){let t,o,n,{CellType:r,columnIndex:l,contents:i,rowIndex:a,sortedByUser:s,style:c,columnSortDirection:h,headerClickedCallback:u}=e,m=i;const f=h===d.DESCENDING;null!=u&&0===a&&(t=()=>u(l),o="button",n=0,m=null==h?'Sort by column "'.concat(i,'"'):'Sorted by column "'.concat(i,'" (').concat(f?"descending":"ascending",")"));const g=0===a?function(e){switch(e){case d.ASCENDING:return(0,W.jsx)(b,{"data-testid":"sortIcon",children:(0,W.jsx)(T.Z,{content:k,size:"xs",margin:"0 0 0 twoXS"})});case d.DESCENDING:return(0,W.jsx)(b,{"data-testid":"sortIcon",children:(0,W.jsx)(T.Z,{content:A,size:"xs",margin:"0 0 0 twoXS"})});default:return null}}(h):void 0;return(0,W.jsxs)(r,{style:c,onClick:t,role:o,tabIndex:n,title:m,"data-testid":r.displayName,"data-test-sort-direction":h,children:[i,s?g:""]})}const j=(0,l.Z)((function(e){let{element:t,height:o,width:l}=e;const a=n.useRef(null),[c,h]=(0,n.useState)(!1),[u,m]=(0,n.useState)(0),[f,g]=(0,n.useState)(d.ASCENDING),[,p]=(0,i.oo)(t.get("data")),{headerRows:b,headerCols:y,dataRows:S,cols:N,rows:I}=(0,i.kG)(t),D=e=>{let t=d.ASCENDING;u===e&&(t=f===d.ASCENDING?d.DESCENDING:d.ASCENDING),m(e),g(t),h(!0)},z=(e=>{const{headerCols:o,dataRows:n}=(0,i.kG)(t),r=f!==d.DESCENDING;if(u<o||u-o>=e){const e=new Array(n);for(let t=0;t<n;t+=1)e[t]=r?t:n-(t+1);return e}return(0,i.X_)(t,u-o,r)})(p),G=function(e){let{element:t,headerRows:o,sortedDataRowIndices:n}=e;return(e,r)=>{if(null!=n&&r>=o){const e=r-o;e>=0&&e<n.length?(r=n[e],r+=o):(0,C.KE)("Bad sortedDataRowIndices ("+"rowIndex=".concat(r,", ")+"headerRows=".concat(o,", ")+"sortedDataRowIndices.length=".concat(n.length))}const{contents:l,styles:d,type:a}=(0,i.me)(t,e,r);return{Component:R[a],styles:d,contents:(0,v.H7)(l)}}}({element:t,headerRows:b,sortedDataRowIndices:z}),k=function(e){return t=>{let{columnIndex:o,key:n,rowIndex:r,style:l}=t;const{Component:i,styles:d,contents:a}=e(o,r),s=0===r?D:void 0,h=o===u?f:void 0,m={...l,...d,borderBottom:r===S?"none":void 0,borderRight:o===N-y?"none":void 0};return(0,W.jsx)(Z,{CellType:i,columnIndex:o,rowIndex:r,style:m,contents:a,sortedByUser:c,columnSortDirection:h,headerClickedCallback:s},n)}}(G),{rowHeight:A,headerHeight:T,border:j,height:B,elementWidth:L,columnWidth:H,headerWidth:F}=E(o,l,t,G);return setTimeout((()=>{null!=a.current&&a.current.recomputeGridSize()}),0),(0,n.useEffect)((()=>{u-y>=p&&(m(0),g(d.ASCENDING),h(!1))}),[u,y,p]),(0,W.jsxs)(s,{width:L,className:"stDataFrame",children:[(0,W.jsx)(r.yR,{cellRenderer:k,fixedColumnCount:y,fixedRowCount:b,columnWidth:H,columnCount:N,enableFixedColumnScroll:!1,enableFixedRowScroll:!1,height:B,rowHeight:A,rowCount:I,width:L,classNameBottomLeftGrid:"table-bottom-left",classNameBottomRightGrid:"table-bottom-right",classNameTopRightGrid:"table-top-right",ref:a}),(0,W.jsx)(w,{verticalLocator:"top",horizontalLocator:"right",width:j,height:T}),(0,W.jsx)(w,{verticalLocator:"bottom",horizontalLocator:"left",width:F,height:j}),0===S?(0,W.jsx)(x,{children:"empty"}):null]})}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[1729],{51729:(e,t,o)=>{o.r(t),o.d(t,{default:()=>N});var r=o(5057),i=o(47206),n=o(50120),a=o(80099),l=o(53381);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,n=e.$isHovered,a=e.$isActive,l=e.$theme.colors;return t?o||r?l.tickFillDisabled:l.tickFill:i&&(r||o)?a?l.tickFillErrorSelectedHoverActive:n?l.tickFillErrorSelectedHover:l.tickFillErrorSelected:i?a?l.tickFillErrorHoverActive:n?l.tickFillErrorHover:l.tickFillError:r||o?a?l.tickFillSelectedHoverActive:n?l.tickFillSelectedHover:l.tickFillSelected:a?l.tickFillActive:n?l.tickFillHover:l.tickFill}function p(e){var t=e.$disabled,o=e.$theme.colors;return t?o.contentSecondary:o.contentPrimary}var h=(0,l.zo)("label",(function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:"top"===o||"bottom"===o?"column":"row",display:"flex",alignItems:"top"===o||"bottom"===o?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));h.displayName="Root",h.displayName="Root";var m=(0,l.zo)("span",(function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.sizing,s=n.animation,c=o?n.colors.tickMarkFillDisabled:r?n.colors.tickMarkFillError:n.colors.tickMarkFill,d=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(c,'"/>\n </svg>\n ')),p=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(c,'"/>\n </svg>\n ')),h=n.borders.checkboxBorderRadius,m=function(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.colors;return t?l.tickFillDisabled:o||i?"transparent":r?l.borderNegative:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:s.timing200,transitionTimingFunction:s.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:m,borderRightColor:m,borderTopColor:m,borderBottomColor:m,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,outline:a&&t?"3px solid ".concat(n.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:i?"url('data:image/svg+xml,".concat(d,"');"):t?"url('data:image/svg+xml,".concat(p,"');"):null,backgroundColor:u(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:n.sizing.scale0,marginBottom:n.sizing.scale0,marginLeft:n.sizing.scale0,marginRight:n.sizing.scale0}}));m.displayName="Checkmark",m.displayName="Checkmark";var g=(0,l.zo)("div",(function(e){var t=e.$theme.typography;return c(c(c({verticalAlign:"middle"},function(e){var t,o=e.$labelPlacement,r=void 0===o?"":o,i=e.$theme,n=i.sizing.scale300;switch(r){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),d({},"padding".concat(t),n)}(e)),{},{color:p(e)},t.LabelMedium),{},{lineHeight:"24px"})}));g.displayName="Label",g.displayName="Label";var b=(0,l.zo)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});b.displayName="Input",b.displayName="Input";var f=(0,l.zo)("div",(function(e){var t=e.$theme.colors.toggleFill;return e.$disabled?t=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?t=e.$theme.colors.tickFillErrorSelected:e.$checked&&(t=e.$theme.colors.toggleFillChecked),{backgroundColor:t,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}));f.displayName="Toggle",f.displayName="Toggle";var v=(0,l.zo)("div",(function(e){var t=e.$theme.colors.toggleTrackFill;return e.$disabled?t=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(t=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:t,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}));v.displayName="ToggleTrack",v.displayName="ToggleTrack";var y=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),k=Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"}),$=o(94253);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},x.apply(this,arguments)}function F(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function C(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=L(e);if(t){var i=L(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return function(e,t){if(t&&("object"===w(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}(this,o)}}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function O(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var S=function(e){return e.stopPropagation()},P=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(l,e);var t,o,i,n=C(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return O(T(e=n.call.apply(n,[this].concat(o))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),O(T(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),O(T(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),O(T(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),O(T(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),O(T(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),(0,$.E)(t)&&e.setState({isFocusVisible:!0})})),O(T(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),e}return t=l,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,o=e.inputRef;t&&o.current&&o.current.focus()}},{key:"render",value:function(){var e=this.props,t=e.overrides,o=void 0===t?{}:t,i=e.onChange,n=e.labelPlacement,l=void 0===n?this.props.checkmarkType===y.toggle?"left":"right":n,s=e.inputRef,c=e.isIndeterminate,d=e.error,u=e.disabled,p=e.value,k=e.name,$=e.type,w=e.checked,F=e.children,R=e.required,C=e.title,T=o.Root,L=o.Checkmark,O=o.Label,P=o.Input,M=o.Toggle,j=o.ToggleTrack,B=(0,a.XG)(T)||h,E=(0,a.XG)(L)||m,H=(0,a.XG)(O)||g,V=(0,a.XG)(P)||b,I=(0,a.XG)(M)||f,z=(0,a.XG)(j)||v,D={onChange:i,onFocus:this.onFocus,onBlur:this.onBlur},W={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},A={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:d,$checked:w,$isIndeterminate:c,$required:R,$disabled:u,$value:p},U=F&&r.createElement(H,x({$labelPlacement:l},A,(0,a.ch)(O)),this.props.containsInteractiveElement?r.createElement("div",{onClick:function(e){return e.preventDefault()}},F):F);return r.createElement(B,x({"data-baseweb":"checkbox",title:C||null,$labelPlacement:l},A,W,(0,a.ch)(T)),("top"===l||"left"===l)&&U,this.props.checkmarkType===y.toggle?r.createElement(z,x({},A,(0,a.ch)(j)),r.createElement(I,x({},A,(0,a.ch)(M)))):r.createElement(E,x({},A,(0,a.ch)(L))),r.createElement(V,x({value:p,name:k,checked:w,required:R,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":c?"mixed":w,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":d||null,"aria-required":R||null,disabled:u,type:$,ref:s,onClick:S},A,D,(0,a.ch)(P))),("bottom"===l||"right"===l)&&U)}}])&&F(t.prototype,o),i&&F(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);O(P,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:r.createRef(),error:!1,type:"checkbox",checkmarkType:y.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});const M=P;var j=o(60913),B=o(59990),E=o(52955),H=o(17966),V=o(21034),I=o(98790),z=o(93905),D=o(46403);const W=(0,o(82160).Z)("div",{target:"edwcd610"})((e=>{let{visibility:t}=e;return{display:t===n.Ws.Collapsed?"none":"flex",visibility:t===n.Ws.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}}),"");var A=o(96266);class U extends r.PureComponent{constructor(){super(...arguments),this.formClearHelper=new E.K,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{theme:t,width:o,element:r,disabled:i,widgetMgr:a}=this.props,{colors:l,spacing:s}=t,c=(0,H.Iy)(t),d={width:o},u=i?l.fadedText40:l.bodyText;return this.formClearHelper.manageFormClearListener(a,r.formId,this.onFormCleared),(0,A.jsx)("div",{className:"row-widget stCheckbox","data-testid":"stCheckbox",style:d,children:(0,A.jsx)(M,{checked:this.state.value,disabled:i,onChange:this.onChange,"aria-label":r.label,checkmarkType:r.type===j.XZ.StyleType.TOGGLE?y.toggle:y.default,labelPlacement:k.right,overrides:{Root:{style:e=>{let{$isFocusVisible:t}=e;return{marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:t?l.darkenedBgMix25:"",display:"flex",alignItems:"start"}}},Toggle:{style:e=>{let{$checked:t}=e,o=c?l.bgColor:l.bodyText;return i&&(o=c?l.gray60:l.gray90),{width:"12px",height:"12px",transform:t?"translateX(16px)":"",backgroundColor:o,boxShadow:""}}},ToggleTrack:{style:e=>{let{$checked:o,$isHovered:r}=e,n=c?l.gray50:l.gray80;return r&&!i&&(n=c?l.gray60:l.gray70),o&&!i&&(n=l.primary),{marginRight:0,marginLeft:"2px",paddingLeft:"2px",paddingRight:"2px",width:"32px",minWidth:"32px",height:"16px",minHeight:"16px",borderBottomLeftRadius:t.radii.lg,borderTopLeftRadius:t.radii.lg,borderBottomRightRadius:t.radii.lg,borderTopRightRadius:t.radii.lg,backgroundColor:n}}},Checkmark:{style:e=>{let{$isFocusVisible:t,$checked:o}=e;const r=o&&!i?l.primary:l.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:t&&o?"0 0 0 0.2rem ".concat((0,B.DZ)(l.primary,.5)):"",borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px",borderLeftColor:r,borderRightColor:r,borderTopColor:r,borderBottomColor:r}}},Label:{style:{position:"relative",top:"1px",color:u}}},children:(0,A.jsxs)(W,{visibility:(0,n.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),"data-testid":"stWidgetLabel",children:[(0,A.jsx)(D.ZP,{source:r.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),r.help&&(0,A.jsx)(z.Hp,{color:u,children:(0,A.jsx)(V.Z,{content:r.help,placement:I.u.TOP_RIGHT})})]})})})}}const N=(0,i.b)(U)},52955:(e,t,o)=>{o.d(t,{K:()=>i});var r=o(50120);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,o){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,r.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,o),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}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[1740],{31740:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});i(5057);var l=i(44088),s=i(92649),d=i(38830),r=i(46403),a=i(19954),n=i(96266);const o=function(t){const{disabled:e,element:i,widgetMgr:o,width:u,endpoints:c}=t,h={width:u},b="primary"===i.type?l.nW.PRIMARY:l.nW.SECONDARY,p=(0,a.v_)(),w=!i.help||u;return(0,n.jsx)("div",{className:"row-widget stDownloadButton","data-testid":"stDownloadButton",style:h,children:(0,n.jsx)(s.t,{help:i.help,children:(0,n.jsx)(d.ZP,{kind:b,size:l.V5.SMALL,disabled:e,onClick:()=>{if(o.setTriggerValue(i,{fromUi:!0}),i.url.startsWith("/media"))return void(0,a.uP)(p,i.url);const t=document.createElement("a"),e=c.buildMediaURL(i.url);t.setAttribute("href",e),t.setAttribute("target","_self"),t.setAttribute("download",""),t.click()},fluidWidth:!!i.useContainerWidth&&w,children:(0,n.jsx)(r.ZP,{source:i.label,allowHTML:!1,isLabel:!0,largerLabel:!0,disableLinks:!0})})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[1839],{88165:(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,{Z:()=>Cr});var a=r(86522);function i(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function o(t){i(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,a.Z)(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){i(2,arguments);var r=o(t),a=n(e);return isNaN(a)?new Date(NaN):a?(r.setDate(r.getDate()+a),r):r}function s(t,e){i(2,arguments);var r=o(t).getTime(),a=n(e);return new Date(r+a)}function l(t,e){i(2,arguments);var r=o(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 c(t,e){return i(2,arguments),l(t,12*n(e))}function d(t,e){i(2,arguments);var r=o(t),n=o(e),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function f(t,e){i(2,arguments);var r=o(t),n=o(e),a=d(r,n),u=Math.abs(function(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);var s=d(r,n)===-a,l=a*(u-Number(s));return 0===l?0:l}function h(t){i(1,arguments);var e=o(t);return e.setHours(23,59,59,999),e}function v(t){i(1,arguments);var e=o(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function m(t,e){i(2,arguments);var r,n=o(t),a=o(e),u=d(n,a),s=Math.abs(function(t,e){i(2,arguments);var r=o(t),n=o(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 l=d(n,a)===-u;(function(t){i(1,arguments);var e=o(t);return h(e).getTime()===v(e).getTime()})(o(t))&&1===s&&1===d(t,a)&&(l=!1),r=u*(s-Number(l))}return 0===r?0:r}var p={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},g="trunc";function y(t){return t?p[t]:p[g]}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){i(1,arguments);var e=o(t);return e.setHours(0,0,0,0),e}var T=864e5;function M(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 Z(t,e){i(2,arguments);var r=o(t),n=o(e),a=M(r,n),u=Math.abs(function(t,e){i(2,arguments);var r=b(t),n=b(e),a=r.getTime()-w(r),o=n.getTime()-w(n);return Math.round((a-o)/T)}(r,n));r.setDate(r.getDate()-a*u);var s=a*(u-Number(M(r,n)===-a));return 0===s?0:s}Math.pow(10,8);var D=6e4,k=36e5;function C(t,e){return i(2,arguments),o(t).getTime()-o(e).getTime()}var x={};function S(){return x}function O(t,e){var r,a,u,s,l,c,d,f;i(1,arguments);var h=S(),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===(l=e.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.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 m=o(t),p=m.getDay(),g=6+(p<v?-7:0)-(p-v);return m.setDate(m.getDate()+g),m.setHours(23,59,59,999),m}function P(t){i(1,arguments);var e=o(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function U(t){if(i(1,arguments),!function(t){return i(1,arguments),t instanceof Date||"object"===(0,a.Z)(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!==typeof t)return!1;var e=o(t);return!isNaN(Number(e))}function N(t,e){return i(2,arguments),s(t,-n(e))}function Y(t){i(1,arguments);var e=o(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 E(t){i(1,arguments);var e=o(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=Y(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=Y(u);return e.getTime()>=a.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}var H=6048e5;function A(t){i(1,arguments);var e=o(t),r=Y(e).getTime()-function(t){i(1,arguments);var e=E(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),Y(r)}(e).getTime();return Math.round(r/H)+1}function W(t,e){var r,a,u,s,l,c,d,f;i(1,arguments);var h=S(),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===(l=e.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.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 m=o(t),p=m.getUTCDay(),g=(p<v?7:0)+p-v;return m.setUTCDate(m.getUTCDate()-g),m.setUTCHours(0,0,0,0),m}function L(t,e){var r,a,u,s,l,c,d,f;i(1,arguments);var h=o(t),v=h.getUTCFullYear(),m=S(),p=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===(l=e.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==u?u:m.firstWeekContainsDate)&&void 0!==a?a:null===(d=m.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(v+1,0,p),g.setUTCHours(0,0,0,0);var y=W(g,e),w=new Date(0);w.setUTCFullYear(v,0,p),w.setUTCHours(0,0,0,0);var b=W(w,e);return h.getTime()>=y.getTime()?v+1:h.getTime()>=b.getTime()?v:v-1}var q=6048e5;function F(t,e){i(1,arguments);var r=o(t),a=W(r,e).getTime()-function(t,e){var r,a,o,u,s,l,c,d;i(1,arguments);var f=S(),h=n(null!==(r=null!==(a=null!==(o=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===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==a?a:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1),v=L(t,e),m=new Date(0);return m.setUTCFullYear(v,0,h),m.setUTCHours(0,0,0,0),W(m,e)}(r,e).getTime();return Math.round(a/q)+1}function j(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}const I={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return j("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):j(r+1,2)},d:function(t,e){return j(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 j(t.getUTCHours()%12||12,e.length)},H:function(t,e){return j(t.getUTCHours(),e.length)},m:function(t,e){return j(t.getUTCMinutes(),e.length)},s:function(t,e){return j(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds();return j(Math.floor(n*Math.pow(10,r-3)),e.length)}};var R="midnight",B="noon",Q="morning",G="afternoon",z="evening",X="night",_={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 I.y(t,e)},Y:function(t,e,r,n){var a=L(t,n),i=a>0?a:1-a;return"YY"===e?j(i%100,2):"Yo"===e?r.ordinalNumber(i,{unit:"year"}):j(i,e.length)},R:function(t,e){return j(E(t),e.length)},u:function(t,e){return j(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 j(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 j(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 I.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 j(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=F(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):j(a,e.length)},I:function(t,e,r){var n=A(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):j(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):I.d(t,e)},D:function(t,e,r){var n=function(t){i(1,arguments);var e=o(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"}):j(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(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return j(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return j(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});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 j(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?B:0===a?R: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?z:a>=12?G:a>=4?Q:X,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 I.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):I.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):j(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):j(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):I.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):I.s(t,e)},S:function(t,e){return I.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"+$(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"+$(a,":");default:return"GMT"+V(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t;return j(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,r,n){return j((n._originalDate||t).getTime(),e.length)}};function $(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),i=n%60;if(0===i)return r+String(a);var o=e||"";return r+String(a)+o+j(i,2)}function J(t,e){return t%60===0?(t>0?"-":"+")+j(Math.abs(t)/60,2):V(t,e)}function V(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+j(Math.floor(a/60),2)+r+j(a%60,2)}const K=_;var tt=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"})}},et=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"})}},rt={p:et,P:function(t,e){var r,n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return tt(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}}",tt(a,e)).replace("{{time}}",et(i,e))}};const nt=rt;var at=["D","DD"],it=["YY","YYYY"];function ot(t){return-1!==at.indexOf(t)}function ut(t){return-1!==it.indexOf(t)}function st(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 lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const ct=function(t,e,r){var n,a=lt[t];return n="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function dt(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 ft={date:dt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:dt({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:dt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ht={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function vt(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,i=null!==r&&void 0!==r&&r.width?String(r.width):a;n=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,u=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[u]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function mt(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],i=e.match(a);if(!i)return null;var o,u=i[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=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 o=t.valueCallback?t.valueCallback(l):l,{value:o=r.valueCallback?r.valueCallback(o):o,rest:e.slice(u.length)}}}var pt;const gt={code:"en-US",formatDistance:ct,formatLong:ft,formatRelative:function(t,e,r,n){return ht[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:vt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:vt({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:vt({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:vt({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:vt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(pt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(pt.matchPattern);if(!r)return null;var n=r[0],a=t.match(pt.parsePattern);if(!a)return null;var i=pt.valueCallback?pt.valueCallback(a[0]):a[0];return{value:i=e.valueCallback?e.valueCallback(i):i,rest:t.slice(n.length)}}),era:mt({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:mt({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:mt({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:mt({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:mt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},yt=gt;var wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tt=/^'([^]*?)'?$/,Mt=/''/g,Zt=/[a-zA-Z]/;function Dt(t,e,r){var a,u,s,l,c,d,f,h,v,m,p,g,y,b,T,M,Z,D;i(2,arguments);var k=String(e),C=S(),x=null!==(a=null!==(u=null===r||void 0===r?void 0:r.locale)&&void 0!==u?u:C.locale)&&void 0!==a?a:yt,O=n(null!==(s=null!==(l=null!==(c=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!==c?c:C.firstWeekContainsDate)&&void 0!==l?l:null===(v=C.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==s?s:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=n(null!==(p=null!==(g=null!==(y=null!==(b=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==b?b:null===r||void 0===r||null===(T=r.locale)||void 0===T||null===(M=T.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==y?y:C.weekStartsOn)&&void 0!==g?g:null===(Z=C.locale)||void 0===Z||null===(D=Z.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==p?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var Y=o(t);if(!U(Y))throw new RangeError("Invalid time value");var E=N(Y,w(Y)),H={firstWeekContainsDate:O,weekStartsOn:P,locale:x,_originalDate:Y};return k.match(bt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,nt[e])(t,x.formatLong):t})).join("").match(wt).map((function(n){if("''"===n)return"'";var a=n[0];if("'"===a)return function(t){var e=t.match(Tt);if(!e)return t;return e[1].replace(Mt,"'")}(n);var i=K[a];if(i)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!ut(n)||st(n,e,String(t)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!ot(n)||st(n,e,String(t)),i(E,n,x.localize,H);if(a.match(Zt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n})).join("")}function kt(t){return i(1,arguments),o(t).getDay()}function Ct(t){i(1,arguments);var e=o(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 xt(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getTime()>n.getTime()}function St(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getTime()<n.getTime()}function Ot(t){i(1,arguments);var e=o(t);return e.setMinutes(0,0,0),e}var Pt=r(59147);function Ut(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=(0,Pt.Z)(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 i,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function Nt(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 Yt=r(80753),Et=r(45754),Ht=r(75181),At=r(9249),Wt=r(87371),Lt=r(56666),qt=function(){function t(){(0,At.Z)(this,t),(0,Lt.Z)(this,"priority",void 0),(0,Lt.Z)(this,"subPriority",0)}return(0,Wt.Z)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Ft=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(t,n,a,i,o){var u;return(0,At.Z)(this,r),(u=e.call(this)).value=t,u.validateValue=n,u.setValue=a,u.priority=i,o&&(u.subPriority=o),u}return(0,Wt.Z)(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}(qt),jt=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",10),(0,Lt.Z)((0,Yt.Z)(t),"subPriority",-1),t}return(0,Wt.Z)(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}(qt),It=function(){function t(){(0,At.Z)(this,t),(0,Lt.Z)(this,"incompatibleTokens",void 0),(0,Lt.Z)(this,"priority",void 0),(0,Lt.Z)(this,"subPriority",void 0)}return(0,Wt.Z)(t,[{key:"run",value:function(t,e,r,n){var a=this.parse(t,e,r,n);return a?{setter:new Ft(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(t,e,r){return!0}}]),t}(),Rt=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",140),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["R","u","t","T"]),t}return(0,Wt.Z)(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}(It),Bt=/^(1[0-2]|0?\d)/,Qt=/^(3[0-1]|[0-2]?\d)/,Gt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,zt=/^(5[0-3]|[0-4]?\d)/,Xt=/^(2[0-3]|[0-1]?\d)/,_t=/^(2[0-4]|[0-1]?\d)/,$t=/^(1[0-1]|0?\d)/,Jt=/^(1[0-2]|0?\d)/,Vt=/^[0-5]?\d/,Kt=/^[0-5]?\d/,te=/^\d/,ee=/^\d{1,2}/,re=/^\d{1,3}/,ne=/^\d{1,4}/,ae=/^-?\d+/,ie=/^-?\d/,oe=/^-?\d{1,2}/,ue=/^-?\d{1,3}/,se=/^-?\d{1,4}/,le=/^([+-])(\d{2})(\d{2})?|Z/,ce=/^([+-])(\d{2})(\d{2})|Z/,de=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,fe=/^([+-])(\d{2}):(\d{2})|Z/,he=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ve(t,e){return t?{value:e(t.value),rest:t.rest}:t}function me(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function pe(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,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*k+i*D+1e3*o),rest:e.slice(r[0].length)}}function ge(t){return me(ae,t)}function ye(t,e){switch(t){case 1:return me(te,e);case 2:return me(ee,e);case 3:return me(re,e);case 4:return me(ne,e);default:return me(new RegExp("^\\d{1,"+t+"}"),e)}}function we(t,e){switch(t){case 1:return me(ie,e);case 2:return me(oe,e);case 3:return me(ue,e);case 4:return me(se,e);default:return me(new RegExp("^-?\\d{1,"+t+"}"),e)}}function be(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Te(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var i=a+50;r=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return n?r:1-r}function Me(t){return t%400===0||t%4===0&&t%100!==0}var Ze=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",130),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ve(ye(4,t),n);case"yo":return ve(r.ordinalNumber(t,{unit:"year"}),n);default:return ve(ye(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=Te(r.year,n);return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(It),De=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",130),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ve(ye(4,t),n);case"Yo":return ve(r.ordinalNumber(t,{unit:"year"}),n);default:return ve(ye(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 i=Te(r.year,a);return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),W(t,n)}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),W(t,n)}}]),r}(It),ke=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",130),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e){return we("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),Y(n)}}]),r}(It),Ce=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",130),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e){return we("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}(It),xe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",120),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return ye(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}(It),Se=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",120),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return ye(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}(It),Oe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,Lt.Z)((0,Yt.Z)(t),"priority",110),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return ve(me(Bt,t),n);case"MM":return ve(ye(2,t),n);case"Mo":return ve(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}(It),Pe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",110),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return ve(me(Bt,t),n);case"LL":return ve(ye(2,t),n);case"Lo":return ve(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}(It);var Ue=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",100),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"w":return me(zt,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return ye(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){i(2,arguments);var a=o(t),u=n(e),s=F(a,r)-u;return a.setUTCDate(a.getUTCDate()-7*s),a}(t,r,a),a)}}]),r}(It);var Ne=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",100),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"I":return me(zt,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r){return Y(function(t,e){i(2,arguments);var r=o(t),a=n(e),u=A(r)-a;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r))}}]),r}(It),Ye=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],He=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"subPriority",1),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"d":return me(Qt,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return ye(e.length,t)}}},{key:"validate",value:function(t,e){var r=Me(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=Ee[n]:e>=1&&e<=Ye[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),r}(It),Ae=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"subpriority",1),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return me(Gt,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return ye(e.length,t)}}},{key:"validate",value:function(t,e){return Me(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}(It);function We(t,e,r){var a,u,s,l,c,d,f,h;i(2,arguments);var v=S(),m=n(null!==(a=null!==(u=null!==(s=null!==(l=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==l?l:null===r||void 0===r||null===(c=r.locale)||void 0===c||null===(d=c.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(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=o(t),g=n(e),y=((g%7+7)%7<m?7:0)+g-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+y),p}var Le=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return(0,Wt.Z)(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=We(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(It),qe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return(0,Wt.Z)(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 ve(ye(e.length,t),a);case"eo":return ve(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=We(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(It),Fe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return(0,Wt.Z)(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 ve(ye(e.length,t),a);case"co":return ve(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=We(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(It);var je=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",90),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ye(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return ve(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 ve(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return ve(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return ve(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){i(2,arguments);var r=n(e);r%7===0&&(r-=7);var a=o(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}(It),Ie=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",80),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return(0,Wt.Z)(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(be(r),0,0,0),t}}]),r}(It),Re=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",80),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return(0,Wt.Z)(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(be(r),0,0,0),t}}]),r}(It),Be=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",80),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["a","b","t","T"]),t}return(0,Wt.Z)(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(be(r),0,0,0),t}}]),r}(It),Qe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",70),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"h":return me(Jt,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return ye(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}(It),Ge=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",70),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"H":return me(Xt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return ye(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}(It),ze=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",70),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"K":return me($t,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return ye(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}(It),Xe=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",70),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"k":return me(_t,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return ye(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}(It),_e=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",60),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"m":return me(Vt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return ye(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}(It),$e=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",50),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"s":return me(Kt,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return ye(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}(It),Je=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",30),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e){return ve(ye(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}(It),Ve=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",10),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["t","T","x"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e){switch(e){case"X":return pe(le,t);case"XX":return pe(ce,t);case"XXXX":return pe(de,t);case"XXXXX":return pe(he,t);default:return pe(fe,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(It),Ke=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",10),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens",["t","T","X"]),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t,e){switch(e){case"x":return pe(le,t);case"xx":return pe(ce,t);case"xxxx":return pe(de,t);case"xxxxx":return pe(he,t);default:return pe(fe,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(It),tr=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",40),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens","*"),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t){return ge(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),r}(It),er=function(t){(0,Et.Z)(r,t);var e=(0,Ht.Z)(r);function r(){var t;(0,At.Z)(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),(0,Lt.Z)((0,Yt.Z)(t),"priority",20),(0,Lt.Z)((0,Yt.Z)(t),"incompatibleTokens","*"),t}return(0,Wt.Z)(r,[{key:"parse",value:function(t){return ge(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),r}(It),rr={G:new Rt,y:new Ze,Y:new De,R:new ke,u:new Ce,Q:new xe,q:new Se,M:new Oe,L:new Pe,w:new Ue,I:new Ne,d:new He,D:new Ae,E:new Le,e:new qe,c:new Fe,i:new je,a:new Ie,b:new Re,B:new Be,h:new Qe,H:new Ge,K:new ze,k:new Xe,m:new _e,s:new $e,S:new Je,X:new Ve,x:new Ke,t:new tr,T:new er},nr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ar=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ir=/^'([^]*?)'?$/,or=/''/g,ur=/\S/,sr=/[a-zA-Z]/;function lr(t,e,r,u){var s,l,c,d,f,h,v,m,p,g,y,b,T,M,Z,D,k,C;i(3,arguments);var x=String(t),O=String(e),P=S(),U=null!==(s=null!==(l=null===u||void 0===u?void 0:u.locale)&&void 0!==l?l:P.locale)&&void 0!==s?s:yt;if(!U.match)throw new RangeError("locale must contain match property");var Y=n(null!==(c=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===(m=v.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:P.firstWeekContainsDate)&&void 0!==d?d:null===(p=P.locale)||void 0===p||null===(g=p.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=n(null!==(y=null!==(b=null!==(T=null!==(M=null===u||void 0===u?void 0:u.weekStartsOn)&&void 0!==M?M:null===u||void 0===u||null===(Z=u.locale)||void 0===Z||null===(D=Z.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==T?T:P.weekStartsOn)&&void 0!==b?b:null===(k=P.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==y?y:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===O)return""===x?o(r):new Date(NaN);var H,A={firstWeekContainsDate:Y,weekStartsOn:E,locale:U},W=[new jt],L=O.match(ar).map((function(t){var e=t[0];return e in nt?(0,nt[e])(t,U.formatLong):t})).join("").match(nr),q=[],F=Ut(L);try{var j=function(){var e=H.value;null!==u&&void 0!==u&&u.useAdditionalWeekYearTokens||!ut(e)||st(e,O,t),null!==u&&void 0!==u&&u.useAdditionalDayOfYearTokens||!ot(e)||st(e,O,t);var r=e[0],n=rr[r];if(n){var a=n.incompatibleTokens;if(Array.isArray(a)){var i=q.find((function(t){return a.includes(t.token)||t.token===r}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===n.incompatibleTokens&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));q.push({token:r,fullToken:e});var o=n.run(x,e,U.match,A);if(!o)return{v:new Date(NaN)};W.push(o.setter),x=o.rest}else{if(r.match(sr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=e.match(ir)[1].replace(or,"'")),0!==x.indexOf(e))return{v:new Date(NaN)};x=x.slice(e.length)}};for(F.s();!(H=F.n()).done;){var I=j();if("object"===(0,a.Z)(I))return I.v}}catch(J){F.e(J)}finally{F.f()}if(x.length>0&&ur.test(x))return new Date(NaN);var R=W.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 W.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),B=o(r);if(isNaN(B.getTime()))return new Date(NaN);var Q,G=N(B,w(B)),z={},X=Ut(R);try{for(X.s();!(Q=X.n()).done;){var _=Q.value;if(!_.validate(G,A))return new Date(NaN);var $=_.set(G,z,A);Array.isArray($)?(G=$[0],Nt(z,$[1])):G=$}}catch(J){X.e(J)}finally{X.f()}return G}function cr(t){i(1,arguments);var e=o(t);return e.setDate(1),e.setHours(0,0,0,0),e}function dr(t,e){var r,a,u,s,l,c,d,f;i(1,arguments);var h=S(),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===(l=e.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.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 m=o(t),p=m.getDay(),g=(p<v?7:0)+p-v;return m.setDate(m.getDate()-g),m.setHours(0,0,0,0),m}function fr(t){i(1,arguments);var e=o(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function hr(t,e){var r;i(1,arguments);var a=n(null!==(r=null===e||void 0===e?void 0:e.additionalDigits)&&void 0!==r?r:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,u=function(t){var e,r={},n=t.split(vr.dateTimeDelimiter);if(n.length>2)return r;/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],vr.timeZoneDelimiter.test(r.date)&&(r.date=t.split(vr.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length)));if(e){var a=vr.timezone.exec(e);a?(r.time=e.replace(a[1],""),r.timezone=a[1]):r.time=e}return r}(t);if(u.date){var s=function(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?a:100*i,restDateString:t.slice((n[1]||n[2]).length)}}(u.date,a);o=function(t,e){if(null===e)return new Date(NaN);var r=t.match(mr);if(!r)return new Date(NaN);var n=!!r[4],a=yr(r[1]),i=yr(r[2])-1,o=yr(r[3]),u=yr(r[4]),s=yr(r[5])-1;if(n)return function(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}(0,u,s)?function(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var a=n.getUTCDay()||7,i=7*(e-1)+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}(e,u,s):new Date(NaN);var l=new Date(0);return function(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(br[e]||(Tr(t)?29:28))}(e,i,o)&&function(t,e){return e>=1&&e<=(Tr(t)?366:365)}(e,a)?(l.setUTCFullYear(e,i,Math.max(a,o)),l):new Date(NaN)}(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),d=0;if(u.time&&(d=function(t){var e=t.match(pr);if(!e)return NaN;var r=wr(e[1]),n=wr(e[2]),a=wr(e[3]);if(!function(t,e,r){if(24===t)return 0===e&&0===r;return r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}(r,n,a))return NaN;return r*k+n*D+1e3*a}(u.time),isNaN(d)))return new Date(NaN);if(!u.timezone){var f=new Date(c+d),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return l=function(t){if("Z"===t)return 0;var e=t.match(gr);if(!e)return 0;var r="+"===e[1]?-1:1,n=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,a))return NaN;return r*(n*k+a*D)}(u.timezone),isNaN(l)?new Date(NaN):new Date(c+d+l)}var vr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,pr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yr(t){return t?parseInt(t):1}function wr(t){return t&&parseFloat(t.replace(",","."))||0}var br=[31,null,31,30,31,30,31,31,30,31,30,31];function Tr(t){return t%400===0||t%4===0&&t%100!==0}var Mr=r(5619),Zr=r.n(Mr);const Dr={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"};var kr=new class{constructor({locale:t,formats:e}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var t;return!this.locale||/a/.test(null===(t=this.locale.formatLong)||void 0===t?void 0:t.time())},this.getFormatHelperText=t=>{var e,r;const n=this.locale||gt;return null!==(r=null===(e=t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g))||void 0===e?void 0:e.map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,Zr()[e])(t,n.formatLong,{})}return t})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())&&void 0!==r?r:t},this.parseISO=t=>hr(t),this.toISO=t=>function(t,e){var r,n;i(1,arguments);var a=o(t);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var u=String(null!==(r=null===e||void 0===e?void 0:e.format)&&void 0!==r?r:"extended"),s=String(null!==(n=null===e||void 0===e?void 0:e.representation)&&void 0!==n?n:"complete");if("extended"!==u&&"basic"!==u)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==s&&"time"!==s&&"complete"!==s)throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",c="",d="extended"===u?"-":"",f="extended"===u?":":"";if("time"!==s){var h=j(a.getDate(),2),v=j(a.getMonth()+1,2),m=j(a.getFullYear(),4);l="".concat(m).concat(d).concat(v).concat(d).concat(h)}if("date"!==s){var p=a.getTimezoneOffset();if(0!==p){var g=Math.abs(p),y=j(Math.floor(g/60),2),w=j(g%60,2);c="".concat(p<0?"+":"-").concat(y,":").concat(w)}else c="Z";var b=""===l?"":"T",T=[j(a.getHours(),2),j(a.getMinutes(),2),j(a.getSeconds(),2)].join(f);l="".concat(l).concat(b).concat(T).concat(c)}return l}(t,{format:"extended"}),this.getCurrentLocaleCode=()=>{var t;return(null===(t=this.locale)||void 0===t?void 0:t.code)||"en-US"},this.addSeconds=(t,e)=>function(t,e){return i(2,arguments),s(t,1e3*n(e))}(t,e),this.addMinutes=(t,e)=>function(t,e){return i(2,arguments),s(t,6e4*n(e))}(t,e),this.addHours=(t,e)=>function(t,e){return i(2,arguments),s(t,36e5*n(e))}(t,e),this.addDays=(t,e)=>u(t,e),this.addWeeks=(t,e)=>function(t,e){return i(2,arguments),u(t,7*n(e))}(t,e),this.addMonths=(t,e)=>l(t,e),this.addYears=(t,e)=>c(t,e),this.isValid=t=>U(this.date(t)),this.getDiff=(t,e,r)=>{var n;const a=null!==(n=this.date(e))&&void 0!==n?n:t;if(!this.isValid(a))return 0;switch(r){case"years":return f(t,a);case"quarters":return function(t,e,r){i(2,arguments);var n=m(t,e)/3;return y(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,a);case"months":return m(t,a);case"weeks":return function(t,e,r){i(2,arguments);var n=Z(t,e)/7;return y(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,a);case"days":return Z(t,a);case"hours":return function(t,e,r){i(2,arguments);var n=C(t,e)/k;return y(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,a);case"minutes":return function(t,e,r){i(2,arguments);var n=C(t,e)/D;return y(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,a);case"seconds":return function(t,e,r){i(2,arguments);var n=C(t,e)/1e3;return y(null===r||void 0===r?void 0:r.roundingMethod)(n)}(t,a);default:return C(t,a)}},this.isAfter=(t,e)=>xt(t,e),this.isBefore=(t,e)=>St(t,e),this.startOfDay=t=>b(t),this.endOfDay=t=>h(t),this.getHours=t=>function(t){return i(1,arguments),o(t).getHours()}(t),this.setHours=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e);return r.setHours(a),r}(t,e),this.setMinutes=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e);return r.setMinutes(a),r}(t,e),this.getSeconds=t=>function(t){return i(1,arguments),o(t).getSeconds()}(t),this.setSeconds=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e);return r.setSeconds(a),r}(t,e),this.isSameDay=(t,e)=>function(t,e){i(2,arguments);var r=b(t),n=b(e);return r.getTime()===n.getTime()}(t,e),this.isSameMonth=(t,e)=>function(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(t,e),this.isSameYear=(t,e)=>function(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()}(t,e),this.isSameHour=(t,e)=>function(t,e){i(2,arguments);var r=Ot(t),n=Ot(e);return r.getTime()===n.getTime()}(t,e),this.startOfYear=t=>fr(t),this.endOfYear=t=>P(t),this.startOfMonth=t=>cr(t),this.endOfMonth=t=>v(t),this.startOfWeek=t=>dr(t,{locale:this.locale}),this.endOfWeek=t=>O(t,{locale:this.locale}),this.getYear=t=>function(t){return i(1,arguments),o(t).getFullYear()}(t),this.setYear=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(a),r)}(t,e),this.date=t=>"undefined"===typeof t?new Date:null===t?null:new Date(t),this.toJsDate=t=>t,this.parse=(t,e)=>""===t?null:lr(t,e,new Date,{locale:this.locale}),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>Dt(t,e,{locale:this.locale}),this.isEqual=(t,e)=>null===t&&null===e||function(t,e){i(2,arguments);var r=o(t),n=o(e);return r.getTime()===n.getTime()}(t,e),this.isNull=t=>null===t,this.isAfterDay=(t,e)=>xt(t,h(e)),this.isBeforeDay=(t,e)=>St(t,b(e)),this.isBeforeYear=(t,e)=>St(t,fr(e)),this.isAfterYear=(t,e)=>xt(t,P(e)),this.isWithinRange=(t,[e,r])=>function(t,e){i(2,arguments);var r=o(t).getTime(),n=o(e.start).getTime(),a=o(e.end).getTime();if(!(n<=a))throw new RangeError("Invalid interval");return r>=n&&r<=a}(t,{start:e,end:r}),this.formatNumber=t=>t,this.getMinutes=t=>function(t){return i(1,arguments),o(t).getMinutes()}(t),this.getDate=t=>function(t){return i(1,arguments),o(t).getDate()}(t),this.setDate=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e);return r.setDate(a),r}(t,e),this.getMonth=t=>function(t){return i(1,arguments),o(t).getMonth()}(t),this.getDaysInMonth=t=>Ct(t),this.setMonth=(t,e)=>function(t,e){i(2,arguments);var r=o(t),a=n(e),u=r.getFullYear(),s=r.getDate(),l=new Date(0);l.setFullYear(u,a,15),l.setHours(0,0,0,0);var c=Ct(l);return r.setMonth(a,Math.min(s,c)),r}(t,e),this.getMeridiemText=t=>"am"===t?"AM":"PM",this.getNextMonth=t=>l(t,1),this.getPreviousMonth=t=>l(t,-1),this.getMonthArray=t=>{const e=[fr(t)];for(;e.length<12;){const t=e[e.length-1];e.push(this.getNextMonth(t))}return e},this.mergeDateAndTime=(t,e)=>this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e)),this.getWeekdays=()=>{const t=new Date;return function(t,e){var r;i(1,arguments);var n=t||{},a=o(n.start),u=o(n.end).getTime();if(!(a.getTime()<=u))throw new RangeError("Invalid interval");var s=[],l=a;l.setHours(0,0,0,0);var c=Number(null!==(r=null===e||void 0===e?void 0:e.step)&&void 0!==r?r:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=u;)s.push(o(l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return s}({start:dr(t,{locale:this.locale}),end:O(t,{locale:this.locale})}).map((t=>this.formatByString(t,"EEEEEE")))},this.getWeekArray=t=>{const e=dr(cr(t),{locale:this.locale}),r=O(v(t),{locale:this.locale});let n=0,a=e;const i=[];let o=null;for(;St(a,r);){const t=Math.floor(n/7);i[t]=i[t]||[];const e=kt(a);o!==e&&(o=e,i[t].push(a),n+=1),a=u(a,1)}return i},this.getYearRange=(t,e)=>{const r=fr(t),n=P(e),a=[];let i=r;for(;St(i,n);)a.push(i),i=c(i,1);return a},this.locale=t,this.formats=Object.assign({},Dr,e)}isBeforeMonth(t,e){return St(t,cr(e))}isAfterMonth(t,e){return xt(t,cr(e))}}({});const Cr=kr},61934:(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,i=[],o=!0,u=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);o=!0);}catch(s){u=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(u)throw a}}return i}(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 i(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 o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(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 l(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,{Z:()=>c});const c=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),l(this,"adapter",void 0),l(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,i=t.constructor,o=r[t.constructor.name]||r.DateFnsUtils,u=o.getOptions,s=void 0===u?n:u,l=o.formats,c=s(t);return new i(Object.assign({},a(Object.assign({},c,{formats:Object.assign({},c.formats,l)}))))})),l(this,"format",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).format(t,e)})),l(this,"getAdapterWithNewLocale",(function(t){return r.cloneAdapter(r.adapter,(function(e){return o(o({},e),{},{locale:t})}))})),l(this,"date",(function(t){return r.adapter.date(t)})),l(this,"dateToSeconds",(function(t){return r.adapter.getSeconds(t)+60*r.adapter.getMinutes(t)+3600*r.adapter.getHours(t)})),l(this,"secondsToHourMinute",(function(t){var e=r.adapter.toJsDate(r.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),l(this,"differenceInCalendarMonths",(function(t,e){return 12*(r.adapter.getYear(t)-r.adapter.getYear(e))+(r.adapter.getMonth(t)-r.adapter.getMonth(e))})),l(this,"getStartOfWeek",(function(t,e){var n=e?r.getAdapterWithNewLocale(e):r.adapter;return n.startOfWeek(n.date(t))})),l(this,"formatDate",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).formatByString(t,e)})),l(this,"getWeekdayMinInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),l(this,"getMonthInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t),"month")})),l(this,"getWeekdayInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekday")})),l(this,"getQuarterInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),3*t),"quarter")})),l(this,"getEndOfWeek",(function(t){return r.adapter.endOfWeek(t)})),l(this,"getDay",(function(t){return Number(r.adapter.formatByString(t,"e"))-1})),l(this,"addWeeks",(function(t,e){return r.adapter.addDays(t,7*e)})),l(this,"subWeeks",(function(t,e){return r.addWeeks(t,-1*e)})),l(this,"addYears",(function(t,e){return r.adapter.addMonths(t,12*e)})),l(this,"subYears",(function(t,e){return r.addYears(t,-1*e)})),l(this,"isSameYear",(function(t,e){return!(!t||!e)&&r.adapter.isSameYear(t,e)})),l(this,"isStartOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.startOfMonth(t))})),l(this,"isEndOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.endOfMonth(t))})),l(this,"isDayInRange",(function(t,e,n){return r.adapter.isWithinRange(t,[e,n])})),l(this,"isSameDay",(function(t,e){return!(!t||!e)&&r.adapter.isSameDay(t,e)})),l(this,"isSameMonth",(function(t,e){return!(!t||!e)&&r.adapter.isSameMonth(t,e)})),l(this,"dateRangeIncludesDates",(function(t,e){var a=n(t,2),i=a[0],o=a[1];if(i&&o&&Array.isArray(e)&&e.length)for(var u=0;u<e.length;u++){var s=e[u];if(r.isDayInRange(s,i,o))return!0}return!1})),l(this,"subDays",(function(t,e){return r.adapter.addDays(t,-1*e)})),l(this,"subMonths",(function(t,e){return r.adapter.addMonths(t,-1*e)})),l(this,"min",(function(t){return t.reduce((function(t,e){return r.adapter.isBefore(e,t)?e:t}))})),l(this,"max",(function(t){return t.reduce((function(t,e){return r.adapter.isAfter(e,t)?e:t}))})),l(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})),l(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()})),l(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.includeDates,i=r.subMonths(t,1);return!!n&&r.differenceInCalendarMonths(n,i)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(t,i)>0}))||!1})),l(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxDate,a=e.includeDates,i=r.adapter.addMonths(t,1);return!!n&&r.differenceInCalendarMonths(i,n)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(i,t)>0}))||!1})),l(this,"setDate",(function(t,e){var n=r.adapter.startOfMonth(t),a=r.adapter.mergeDateAndTime(n,t),i=r.adapter.setSeconds(a,r.adapter.getSeconds(t));return r.adapter.addDays(i,e-1)})),l(this,"getDate",(function(t){return Number(r.adapter.format(t,"dayOfMonthNumber"))})),l(this,"applyDateToTime",(function(t,e){if(!t)return e;var n=r.adapter.getYear(e),a=r.adapter.getMonth(e),i=r.getDate(e),o=r.adapter.setYear(t,n),u=r.adapter.setMonth(o,a);return r.setDate(u,i)})),l(this,"applyTimeToDate",(function(t,e){return t?r.adapter.setSeconds(r.adapter.mergeDateAndTime(t,e),0):e})),l(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate,i=e.excludeDates,o=e.includeDates,u=e.filterDate;return r.isOutOfBounds(t,{minDate:n,maxDate:a})||i&&i.some((function(e){return r.adapter.isSameDay(t,e)}))||o&&!o.some((function(e){return r.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),l(this,"isOnOrAfterDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isAfter(t,e)})),l(this,"isOnOrBeforeDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isBefore(t,e)})),l(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)})),l(this,"parseString",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).parse(t,e)})),l(this,"parse",(function(t,e,n){var a=n?r.getAdapterWithNewLocale(n):r.adapter;return a.parse(t,a.formats[e])})),l(this,"setMilliseconds",(function(t,e){return r.adapter.date(1e3*r.adapter.getSeconds(r.adapter.startOfDay(t))+e)})),l(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})),l(this,"getQuarter",(function(t){return Math.floor(r.getMonth(t)/3)+1})),l(this,"setSeconds",(function(t,e){return r.adapter.setSeconds(t,e)})),l(this,"setMinutes",(function(t,e){return r.adapter.setMinutes(t,e)})),l(this,"setHours",(function(t,e){return r.adapter.setHours(t,e)})),l(this,"setMonth",(function(t,e){return r.adapter.setMonth(t,e)})),l(this,"setYear",(function(t,e){return r.adapter.setYear(t,e)})),l(this,"getMinutes",(function(t){return r.adapter.getMinutes(t)})),l(this,"getHours",(function(t){return r.adapter.getHours(t)})),l(this,"getMonth",(function(t){return r.adapter.getMonth(t)})),l(this,"getYear",(function(t){return r.adapter.getYear(t)})),l(this,"getStartOfMonth",(function(t){return r.adapter.startOfMonth(t)})),l(this,"getEndOfMonth",(function(t){return r.adapter.endOfMonth(t)})),l(this,"addDays",(function(t,e){return r.adapter.addDays(t,e)})),l(this,"addMonths",(function(t,e){return r.adapter.addMonths(t,e)})),l(this,"isBefore",(function(t,e){return r.adapter.isBefore(t,e)})),l(this,"isAfter",(function(t,e){return r.adapter.isAfter(t,e)})),l(this,"isEqual",(function(t,e){return r.adapter.isEqual(t,e)})),l(this,"isValid",(function(t){return r.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}))},61839:(t,e,r)=>{r.d(e,{Z:()=>T});var n=r(5057),a=r(80099),i=r(74338),o=r(19298),u=r(94861),s=r(61934),l=r(88165);function c(t){return c="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},c(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,i=[],o=!0,u=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);o=!0);}catch(s){u=!0,a=s}finally{try{o||null==r.return||r.return()}finally{if(u)throw a}}return i}(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 m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function p(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=y(t);if(e){var a=y(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,r)}}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(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&&m(t,e)}(h,t);var e,r,l,c=p(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(g(e=c.call(this,t)),"dateHelpers",void 0),w(g(e),"state",{steps:[],value:null}),w(g(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(g(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],i=n[1],o=function(t){return t<10?"0".concat(t):t};if("12"===r){var u=t>=43200;return u&&(a-=12),0===a&&(a=12),"".concat(a,":").concat(o(i)," ").concat(u?"PM":"AM")}return"".concat(o(a),":").concat(o(i))})),w(g(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 i=Number(a[1]),o=Number(a[2]),u=[];if("24"===r)u=[{hours:i,minutes:o}];else{var s=i%12,l=a[3];u=l?[{hours:"a"===l.toLowerCase()[0]?s:s+12,minutes:o}]:[{hours:s,minutes:o},{hours:s+12,minutes:o}]}return u.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),w(g(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],i=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(i)})),w(g(e),"setTime",(function(t,r,n,a){var i=e.dateHelpers;return(0,i.setSeconds)((0,i.setMinutes)((0,i.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),w(g(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,i=r.ignoreMinMaxDateComponent,o=e.setTime(e.props.value,0,0,0),u=e.setTime(e.props.value,24,0,0);n=!n||e.props.adapter.isBefore(n,o)&&!i?o: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)&&!i?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),l=e.props.adapter.toJsDate(a),c=e.props.adapter.toJsDate(o);return{start:(s-c)/1e3,end:(l-c)/1e3}})),w(g(e),"buildSteps",(function(){var t=e.props.step,r=void 0===t?900:t,n=e.getTimeWindowInSeconds(r),a=(n.end-n.start)/r;if(!Number.isInteger(a)){a=Math.round(a)}for(var i=[],o=n.start;o<n.end;o+=r)i.push(o);return i})),w(g(e),"creatableFilterOptions",(function(t,r,n,a){var i=e.stringToOptions(r,e.props.format);return i.length?i:(0,o.Z)(t,r,n,a)})),w(g(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.Z(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,i=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.Z(this.props.adapter)),e||r||a||i){var o=this.buildSteps();this.setState({steps:o})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,o=e.overrides,s=void 0===o?{}:o,l=e.adapter,c=f((0,a.jb)(s.Select,u.Z),2),h=c[0],v=c[1];v.overrides=(0,a.aO)({Dropdown:{style:{maxHeight:"126px"}}},v.overrides);var m=this.props.value&&l.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return n.createElement(i.R.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:m?[m]:m,clearable:!1,backspaceRemoves:!1,valueKey:"label"},v))}))}}])&&v(e.prototype,r),l&&v(e,l),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.Component);w(b,"defaultProps",{format:"12",step:900,creatable:!1,adapter:l.Z,ignoreMinMaxDateComponent:!1});const T=b},5619:(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,i=t.match(/(P+)(p+)?/)||[],o=i[1],u=i[2];if(!u)return r(t,e);switch(o){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(o,e)).replace("{{time}}",n(u,e))}};e.default=a,t.exports=e.default},75181:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(95058);var a=r(11987);function i(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,i=(0,n.Z)(t);if(e){var o=(0,n.Z)(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return(0,a.Z)(this,r)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[2385],{94778:(e,t,r)=>{r.d(t,{Z:()=>p});r(5057);var n,o=r(50120),i=r(93905),s=r(82160);const a=(0,r(21371).F4)(n||(l=["\n 50% {\n color: rgba(0, 0, 0, 0);\n }\n"],u||(u=l.slice(0)),n=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(u)}}))));var l,u;const c=(0,s.Z)("span",{target:"edlqvik0"})((e=>{let{includeDot:t,shouldBlink:r,theme:n}=e;return{...t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:"0 5px"}}:{},...r?{color:n.colors.red,animationName:"".concat(a),animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var d=r(96266);const p=e=>{let{dirty:t,value:r,maxLength:n,className:s,type:a="single",inForm:l}=e;const u=[],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u.push((0,d.jsx)(c,{includeDot:u.length>0,shouldBlink:t,children:e},u.length))};if(t){const e=l?"submit form":"apply";if("multiline"===a){const t=(0,o.Ge)()?"\u2318":"Ctrl";p("Press ".concat(t,"+Enter to ").concat(e))}else"single"===a&&p("Press Enter to ".concat(e))}return n&&("chat"!==a||t)&&p("".concat(r.length,"/").concat(n),t&&r.length>=n),(0,d.jsx)(i.X7,{"data-testid":"InputInstructions",className:s,children:u})}},52955:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(50120);class o{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,r){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,n.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}},22385:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n=r(5057),o=r(52955),i=r(76866),s=r(94778),a=r(38944),l=r(93905),u=r(21034),c=r(98790),d=r(50120),p=r(96216);const f=(0,r(82160).Z)("div",{target:"ezh4s2r0"})({name:"1om1ktf",styles:"div{border-width:1px;}"});var h=r(96266);class m extends n.PureComponent{constructor(){super(...arguments),this.formClearHelper=new o.K,this.state={dirty:!1,value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e),this.setState({dirty:!1})},this.onFormCleared=()=>{this.setState(((e,t)=>{var r;return{value:null!==(r=t.element.default)&&void 0!==r?r:null}}),(()=>this.commitWidgetValue({fromUi:!0})))},this.onBlur=()=>{this.state.dirty&&this.commitWidgetValue({fromUi:!0})},this.onChange=e=>{const{value:t}=e.target,{element:r}=this.props,{maxChars:n}=r;0!==n&&t.length>n||this.setState({dirty:!0,value:t})},this.isEnterKeyPressed=e=>{var t;const{keyCode:r,key:n}=e;return("Enter"===n||13===r||10===r)&&!(!0===(null===(t=e.nativeEvent)||void 0===t?void 0:t.isComposing))},this.onKeyDown=e=>{const{metaKey:t,ctrlKey:r}=e,{dirty:n}=this.state;if(this.isEnterKeyPressed(e)&&(r||t)&&n){e.preventDefault(),this.commitWidgetValue({fromUi:!0});const{formId:t}=this.props.element;(0,d.$b)({formId:t})&&this.props.widgetMgr.submitForm(this.props.element.formId)}}}get initialValue(){var e;const t=this.props.widgetMgr.getStringValue(this.props.element);return null!==(e=null!==t&&void 0!==t?t:this.props.element.default)&&void 0!==e?e:null}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:null!==e&&void 0!==e?e:null},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,disabled:r,width:n,widgetMgr:o}=this.props,{value:m,dirty:y}=this.state,b={width:n},{height:v,placeholder:g}=t;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),(0,h.jsxs)("div",{className:"stTextArea","data-testid":"stTextArea",style:b,children:[(0,h.jsx)(a.O,{label:t.label,disabled:r,labelVisibility:(0,d.iF)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&(0,h.jsx)(l.dT,{children:(0,h.jsx)(u.Z,{content:t.help,placement:c.u.TOP_RIGHT})})}),(0,h.jsx)(f,{children:(0,h.jsx)(i.Z,{value:null!==m&&void 0!==m?m:"",placeholder:g,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,"aria-label":t.label,disabled:r,overrides:{Input:{style:{lineHeight:"1.4",height:v?"".concat(v,"px"):"",minHeight:"95px",resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:"1rem",paddingLeft:"1rem",paddingBottom:"1rem",paddingTop:"1rem"}}}})}),n>p.A.hideWidgetDetails&&(0,h.jsx)(s.Z,{dirty:y,value:null!==m&&void 0!==m?m:"",maxLength:t.maxChars,type:"multiline",inForm:(0,d.$b)({formId:t.formId})})]})}}const y=m},76866:(e,t,r)=>{r.d(t,{Z:()=>F});var n=r(5057),o=r(80099),i=r(97135),s=r(18150),a=r(53381),l=r(4547);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(0,a.zo)("div",(function(e){return c(c({},(0,l.d5)(c(c({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));p.displayName="StyledTextAreaRoot",p.displayName="StyledTextAreaRoot";var f=(0,a.zo)("div",(function(e){return(0,l.hB)(c({$positive:!1},e))}));f.displayName="StyledTextareaContainer",f.displayName="StyledTextareaContainer";var h=(0,a.zo)("textarea",(function(e){return c(c({},(0,l.Hx)(e)),{},{resize:e.$resize||"none"})}));function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);s=!0);}catch(l){a=!0,o=l}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}(this,r)}}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}h.displayName="StyledTextarea",h.displayName="StyledTextarea";var C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(u,e);var t,r,a,l=w(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return x(j(e=l.call.apply(l,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),x(j(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),x(j(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=u,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=b((0,o.jb)(t.Root,p),2),a=r[0],l=r[1],u=(0,o.aO)({Input:{component:h},InputContainer:{component:f}},t);return n.createElement(a,y({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},l),n.createElement(i.Z,y({},this.props,{type:s.iB.textarea,overrides:u,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&g(t.prototype,r),a&&g(t,a),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Component);x(C,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:s.NO.default});const F=C}}]);
|