@harpercollins/harpercollins-design-system 1.8.77 → 1.8.78
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/dist/cjs/index.cjs +117 -91
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/data-display/Table/Table.d.ts +2 -2
- package/dist/cjs/types/src/components/global/AppBar/AppBar.d.ts +6 -5
- package/dist/cjs/types/src/components/global/AppBar/testdata.d.ts +8 -0
- package/dist/cjs/types/src/components/navigation/Menu/MenuItem.d.ts +3 -3
- package/dist/esm/index.js +118 -92
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/data-display/Table/Table.d.ts +2 -2
- package/dist/esm/types/src/components/global/AppBar/AppBar.d.ts +6 -5
- package/dist/esm/types/src/components/global/AppBar/testdata.d.ts +8 -0
- package/dist/esm/types/src/components/navigation/Menu/MenuItem.d.ts +3 -3
- package/dist/index.d.ts +11 -10
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -145,32 +145,18 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
145
145
|
font-size: var(--font-size--xsmall);
|
|
146
146
|
font-weight: var(--font-weight--bold);
|
|
147
147
|
margin: 0;
|
|
148
|
-
|
|
149
|
-
a,
|
|
150
|
-
button {
|
|
151
|
-
color: initial;
|
|
152
|
-
text-decoration: none;
|
|
153
|
-
display: block;
|
|
154
|
-
transition: background-color 0.2s;
|
|
155
|
-
background: none;
|
|
156
|
-
border: none;
|
|
157
|
-
padding: 0;
|
|
158
|
-
width: 100%;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
text-align: left;
|
|
161
|
-
}
|
|
162
|
-
`;function iy(t){return e.jsx(Hb,{...t})}function ly({size:t=80,strokeWidth:n=8,color:r="#4c3fdd"}){return e.jsxs("svg",{width:t,height:t,viewBox:"0 0 200 200",color:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:n,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${200-n/2} 100`}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} 100`}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} ${100-n/4}`})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const sy=Kt.div`
|
|
148
|
+
`;function ay(t){return e.jsx(Hb,{...t})}function iy({size:t=80,strokeWidth:n=8,color:r="#4c3fdd"}){return e.jsxs("svg",{width:t,height:t,viewBox:"0 0 200 200",color:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:n,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${200-n/2} 100`}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} 100`}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} ${100-n/4}`})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const ly=Kt.div`
|
|
163
149
|
position: absolute;
|
|
164
150
|
left: calc(50% - 40px);
|
|
165
151
|
top: calc(50% - 40px);
|
|
166
|
-
`,
|
|
152
|
+
`,sy=Kt.div`
|
|
167
153
|
position: absolute;
|
|
168
154
|
top: 28px;
|
|
169
155
|
font-size: var(---font-size--small);
|
|
170
156
|
color: black;
|
|
171
157
|
width: 80px;
|
|
172
158
|
text-align: center;
|
|
173
|
-
`;const
|
|
159
|
+
`;const cy=qt`
|
|
174
160
|
position: relative;
|
|
175
161
|
transition:
|
|
176
162
|
background-color 0.1s ease,
|
|
@@ -199,15 +185,15 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
199
185
|
width: 90%;
|
|
200
186
|
max-height: 90%;
|
|
201
187
|
}
|
|
202
|
-
`,
|
|
188
|
+
`,uy=qt`
|
|
203
189
|
padding: var(--spacing--small) var(--spacing--medium);
|
|
204
190
|
font-size: 0.9rem;
|
|
205
191
|
font-weight: 600;
|
|
206
|
-
`,
|
|
192
|
+
`,dy=qt`
|
|
207
193
|
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
208
194
|
font-size: 0.8rem;
|
|
209
195
|
font-weight: 500;
|
|
210
|
-
`,
|
|
196
|
+
`,py=qt`
|
|
211
197
|
background-color: var(--color--primary);
|
|
212
198
|
color: var(--color--white);
|
|
213
199
|
border: none;
|
|
@@ -219,7 +205,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
219
205
|
&:disabled {
|
|
220
206
|
background-color: #767676;
|
|
221
207
|
}
|
|
222
|
-
`,
|
|
208
|
+
`,fy=qt`
|
|
223
209
|
background-color: var(--color--white);
|
|
224
210
|
color: var(--color--primary);
|
|
225
211
|
border: 1px solid var(--color--primary);
|
|
@@ -234,7 +220,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
234
220
|
color: #767676;
|
|
235
221
|
border-color: #767676;
|
|
236
222
|
}
|
|
237
|
-
`,
|
|
223
|
+
`,my=qt`
|
|
238
224
|
background-color: var(--color--red);
|
|
239
225
|
color: white;
|
|
240
226
|
border: none;
|
|
@@ -246,7 +232,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
246
232
|
&:disabled {
|
|
247
233
|
background-color: #767676;
|
|
248
234
|
}
|
|
249
|
-
`,
|
|
235
|
+
`,gy=qt`
|
|
250
236
|
background-color: transparent;
|
|
251
237
|
color: var(--color--primary-light);
|
|
252
238
|
border: none;
|
|
@@ -261,7 +247,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
261
247
|
color: #767676;
|
|
262
248
|
border-color: #767676;
|
|
263
249
|
}
|
|
264
|
-
`,
|
|
250
|
+
`,hy=qt`
|
|
265
251
|
background-color: var(--color--debug);
|
|
266
252
|
color: var(--color--white);
|
|
267
253
|
border: none;
|
|
@@ -273,24 +259,24 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
273
259
|
&:disabled {
|
|
274
260
|
background-color: var(--color--debug-very-light);
|
|
275
261
|
}
|
|
276
|
-
`,
|
|
277
|
-
${
|
|
262
|
+
`,vy=Kt.a`
|
|
263
|
+
${cy}
|
|
278
264
|
|
|
279
|
-
${({size:e})=>"small"===e?
|
|
265
|
+
${({size:e})=>"small"===e?dy:uy}
|
|
280
266
|
|
|
281
|
-
${({kind:e})=>"secondary"===e?
|
|
282
|
-
`,
|
|
283
|
-
${
|
|
267
|
+
${({kind:e})=>"secondary"===e?fy:"danger"===e?my:"basic"===e?gy:"debug"===e?hy:py}
|
|
268
|
+
`,by=Kt.button`
|
|
269
|
+
${cy}
|
|
284
270
|
|
|
285
|
-
${({size:e})=>"small"===e?
|
|
271
|
+
${({size:e})=>"small"===e?dy:uy}
|
|
286
272
|
|
|
287
|
-
${({kind:e})=>"secondary"===e?
|
|
273
|
+
${({kind:e})=>"secondary"===e?fy:"danger"===e?my:"basic"===e?gy:"debug"===e?hy:py}
|
|
288
274
|
|
|
289
275
|
${({$isSubmitting:e})=>e?qt`
|
|
290
276
|
padding-left: 33px;
|
|
291
277
|
pointer-events: none;
|
|
292
278
|
`:qt``}
|
|
293
|
-
`,
|
|
279
|
+
`,yy=Kt.span`
|
|
294
280
|
position: absolute;
|
|
295
281
|
left: 10px;
|
|
296
282
|
top: calc(50% - 8px);
|
|
@@ -300,7 +286,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
300
286
|
width: 16px;
|
|
301
287
|
height: 16px;
|
|
302
288
|
}
|
|
303
|
-
`;function wy({children:t,...n}){const{type:r,kind:o}=n;if("link"===r)return e.jsx(by,{...n,children:t});if("submit"===r){const{hideSpinner:r=!1,isSubmitting:a}=n;return e.jsxs(yy,{$isSubmitting:a,...n,children:[a&&!r&&e.jsx(xy,{children:e.jsx(ly,{strokeWidth:32,color:"primary"===o?"var(--color--white)":"inherit"})}),t]})}return e.jsx(yy,{...n,children:t})}function Sy(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e.jsx("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e.jsx("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e.jsx("defs",{children:e.jsx("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function Cy(){return e.jsx(Sy,{})}const ky=Kt.header`
|
|
289
|
+
`;function xy({children:t,...n}){const{type:r,kind:o}=n;if("link"===r)return e.jsx(vy,{...n,children:t});if("submit"===r){const{hideSpinner:r=!1,isSubmitting:a}=n;return e.jsxs(by,{$isSubmitting:a,...n,children:[a&&!r&&e.jsx(yy,{children:e.jsx(iy,{strokeWidth:32,color:"primary"===o?"var(--color--white)":"inherit"})}),t]})}return e.jsx(by,{...n,children:t})}function wy(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e.jsx("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e.jsx("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e.jsx("defs",{children:e.jsx("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function Sy(){return e.jsx(wy,{})}const Cy=Kt.header`
|
|
304
290
|
display: flex;
|
|
305
291
|
flex-flow: row;
|
|
306
292
|
align-items: center;
|
|
@@ -313,17 +299,17 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
313
299
|
@media print {
|
|
314
300
|
display: none;
|
|
315
301
|
}
|
|
316
|
-
`,
|
|
302
|
+
`,ky=Kt.a`
|
|
317
303
|
flex-shrink: 0;
|
|
318
304
|
display: inline-flex;
|
|
319
|
-
`,
|
|
305
|
+
`,Oy=Kt.div`
|
|
320
306
|
margin-left: auto;
|
|
321
307
|
display: flex;
|
|
322
308
|
flex-flow: row;
|
|
323
309
|
align-items: center;
|
|
324
310
|
height: 100%;
|
|
325
311
|
gap: var(--spacing--small);
|
|
326
|
-
`,
|
|
312
|
+
`,Iy=qt`
|
|
327
313
|
&& {
|
|
328
314
|
color: white;
|
|
329
315
|
opacity: 0.9;
|
|
@@ -345,19 +331,19 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
345
331
|
text-decoration: none;
|
|
346
332
|
}
|
|
347
333
|
}
|
|
348
|
-
`,
|
|
349
|
-
${
|
|
334
|
+
`,Ey=Kt(xy)`
|
|
335
|
+
${Iy}
|
|
350
336
|
gap: var(--spacing--small);
|
|
351
|
-
|
|
352
|
-
${
|
|
337
|
+
`,Py=Kt(Jb)`
|
|
338
|
+
${Iy}
|
|
353
339
|
|
|
354
340
|
svg {
|
|
355
341
|
width: 1rem;
|
|
356
342
|
}
|
|
357
|
-
|
|
343
|
+
`,$y=Kt.div``,Ny=Kt.div`
|
|
358
344
|
display: flex;
|
|
359
345
|
align-items: center;
|
|
360
|
-
`;function
|
|
346
|
+
`;function Ry({currentApp:t,apps:n}){const r=e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsxs("g",{children:[e.jsx("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return e.jsxs(lf,{children:[e.jsx(Py,{size:"sm",startDecorator:r,children:t&&e.jsx(Ny,{children:t})}),n]})}const Dy=Kt.div`
|
|
361
347
|
.MuiAutocomplete-root {
|
|
362
348
|
background-color: #f5f5f5;
|
|
363
349
|
border-radius: 8px;
|
|
@@ -369,7 +355,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
369
355
|
.field-has-error & {
|
|
370
356
|
border: 1px solid var(--color--red);
|
|
371
357
|
}
|
|
372
|
-
`;function
|
|
358
|
+
`;function Ty(t){return e.jsx(Zg,{...t})}const zy=Kt.div`
|
|
373
359
|
.MuiAutocomplete-root {
|
|
374
360
|
background-color: #f5f5f5;
|
|
375
361
|
border-radius: 8px;
|
|
@@ -381,7 +367,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
381
367
|
.field-has-error & .MuiAutocomplete-root {
|
|
382
368
|
border: 1px solid var(--color--red);
|
|
383
369
|
}
|
|
384
|
-
`,
|
|
370
|
+
`,jy=Kt.button`
|
|
385
371
|
float: right;
|
|
386
372
|
border: none;
|
|
387
373
|
background: none;
|
|
@@ -392,7 +378,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
392
378
|
&:hover {
|
|
393
379
|
color: var(--color--grey);
|
|
394
380
|
}
|
|
395
|
-
`;const
|
|
381
|
+
`;const My=qt`
|
|
396
382
|
position: relative;
|
|
397
383
|
display: inline-flex;
|
|
398
384
|
flex-flow: row nowrap;
|
|
@@ -402,7 +388,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
402
388
|
border-radius: var(--border-radius--medium);
|
|
403
389
|
text-decoration: none;
|
|
404
390
|
white-space: nowrap;
|
|
405
|
-
`,
|
|
391
|
+
`,Ay={medium:qt`
|
|
406
392
|
padding: var(--spacing--small) var(--spacing--medium);
|
|
407
393
|
font-size: var(--font-size--medium);
|
|
408
394
|
font-weight: 600;
|
|
@@ -418,7 +404,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
418
404
|
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
419
405
|
font-size: var(--font-size--xxsmall);
|
|
420
406
|
font-weight: 500;
|
|
421
|
-
`},
|
|
407
|
+
`},_y={default:qt`
|
|
422
408
|
background-color: transaprent;
|
|
423
409
|
color: var(--color--body);
|
|
424
410
|
border: 1px solid var(--color--grey-line);
|
|
@@ -434,12 +420,12 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
434
420
|
background-color: var(--color--grey-line);
|
|
435
421
|
color: var(--color--grey-dark);
|
|
436
422
|
border: 1px solid var(--color--grey-line);
|
|
437
|
-
`},
|
|
438
|
-
${
|
|
423
|
+
`},Ly=Kt.div`
|
|
424
|
+
${My}
|
|
439
425
|
|
|
440
|
-
${({size:e})=>
|
|
441
|
-
${({kind:e})=>
|
|
442
|
-
`;const
|
|
426
|
+
${({size:e})=>Ay[e||"medium"]}
|
|
427
|
+
${({kind:e})=>_y[e||"default"]}
|
|
428
|
+
`;const Vy=Kt.div`
|
|
443
429
|
display: flex;
|
|
444
430
|
flex-flow: wrap;
|
|
445
431
|
justify-content: space-between;
|
|
@@ -448,14 +434,14 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
448
434
|
@media print {
|
|
449
435
|
display: none;
|
|
450
436
|
}
|
|
451
|
-
`,
|
|
437
|
+
`,Fy=Kt.ul`
|
|
452
438
|
display: flex;
|
|
453
439
|
flex-flow: row;
|
|
454
440
|
width: 100%;
|
|
455
441
|
flex-wrap: wrap;
|
|
456
442
|
padding: 0;
|
|
457
443
|
margin: 0;
|
|
458
|
-
`,
|
|
444
|
+
`,By=Kt.li`
|
|
459
445
|
display: inline-block;
|
|
460
446
|
color: var(--color--grey);
|
|
461
447
|
overflow: hidden;
|
|
@@ -474,14 +460,14 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
474
460
|
font-weight: 600;
|
|
475
461
|
}
|
|
476
462
|
}
|
|
477
|
-
`;function
|
|
463
|
+
`;function Hy({children:t}){return e.jsx(Vy,{children:e.jsx(Fy,{children:t})})}Hy.Item=By;const Wy=Kt.hr`
|
|
478
464
|
border: 0;
|
|
479
465
|
border-bottom: 1px solid var(--color--grey-line);
|
|
480
|
-
`,
|
|
466
|
+
`,Gy=Kt(zb)`
|
|
481
467
|
&.MuiDrawer-root {
|
|
482
468
|
--Drawer-horizontalSize: clamp(305px, 38%, 100%);
|
|
483
469
|
}
|
|
484
|
-
`,
|
|
470
|
+
`,qy=Kt.div`
|
|
485
471
|
min-height: 100%;
|
|
486
472
|
padding-left: 60px;
|
|
487
473
|
padding-right: 60px;
|
|
@@ -497,7 +483,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
497
483
|
font-weight: 600;
|
|
498
484
|
color: var(--color--grey-dark);
|
|
499
485
|
}
|
|
500
|
-
`,
|
|
486
|
+
`,Uy=Jt`
|
|
501
487
|
from {
|
|
502
488
|
transform: translate(-100%, 0);
|
|
503
489
|
}
|
|
@@ -505,7 +491,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
505
491
|
to {
|
|
506
492
|
transform: none;
|
|
507
493
|
}
|
|
508
|
-
`,
|
|
494
|
+
`,Yy=Jt`
|
|
509
495
|
from {
|
|
510
496
|
transform: none;
|
|
511
497
|
}
|
|
@@ -513,7 +499,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
513
499
|
to {
|
|
514
500
|
transform: translate(-100%, 0);
|
|
515
501
|
}
|
|
516
|
-
`,
|
|
502
|
+
`,Ky=Jt`
|
|
517
503
|
from {
|
|
518
504
|
transform: translate(100%, 0);
|
|
519
505
|
}
|
|
@@ -521,7 +507,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
521
507
|
to {
|
|
522
508
|
transform: none;
|
|
523
509
|
}
|
|
524
|
-
`,
|
|
510
|
+
`,Jy=Jt`
|
|
525
511
|
from {
|
|
526
512
|
transform: none;
|
|
527
513
|
}
|
|
@@ -529,7 +515,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
529
515
|
to {
|
|
530
516
|
transform: translate(100%, 0);
|
|
531
517
|
}
|
|
532
|
-
`,
|
|
518
|
+
`,Xy=Jt`
|
|
533
519
|
from {
|
|
534
520
|
transform: translate(0, 100%);
|
|
535
521
|
}
|
|
@@ -537,7 +523,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
537
523
|
to {
|
|
538
524
|
transform: none;
|
|
539
525
|
}
|
|
540
|
-
`,
|
|
526
|
+
`,Qy=Jt`
|
|
541
527
|
from {
|
|
542
528
|
transform: none;
|
|
543
529
|
}
|
|
@@ -545,7 +531,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
545
531
|
to {
|
|
546
532
|
transform: translate(0, 100%);
|
|
547
533
|
}
|
|
548
|
-
`,
|
|
534
|
+
`,Zy=Kt.div`
|
|
549
535
|
position: fixed;
|
|
550
536
|
top: 0;
|
|
551
537
|
right: 0;
|
|
@@ -555,32 +541,32 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
555
541
|
overflow: hidden;
|
|
556
542
|
|
|
557
543
|
&.left {
|
|
558
|
-
animation: ${
|
|
544
|
+
animation: ${Uy} 0.2s ease;
|
|
559
545
|
}
|
|
560
546
|
|
|
561
547
|
&.left.closing {
|
|
562
|
-
animation: ${
|
|
548
|
+
animation: ${Yy} 0.2s ease;
|
|
563
549
|
transform: translate(-100%, 0);
|
|
564
550
|
}
|
|
565
551
|
|
|
566
552
|
&.right {
|
|
567
|
-
animation: ${
|
|
553
|
+
animation: ${Ky} 0.2s ease;
|
|
568
554
|
}
|
|
569
555
|
|
|
570
556
|
&.right.closing {
|
|
571
|
-
animation: ${
|
|
557
|
+
animation: ${Jy} 0.2s ease;
|
|
572
558
|
transform: translate(100%, 0);
|
|
573
559
|
}
|
|
574
560
|
|
|
575
561
|
&.center {
|
|
576
|
-
animation: ${
|
|
562
|
+
animation: ${Xy} 0.2s ease;
|
|
577
563
|
}
|
|
578
564
|
|
|
579
565
|
&.center.closing {
|
|
580
|
-
animation: ${
|
|
566
|
+
animation: ${Qy} 0.2s ease;
|
|
581
567
|
transform: translate(0, 100%);
|
|
582
568
|
}
|
|
583
|
-
`,
|
|
569
|
+
`,ex=Kt.div`
|
|
584
570
|
z-index: 1010;
|
|
585
571
|
height: 100vh;
|
|
586
572
|
background-color: #fff;
|
|
@@ -589,33 +575,33 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
589
575
|
overflow: auto;
|
|
590
576
|
width: 100%;
|
|
591
577
|
|
|
592
|
-
${
|
|
578
|
+
${Zy}.left & {
|
|
593
579
|
margin-right: auto;
|
|
594
580
|
}
|
|
595
581
|
|
|
596
|
-
${
|
|
582
|
+
${Zy}.right & {
|
|
597
583
|
margin-left: auto;
|
|
598
584
|
}
|
|
599
585
|
|
|
600
|
-
${
|
|
586
|
+
${Zy}.center & {
|
|
601
587
|
margin: auto;
|
|
602
588
|
height: 95vh;
|
|
603
589
|
}
|
|
604
|
-
`,
|
|
590
|
+
`,tx=Kt.div`
|
|
605
591
|
display: flex;
|
|
606
592
|
|
|
607
|
-
${
|
|
593
|
+
${Zy}.left & {
|
|
608
594
|
flex-flow: row-reverse nowrap;
|
|
609
595
|
}
|
|
610
596
|
|
|
611
|
-
${
|
|
597
|
+
${Zy}.right & {
|
|
612
598
|
flex-flow: row nowrap;
|
|
613
599
|
}
|
|
614
600
|
|
|
615
|
-
${
|
|
601
|
+
${Zy}.center & {
|
|
616
602
|
flex-flow: row nowrap;
|
|
617
603
|
}
|
|
618
|
-
`,
|
|
604
|
+
`,nx=Kt.div`
|
|
619
605
|
display: flex;
|
|
620
606
|
flex-flow: row nowrap;
|
|
621
607
|
align-items: center;
|
|
@@ -638,7 +624,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
638
624
|
strong {
|
|
639
625
|
font-weight: 700;
|
|
640
626
|
}
|
|
641
|
-
`,
|
|
627
|
+
`,rx=Jt`
|
|
642
628
|
from {
|
|
643
629
|
margin-top: -50px;
|
|
644
630
|
}
|
|
@@ -646,16 +632,16 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
646
632
|
to {
|
|
647
633
|
margin-top: 0
|
|
648
634
|
}
|
|
649
|
-
`,
|
|
635
|
+
`,ox=Kt(nx)`
|
|
650
636
|
background-color: #ffdadd;
|
|
651
|
-
animation: ${
|
|
637
|
+
animation: ${rx} 0.5s ease;
|
|
652
638
|
|
|
653
639
|
svg {
|
|
654
640
|
color: var(--color--red);
|
|
655
641
|
}
|
|
656
|
-
`,
|
|
642
|
+
`,ax=Kt.div`
|
|
657
643
|
position: relative;
|
|
658
|
-
`;let
|
|
644
|
+
`;let ix=1;const lx=t.forwardRef((({children:n,side:r,size:o="md",open:a=!1,closeBlocked:i,onClose:l=(()=>{}),onCloseCompleted:s=(()=>{}),closeRequested:c=!1,...u},d)=>{const p=t.useRef(null);p.current||(p.current=`overlay-${ix}`,ix+=1);const f=t.useRef(null),[m,g]=t.useState(!1);t.useEffect((()=>{if(m){const e=setTimeout(s,200);return()=>{clearTimeout(e)}}return()=>{}})),t.useEffect((()=>{c&&g(!0)}),[c]),p.current||(p.current=`modal-${ix}`,ix+=1),t.useEffect((()=>{document.body.style.overflow=a?"hidden":"auto"}),[a]),t.useEffect((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),l())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l]);const h=a?"open":"closing";return e.jsx(Gy,{open:a&&!m,anchor:r,className:`${r} ${h}`,size:o,...u,children:e.jsx(tx,{children:e.jsxs(ex,{ref:f,children:[i&&e.jsxs(ox,{role:"alert","aria-live":"assertive",children:[e.jsx(Si,{icon:un}),e.jsxs("p",{children:[e.jsx("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e.jsx(ax,{ref:d,children:e.jsx(qy,{children:n})})]})})})}));const sx=Kt(wv)`
|
|
659
645
|
&& .MuiInput-input {
|
|
660
646
|
background-color: var(--color--grey-hover);
|
|
661
647
|
padding: var(--spacing--small) var(--spacing--small);
|
|
@@ -693,17 +679,57 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
693
679
|
color: var(--color--grey);
|
|
694
680
|
}
|
|
695
681
|
}
|
|
696
|
-
`;function
|
|
682
|
+
`;function cx(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}cx('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const ux=Ep({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});cx(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const dx=Kt.div`
|
|
697
683
|
height: 100%;
|
|
698
684
|
position: absolute;
|
|
699
685
|
width: 100%;
|
|
700
686
|
top: 0;
|
|
701
687
|
left: 0;
|
|
702
|
-
`,
|
|
688
|
+
`,px=Kt.main`
|
|
703
689
|
width: 100%;
|
|
704
690
|
height: calc(100% - 136px); // TODO: calculate the height of the header
|
|
705
691
|
position: relative;
|
|
706
|
-
`;const
|
|
692
|
+
`;const fx=Kt(ty)`
|
|
693
|
+
a,
|
|
694
|
+
button {
|
|
695
|
+
color: initial;
|
|
696
|
+
text-decoration: none;
|
|
697
|
+
display: block;
|
|
698
|
+
transition: background-color 0.2s;
|
|
699
|
+
background: none;
|
|
700
|
+
border: none;
|
|
701
|
+
padding: 0;
|
|
702
|
+
width: 100%;
|
|
703
|
+
cursor: pointer;
|
|
704
|
+
text-align: left;
|
|
705
|
+
font-size: var(--font-size--small);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.settings {
|
|
709
|
+
padding: var(--spacing--small);
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: center;
|
|
713
|
+
text-align: center;
|
|
714
|
+
flex: 0 0 auto;
|
|
715
|
+
padding: 0;
|
|
716
|
+
margin: 0;
|
|
717
|
+
|
|
718
|
+
a {
|
|
719
|
+
display: flex;
|
|
720
|
+
align-items: center;
|
|
721
|
+
justify-content: center;
|
|
722
|
+
text-align: center;
|
|
723
|
+
flex: 0 0 auto;
|
|
724
|
+
border-radius: var(--border-radius--small);
|
|
725
|
+
padding: var(--spacing--small);
|
|
726
|
+
|
|
727
|
+
&:hover {
|
|
728
|
+
background-color: #c5ced6;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
`,mx=Jt`
|
|
707
733
|
0% {
|
|
708
734
|
background-position: 0% 50%;
|
|
709
735
|
}
|
|
@@ -745,7 +771,7 @@ function Us(e,t){const n=Gs(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
745
771
|
@media print {
|
|
746
772
|
-webkit-line-clamp: unset;
|
|
747
773
|
}
|
|
748
|
-
`,yx=Kt(
|
|
774
|
+
`,yx=Kt(xy)`
|
|
749
775
|
margin: auto;
|
|
750
776
|
|
|
751
777
|
@media print {
|
|
@@ -864,7 +890,7 @@ function Fx(e,t){return"function"==typeof e?e(t):e}function Bx(e,t){return n=>{t
|
|
|
864
890
|
function _w(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function Lw(e,n){const[r,o]=t.useState((()=>{if("undefined"==typeof window)return n;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(e){return console.log(e),n}}));return[r,t=>{try{const n=t instanceof Function?t(r):t;o(n),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(n))}catch(e){console.log(e)}}]}const Vw=Kt.div`
|
|
865
891
|
overflow-x: auto;
|
|
866
892
|
width: 100%;
|
|
867
|
-
max-height: ${({$maxHeight:e})=>e?"90vh":"
|
|
893
|
+
max-height: ${({$maxHeight:e})=>e?"90vh":"initial"};
|
|
868
894
|
`,Fw=Kt.table`
|
|
869
895
|
border-collapse: collapse;
|
|
870
896
|
position: relative;
|
|
@@ -1253,5 +1279,5 @@ function _w(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
|
|
|
1253
1279
|
}
|
|
1254
1280
|
}
|
|
1255
1281
|
`}
|
|
1256
|
-
`;function aS({message:t}){const n="success"===t.level?e.jsx(Si,{icon:tn}):e.jsx(Si,{icon:un});return"html"in t?e.jsxs(oS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,e.jsx("span",{dangerouslySetInnerHTML:{__html:t.html}})]}):e.jsxs(oS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,t.text]})}function iS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function lS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const sS=6048e5,cS=864e5,uS=6e4,dS=36e5;let pS={};function fS(){return pS}function mS(e,t){const n=fS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=iS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function gS(e){return mS(e,{weekStartsOn:1})}function hS(e){const t=iS(e),n=t.getFullYear(),r=lS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=gS(r),a=lS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=gS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function vS(e){const t=iS(e);return t.setHours(0,0,0,0),t}function bS(e){const t=iS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function yS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=iS(e);return!isNaN(Number(n))}const xS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function wS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const SS={date:wS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wS({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:wS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},CS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function OS(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var IS;const ES={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=xS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:SS,formatRelative:(e,t,n,r)=>CS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:kS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:kS({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:kS({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:kS({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:(IS={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(IS.matchPattern);if(!n)return null;const r=n[0],o=e.match(IS.parsePattern);if(!o)return null;let a=IS.valueCallback?IS.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:OS({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:OS({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:e=>e+1}),month:OS({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:OS({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:OS({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function PS(e){const t=iS(e),n=function(e,t){const n=vS(e),r=vS(t),o=+n-bS(n),a=+r-bS(r);return Math.round((o-a)/cS)}(t,function(e){const t=iS(e),n=lS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function $S(e){const t=iS(e),n=+gS(t)-+function(e){const t=hS(e),n=lS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gS(n)}(t);return Math.round(n/sS)+1}function NS(e,t){const n=iS(e),r=n.getFullYear(),o=fS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=lS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=mS(i,t),s=lS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=mS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function RS(e,t){const n=iS(e),r=+mS(n,t)-+function(e,t){const n=fS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=NS(e,t),a=lS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),mS(a,t)}(n,t);return Math.round(r/sS)+1}function DS(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const TS={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return DS("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):DS(n+1,2)},d:(e,t)=>DS(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>DS(e.getHours()%12||12,t.length),H:(e,t)=>DS(e.getHours(),t.length),m:(e,t)=>DS(e.getMinutes(),t.length),s:(e,t)=>DS(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return DS(Math.trunc(r*Math.pow(10,n-3)),t.length)}},zS="midnight",jS="noon",MS="morning",AS="afternoon",_S="evening",LS="night",VS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return TS.y(e,t)},Y:function(e,t,n,r){const o=NS(e,r),a=o>0?o:1-o;if("YY"===t){return DS(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):DS(a,t.length)},R:function(e,t){return DS(hS(e),t.length)},u:function(e,t){return DS(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return DS(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return DS(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return TS.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return DS(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=RS(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):DS(o,t.length)},I:function(e,t,n){const r=$S(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):DS(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):TS.d(e,t)},D:function(e,t,n){const r=PS(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):DS(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return DS(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return DS(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return DS(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?jS:0===r?zS:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?_S:r>=12?AS:r>=4?MS:LS,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return TS.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):TS.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):DS(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):DS(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):TS.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):TS.s(e,t)},S:function(e,t){return TS.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return BS(r);case"XXXX":case"XX":return HS(r);default:return HS(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BS(r);case"xxxx":case"xx":return HS(r);default:return HS(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+FS(r,":");default:return"GMT"+HS(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+FS(r,":");default:return"GMT"+HS(r,":")}},t:function(e,t,n){return DS(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return DS(e.getTime(),t.length)}};function FS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+DS(a,2)}function BS(e,t){if(e%60==0){return(e>0?"-":"+")+DS(Math.abs(e)/60,2)}return HS(e,t)}function HS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+DS(Math.trunc(r/60),2)+t+DS(r%60,2)}const WS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},GS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},qS={p:GS,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return WS(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",WS(r,t)).replace("{{time}}",GS(o,t))}},US=/^D+$/,YS=/^Y+$/,KS=["D","DD","YY","YYYY"];const JS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QS=/^'([^]*?)'?$/,ZS=/''/g,eC=/[a-zA-Z]/;function tC(e,t,n){const r=fS(),o=r.locale??ES,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=iS(e);if(!yS(l))throw new RangeError("Invalid time value");let s=t.match(XS).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,qS[t])(e,o.formatLong)}return e})).join("").match(JS).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:nC(e)};if(VS[t])return{isToken:!0,value:e};if(t.match(eC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return YS.test(e)}(r)||function(e){return US.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),KS.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,VS[r[0]])(l,r,o.localize,c)})).join("")}function nC(e){const t=e.match(QS);return t?t[1].replace(ZS,"'"):e}function rC(e,t){const n=function(e){const t={},n=e.split(oC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],oC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(oC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=oC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(aC);if(!n)return new Date(NaN);const r=!!n[4],o=sC(n[1]),a=sC(n[2])-1,i=sC(n[3]),l=sC(n[4]),s=sC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(uC[t]||(dC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(dC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(iC);if(!t)return NaN;const n=cC(t[1]),r=cC(t[2]),o=cC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*dS+r*uS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(lC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*dS+o*uS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const oC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,iC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sC(e){return e?parseInt(e):1}function cC(e){return e&&parseFloat(e.replace(",","."))||0}const uC=[31,null,31,30,31,30,31,31,30,31,30,31];function dC(e){return e%400==0||e%4==0&&e%100!=0}const pC="-",fC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0};exports.Accordion=function({title:n,children:r,open:o=!1}){const[a,i]=t.useState(o),l=t.useRef(null);return t.useEffect((()=>{a&&l.current?l.current.style.maxHeight=`${l.current.scrollHeight}px`:l.current&&(l.current.style.maxHeight="0px")}),[a]),e.jsxs(Ci,{children:[e.jsx(ki,{children:e.jsx(pn,{as:"h3",children:e.jsxs(Ii,{type:"button","aria-expanded":a,onClick:()=>i(!a),"aria-controls":"accordion-content",role:"button",isOpen:a,children:[n,e.jsx("span",{children:e.jsx(Si,{icon:en})})]})})}),e.jsx(Oi,{ref:l,"aria-labelledby":"accordion-button",isOpen:a,role:"region",children:r})]})},exports.AppBar=function({apps:t,currentApp:n,leftSide:r,rightSide:o,myAccountMenu:a,workspaces:i,currentWorkspace:l,helpButton:s}){return e.jsxs(ky,{children:[e.jsx(Oy,{href:"/",children:e.jsx(Cy,{})}),e.jsx(Dy,{apps:t,currentApp:n}),e.jsx(Ny,{children:r}),e.jsxs(Iy,{children:[o,Array.isArray(i)&&i.length>0?e.jsx("div",{style:i.length<=1?{pointerEvents:"none"}:void 0,children:e.jsxs(lf,{children:[e.jsx($y,{size:"sm",children:l}),e.jsxs(iy,{placement:"bottom-start",children:[e.jsx(oy,{sticky:!0,children:"Workspaces"}),i.map((t=>e.jsx(ay,{children:e.jsx("a",{href:t.home_url,children:t.name})},t.name)))]})]})}):null,s?e.jsxs(Py,{type:"link",as:s.as,href:s.href,children:[e.jsx(Si,{icon:ry,size:"small"})," ",s.text||"Help"]}):null,a?e.jsxs(lf,{children:[e.jsx($y,{size:"sm",startDecorator:e.jsx(Si,{icon:ny,size:"small"}),children:"My Account"}),a]}):null]})]})},exports.Autocomplete=function({id:n,options:r,onChange:o,name:a,...i}){const[l,s]=t.useState(i.defaultValue),[c,u]=t.useState(i.defaultValue?.value);return e.jsxs(Ty,{children:[e.jsx(ib,{...i,id:n,options:r,onChange:(e,t,n)=>{s(t),u(t?t?.value:""),o&&o(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:l,renderOption:i.renderOption,name:""}),e.jsx(wv,{name:a,value:c,type:"hidden",sx:{display:"none"}})]})},exports.AutocompleteSelectMultiple=function({defaultValue:n,id:r,name:o,inline:a,onChange:i,SelectedOption:l,...s}){const[c,u]=t.useState((()=>(n||[]).map((e=>{const t=s.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return e.jsxs(jy,{children:[e.jsx(ib,{...s,multiple:!0,value:c,onChange:(e,t,n)=>{u(t),i&&i(e,t,n)},renderTags:(n,r)=>a?n.map(((n,o)=>t.createElement(ev,{component:"div",...r({index:o}),key:n.label,endDecorator:e.jsx(Si,{size:"small",icon:ln})},n.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(c)&&c.map((t=>e.jsx(wv,{name:o,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!a&&e.jsx(zy,{children:Array.isArray(c)&&c.length>0?c.map((t=>e.jsxs(Hg,{children:[l?e.jsx(l,{option:t}):t.label,e.jsx(My,{type:"button",onClick:()=>{u(c.filter((e=>e.value!==t.value)))},children:e.jsx(Si,{icon:an})})]},t.value))):null})]})},exports.Badge=function({children:t,...n}){return e.jsx(Vy,{...n,children:t})},exports.Box=sb,exports.Breadcrumb=Wy,exports.Button=wy,exports.Chip=function(t){return e.jsx(ev,{...t})},exports.Divider=Gy,exports.Drawer=sx,exports.Dropdown=function(t){return e.jsx(lf,{...t})},exports.Grid=function(t){return e.jsx(jb,{...t})},exports.Heading=pn,exports.Icon=Si,exports.IconButton=Wh,exports.Input=cx,exports.Layout=function({children:t,header:n,footer:r}){return e.jsx(zp,{theme:dx,children:e.jsxs(px,{children:[n,e.jsx(fx,{children:t}),r]})})},exports.List=zy,exports.ListItem=Hg,exports.ListItemButton=ih,exports.ListItemDecorator=Lb,exports.LoadingSpinner=function(t){return e.jsxs(sy,{children:[e.jsx(ly,{...t}),e.jsx(cy,{children:"Loading"})]})},exports.Logo=Cy,exports.Menu=iy,exports.MenuButton=Jb,exports.MenuHeading=oy,exports.MenuItem=ay,exports.ProgressBar=function({ariaLabel:t,percentage:n}){return e.jsx(gx,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e.jsx(hx,{style:{width:`${n}%`}})})},exports.ProgressCircle=function({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],s=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),c=l/7,[u,d]=t.useState(0);t.useEffect((()=>{d(r)}),[r]);const p=(l-c)/2,f=p*Math.PI*2,m=u*f/100,g=`0 0 ${l} ${l}`;return e.jsxs("svg",{width:l,height:l,viewBox:g,children:[e.jsx("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`}),e.jsx("circle",{fill:"none",stroke:s,cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${m}, ${f-m}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e.jsx("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(h=r,h>=0&&h<=100?`${r}%`:"-")})]});var h},exports.ReadMore=function({children:n,maxLines:r=3}){const[o,a]=t.useState(!1),i=t.useRef(null),[l,s]=t.useState(!1),c=()=>{const{offsetHeight:e,scrollHeight:t}=i.current||{};s(!!(e&&t&&e<t))};return t.useLayoutEffect((()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c))),[i]),t.useEffect((()=>{c()}),[]),e.jsxs(vx,{children:[e.jsx(bx,{$maxLines:o?void 0:r,ref:i,children:n}),r&&l&&e.jsx(yx,{type:"button",kind:"basic",onClick:()=>a(!o),children:o?"Read less":"Read more"})]})},exports.RelativeTime=function({time:n}){const[r,o]=t.useState((()=>new Date)),a=t.useMemo((()=>new Date(n)),[n]);t.useEffect((()=>{o(new Date)}),[n]),t.useEffect((()=>{if(Math.abs(a.getTime()/1e3-r.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[r,a]);const i=t.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-r.getTime()/1e3),t=a>r;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${xx[a.getMonth()]} ${a.getFullYear()}`;let n;return n=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${n}`:`${n} ago`}),[a,r]);return e.jsx("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})},exports.StatusIcon=function({status:t="uploaded",size:n="medium"}){const r=t.charAt(0).toUpperCase()+t.slice(1),o={uploaded:e.jsx(jx,{size:n}),running:e.jsx(Ax,{size:n}),processed:e.jsx(Mx,{size:n}),reviewed:e.jsx(zx,{size:n}),warning:e.jsx(_x,{size:n}),failed:e.jsx(Lx,{size:n})};return e.jsx(Tx,{content:r,children:e.jsx(Vx,{status:t,"aria-label":r,children:o[t]})})},exports.Table=function({id:n,data:r,columns:a,pageCount:i,totalCount:l,next:s,previous:c,page:u,pageable:d,pageSize:p,$maxHeight:f=!0}){const[m,g]=t.useState((()=>[...r])),[h,v]=t.useState([]),[b,y]=t.useState({pageIndex:0,pageSize:p||10}),[x,w]=Lw(`table.${n}.columnSizing`,{}),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Aw(t)}))),[r,a]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:a,data:m,getCoreRowModel:e=>Wx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=Jx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),Gx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Wx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),Gx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:v,pageCount:i,state:{pagination:t.useMemo((()=>({pageIndex:b.pageIndex,pageSize:b.pageSize})),[b.pageIndex,b.pageSize]),sorting:h,columnSizing:x},onPaginationChange:y,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:w});return t.useEffect((()=>{void 0!==u&&S.setPageIndex(Number(u-1))}),[u,S]),t.useEffect((()=>{g(r)}),[r]),e.jsxs(e.Fragment,{children:[e.jsx(Vw,{$maxHeight:f,children:e.jsxs(Fw,{children:[S.getHeaderGroups().map((t=>e.jsx("thead",{children:e.jsx("tr",{children:t.headers.map((t=>e.jsxs("th",{colSpan:t.colSpan,style:{width:t.getSize()},children:[t.isPlaceholder?null:e.jsxs("button",{type:"button",className:t.column.getCanSort()?"cursor-pointer select-none":"",onClick:t.column.getToggleSortingHandler(),onKeyDown:t.column.getToggleSortingHandler(),title:t.column.getCanSort()?"asc"===t.column.getNextSortingOrder()?"Sort ascending":"desc"===t.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e.jsx(Si,{icon:on,size:"small"}),desc:e.jsx(Si,{icon:rn,size:"small"})}[t.column.getIsSorted()]??(t.column.getCanSort()&&e.jsx(Si,{icon:on,size:"small",className:"fade"})),_w(t.column.columnDef.header,t.getContext())]}),t.column.getCanResize()&&e.jsx("button",{type:"button","aria-label":"Resize column",onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:"resizer "+(t.column.getIsResizing()?"isResizing":"")})]},t.id)))})},t.id))),e.jsx("tbody",{children:S.getRowModel().rows.length>0?S.getRowModel().rows.map((t=>e.jsx("tr",{children:t.getVisibleCells().map((t=>e.jsx("td",{style:{width:t.column.getSize()},children:_w(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e.jsx("tr",{children:e.jsx("td",{colSpan:a.length,style:{textAlign:"center"},children:"No data"})})})]})}),e.jsxs(Bw,{children:[void 0!==l?e.jsxs("div",{children:["Total: ",l]}):null,d?e.jsxs(Hw,{children:[e.jsx(wy,{type:"link",href:S.getCanPreviousPage()?window.location.href:"",disabled:!S.getCanPreviousPage(),children:"<<"}),e.jsx(wy,{type:"link",href:S.getCanPreviousPage()&&c?c:"",disabled:!S.getCanPreviousPage(),children:"<"}),e.jsx(wy,{type:"link",href:S.getCanNextPage()&&s?s:"",disabled:!S.getCanNextPage(),children:">"}),e.jsx(wy,{href:S.getCanNextPage()?`${window.location.href}?page=${String(i)}`:"",type:"link",disabled:!S.getCanNextPage(),children:">>"}),e.jsxs(Ww,{children:[e.jsx("span",{children:"Page"}),e.jsxs("strong",{children:[S.getState().pagination.pageIndex+1," of"," ",S.getPageCount()]})]})]}):null]})]})},exports.Tabs=function({tabsConfig:n=[],defaultId:r}){const o=new URLSearchParams(window.location.search).get("tab")||r,a=n.findIndex((e=>e.id===o)),[i,l]=t.useState(a>=0?a:0),s=t.useRef(null),c=t.useRef({}),[u,d]=t.useState(!1),[p,f]=t.useState({right:!1,left:!0}),m=e=>{if(!s.current)return;const t=c.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},g=e=>{const t=new URL(window.location.href);t.searchParams.set("tab",e),window.history.pushState({},"",t.toString())},h=e=>{const t=n[e].id,r=c.current[t];r&&r.focus(),m(t),g(t)},v=e=>{const t=n.length,r={ArrowRight:()=>h((i+1)%t),ArrowLeft:()=>h((i-1+t)%t),Home:()=>h(0),End:()=>h(t-1)}[e.key];r&&(e.preventDefault(),r())},b=(e,t)=>{if(!e)return;let n=0;const r=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(r)}),20);f({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return t.useEffect((()=>{s.current&&d(s.current.offsetWidth<s.current.scrollWidth)}),[]),t.useEffect((()=>{m(n[i].id),g(n[i].id)}),[n,i]),t.useLayoutEffect((()=>{const e=()=>{if(!s.current)return;const{offsetWidth:e,scrollWidth:t}=s.current;d(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),e.jsxs(Gw,{children:[e.jsxs(qw,{role:"tablist","aria-orientation":"horizontal",children:[u&&e.jsxs(Kw,{onClick:()=>s.current&&b(s.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:p.left,children:[e.jsx(Si,{icon:sn,size:"large"})," "]}),e.jsx(Uw,{ref:s,children:n.length>0?n.map((t=>e.jsx(Yw,{type:"button",onClick:()=>(e=>{const t=n.findIndex((t=>t.id===e));m(e),l(t),g(e)})(t.id),role:"tab",ref:e=>{c.current[t.id]=e},"aria-controls":`panel-${t.id}`,"aria-selected":n[i].id===t.id,id:`tab-${t.id}`,onKeyDown:v,onFocus:()=>l(n.findIndex((e=>e.id===t.id))),tabIndex:n[i].id===t.id?0:-1,children:t.label},`tab-${t.id}`))):e.jsx("div",{children:"No tab content to display"})}),u&&e.jsx(Kw,{onClick:()=>s.current&&b(s.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:p.right,children:e.jsx(Si,{icon:cn,size:"large"})})]}),e.jsx(Jw,{children:n.map((t=>e.jsxs(Xw,{role:"tabpanel","aria-labelledby":`tab-${t.id}`,id:`panel-${t.id}`,$show:n[i].id===t.id,tabIndex:0,children:[t.label?e.jsx(pn,{as:"h2",children:t.label}):null,t.content]},`tabpanel-${t.id}`)))})]})},exports.TextBlock=function({label:t,content:n,size:r,inline:o=!1}){return e.jsxs(tS,{$inline:o,children:[t?e.jsx(Zw,{$size:r,children:t}):null,n?e.jsx(eS,{$size:r,children:n}):null]})},exports.TextField=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))},exports.ToastMessages=function({messages:t}){return e.jsx(nS,{children:e.jsx(rS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e.jsx(aS,{message:t},String(t))))})})},exports.Tooltip=Tx,exports.formatCurrency=(e,t="en-GB",n=fC)=>{let r=e;if(""===r||null==r)return pC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...fC,...n}).format(r)},exports.formatDate=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return pC;const n=rC(e);return yS(n)?tC(n,t):pC},exports.formatNumber=e=>""===e||null==e?pC:e.toLocaleString(),exports.formatText=e=>""===e||null==e?pC:e,exports.useFetch=(e,n,r)=>{const[o,a]=t.useState(null),[i,l]=t.useState(!1),[s,c]=t.useState(null),u=t.useRef(null);return t.useEffect((()=>{if(!e)return()=>{};let t=!0;l(!0);return u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{(async()=>{try{const r=await fetch(e,n);if(!r.ok)throw new Error(`Error: ${r.statusText}`);const o=await r.json();t&&(a(o),l(!1))}catch(e){t&&(c(e),l(!1))}})()}),r||0),()=>{t=!1,u.current&&clearTimeout(u.current)}}),[e,n,r]),{data:o,loading:i,error:s}},exports.useLocalStorage=Lw,exports.useToggle=function(e){const[n,r]=t.useState(e);return{value:n,toggle:t.useCallback((()=>r((e=>!e))),[]),setTrue:t.useCallback((()=>r(!0)),[]),setFalse:t.useCallback((()=>r(!1)),[])}};
|
|
1282
|
+
`;function aS({message:t}){const n="success"===t.level?e.jsx(Si,{icon:tn}):e.jsx(Si,{icon:un});return"html"in t?e.jsxs(oS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,e.jsx("span",{dangerouslySetInnerHTML:{__html:t.html}})]}):e.jsxs(oS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,t.text]})}function iS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function lS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const sS=6048e5,cS=864e5,uS=6e4,dS=36e5;let pS={};function fS(){return pS}function mS(e,t){const n=fS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=iS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function gS(e){return mS(e,{weekStartsOn:1})}function hS(e){const t=iS(e),n=t.getFullYear(),r=lS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=gS(r),a=lS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=gS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function vS(e){const t=iS(e);return t.setHours(0,0,0,0),t}function bS(e){const t=iS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function yS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=iS(e);return!isNaN(Number(n))}const xS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function wS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const SS={date:wS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wS({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:wS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},CS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function OS(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var IS;const ES={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=xS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:SS,formatRelative:(e,t,n,r)=>CS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:kS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:kS({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:kS({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:kS({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:(IS={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(IS.matchPattern);if(!n)return null;const r=n[0],o=e.match(IS.parsePattern);if(!o)return null;let a=IS.valueCallback?IS.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:OS({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:OS({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:e=>e+1}),month:OS({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:OS({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:OS({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function PS(e){const t=iS(e),n=function(e,t){const n=vS(e),r=vS(t),o=+n-bS(n),a=+r-bS(r);return Math.round((o-a)/cS)}(t,function(e){const t=iS(e),n=lS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function $S(e){const t=iS(e),n=+gS(t)-+function(e){const t=hS(e),n=lS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),gS(n)}(t);return Math.round(n/sS)+1}function NS(e,t){const n=iS(e),r=n.getFullYear(),o=fS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=lS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=mS(i,t),s=lS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=mS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function RS(e,t){const n=iS(e),r=+mS(n,t)-+function(e,t){const n=fS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=NS(e,t),a=lS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),mS(a,t)}(n,t);return Math.round(r/sS)+1}function DS(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const TS={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return DS("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):DS(n+1,2)},d:(e,t)=>DS(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>DS(e.getHours()%12||12,t.length),H:(e,t)=>DS(e.getHours(),t.length),m:(e,t)=>DS(e.getMinutes(),t.length),s:(e,t)=>DS(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return DS(Math.trunc(r*Math.pow(10,n-3)),t.length)}},zS="midnight",jS="noon",MS="morning",AS="afternoon",_S="evening",LS="night",VS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return TS.y(e,t)},Y:function(e,t,n,r){const o=NS(e,r),a=o>0?o:1-o;if("YY"===t){return DS(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):DS(a,t.length)},R:function(e,t){return DS(hS(e),t.length)},u:function(e,t){return DS(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return DS(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return DS(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return TS.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return DS(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=RS(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):DS(o,t.length)},I:function(e,t,n){const r=$S(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):DS(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):TS.d(e,t)},D:function(e,t,n){const r=PS(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):DS(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return DS(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return DS(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return DS(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?jS:0===r?zS:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?_S:r>=12?AS:r>=4?MS:LS,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return TS.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):TS.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):DS(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):DS(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):TS.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):TS.s(e,t)},S:function(e,t){return TS.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return BS(r);case"XXXX":case"XX":return HS(r);default:return HS(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BS(r);case"xxxx":case"xx":return HS(r);default:return HS(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+FS(r,":");default:return"GMT"+HS(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+FS(r,":");default:return"GMT"+HS(r,":")}},t:function(e,t,n){return DS(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return DS(e.getTime(),t.length)}};function FS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+DS(a,2)}function BS(e,t){if(e%60==0){return(e>0?"-":"+")+DS(Math.abs(e)/60,2)}return HS(e,t)}function HS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+DS(Math.trunc(r/60),2)+t+DS(r%60,2)}const WS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},GS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},qS={p:GS,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return WS(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",WS(r,t)).replace("{{time}}",GS(o,t))}},US=/^D+$/,YS=/^Y+$/,KS=["D","DD","YY","YYYY"];const JS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QS=/^'([^]*?)'?$/,ZS=/''/g,eC=/[a-zA-Z]/;function tC(e,t,n){const r=fS(),o=r.locale??ES,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=iS(e);if(!yS(l))throw new RangeError("Invalid time value");let s=t.match(XS).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,qS[t])(e,o.formatLong)}return e})).join("").match(JS).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:nC(e)};if(VS[t])return{isToken:!0,value:e};if(t.match(eC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return YS.test(e)}(r)||function(e){return US.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),KS.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,VS[r[0]])(l,r,o.localize,c)})).join("")}function nC(e){const t=e.match(QS);return t?t[1].replace(ZS,"'"):e}function rC(e,t){const n=function(e){const t={},n=e.split(oC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],oC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(oC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=oC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(aC);if(!n)return new Date(NaN);const r=!!n[4],o=sC(n[1]),a=sC(n[2])-1,i=sC(n[3]),l=sC(n[4]),s=sC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(uC[t]||(dC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(dC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(iC);if(!t)return NaN;const n=cC(t[1]),r=cC(t[2]),o=cC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*dS+r*uS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(lC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*dS+o*uS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const oC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,iC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sC(e){return e?parseInt(e):1}function cC(e){return e&&parseFloat(e.replace(",","."))||0}const uC=[31,null,31,30,31,30,31,31,30,31,30,31];function dC(e){return e%400==0||e%4==0&&e%100!=0}const pC="-",fC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0};exports.Accordion=function({title:n,children:r,open:o=!1}){const[a,i]=t.useState(o),l=t.useRef(null);return t.useEffect((()=>{a&&l.current?l.current.style.maxHeight=`${l.current.scrollHeight}px`:l.current&&(l.current.style.maxHeight="0px")}),[a]),e.jsxs(Ci,{children:[e.jsx(ki,{children:e.jsx(pn,{as:"h3",children:e.jsxs(Ii,{type:"button","aria-expanded":a,onClick:()=>i(!a),"aria-controls":"accordion-content",role:"button",isOpen:a,children:[n,e.jsx("span",{children:e.jsx(Si,{icon:en})})]})})}),e.jsx(Oi,{ref:l,"aria-labelledby":"accordion-button",isOpen:a,role:"region",children:r})]})},exports.AppBar=function({apps:t,currentApp:n,leftSide:r,rightSide:o,myAccountMenu:a,workspaces:i,workspacesMenu:l,currentWorkspace:s,helpButton:c}){return e.jsxs(Cy,{children:[e.jsx(ky,{href:"/",children:e.jsx(Sy,{})}),e.jsx(Ry,{apps:t,currentApp:n}),e.jsx($y,{children:r}),e.jsxs(Oy,{children:[o,Array.isArray(i)&&i.length>0?e.jsx("div",{style:i.length<=1?{pointerEvents:"none"}:void 0,children:e.jsxs(lf,{children:[e.jsx(Py,{size:"sm",children:s}),e.jsxs(ay,{placement:"bottom-start",children:[e.jsx(oy,{sticky:!0,children:"Workspaces"}),l]})]})}):null,c?e.jsxs(Ey,{type:"link",as:c.as,href:c.href,children:[e.jsx(Si,{icon:ry,size:"small"})," ",c.text||"Help"]}):null,a?e.jsxs(lf,{children:[e.jsx(Py,{size:"sm",startDecorator:e.jsx(Si,{icon:ny,size:"small"}),children:"My Account"}),a]}):null]})]})},exports.Autocomplete=function({id:n,options:r,onChange:o,name:a,...i}){const[l,s]=t.useState(i.defaultValue),[c,u]=t.useState(i.defaultValue?.value);return e.jsxs(Dy,{children:[e.jsx(ib,{...i,id:n,options:r,onChange:(e,t,n)=>{s(t),u(t?t?.value:""),o&&o(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:l,renderOption:i.renderOption,name:""}),e.jsx(wv,{name:a,value:c,type:"hidden",sx:{display:"none"}})]})},exports.AutocompleteSelectMultiple=function({defaultValue:n,id:r,name:o,inline:a,onChange:i,SelectedOption:l,...s}){const[c,u]=t.useState((()=>(n||[]).map((e=>{const t=s.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return e.jsxs(zy,{children:[e.jsx(ib,{...s,multiple:!0,value:c,onChange:(e,t,n)=>{u(t),i&&i(e,t,n)},renderTags:(n,r)=>a?n.map(((n,o)=>t.createElement(ev,{component:"div",...r({index:o}),key:n.label,endDecorator:e.jsx(Si,{size:"small",icon:ln})},n.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(c)&&c.map((t=>e.jsx(wv,{name:o,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!a&&e.jsx(Ty,{children:Array.isArray(c)&&c.length>0?c.map((t=>e.jsxs(Hg,{children:[l?e.jsx(l,{option:t}):t.label,e.jsx(jy,{type:"button",onClick:()=>{u(c.filter((e=>e.value!==t.value)))},children:e.jsx(Si,{icon:an})})]},t.value))):null})]})},exports.Badge=function({children:t,...n}){return e.jsx(Ly,{...n,children:t})},exports.Box=sb,exports.Breadcrumb=Hy,exports.Button=xy,exports.Chip=function(t){return e.jsx(ev,{...t})},exports.Divider=Wy,exports.Drawer=lx,exports.Dropdown=function(t){return e.jsx(lf,{...t})},exports.Grid=function(t){return e.jsx(jb,{...t})},exports.Heading=pn,exports.Icon=Si,exports.IconButton=Wh,exports.Input=sx,exports.Layout=function({children:t,header:n,footer:r}){return e.jsx(zp,{theme:ux,children:e.jsxs(dx,{children:[n,e.jsx(px,{children:t}),r]})})},exports.List=Ty,exports.ListItem=Hg,exports.ListItemButton=ih,exports.ListItemDecorator=Lb,exports.LoadingSpinner=function(t){return e.jsxs(ly,{children:[e.jsx(iy,{...t}),e.jsx(sy,{children:"Loading"})]})},exports.Logo=Sy,exports.Menu=ay,exports.MenuButton=Jb,exports.MenuHeading=oy,exports.MenuItem=fx,exports.ProgressBar=function({ariaLabel:t,percentage:n}){return e.jsx(gx,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e.jsx(hx,{style:{width:`${n}%`}})})},exports.ProgressCircle=function({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],s=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),c=l/7,[u,d]=t.useState(0);t.useEffect((()=>{d(r)}),[r]);const p=(l-c)/2,f=p*Math.PI*2,m=u*f/100,g=`0 0 ${l} ${l}`;return e.jsxs("svg",{width:l,height:l,viewBox:g,children:[e.jsx("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`}),e.jsx("circle",{fill:"none",stroke:s,cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${m}, ${f-m}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e.jsx("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(h=r,h>=0&&h<=100?`${r}%`:"-")})]});var h},exports.ReadMore=function({children:n,maxLines:r=3}){const[o,a]=t.useState(!1),i=t.useRef(null),[l,s]=t.useState(!1),c=()=>{const{offsetHeight:e,scrollHeight:t}=i.current||{};s(!!(e&&t&&e<t))};return t.useLayoutEffect((()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c))),[i]),t.useEffect((()=>{c()}),[]),e.jsxs(vx,{children:[e.jsx(bx,{$maxLines:o?void 0:r,ref:i,children:n}),r&&l&&e.jsx(yx,{type:"button",kind:"basic",onClick:()=>a(!o),children:o?"Read less":"Read more"})]})},exports.RelativeTime=function({time:n}){const[r,o]=t.useState((()=>new Date)),a=t.useMemo((()=>new Date(n)),[n]);t.useEffect((()=>{o(new Date)}),[n]),t.useEffect((()=>{if(Math.abs(a.getTime()/1e3-r.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[r,a]);const i=t.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-r.getTime()/1e3),t=a>r;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${xx[a.getMonth()]} ${a.getFullYear()}`;let n;return n=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${n}`:`${n} ago`}),[a,r]);return e.jsx("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})},exports.StatusIcon=function({status:t="uploaded",size:n="medium"}){const r=t.charAt(0).toUpperCase()+t.slice(1),o={uploaded:e.jsx(jx,{size:n}),running:e.jsx(Ax,{size:n}),processed:e.jsx(Mx,{size:n}),reviewed:e.jsx(zx,{size:n}),warning:e.jsx(_x,{size:n}),failed:e.jsx(Lx,{size:n})};return e.jsx(Tx,{content:r,children:e.jsx(Vx,{status:t,"aria-label":r,children:o[t]})})},exports.Table=function({id:n,data:r,columns:a,pageCount:i,totalCount:l,next:s,previous:c,page:u,pageable:d,pageSize:p,maxHeight:f=!0}){const[m,g]=t.useState((()=>[...r])),[h,v]=t.useState([]),[b,y]=t.useState({pageIndex:0,pageSize:p||10}),[x,w]=Lw(`table.${n}.columnSizing`,{}),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Aw(t)}))),[r,a]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:a,data:m,getCoreRowModel:e=>Wx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=Jx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),Gx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Wx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),Gx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:v,pageCount:i,state:{pagination:t.useMemo((()=>({pageIndex:b.pageIndex,pageSize:b.pageSize})),[b.pageIndex,b.pageSize]),sorting:h,columnSizing:x},onPaginationChange:y,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:w});return t.useEffect((()=>{void 0!==u&&S.setPageIndex(Number(u-1))}),[u,S]),t.useEffect((()=>{g(r)}),[r]),e.jsxs(e.Fragment,{children:[e.jsx(Vw,{$maxHeight:f,children:e.jsxs(Fw,{children:[S.getHeaderGroups().map((t=>e.jsx("thead",{children:e.jsx("tr",{children:t.headers.map((t=>e.jsxs("th",{colSpan:t.colSpan,style:{width:t.getSize()},children:[t.isPlaceholder?null:e.jsxs("button",{type:"button",className:t.column.getCanSort()?"cursor-pointer select-none":"",onClick:t.column.getToggleSortingHandler(),onKeyDown:t.column.getToggleSortingHandler(),title:t.column.getCanSort()?"asc"===t.column.getNextSortingOrder()?"Sort ascending":"desc"===t.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e.jsx(Si,{icon:on,size:"small"}),desc:e.jsx(Si,{icon:rn,size:"small"})}[t.column.getIsSorted()]??(t.column.getCanSort()&&e.jsx(Si,{icon:on,size:"small",className:"fade"})),_w(t.column.columnDef.header,t.getContext())]}),t.column.getCanResize()&&e.jsx("button",{type:"button","aria-label":"Resize column",onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:"resizer "+(t.column.getIsResizing()?"isResizing":"")})]},t.id)))})},t.id))),e.jsx("tbody",{children:S.getRowModel().rows.length>0?S.getRowModel().rows.map((t=>e.jsx("tr",{children:t.getVisibleCells().map((t=>e.jsx("td",{style:{width:t.column.getSize()},children:_w(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e.jsx("tr",{children:e.jsx("td",{colSpan:a.length,style:{textAlign:"center"},children:"No data"})})})]})}),e.jsxs(Bw,{children:[void 0!==l?e.jsxs("div",{children:["Total: ",l]}):null,d?e.jsxs(Hw,{children:[e.jsx(xy,{type:"link",href:S.getCanPreviousPage()?window.location.href:"",disabled:!S.getCanPreviousPage(),children:"<<"}),e.jsx(xy,{type:"link",href:S.getCanPreviousPage()&&c?c:"",disabled:!S.getCanPreviousPage(),children:"<"}),e.jsx(xy,{type:"link",href:S.getCanNextPage()&&s?s:"",disabled:!S.getCanNextPage(),children:">"}),e.jsx(xy,{href:S.getCanNextPage()?`${window.location.href}?page=${String(i)}`:"",type:"link",disabled:!S.getCanNextPage(),children:">>"}),e.jsxs(Ww,{children:[e.jsx("span",{children:"Page"}),e.jsxs("strong",{children:[S.getState().pagination.pageIndex+1," of"," ",S.getPageCount()]})]})]}):null]})]})},exports.Tabs=function({tabsConfig:n=[],defaultId:r}){const o=new URLSearchParams(window.location.search).get("tab")||r,a=n.findIndex((e=>e.id===o)),[i,l]=t.useState(a>=0?a:0),s=t.useRef(null),c=t.useRef({}),[u,d]=t.useState(!1),[p,f]=t.useState({right:!1,left:!0}),m=e=>{if(!s.current)return;const t=c.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},g=e=>{const t=new URL(window.location.href);t.searchParams.set("tab",e),window.history.pushState({},"",t.toString())},h=e=>{const t=n[e].id,r=c.current[t];r&&r.focus(),m(t),g(t)},v=e=>{const t=n.length,r={ArrowRight:()=>h((i+1)%t),ArrowLeft:()=>h((i-1+t)%t),Home:()=>h(0),End:()=>h(t-1)}[e.key];r&&(e.preventDefault(),r())},b=(e,t)=>{if(!e)return;let n=0;const r=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(r)}),20);f({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return t.useEffect((()=>{s.current&&d(s.current.offsetWidth<s.current.scrollWidth)}),[]),t.useEffect((()=>{m(n[i].id),g(n[i].id)}),[n,i]),t.useLayoutEffect((()=>{const e=()=>{if(!s.current)return;const{offsetWidth:e,scrollWidth:t}=s.current;d(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),e.jsxs(Gw,{children:[e.jsxs(qw,{role:"tablist","aria-orientation":"horizontal",children:[u&&e.jsxs(Kw,{onClick:()=>s.current&&b(s.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:p.left,children:[e.jsx(Si,{icon:sn,size:"large"})," "]}),e.jsx(Uw,{ref:s,children:n.length>0?n.map((t=>e.jsx(Yw,{type:"button",onClick:()=>(e=>{const t=n.findIndex((t=>t.id===e));m(e),l(t),g(e)})(t.id),role:"tab",ref:e=>{c.current[t.id]=e},"aria-controls":`panel-${t.id}`,"aria-selected":n[i].id===t.id,id:`tab-${t.id}`,onKeyDown:v,onFocus:()=>l(n.findIndex((e=>e.id===t.id))),tabIndex:n[i].id===t.id?0:-1,children:t.label},`tab-${t.id}`))):e.jsx("div",{children:"No tab content to display"})}),u&&e.jsx(Kw,{onClick:()=>s.current&&b(s.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:p.right,children:e.jsx(Si,{icon:cn,size:"large"})})]}),e.jsx(Jw,{children:n.map((t=>e.jsxs(Xw,{role:"tabpanel","aria-labelledby":`tab-${t.id}`,id:`panel-${t.id}`,$show:n[i].id===t.id,tabIndex:0,children:[t.label?e.jsx(pn,{as:"h2",children:t.label}):null,t.content]},`tabpanel-${t.id}`)))})]})},exports.TextBlock=function({label:t,content:n,size:r,inline:o=!1}){return e.jsxs(tS,{$inline:o,children:[t?e.jsx(Zw,{$size:r,children:t}):null,n?e.jsx(eS,{$size:r,children:n}):null]})},exports.TextField=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))},exports.ToastMessages=function({messages:t}){return e.jsx(nS,{children:e.jsx(rS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e.jsx(aS,{message:t},String(t))))})})},exports.Tooltip=Tx,exports.formatCurrency=(e,t="en-GB",n=fC)=>{let r=e;if(""===r||null==r)return pC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...fC,...n}).format(r)},exports.formatDate=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return pC;const n=rC(e);return yS(n)?tC(n,t):pC},exports.formatNumber=e=>""===e||null==e?pC:e.toLocaleString(),exports.formatText=e=>""===e||null==e?pC:e,exports.useFetch=(e,n,r)=>{const[o,a]=t.useState(null),[i,l]=t.useState(!1),[s,c]=t.useState(null),u=t.useRef(null);return t.useEffect((()=>{if(!e)return()=>{};let t=!0;l(!0);return u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{(async()=>{try{const r=await fetch(e,n);if(!r.ok)throw new Error(`Error: ${r.statusText}`);const o=await r.json();t&&(a(o),l(!1))}catch(e){t&&(c(e),l(!1))}})()}),r||0),()=>{t=!1,u.current&&clearTimeout(u.current)}}),[e,n,r]),{data:o,loading:i,error:s}},exports.useLocalStorage=Lw,exports.useToggle=function(e){const[n,r]=t.useState(e);return{value:n,toggle:t.useCallback((()=>r((e=>!e))),[]),setTrue:t.useCallback((()=>r(!0)),[]),setFalse:t.useCallback((()=>r(!1)),[])}};
|
|
1257
1283
|
//# sourceMappingURL=index.cjs.map
|