@worldresources/wri-design-systems 2.188.0 → 2.190.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +316 -292
- package/dist/index.d.ts +431 -37
- package/dist/index.esm.js +316 -292
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("@chakra-ui/react"),t=require("react/jsx-runtime"),n=require("react"),r=require("@emotion/react/jsx-runtime"),o=require("@emotion/react"),i=require("react-dom"),a=require("object-assign");function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(n),c=s(i);const
|
|
1
|
+
"use strict";var e=require("@chakra-ui/react"),t=require("react/jsx-runtime"),n=require("react"),r=require("@emotion/react/jsx-runtime"),o=require("@emotion/react"),i=require("react-dom"),a=require("object-assign");function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(n),c=s(i);const d={neutral:{100:{value:"#FFFFFF"},200:{value:"#F6F6F6"},300:{value:"#E7E6E6"},400:{value:"#C9C9C9"},500:{value:"#B0B0B0"},600:{value:"#A1A1A1"},700:{value:"#5C5959"},800:{value:"#3D3B3B"},900:{value:"#1A1919"}},primary:{100:{value:"#FFFBF2"},200:{value:"#FCEFD3"},300:{value:"#FADFA7"},400:{value:"#F5BF4F"},500:{value:"#F0AB00"},600:{value:"#DE9E00"},700:{value:"#855B00"},800:{value:"#5F4205"},900:{value:"#332300"}},secondary:{100:{value:"#F2F6FF"},200:{value:"#D7E0F7"},300:{value:"#B2C3F0"},400:{value:"#4F6CBA"},500:{value:"#3855A3"},600:{value:"#0A4298"},700:{value:"#123369"},800:{value:"#162241"},900:{value:"#0B1121"}},success:{100:{value:"#EBF5F2"},200:{value:"#D3EED1"},300:{value:"#C2E5DC"},500:{value:"#009E77"},900:{value:"#00664D"}},warning:{100:{value:"#FBF7EA"},200:{value:"#E3CC8F"},300:{value:"#EEDDA5"},500:{value:"#A88100"},900:{value:"#715804"}},error:{100:{value:"#FFEFED"},200:{value:"#EDA1A9"},300:{value:"#F6C5C1"},500:{value:"#C11101"},900:{value:"#8D0D01"}},accessible:{"text-on-primary-mids":{value:"#332300"},"text-on-secondary-mids":{value:"#F2F6FF"},"controls-on-neutral-lights":{value:"#855B00"},"controls-on-neutral-darks":{value:"#F5BF4F"}}},u=(e=>{const t={};return Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((r=>{const o=e[n][r].value;t[`${n}-${r}`]=o}))})),t})(d),p=e.createSystem(e.defaultConfig,{theme:{tokens:{colors:d}}}),h=(e,t)=>p.tokens.getVar(`colors.${e}.${t}`)||d?.[e]?.[t]?.value,f=n.createContext({labels:{}}),x={CheckboxList:{expandLabel:"Expand",hideLabel:"Hide",requiredLabel:"Required.",optionalLabel:"Optional",errorPrefix:"Error:",requiredSymbolLabel:"required"},Password:{showLabel:"Show",hideLabel:"Hide",showPasswordLabel:"Show password",hidePasswordLabel:"Hide password",strengthPrefix:"Password Strength:",strengthVeryWeak:"Very Weak",strengthWeak:"Weak",strengthMedium:"Medium",strengthStrong:"Strong",strengthVeryStrong:"Very Strong",requirementMet:"Requirement met.",requirementNotMet:"Requirement not met.",minLengthRule:e=>`Use a minimum of ${e} characters`,uppercaseRule:"Use an uppercase letter",lowercaseRule:"Use a lowercase letter",numberRule:"Use a number",specialCharRule:"Use a special character"},TextInput:{requiredSymbolLabel:"required",optionalSuffix:" (Optional)"},CloseButton:{closeLabel:"Close"},Toast:{dismissLabel:"Dismiss"},InlineMessage:{roleDescription:"Note"},MapPopUp:{closeLabel:"Close"},AnalysisWidget:{toggleSectionLabel:"Toggle section"},Table:{ascendingLabel:"Ascending",descendingLabel:"Descending"},Button:{loadingLabel:"Loading"},BaseMap:{activeLabel:"Active"},Search:{filterPlaceholder:"Filter",filterAriaLabel:"Search filter"},RadioList:{requiredLabel:"Required.",optionalLabel:"Optional.",errorPrefix:"Error:",requiredSymbolLabel:"required"},Select:{defaultAriaLabel:"Select input",requiredSuffix:" required.",disabledSuffix:" Disabled."},NavigationRail:{showLabel:"Show",hideLabel:"Hide",sidebarLabel:"Sidebar"},Navbar:{openMenuLabel:"Open menu",closeLabel:"Close",menuLabel:"Menu",goBackLabel:"Go back",closeMenuLabel:"Close menu",closeButtonText:"Close"},LegendItem:{dragAndDropLabel:"Drag and drop",upLabel:"Up",downLabel:"Down",removeLabel:"Remove",aboutDataLabel:"About data"},Toolbar:{collapseLabel:"Collapse",expandLabel:"Expand",collapseAriaLabel:"Collapse",expandAriaLabel:"Expand"},OpacityControl:{opacityButtonLabel:"Opacity",opacityHeading:"Opacity",opacityAriaLabel:"Opacity",percentSuffix:"%"},Textarea:{requiredSymbolLabel:"required",optionalSuffix:" (Optional)",errorPrefix:"Error:",enterAtLeastChars:e=>`Enter at least ${e} characters`,minChars:e=>`Min ${e} characters`,charsRemaining:e=>`You have ${e} characters remaining`,maxChars:e=>`Max ${e} characters`,needMoreChars:e=>`You need ${e} more characters`,tooManyChars:e=>`You have ${e} characters too many`},Pagination:{previousLabel:"Previous",nextLabel:"Next",previousPageLabel:"Previous page",nextPageLabel:"Next page",paginationLabel:"Pagination",pageLabel:e=>`Page ${e}`},ItemCount:{perPageLabel:"Per Page",showingLabel:(e,t,n)=>`Showing ${e}-${t} of ${n}`},LayerGroup:{activeTagLabel:e=>`${e} Active`,groupAriaLabel:(e,t,n)=>`${e}, ${t} Active layers on the map${n?`, ${n}`:""}`},QualitativeAttribute:{hideLabel:"Hide",showLabel:"Show",visibleText:"visible",hiddenText:"hidden",linePrefix:"line,",currentlyTemplate:(e,t,n,r)=>`${n} ${e}${t?`, ${t}`:""}. Currently ${r}.`},MapControlsToolbar:{zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",expandLabel:"Expand",shareLabel:"Share",printLabel:"Print",settingsLabel:"Settings",helpLabel:"Help",zoomInAriaLabel:"Zoom in",zoomOutAriaLabel:"Zoom out",expandAriaLabel:"Expand",shareAriaLabel:"Share",printAriaLabel:"Print",settingsAriaLabel:"Settings",helpAriaLabel:"Help",toolbarAriaLabel:"Map controls toolbar"},StepProgressIndicator:{currentStepLabel:(e,t,n)=>`Current Step ${e}${t?` ${t}`:""}${n?". Completed":""}`}},g=e=>o.css`
|
|
2
2
|
width: auto;
|
|
3
3
|
height: ${"small"===e?"28px":"40px"};
|
|
4
4
|
font-size: ${"small"===e?"12px":"16px"};
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
}
|
|
27
27
|
`,v=e=>o.css`
|
|
28
28
|
${e?`\n background-color: ${h("neutral",300)};\n border: 1px solid ${h("neutral",400)};\n color: ${h("neutral",500)};\n cursor: not-allowed !important;\n\n &:hover {\n background-color: ${h("neutral",300)} !important;\n }\n `:`\n background-color: ${h("primary",500)};\n border: 1px solid ${h("primary",600)};\n color: ${h("accessible","text-on-primary-mids")||h("primary",900)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${h("primary",500)};\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:active {\n outline: none;\n background-color: ${h("primary",600)} !important;\n border: 1px solid ${h("primary",700)} !important;\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${h("primary",700)};\n background-color: ${h("primary",500)};\n }\n `}
|
|
29
|
-
`,m=e=>o.css`
|
|
30
|
-
${e?`\n background-color: ${h("neutral",200)};\n border: 1px solid ${h("neutral",300)};\n color: ${h("neutral",500)};\n cursor: not-allowed !important;\n\n &:hover {\n background-color: ${h("neutral",200)} !important;\n }\n `:`\n background-color: ${h("neutral",100)};\n border: 1px solid ${h("neutral",300)};\n color: ${h("neutral",800)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${h("neutral",100)};\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:active {\n outline: none;\n background-color: ${h("neutral",200)} !important;\n border: 1px solid ${h("neutral",300)} !important;\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${h("primary",700)};\n }\n `}
|
|
31
29
|
`,b=e=>o.css`
|
|
30
|
+
${e?`\n background-color: ${h("neutral",200)};\n border: 1px solid ${h("neutral",300)};\n color: ${h("neutral",500)};\n cursor: not-allowed !important;\n\n &:hover {\n background-color: ${h("neutral",200)} !important;\n }\n `:`\n background-color: ${h("neutral",100)};\n border: 1px solid ${h("neutral",300)};\n color: ${h("neutral",800)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${h("neutral",100)};\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:active {\n outline: none;\n background-color: ${h("neutral",200)} !important;\n border: 1px solid ${h("neutral",300)} !important;\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${h("primary",700)};\n }\n `}
|
|
31
|
+
`,m=e=>o.css`
|
|
32
32
|
${e?`\n background-color: transparent;\n color: ${h("neutral",500)};\n cursor: not-allowed !important;\n\n &:hover {\n background-color: transparent !important;\n }\n `:`\n background-color: transparent;\n border: none;\n color: ${h("neutral",900)};\n box-shadow: none;\n\n &:hover {\n background-color: color-mix(in srgb, ${h("primary",500)} 20%, transparent);\n }\n\n &:active {\n outline: none;\n background-color: color-mix(in srgb, ${h("primary",500)} 40%, transparent);\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${h("primary",700)};\n }\n `}
|
|
33
33
|
`,y=e=>o.css`
|
|
34
34
|
${e?`\n background-color: ${h("neutral",200)};\n border: 1px solid ${h("neutral",300)};\n color: ${h("neutral",500)};\n cursor: not-allowed !important;\n\n &:hover {\n background-color: ${h("neutral",200)} !important;\n }\n `:`\n background-color: transparent;\n border: 1px solid ${h("primary",800)};\n color: ${h("primary",800)};\n\n &:hover {\n background-color: ${h("primary",100)};\n color: ${h("primary",900)};\n }\n\n &:active {\n outline: none;\n background-color: ${h("primary",200)} !important;\n border: 1px solid ${h("primary",900)} !important;\n color: ${h("primary",900)};\n }\n\n &:focus-visible {\n outline-color: ${h("primary",700)};\n background-color: ${h("primary",100)};\n }\n `}
|
|
35
|
-
`,w=n.forwardRef((({label:t,loading:n,variant:o="primary",size:i="default",disabled:a,leftIcon:s,rightIcon:l,children:c,...u},d)=>{let p=v;"secondary"===o?p=m:"borderless"===o?p=b:"outline"===o&&(p=y);const h=t||c;return r.jsxs(e.Button,{"aria-label":(()=>{let e=u["aria-label"]||t;return n&&(e="Loading"),e})(),css:[g(i),p(a)],disabled:a||n,"aria-disabled":a||n,ref:d,...u,children:[s&&!n?r.jsx(e.Box,{marginRight:h?2:0,display:"flex",alignItems:"center",children:s}):null,!l&&n?r.jsx(e.Spinner,{size:"sm",marginRight:h?2:0}):null,c||t,l&&!n?r.jsx(e.Box,{marginLeft:h?2:0,display:"flex",alignItems:"center",children:l}):null,l&&n?r.jsx(e.Spinner,{size:"sm",marginLeft:h?2:0}):null]})})),C=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[t.jsx("path",{d:"M9.78791 8.03125H16V2.21875C16 1.27103 15.229 0.5 14.2812 0.5H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V8.96875H9.78791L10.5502 9.73106C10.7333 9.91413 10.7333 10.2109 10.5502 10.394C10.3672 10.577 10.0704 10.577 9.88731 10.394L8.32481 8.83147C8.14175 8.64841 8.14175 8.35162 8.32481 8.16856L9.88731 6.60606C10.0704 6.423 10.3672 6.423 10.5502 6.60606C10.7333 6.78912 10.7333 7.08591 10.5502 7.26897L9.78791 8.03125Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_1216_84",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),j=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M14.2812 0.5H7.1875V8.03125H12.4621L11.6998 7.26897C11.5168 7.08591 11.5168 6.78912 11.6998 6.60606C11.8829 6.423 12.1797 6.423 12.3627 6.60606L13.9252 8.16856C14.1083 8.35162 14.1083 8.64841 13.9252 8.83147L12.3627 10.394C12.1797 10.577 11.8829 10.577 11.6998 10.394C11.5168 10.2109 11.5168 9.91413 11.6998 9.73106L12.4621 8.96875H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V2.21875C16 1.27103 15.229 0.5 14.2812 0.5Z",fill:"#4F4E4E"})]})}),k=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M4.19632 10.4277L0 6.23139L1.04908 5.18231L4.19632 8.32955L10.9509 1.57495L12 2.62403L4.19632 10.4277Z",fill:"currentColor"})})}),$=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),S=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.5 7.49997H5.5V4.49997H4.5V7.49997ZM5 3.49997C5.14167 3.49997 5.26042 3.45205 5.35625 3.35622C5.45208 3.26039 5.5 3.14164 5.5 2.99997C5.5 2.8583 5.45208 2.73955 5.35625 2.64372C5.26042 2.54789 5.14167 2.49997 5 2.49997C4.85833 2.49997 4.73958 2.54789 4.64375 2.64372C4.54792 2.73955 4.5 2.8583 4.5 2.99997C4.5 3.14164 4.54792 3.26039 4.64375 3.35622C4.73958 3.45205 4.85833 3.49997 5 3.49997ZM5 9.99997C4.30833 9.99997 3.65833 9.86872 3.05 9.60622C2.44167 9.34372 1.9125 8.98747 1.4625 8.53747C1.0125 8.08747 0.65625 7.5583 0.39375 6.94997C0.13125 6.34164 0 5.69164 0 4.99997C0 4.3083 0.13125 3.6583 0.39375 3.04997C0.65625 2.44164 1.0125 1.91247 1.4625 1.46247C1.9125 1.01247 2.44167 0.656219 3.05 0.393719C3.65833 0.131219 4.30833 -3.05176e-05 5 -3.05176e-05C5.69167 -3.05176e-05 6.34167 0.131219 6.95 0.393719C7.55833 0.656219 8.0875 1.01247 8.5375 1.46247C8.9875 1.91247 9.34375 2.44164 9.60625 3.04997C9.86875 3.6583 10 4.3083 10 4.99997C10 5.69164 9.86875 6.34164 9.60625 6.94997C9.34375 7.5583 8.9875 8.08747 8.5375 8.53747C8.0875 8.98747 7.55833 9.34372 6.95 9.60622C6.34167 9.86872 5.69167 9.99997 5 9.99997Z",fill:"currentColor"})})}),E=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),R=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),L=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),O=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 16C7.45 16 6.97917 15.8042 6.5875 15.4125C6.19583 15.0208 6 14.55 6 14C6 13.45 6.19583 12.9792 6.5875 12.5875C6.97917 12.1958 7.45 12 8 12C8.55 12 9.02083 12.1958 9.4125 12.5875C9.80417 12.9792 10 13.45 10 14C10 14.55 9.80417 15.0208 9.4125 15.4125C9.02083 15.8042 8.55 16 8 16ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10ZM8 4C7.45 4 6.97917 3.80417 6.5875 3.4125C6.19583 3.02083 6 2.55 6 2C6 1.45 6.19583 0.979167 6.5875 0.5875C6.97917 0.195833 7.45 0 8 0C8.55 0 9.02083 0.195833 9.4125 0.5875C9.80417 0.979167 10 1.45 10 2C10 2.55 9.80417 3.02083 9.4125 3.4125C9.02083 3.80417 8.55 4 8 4Z",fill:"currentColor"})})}),T=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5 6.95455C5.56818 6.95455 6.05114 6.75568 6.44886 6.35795C6.84659 5.96023 7.04545 5.47727 7.04545 4.90909C7.04545 4.34091 6.84659 3.85795 6.44886 3.46023C6.05114 3.0625 5.56818 2.86364 5 2.86364C4.43182 2.86364 3.94886 3.0625 3.55114 3.46023C3.15341 3.85795 2.95455 4.34091 2.95455 4.90909C2.95455 5.47727 3.15341 5.96023 3.55114 6.35795C3.94886 6.75568 4.43182 6.95455 5 6.95455ZM5 6.13636C4.65909 6.13636 4.36932 6.01705 4.13068 5.77841C3.89205 5.53977 3.77273 5.25 3.77273 4.90909C3.77273 4.56818 3.89205 4.27841 4.13068 4.03977C4.36932 3.80114 4.65909 3.68182 5 3.68182C5.34091 3.68182 5.63068 3.80114 5.86932 4.03977C6.10795 4.27841 6.22727 4.56818 6.22727 4.90909C6.22727 5.25 6.10795 5.53977 5.86932 5.77841C5.63068 6.01705 5.34091 6.13636 5 6.13636ZM5 8.31818C3.89394 8.31818 2.88636 8.00947 1.97727 7.39205C1.06818 6.77462 0.409091 5.94697 0 4.90909C0.409091 3.87121 1.06818 3.04356 1.97727 2.42614C2.88636 1.80871 3.89394 1.5 5 1.5C6.10606 1.5 7.11364 1.80871 8.02273 2.42614C8.93182 3.04356 9.59091 3.87121 10 4.90909C9.59091 5.94697 8.93182 6.77462 8.02273 7.39205C7.11364 8.00947 6.10606 8.31818 5 8.31818Z",fill:"currentColor"})})}),M=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:t.jsx("path",{d:"M8.54545 9.9375L6.63636 8.05114C6.37121 8.13447 6.10417 8.19697 5.83523 8.23864C5.56629 8.2803 5.28788 8.30114 5 8.30114C3.85606 8.30114 2.83712 7.98485 1.94318 7.35227C1.04924 6.7197 0.401515 5.89962 0 4.89205C0.159091 4.49053 0.359848 4.11742 0.602273 3.77273C0.844697 3.42803 1.12121 3.11932 1.43182 2.84659L0.181818 1.57386L0.818182 0.9375L9.18182 9.30114L8.54545 9.9375ZM5 6.9375C5.08333 6.9375 5.16098 6.93371 5.23295 6.92614C5.30492 6.91856 5.38258 6.90341 5.46591 6.88068L3.01136 4.42614C2.98864 4.50947 2.97348 4.58712 2.96591 4.65909C2.95833 4.73106 2.95455 4.80871 2.95455 4.89205C2.95455 5.46023 3.15341 5.94318 3.55114 6.34091C3.94886 6.73864 4.43182 6.9375 5 6.9375ZM8.31818 7.14205L6.875 5.71023C6.92803 5.58144 6.9697 5.45076 7 5.31818C7.0303 5.18561 7.04545 5.04356 7.04545 4.89205C7.04545 4.32386 6.84659 3.84091 6.44886 3.44318C6.05114 3.04545 5.56818 2.84659 5 2.84659C4.84848 2.84659 4.70644 2.86174 4.57386 2.89205C4.44129 2.92235 4.31061 2.9678 4.18182 3.02841L3.02273 1.86932C3.33333 1.74053 3.65152 1.64394 3.97727 1.57955C4.30303 1.51515 4.64394 1.48295 5 1.48295C6.14394 1.48295 7.16288 1.79924 8.05682 2.43182C8.95076 3.06439 9.59848 3.88447 10 4.89205C9.82576 5.33902 9.59659 5.75379 9.3125 6.13636C9.02841 6.51894 8.69697 6.85417 8.31818 7.14205ZM6.21591 5.05114L4.85227 3.6875C5.06439 3.64962 5.25947 3.66667 5.4375 3.73864C5.61553 3.81061 5.76894 3.91477 5.89773 4.05114C6.02652 4.1875 6.11932 4.3447 6.17614 4.52273C6.23295 4.70076 6.24621 4.87689 6.21591 5.05114Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4626_1381",children:t.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),P=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M6.25 20C5.5625 20 4.97396 19.7552 4.48437 19.2656C3.99479 18.776 3.75 18.1875 3.75 17.5C3.75 16.8125 3.99479 16.224 4.48437 15.7344C4.97396 15.2448 5.5625 15 6.25 15C6.9375 15 7.52604 15.2448 8.01562 15.7344C8.50521 16.224 8.75 16.8125 8.75 17.5C8.75 18.1875 8.50521 18.776 8.01562 19.2656C7.52604 19.7552 6.9375 20 6.25 20ZM13.75 20C13.0625 20 12.474 19.7552 11.9844 19.2656C11.4948 18.776 11.25 18.1875 11.25 17.5C11.25 16.8125 11.4948 16.224 11.9844 15.7344C12.474 15.2448 13.0625 15 13.75 15C14.4375 15 15.026 15.2448 15.5156 15.7344C16.0052 16.224 16.25 16.8125 16.25 17.5C16.25 18.1875 16.0052 18.776 15.5156 19.2656C15.026 19.7552 14.4375 20 13.75 20ZM6.25 12.5C5.5625 12.5 4.97396 12.2552 4.48437 11.7656C3.99479 11.276 3.75 10.6875 3.75 10C3.75 9.3125 3.99479 8.72396 4.48437 8.23438C4.97396 7.74479 5.5625 7.5 6.25 7.5C6.9375 7.5 7.52604 7.74479 8.01562 8.23438C8.50521 8.72396 8.75 9.3125 8.75 10C8.75 10.6875 8.50521 11.276 8.01562 11.7656C7.52604 12.2552 6.9375 12.5 6.25 12.5ZM13.75 12.5C13.0625 12.5 12.474 12.2552 11.9844 11.7656C11.4948 11.276 11.25 10.6875 11.25 10C11.25 9.3125 11.4948 8.72396 11.9844 8.23438C12.474 7.74479 13.0625 7.5 13.75 7.5C14.4375 7.5 15.026 7.74479 15.5156 8.23438C16.0052 8.72396 16.25 9.3125 16.25 10C16.25 10.6875 16.0052 11.276 15.5156 11.7656C15.026 12.2552 14.4375 12.5 13.75 12.5ZM6.25 5C5.5625 5 4.97396 4.75521 4.48437 4.26562C3.99479 3.77604 3.75 3.1875 3.75 2.5C3.75 1.8125 3.99479 1.22396 4.48437 0.734375C4.97396 0.244792 5.5625 0 6.25 0C6.9375 0 7.52604 0.244792 8.01562 0.734375C8.50521 1.22396 8.75 1.8125 8.75 2.5C8.75 3.1875 8.50521 3.77604 8.01562 4.26562C7.52604 4.75521 6.9375 5 6.25 5ZM13.75 5C13.0625 5 12.474 4.75521 11.9844 4.26562C11.4948 3.77604 11.25 3.1875 11.25 2.5C11.25 1.8125 11.4948 1.22396 11.9844 0.734375C12.474 0.244792 13.0625 0 13.75 0C14.4375 0 15.026 0.244792 15.5156 0.734375C16.0052 1.22396 16.25 1.8125 16.25 2.5C16.25 3.1875 16.0052 3.77604 15.5156 4.26562C15.026 4.75521 14.4375 5 13.75 5Z",fill:"currentColor"})})}),_=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:t.jsx("path",{d:"M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4916_54426",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),D=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 18.6477L10 1.375L20 18.6477H0ZM10 15.9205C10.2576 15.9205 10.4735 15.8333 10.6477 15.6591C10.822 15.4848 10.9091 15.2689 10.9091 15.0114C10.9091 14.7538 10.822 14.5379 10.6477 14.3636C10.4735 14.1894 10.2576 14.1023 10 14.1023C9.74242 14.1023 9.52652 14.1894 9.35227 14.3636C9.17803 14.5379 9.09091 14.7538 9.09091 15.0114C9.09091 15.2689 9.17803 15.4848 9.35227 15.6591C9.52652 15.8333 9.74242 15.9205 10 15.9205ZM9.09091 13.1932H10.9091V8.64773H9.09091V13.1932Z",fill:"currentColor"})})}),I=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})})}),N=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.79733 2.62109L7.05688 4.36154L8.6964 6.00105L10.4368 4.26061L8.79733 2.62109",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4348 17.7395L26.7261 24.0306L28.4666 22.2904L22.1753 15.999L20.4348 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.83032 8.73722L8.57056 10.4775L15.5197 3.52853L17.9952 6.00428L19.7357 4.26384L15.5197 0.0478516L6.83032 8.73722",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.0828 8.74062L26.823 10.4811L28.4667 8.83761L26.7262 7.09717L25.0828 8.74062",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05664 26.7665L8.79688 28.5069L15.088 22.216L13.3476 20.4756L7.05664 26.7665",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 17.865L17.6987 19.6052L24.2126 13.0913L22.4722 11.3511L15.9583 17.865",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.606 8.61475L27.5582 15.5672L25.086 18.0396L26.8264 19.7799L31.0391 15.5672L22.3462 6.87451L20.606 8.61475",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 22.2898L4.32031 24.0302L5.95651 22.394L4.21607 20.6538L2.58008 22.2898",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 8.91145L17.6987 10.6517L23.99 4.36056L22.2496 2.62012L15.9583 8.91145",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 15.5676L8.69268 24.2603L10.4331 22.5198L3.48068 15.5676L5.96016 13.0881L4.21971 11.3477L0 15.5676",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3071 8.61154L17.8244 15.1288L19.5646 13.3885L13.0474 6.87109L11.3071 8.61154",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6091 26.8674L22.2493 28.5073L23.9897 26.7671L22.3496 25.127L20.6091 26.8674",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 8.83789L8.87079 15.1286L10.6112 13.3884L4.32052 7.09766L2.58008 8.83789",fill:"#9B9B9B"}),t.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),t.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4817 17.7395L17.9989 24.2567L19.7392 22.5163L13.2219 15.999L11.4817 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5195 27.6061L13.0437 25.1303L11.3035 26.8706L15.5195 31.0868L24.2159 22.3903L22.4756 20.6499L15.5195 27.6061",fill:"#9B9B9B"})]}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82666 18.0429L8.5669 19.7834L15.0881 13.2624L13.3476 11.522L6.82666 18.0429",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.8376 3.46878C39.7609 3.22403 39.6861 3.06362 39.5918 2.99958C39.5199 2.95005 39.386 2.93948 39.3278 2.93948C39.2598 2.93948 39.219 2.93264 39.219 2.87834C39.219 2.83171 39.2754 2.82031 39.3653 2.82031C39.7133 2.82031 40.0782 2.83648 40.1396 2.83648C40.1999 2.83648 40.4927 2.82031 40.8782 2.82031C40.9688 2.82031 41.0173 2.83648 41.0173 2.87834C41.0173 2.93264 40.9628 2.93948 40.8968 2.93948C40.8442 2.93948 40.7783 2.93948 40.7319 2.96373C40.6714 2.99191 40.6579 3.0373 40.6579 3.10921C40.6579 3.19853 40.724 3.42402 40.8055 3.721C40.9174 4.16202 41.5358 6.18037 41.656 6.55196H41.6755L42.9658 3.08496C43.0325 2.89616 43.0773 2.84497 43.1336 2.84497C43.2064 2.84497 43.2387 2.94632 43.3278 3.15999L44.7104 6.5043H44.7296C44.8482 6.05851 45.3823 4.30149 45.6173 3.52391C45.66 3.37138 45.6811 3.23169 45.6811 3.13615C45.6811 3.0315 45.6222 2.93948 45.3617 2.93948C45.2969 2.93948 45.2502 2.9171 45.2502 2.87834C45.2502 2.83171 45.3008 2.82031 45.4036 2.82031C45.7549 2.82031 46.034 2.83648 46.0939 2.83648C46.1395 2.83648 46.4268 2.82031 46.6462 2.82031C46.7184 2.82031 46.7658 2.83171 46.7658 2.87233C46.7658 2.9171 46.7351 2.93948 46.6744 2.93948C46.6067 2.93948 46.5142 2.94632 46.4407 2.97139C46.2796 3.0315 46.2092 3.29656 46.0657 3.67831C45.763 4.51578 45.0639 6.63155 44.7377 7.62964C44.6639 7.86258 44.6308 7.94279 44.5435 7.94279C44.4756 7.94279 44.4378 7.86258 44.3377 7.6141L42.9542 4.2818H42.9397C42.8143 4.62169 41.9279 6.97723 41.6423 7.58778C41.514 7.86258 41.4831 7.94279 41.4034 7.94279C41.3358 7.94279 41.3105 7.87025 41.2502 7.69575L39.8376 3.46878",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.4736 5.46052C52.4736 3.96919 51.6156 3.04363 50.5241 3.04363C49.7593 3.04363 48.8862 3.46848 48.8862 5.12686C48.8862 6.51167 49.6547 7.61007 50.9315 7.61007C51.3984 7.61007 52.4736 7.38417 52.4736 5.46052ZM47.9695 5.33425C47.9695 4.19523 48.7201 2.72607 50.7182 2.72607C52.3747 2.72607 53.4068 3.68811 53.4068 5.21384C53.4068 6.73834 52.3397 7.94243 50.6521 7.94243C48.7413 7.94243 47.9695 6.51161 47.9695 5.33425V5.33425Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.6253 5.27407C56.6253 5.34806 56.6388 5.37251 56.685 5.39469C56.8222 5.44111 57.0255 5.46059 57.1911 5.46059C57.4551 5.46059 57.5428 5.43261 57.6644 5.34806C57.8634 5.20029 58.0557 4.89253 58.0557 4.34561C58.0557 3.40327 57.4331 3.13178 57.0371 3.13178C56.8709 3.13178 56.7515 3.13593 56.685 3.15976C56.6388 3.17219 56.6253 3.19831 56.6253 3.25115V5.27407ZM55.8409 4.74893C55.8409 3.73799 55.8409 3.5494 55.8277 3.33842C55.8144 3.10921 55.7609 3.00435 55.5421 2.95689C55.4865 2.94632 55.3769 2.93948 55.2814 2.93948C55.208 2.93948 55.1667 2.92352 55.1667 2.87834C55.1667 2.83171 55.2146 2.82031 55.3122 2.82031C55.6681 2.82031 56.0873 2.83648 56.2272 2.83648C56.4521 2.83648 56.9576 2.82031 57.1633 2.82031C57.5836 2.82031 58.0313 2.86052 58.3884 3.10465C58.5765 3.23169 58.841 3.5724 58.841 4.01632C58.841 4.50957 58.6354 4.95825 57.9633 5.50455C58.5554 6.25187 59.014 6.84501 59.4066 7.25598C59.7788 7.64145 60.0519 7.68767 60.1537 7.70984C60.225 7.72373 60.2867 7.72891 60.3379 7.72891C60.3924 7.72891 60.4187 7.75233 60.4187 7.78404C60.4187 7.83357 60.3732 7.8489 60.2913 7.8489H59.6602C59.2866 7.8489 59.1197 7.81429 58.9498 7.72373C58.6626 7.56974 58.4076 7.25598 58.0369 6.74512C57.7708 6.37705 57.4665 5.92671 57.3766 5.82371C57.3461 5.78785 57.3051 5.78018 57.2585 5.78018L56.6788 5.76485C56.6469 5.76485 56.6253 5.78018 56.6253 5.8179V5.91344C56.6253 6.53145 56.6253 7.05661 56.6585 7.3368C56.6788 7.52871 56.7165 7.6773 56.9194 7.70155C57.0195 7.71751 57.1633 7.72891 57.2429 7.72891C57.297 7.72891 57.3264 7.75233 57.3264 7.78404C57.3264 7.82984 57.279 7.8489 57.1911 7.8489C56.8056 7.8489 56.3132 7.82984 56.2142 7.82984C56.0873 7.82984 55.6681 7.8489 55.4016 7.8489C55.3122 7.8489 55.2681 7.82984 55.2681 7.78404C55.2681 7.75233 55.2944 7.72891 55.3769 7.72891C55.4751 7.72891 55.5543 7.71751 55.6142 7.70155C55.7466 7.6773 55.7808 7.52871 55.8071 7.3368C55.8409 7.05661 55.8409 6.53145 55.8409 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.7401 5.92028C62.7401 6.76978 62.7401 7.22986 62.8795 7.34944C62.9923 7.45099 63.167 7.49804 63.6837 7.49804C64.037 7.49804 64.2973 7.48913 64.4635 7.30945C64.5458 7.22385 64.6235 7.03567 64.6351 6.91236C64.6426 6.85164 64.6544 6.8104 64.7079 6.8104C64.7576 6.8104 64.7636 6.84501 64.7636 6.92273C64.7636 6.99858 64.7159 7.49804 64.6633 7.68767C64.6235 7.83357 64.5885 7.87025 64.2426 7.87025C63.7651 7.87025 63.4198 7.85491 63.1195 7.8489C62.8194 7.83357 62.5805 7.82984 62.3067 7.82984C62.2352 7.82984 62.0852 7.82984 61.9272 7.83357C61.7749 7.83357 61.6029 7.8489 61.4709 7.8489C61.3832 7.8489 61.3349 7.82984 61.3349 7.78404C61.3349 7.75233 61.365 7.72891 61.4413 7.72891C61.543 7.72891 61.6216 7.71751 61.6819 7.70155C61.8176 7.6773 61.8487 7.52871 61.874 7.3368C61.9082 7.05661 61.9082 6.53145 61.9082 5.92028V4.74893C61.9082 3.73799 61.9082 3.5494 61.8951 3.33842C61.8817 3.10921 61.8269 3.00435 61.6095 2.95689C61.5577 2.94632 61.474 2.93948 61.3886 2.93948C61.3155 2.93948 61.2759 2.92352 61.2759 2.87834C61.2759 2.83171 61.3233 2.82031 61.4214 2.82031C61.7353 2.82031 62.1536 2.83648 62.3341 2.83648C62.4939 2.83648 62.9803 2.82031 63.2387 2.82031C63.3324 2.82031 63.38 2.83171 63.38 2.87834C63.38 2.92352 63.339 2.93948 63.2588 2.93948C63.1867 2.93948 63.0816 2.94632 62.9991 2.95689C62.8194 2.99191 62.7647 3.10465 62.7533 3.33842C62.7401 3.5494 62.7401 3.73799 62.7401 4.74893V5.92028",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.8097 5.48049C67.8097 6.18388 67.8141 6.6966 67.8234 6.82509C67.8294 6.99068 67.8447 7.25575 67.8978 7.33056C67.9832 7.45595 68.2426 7.59501 68.7672 7.59501C69.4469 7.59501 69.9002 7.46237 70.2973 7.11627C70.7267 6.74903 70.8568 6.14512 70.8568 5.46059C70.8568 4.61607 70.5043 4.06832 70.22 3.79517C69.6061 3.21012 68.8478 3.13178 68.3284 3.13178C68.1954 3.13178 67.9498 3.1496 67.8978 3.17696C67.8375 3.20432 67.8141 3.23706 67.8141 3.30918C67.8097 3.53819 67.8097 4.11682 67.8097 4.64343V5.48049ZM66.9788 4.74893C66.9788 3.73799 66.9788 3.5494 66.9632 3.33842C66.95 3.10921 66.8969 3.00435 66.6779 2.95689C66.6254 2.94632 66.5114 2.93948 66.4196 2.93948C66.3438 2.93948 66.3042 2.92352 66.3042 2.87834C66.3042 2.83171 66.3531 2.82031 66.4509 2.82031C66.8041 2.82031 67.2215 2.83648 67.4096 2.83648C67.6156 2.83648 68.0355 2.82031 68.4355 2.82031C69.267 2.82031 70.3786 2.82031 71.1044 3.57676C71.4374 3.92389 71.7481 4.47661 71.7481 5.26622C71.7481 6.10556 71.3968 6.74512 71.0236 7.125C70.7169 7.43669 70.0257 7.90942 68.7953 7.90942C68.5559 7.90942 68.2817 7.88911 68.0297 7.87025C67.7761 7.8489 67.5417 7.82984 67.379 7.82984C67.3042 7.82984 67.1574 7.82984 66.9964 7.83357C66.8441 7.83357 66.6721 7.8489 66.5373 7.8489C66.4509 7.8489 66.407 7.82984 66.407 7.78404C66.407 7.75233 66.4335 7.72891 66.5114 7.72891C66.612 7.72891 66.6932 7.71751 66.7518 7.70155C66.8855 7.6773 66.9187 7.52871 66.9456 7.3368C66.9788 7.05661 66.9788 6.53145 66.9788 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.2173 16.0733C41.2173 16.1481 41.231 16.1755 41.2755 16.1948C41.4152 16.241 41.6173 16.2607 41.7812 16.2607C42.0492 16.2607 42.1356 16.2333 42.2543 16.1481C42.456 16.0002 42.6456 15.6964 42.6456 15.1501C42.6456 14.2044 42.022 13.9325 41.6299 13.9325C41.4637 13.9325 41.3425 13.9385 41.2755 13.9582C41.231 13.9727 41.2173 13.9965 41.2173 14.0508V16.0733ZM40.4308 15.5499C40.4308 14.5375 40.4308 14.3499 40.419 14.1383C40.4055 13.9131 40.3531 13.8053 40.1297 13.7597C40.0783 13.746 39.966 13.7406 39.8735 13.7406C39.8016 13.7406 39.761 13.727 39.761 13.6772C39.761 13.6316 39.8055 13.6167 39.9083 13.6167C40.258 13.6167 40.6772 13.6397 40.8181 13.6397C41.0424 13.6397 41.5472 13.6167 41.757 13.6167C42.1733 13.6167 42.6222 13.6606 42.9812 13.9075C43.1658 14.0335 43.434 14.3723 43.434 14.8179C43.434 15.3084 43.2251 15.7621 42.5542 16.3086C43.1463 17.053 43.6056 17.6457 43.9979 18.0588C44.3697 18.4434 44.6426 18.4917 44.7425 18.5095C44.8176 18.5228 44.8756 18.5328 44.9299 18.5328C44.9804 18.5328 45.0097 18.5489 45.0097 18.5829C45.0097 18.6376 44.9628 18.6492 44.8837 18.6492H44.2503C43.8754 18.6492 43.7123 18.6171 43.5376 18.5228C43.2522 18.3697 42.9996 18.0588 42.627 17.5452C42.3611 17.1811 42.056 16.727 41.9688 16.6288C41.9358 16.5867 41.8937 16.5815 41.8463 16.5815L41.2714 16.5683C41.2376 16.5683 41.2173 16.5815 41.2173 16.6203V16.7152C41.2173 17.3328 41.2173 17.8571 41.2502 18.1375C41.2714 18.3294 41.3106 18.477 41.5097 18.5035C41.6096 18.5174 41.757 18.5328 41.8347 18.5328C41.8892 18.5328 41.9163 18.5489 41.9163 18.5829C41.9163 18.6287 41.8678 18.6492 41.7812 18.6492C41.3959 18.6492 40.9046 18.6287 40.8055 18.6287C40.6772 18.6287 40.258 18.6492 39.9937 18.6492C39.9083 18.6492 39.8582 18.6287 39.8582 18.5829C39.8582 18.5489 39.8862 18.5328 39.966 18.5328C40.0661 18.5328 40.1465 18.5174 40.2076 18.5035C40.3396 18.477 40.3734 18.3294 40.3999 18.1375C40.4308 17.8571 40.4308 17.3328 40.4308 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.4986 15.5498C46.4986 14.5374 46.4986 14.3499 46.4862 14.1383C46.4737 13.913 46.419 13.8052 46.1998 13.7596C46.1463 13.7459 46.0306 13.7406 45.9419 13.7406C45.8675 13.7406 45.8257 13.7269 45.8257 13.6771C45.8257 13.6315 45.8736 13.6166 45.9734 13.6166C46.1531 13.6166 46.3475 13.6247 46.5142 13.6247C46.6849 13.6315 46.8387 13.6396 46.932 13.6396C47.1456 13.6396 48.4681 13.6396 48.5961 13.6315C48.7201 13.6166 48.827 13.6054 48.8813 13.5928C48.914 13.5868 48.9553 13.5654 48.9864 13.5654C49.0191 13.5654 49.0272 13.5928 49.0272 13.6247C49.0272 13.6722 48.9959 13.7528 48.9727 14.0589C48.9686 14.1248 48.9553 14.4201 48.9414 14.4964C48.9352 14.5306 48.9199 14.5695 48.8736 14.5695C48.827 14.5695 48.8144 14.5374 48.8144 14.4781C48.8144 14.4315 48.8096 14.3167 48.7762 14.239C48.7275 14.1186 48.662 14.0375 48.3282 13.9965C48.2154 13.9836 47.5162 13.9727 47.384 13.9727C47.35 13.9727 47.3377 13.9905 47.3377 14.0375V15.7226C47.3377 15.7684 47.3454 15.7946 47.384 15.7946C47.5299 15.7946 48.2969 15.7946 48.4484 15.7809C48.6098 15.7684 48.7085 15.7488 48.7667 15.6818C48.8144 15.6281 48.8405 15.5948 48.8736 15.5948C48.902 15.5948 48.9199 15.6085 48.9199 15.6491C48.9199 15.6887 48.8952 15.7946 48.8678 16.1344C48.8627 16.2665 48.8405 16.5336 48.8405 16.5815C48.8405 16.6333 48.8405 16.7056 48.7802 16.7056C48.7335 16.7056 48.7201 16.6799 48.7201 16.6474C48.7165 16.5815 48.7165 16.4955 48.695 16.4063C48.662 16.2745 48.5704 16.1755 48.3222 16.1481C48.1959 16.1344 47.5359 16.1268 47.3784 16.1268C47.3454 16.1268 47.3377 16.1541 47.3377 16.1947V16.7191C47.3377 16.9454 47.3301 17.5599 47.3377 17.753C47.35 18.2081 47.4559 18.3115 48.1344 18.3115C48.3085 18.3115 48.5881 18.3115 48.7617 18.233C48.9352 18.1499 49.0146 18.0135 49.0628 17.7385C49.0749 17.6627 49.0869 17.6376 49.1348 17.6376C49.188 17.6376 49.188 17.6923 49.188 17.7582C49.188 17.9118 49.1348 18.3648 49.1008 18.4968C49.0521 18.6697 48.9959 18.6697 48.7427 18.6697C48.2428 18.6697 47.8782 18.6545 47.5902 18.6491C47.3046 18.6375 47.0969 18.6286 46.898 18.6286C46.8246 18.6286 46.6785 18.6286 46.5181 18.6375C46.3656 18.6375 46.1938 18.6491 46.0597 18.6491C45.9734 18.6491 45.9239 18.6286 45.9239 18.5828C45.9239 18.5488 45.9542 18.5327 46.0306 18.5327C46.1314 18.5327 46.2132 18.5173 46.2735 18.5035C46.4064 18.4769 46.4379 18.3294 46.4657 18.1375C46.4986 17.8571 46.4986 17.3327 46.4986 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.3845 18.5715C51.2755 18.5227 51.2566 18.4917 51.2566 18.3445C51.2566 17.9771 51.2813 17.579 51.2875 17.4735C51.2951 17.3723 51.3163 17.3017 51.3685 17.3017C51.429 17.3017 51.435 17.3607 51.435 17.4134C51.435 17.4979 51.463 17.6376 51.4951 17.753C51.6408 18.2448 52.0348 18.4243 52.4487 18.4243C53.0447 18.4243 53.3388 18.016 53.3388 17.6627C53.3388 17.3373 53.2368 17.0335 52.6864 16.6006L52.3805 16.3597C51.6485 15.7888 51.3959 15.3208 51.3959 14.7843C51.3959 14.0508 52.0079 13.5244 52.9342 13.5244C53.3649 13.5244 53.6447 13.5928 53.8181 13.6396C53.8789 13.655 53.9126 13.6722 53.9126 13.719C53.9126 13.8052 53.883 13.9965 53.883 14.5173C53.883 14.6647 53.8625 14.7171 53.8113 14.7171C53.7628 14.7171 53.7439 14.6771 53.7439 14.5986C53.7439 14.5374 53.7129 14.3304 53.5723 14.158C53.4708 14.0334 53.2795 13.8326 52.8445 13.8326C52.3531 13.8326 52.0545 14.1186 52.0545 14.5173C52.0545 14.8247 52.2099 15.0547 52.7614 15.4773L52.9454 15.6161C53.7533 16.2211 54.0368 16.6799 54.0368 17.3135C54.0368 17.6975 53.8913 18.1594 53.4136 18.4703C53.0816 18.6819 52.7088 18.7449 52.3531 18.7449C51.9691 18.7449 51.6698 18.6966 51.3845 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.4449 16.2609C60.4449 14.7716 59.5867 13.8452 58.4976 13.8452C57.731 13.8452 56.8585 14.2726 56.8585 15.9289C56.8585 17.3137 57.6253 18.4106 58.9013 18.4106C59.3691 18.4106 60.4449 18.1835 60.4449 16.2609ZM55.9399 16.1345C55.9399 14.9975 56.6912 13.5244 58.689 13.5244C60.3437 13.5244 61.3787 14.4918 61.3787 16.0161C61.3787 17.5404 60.3116 18.7449 58.6225 18.7449C56.713 18.7449 55.9399 17.3135 55.9399 16.1345V16.1345Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M63.5918 15.5499C63.5918 14.5375 63.5918 14.3499 63.579 14.1383C63.5653 13.9131 63.5118 13.8053 63.2915 13.7597C63.2387 13.746 63.1243 13.7406 63.0314 13.7406C62.9575 13.7406 62.9187 13.727 62.9187 13.6772C62.9187 13.6316 62.9649 13.6167 63.0661 13.6167C63.4175 13.6167 63.8366 13.6397 64.037 13.6397C64.1955 13.6397 64.6175 13.6167 64.8544 13.6167C64.9557 13.6167 65.0017 13.6316 65.0017 13.6772C65.0017 13.727 64.9615 13.7406 64.8956 13.7406C64.8216 13.7406 64.781 13.746 64.7012 13.7597C64.5207 13.791 64.4712 13.9075 64.4554 14.1383C64.4438 14.3499 64.4438 14.5375 64.4438 15.5499V16.481C64.4438 17.4441 64.6351 17.8515 64.9615 18.1189C65.2608 18.3649 65.5685 18.3908 65.7924 18.3908C66.086 18.3908 66.4466 18.2979 66.7125 18.0314C67.0781 17.6627 67.0972 17.0661 67.0972 16.3803V15.5499C67.0972 14.5375 67.0972 14.3499 67.0858 14.1383C67.0721 13.9131 67.018 13.8053 66.7992 13.7597C66.7459 13.746 66.6332 13.7406 66.5573 13.7406C66.4858 13.7406 66.4466 13.727 66.4466 13.6772C66.4466 13.6316 66.491 13.6167 66.5876 13.6167C66.9237 13.6167 67.3417 13.6397 67.3417 13.6397C67.4323 13.6397 67.8491 13.6167 68.1089 13.6167C68.2041 13.6167 68.2476 13.6316 68.2476 13.6772C68.2476 13.727 68.2097 13.7406 68.1282 13.7406C68.0561 13.7406 68.0138 13.746 67.9382 13.7597C67.7572 13.791 67.7013 13.9075 67.6893 14.1383C67.6762 14.3499 67.6762 14.5375 67.6762 15.5499V16.2607C67.6762 17.0006 67.6045 17.7832 67.0431 18.2627C66.5718 18.6697 66.0937 18.745 65.6583 18.745C65.3091 18.745 64.6681 18.723 64.1835 18.2826C63.8428 17.9771 63.5918 17.4851 63.5918 16.5212V15.5499",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.3762 16.0733C71.3762 16.1481 71.3888 16.1755 71.4361 16.1948C71.5762 16.241 71.7749 16.2607 71.942 16.2607C72.2083 16.2607 72.2937 16.2333 72.4141 16.1481C72.6143 16.0002 72.8066 15.6964 72.8066 15.1501C72.8066 14.2044 72.1809 13.9325 71.7886 13.9325C71.622 13.9325 71.5043 13.9385 71.4361 13.9582C71.3888 13.9727 71.3762 13.9965 71.3762 14.0508V16.0733ZM70.5907 15.5499C70.5907 14.5375 70.5907 14.3499 70.5772 14.1383C70.5634 13.9131 70.5117 13.8053 70.2917 13.7597C70.2361 13.746 70.1248 13.7406 70.0322 13.7406C69.9599 13.7406 69.9167 13.727 69.9167 13.6772C69.9167 13.6316 69.9634 13.6167 70.0664 13.6167C70.4158 13.6167 70.8371 13.6397 70.9762 13.6397C71.2044 13.6397 71.7084 13.6167 71.9152 13.6167C72.3343 13.6167 72.7813 13.6606 73.138 13.9075C73.3268 14.0335 73.5924 14.3723 73.5924 14.8179C73.5924 15.3084 73.3864 15.7621 72.7125 16.3086C73.305 17.053 73.7636 17.6457 74.1555 18.0588C74.5284 18.4434 74.8025 18.4917 74.9016 18.5095C74.9754 18.5228 75.0363 18.5328 75.0888 18.5328C75.1422 18.5328 75.1683 18.5489 75.1683 18.5829C75.1683 18.6376 75.1227 18.6492 75.0403 18.6492H74.4102C74.0393 18.6492 73.8699 18.6171 73.6994 18.5228C73.4121 18.3697 73.1579 18.0588 72.7867 17.5452C72.5195 17.1811 72.2143 16.727 72.1274 16.6288C72.0939 16.5867 72.053 16.5815 72.0081 16.5815L71.4315 16.5683C71.3969 16.5683 71.3762 16.5815 71.3762 16.6203V16.7152C71.3762 17.3328 71.3762 17.8571 71.4102 18.1375C71.4315 18.3294 71.4682 18.477 71.6702 18.5035C71.7683 18.5174 71.9152 18.5328 71.9946 18.5328C72.0476 18.5328 72.0738 18.5489 72.0738 18.5829C72.0738 18.6287 72.0273 18.6492 71.9419 18.6492C71.5558 18.6492 71.0626 18.6287 70.9635 18.6287C70.8371 18.6287 70.4158 18.6492 70.1522 18.6492C70.0664 18.6492 70.0197 18.6287 70.0197 18.5829C70.0197 18.5489 70.044 18.5328 70.1248 18.5328C70.2258 18.5328 70.3053 18.5174 70.3642 18.5035C70.4974 18.477 70.5304 18.3294 70.558 18.1375C70.5907 17.8571 70.5907 17.3328 70.5907 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.7248 18.016C76.0707 17.444 75.9004 16.6996 75.9004 16.0549C75.9004 15.6041 76.0397 14.8178 76.68 14.2313C77.1561 13.7909 77.789 13.5244 78.7811 13.5244C79.1931 13.5244 79.4405 13.553 79.7454 13.5928C79.9991 13.6247 80.2123 13.6879 80.4121 13.7047C80.4836 13.7124 80.512 13.746 80.512 13.787C80.512 13.8403 80.4917 13.9167 80.4784 14.1503C80.4648 14.3723 80.4701 14.7376 80.4571 14.869C80.4511 14.9695 80.4374 15.0236 80.3773 15.0236C80.3251 15.0236 80.3122 14.9695 80.3122 14.8761C80.3046 14.6701 80.2179 14.4404 80.0525 14.2655C79.8333 14.0334 79.3152 13.8519 78.7017 13.8519C78.1229 13.8519 77.7424 13.9965 77.4508 14.2655C76.9646 14.7094 76.8376 15.3413 76.8376 15.9871C76.8376 17.5711 78.0433 18.3559 78.9345 18.3559C79.5251 18.3559 79.8849 18.2919 80.1499 17.9833C80.2648 17.8571 80.352 17.6627 80.3773 17.5452C80.3972 17.4374 80.4121 17.4134 80.4648 17.4134C80.512 17.4134 80.5249 17.4585 80.5249 17.5131C80.5249 17.591 80.4455 18.1715 80.3773 18.3969C80.3421 18.5095 80.3176 18.5447 80.2065 18.5907C79.9384 18.6966 79.4325 18.7449 79.0066 18.7449C78.0959 18.7449 77.3306 18.5447 76.7248 18.016",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.9906 15.5498C82.9906 14.5374 82.9906 14.3499 82.9794 14.1383C82.9659 13.913 82.9112 13.8052 82.6928 13.7596C82.6399 13.7459 82.5272 13.7406 82.4333 13.7406C82.3601 13.7406 82.3191 13.7269 82.3191 13.6771C82.3191 13.6315 82.3661 13.6166 82.4629 13.6166C82.6474 13.6166 82.8378 13.6247 83.0049 13.6247C83.1806 13.6315 83.3331 13.6396 83.4252 13.6396C83.6378 13.6396 84.9615 13.6396 85.0891 13.6315C85.2143 13.6166 85.3208 13.6054 85.3739 13.5928C85.4089 13.5868 85.451 13.5654 85.4783 13.5654C85.5152 13.5654 85.519 13.5928 85.519 13.6247C85.519 13.6722 85.4862 13.7528 85.4686 14.0589C85.4613 14.1248 85.451 14.4201 85.4354 14.4964C85.4282 14.5306 85.4145 14.5695 85.3697 14.5695C85.3208 14.5695 85.3078 14.5374 85.3078 14.4781C85.3078 14.4315 85.302 14.3167 85.2667 14.239C85.2211 14.1186 85.1542 14.0375 84.8224 13.9965C84.7097 13.9836 84.0092 13.9727 83.8784 13.9727C83.8436 13.9727 83.8299 13.9905 83.8299 14.0375V15.7226C83.8299 15.7684 83.8399 15.7946 83.8784 15.7946C84.0224 15.7946 84.7913 15.7946 84.9426 15.7809C85.102 15.7684 85.2006 15.7488 85.2611 15.6818C85.3078 15.6281 85.3351 15.5948 85.3697 15.5948C85.3932 15.5948 85.4145 15.6085 85.4145 15.6491C85.4145 15.6887 85.3874 15.7946 85.3621 16.1344C85.3532 16.2665 85.3351 16.5336 85.3351 16.5815C85.3351 16.6333 85.3351 16.7056 85.2742 16.7056C85.2288 16.7056 85.2143 16.6799 85.2143 16.6474C85.2095 16.5815 85.2095 16.4955 85.1892 16.4063C85.1542 16.2745 85.0609 16.1755 84.8143 16.1481C84.6885 16.1344 84.0297 16.1268 83.873 16.1268C83.8399 16.1268 83.8299 16.1541 83.8299 16.1947V16.7191C83.8299 16.9454 83.8251 17.5599 83.8299 17.753C83.8436 18.2081 83.9524 18.3115 84.629 18.3115C84.8027 18.3115 85.0815 18.3115 85.2553 18.233C85.4282 18.1499 85.508 18.0135 85.5563 17.7385C85.5656 17.6627 85.5813 17.6376 85.6284 17.6376C85.6814 17.6376 85.6814 17.6923 85.6814 17.7582C85.6814 17.9118 85.6284 18.3648 85.595 18.4968C85.5482 18.6697 85.4862 18.6697 85.2354 18.6697C84.7378 18.6697 84.3714 18.6545 84.0844 18.6491C83.7965 18.6375 83.5907 18.6286 83.3949 18.6286C83.3193 18.6286 83.1725 18.6286 83.014 18.6375C82.8588 18.6375 82.6863 18.6491 82.5535 18.6491C82.4629 18.6491 82.4202 18.6286 82.4202 18.5828C82.4202 18.5488 82.4476 18.5327 82.5272 18.5327C82.6279 18.5327 82.7073 18.5173 82.7661 18.5035C82.8998 18.4769 82.9332 18.3294 82.9599 18.1375C82.9906 17.8571 82.9906 17.3327 82.9906 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.8766 18.5715C87.7717 18.5227 87.7495 18.4917 87.7495 18.3445C87.7495 17.9771 87.7754 17.579 87.7837 17.4735C87.7912 17.3723 87.8084 17.3017 87.861 17.3017C87.9232 17.3017 87.9269 17.3607 87.9269 17.4134C87.9269 17.4979 87.953 17.6376 87.9893 17.753C88.1342 18.2448 88.529 18.4243 88.941 18.4243C89.5376 18.4243 89.8323 18.016 89.8323 17.6627C89.8323 17.3373 89.7326 17.0335 89.1795 16.6006L88.8734 16.3597C88.1418 15.7888 87.8904 15.3208 87.8904 14.7843C87.8904 14.0508 88.5016 13.5244 89.4263 13.5244C89.8591 13.5244 90.1405 13.5928 90.3117 13.6396C90.3718 13.655 90.4051 13.6722 90.4051 13.719C90.4051 13.8052 90.3799 13.9965 90.3799 14.5173C90.3799 14.6647 90.3581 14.7171 90.3038 14.7171C90.259 14.7171 90.2369 14.6771 90.2369 14.5986C90.2369 14.5374 90.2049 14.3304 90.0661 14.158C89.965 14.0334 89.7716 13.8326 89.338 13.8326C88.8475 13.8326 88.5486 14.1186 88.5486 14.5173C88.5486 14.8247 88.7024 15.0547 89.2551 15.4773L89.4394 15.6161C90.2454 16.2211 90.5312 16.6799 90.5312 17.3135C90.5312 17.6975 90.3834 18.1594 89.9057 18.4703C89.5714 18.6819 89.1992 18.7449 88.8475 18.7449C88.4612 18.7449 88.1619 18.6966 87.8766 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.4308 26.351C40.4308 25.3411 40.4308 25.1548 40.419 24.9405C40.4055 24.7134 40.3396 24.6015 40.1919 24.5681C40.1202 24.547 40.03 24.5443 39.9511 24.5443C39.8862 24.5443 39.8462 24.5289 39.8462 24.4726C39.8462 24.4359 39.9005 24.4214 40.0037 24.4214C40.258 24.4214 40.6772 24.4402 40.8696 24.4402C41.0368 24.4402 41.43 24.4214 41.6832 24.4214C41.7688 24.4214 41.821 24.4359 41.821 24.4726C41.821 24.5289 41.7812 24.5443 41.7141 24.5443C41.6505 24.5443 41.596 24.547 41.5141 24.5615C41.3359 24.5949 41.2832 24.7074 41.2714 24.9405C41.2561 25.1548 41.2561 25.3411 41.2561 26.351V27.5214C41.2561 28.1675 41.2561 28.6935 41.2832 28.9814C41.3046 29.1605 41.3502 29.2786 41.5473 29.3043C41.6424 29.3186 41.7881 29.3331 41.8892 29.3331C41.962 29.3331 41.9941 29.3528 41.9941 29.3868C41.9941 29.4322 41.9425 29.4518 41.8679 29.4518C41.43 29.4518 41.0097 29.4322 40.8298 29.4322C40.6772 29.4322 40.258 29.4518 39.9937 29.4518C39.9084 29.4518 39.8582 29.4322 39.8582 29.3868C39.8582 29.3528 39.8862 29.3331 39.966 29.3331C40.0661 29.3331 40.1465 29.3186 40.2076 29.3043C40.3396 29.2786 40.3782 29.1683 40.3999 28.9737C40.4308 28.6935 40.4308 28.1675 40.4308 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.8558 28.5483C44.8695 29.0666 44.9551 29.2398 45.089 29.2861C45.2017 29.3252 45.3281 29.3329 45.4347 29.3329C45.5095 29.3329 45.5472 29.3457 45.5472 29.3866C45.5472 29.438 45.489 29.4516 45.3957 29.4516C44.9628 29.4516 44.6938 29.432 44.5696 29.432C44.5104 29.432 44.198 29.4516 43.8503 29.4516C43.7659 29.4516 43.7046 29.4465 43.7046 29.3866C43.7046 29.3457 43.7433 29.3329 43.8092 29.3329C43.8969 29.3329 44.0171 29.3252 44.1104 29.3006C44.2851 29.2467 44.3095 29.0512 44.3164 28.4749L44.3786 24.5339C44.3786 24.4007 44.3958 24.3076 44.4637 24.3076C44.5354 24.3076 44.5957 24.3949 44.7103 24.5132C44.7881 24.6013 45.8019 25.6856 46.7726 26.6505C47.2261 27.1038 48.1224 28.0625 48.2345 28.1673H48.271L48.2037 25.1793C48.196 24.7721 48.1345 24.6475 47.9763 24.5799C47.8783 24.5441 47.7164 24.5441 47.6252 24.5441C47.5453 24.5441 47.5162 24.5219 47.5162 24.4809C47.5162 24.4264 47.5921 24.4212 47.6914 24.4212C48.0379 24.4212 48.3572 24.44 48.4967 24.44C48.5705 24.44 48.8221 24.4212 49.1473 24.4212C49.2341 24.4212 49.3019 24.4264 49.3019 24.4809C49.3019 24.5219 49.2617 24.5441 49.1802 24.5441C49.1143 24.5441 49.0629 24.5441 48.9806 24.5613C48.7939 24.616 48.7427 24.7544 48.7359 25.1273L48.6621 29.3252C48.6621 29.4713 48.6347 29.5345 48.5746 29.5345C48.5023 29.5345 48.4221 29.4577 48.3496 29.3866C47.9311 28.9856 47.0783 28.1145 46.3861 27.4291C45.6599 26.7092 44.9219 25.8785 44.8017 25.7523H44.7843L44.8558 28.5483",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.4631 29.3742C51.3557 29.3253 51.3379 29.2921 51.3379 29.1469C51.3379 28.7815 51.363 28.3817 51.3686 28.2744C51.3766 28.1761 51.3959 28.1019 51.4488 28.1019C51.5085 28.1019 51.5165 28.1616 51.5165 28.2163C51.5165 28.2999 51.5426 28.44 51.5768 28.5527C51.7223 29.0455 52.1149 29.2264 52.5283 29.2264C53.1243 29.2264 53.4197 28.8209 53.4197 28.4673C53.4197 28.143 53.3183 27.8365 52.7673 27.4019L52.4601 27.1637C51.7281 26.589 51.4757 26.1256 51.4757 25.5866C51.4757 24.8534 52.0865 24.3301 53.0116 24.3301C53.4449 24.3301 53.7243 24.3949 53.8978 24.4401C53.9583 24.4555 53.991 24.4725 53.991 24.522C53.991 24.6101 53.9651 24.8011 53.9651 25.3186C53.9651 25.4654 53.9457 25.5192 53.8914 25.5192C53.8447 25.5192 53.8234 25.4807 53.8234 25.3988C53.8234 25.341 53.791 25.1344 53.6528 24.9626C53.5515 24.8335 53.3575 24.6356 52.927 24.6356C52.4344 24.6356 52.136 24.9216 52.136 25.3186C52.136 25.626 52.2894 25.8573 52.8408 26.2782L53.0269 26.4174C53.8313 27.022 54.1162 27.4829 54.1162 28.1146C54.1162 28.4996 53.9691 28.9599 53.4912 29.2708C53.161 29.4841 52.7865 29.5466 52.4344 29.5466C52.0483 29.5466 51.7474 29.4977 51.4631 29.3742",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.6296 24.7953L56.6388 24.82C56.2502 24.8335 56.0945 24.8662 55.994 25.0138C55.9275 25.1145 55.891 25.193 55.8788 25.2453C55.8668 25.2998 55.8469 25.3261 55.8071 25.3261C55.7609 25.3261 55.7466 25.2938 55.7466 25.2204C55.7466 25.1145 55.872 24.5093 55.8896 24.4555C55.9086 24.3659 55.9275 24.3301 55.965 24.3301C56.0193 24.3301 56.0873 24.3949 56.2502 24.407C56.445 24.4264 56.697 24.4401 56.9167 24.4401H59.5543C59.7653 24.4401 59.9116 24.4213 60.0115 24.407C60.1118 24.3871 60.165 24.3761 60.1924 24.3761C60.2394 24.3761 60.245 24.4144 60.245 24.5133C60.245 24.6544 60.2249 25.1145 60.2249 25.2863C60.2189 25.3545 60.2061 25.393 60.165 25.393C60.1118 25.393 60.0973 25.358 60.09 25.2625L60.0875 25.1864C60.0722 25.0138 59.8931 24.8285 59.301 24.815L58.4623 24.7953V27.5212C58.4623 28.1343 58.4623 28.6592 58.4976 28.9454C58.5148 29.1332 58.5554 29.2785 58.7543 29.3042C58.8478 29.3185 58.9941 29.333 59.0934 29.333C59.167 29.333 59.2003 29.3527 59.2003 29.3866C59.2003 29.432 59.1464 29.4517 59.0741 29.4517C58.6354 29.4517 58.2178 29.432 58.0313 29.432C57.876 29.432 57.4551 29.4517 57.1911 29.4517C57.1049 29.4517 57.0562 29.432 57.0562 29.3866C57.0562 29.3527 57.0852 29.333 57.1633 29.333C57.2663 29.333 57.3461 29.3185 57.4037 29.3042C57.5386 29.2785 57.5766 29.1332 57.5962 28.9413C57.6296 28.6592 57.6296 28.1343 57.6296 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.5148 26.351C62.5148 25.3411 62.5148 25.1548 62.5011 24.9405C62.4876 24.7134 62.4195 24.6015 62.2752 24.5681C62.2023 24.547 62.1156 24.5443 62.0331 24.5443C61.9675 24.5443 61.9272 24.5289 61.9272 24.4726C61.9272 24.4359 61.9807 24.4214 62.0852 24.4214C62.3403 24.4214 62.7614 24.4402 62.9535 24.4402C63.1195 24.4402 63.5118 24.4214 63.7651 24.4214C63.8509 24.4214 63.9037 24.4359 63.9037 24.4726C63.9037 24.5289 63.8633 24.5443 63.798 24.5443C63.7321 24.5443 63.6801 24.547 63.5991 24.5615C63.4198 24.5949 63.3635 24.7074 63.3535 24.9405C63.339 25.1548 63.339 25.3411 63.339 26.351V27.5214C63.339 28.1675 63.339 28.6935 63.3635 28.9814C63.3863 29.1605 63.4312 29.2786 63.6331 29.3043C63.7234 29.3186 63.8712 29.3331 63.973 29.3331C64.0451 29.3331 64.0778 29.3528 64.0778 29.3868C64.0778 29.4322 64.0217 29.4518 63.9493 29.4518C63.5118 29.4518 63.092 29.4322 62.9121 29.4322C62.7614 29.4322 62.3403 29.4518 62.0736 29.4518C61.9867 29.4518 61.9401 29.4322 61.9401 29.3868C61.9401 29.3528 61.9675 29.3331 62.0474 29.3331C62.1475 29.3331 62.2273 29.3186 62.2856 29.3043C62.4195 29.2786 62.4588 29.1683 62.4789 28.9737C62.5148 28.6935 62.5148 28.1675 62.5148 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.4491 24.7953L66.4598 24.82C66.0741 24.8335 65.9133 24.8662 65.8121 25.0138C65.7464 25.1145 65.7122 25.193 65.7014 25.2453C65.6857 25.2998 65.6662 25.3261 65.6277 25.3261C65.579 25.3261 65.5686 25.2938 65.5686 25.2204C65.5686 25.1145 65.6934 24.5093 65.707 24.4555C65.7276 24.3659 65.7464 24.3301 65.7875 24.3301C65.8401 24.3301 65.9072 24.3949 66.0741 24.407C66.2674 24.4264 66.519 24.4401 66.7379 24.4401H69.3734C69.5869 24.4401 69.7326 24.4213 69.8356 24.407C69.9321 24.3871 69.9869 24.3761 70.0117 24.3761C70.0586 24.3761 70.0664 24.4144 70.0664 24.5133C70.0664 24.6544 70.0449 25.1145 70.0449 25.2863C70.0393 25.3545 70.0258 25.393 69.9869 25.393C69.9321 25.393 69.9195 25.358 69.9118 25.2625L69.9075 25.1864C69.8938 25.0138 69.7121 24.8285 69.1229 24.815L68.2819 24.7953V27.5212C68.2819 28.1343 68.2819 28.6592 68.3148 28.9454C68.3351 29.1332 68.3747 29.2785 68.5749 29.3042C68.6688 29.3185 68.8139 29.333 68.9129 29.333C68.989 29.333 69.0223 29.3527 69.0223 29.3866C69.0223 29.432 68.9682 29.4517 68.8932 29.4517C68.4559 29.4517 68.0356 29.432 67.8479 29.432C67.6976 29.432 67.278 29.4517 67.0098 29.4517C66.9238 29.4517 66.8761 29.432 66.8761 29.3866C66.8761 29.3527 66.9053 29.333 66.9839 29.333C67.084 29.333 67.1636 29.3185 67.2216 29.3042C67.3573 29.2785 67.3965 29.1332 67.4181 28.9413C67.4491 28.6592 67.4491 28.1343 67.4491 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.0477 26.351C72.0477 25.3411 72.0477 25.1548 72.033 24.9405C72.0197 24.7134 71.9681 24.6102 71.7482 24.5615C71.6927 24.547 71.5826 24.5443 71.49 24.5443C71.4177 24.5443 71.3762 24.5289 71.3762 24.4811C71.3762 24.4359 71.4216 24.4214 71.5227 24.4214C71.874 24.4214 72.2937 24.4402 72.4937 24.4402C72.6528 24.4402 73.0702 24.4214 73.3123 24.4214C73.4122 24.4214 73.4588 24.4359 73.4588 24.4811C73.4588 24.5289 73.4182 24.5443 73.3515 24.5443C73.2804 24.5443 73.2373 24.547 73.1579 24.5615C72.9809 24.5949 72.9248 24.7074 72.9129 24.9405C72.8995 25.1548 72.8995 25.3411 72.8995 26.351V27.2824C72.8995 28.2482 73.0924 28.6554 73.4182 28.9198C73.7171 29.1683 74.0236 29.1932 74.2509 29.1932C74.5423 29.1932 74.8994 29.1001 75.1684 28.8336C75.5348 28.4674 75.5528 27.8699 75.5528 27.1833V26.351C75.5528 25.3411 75.5528 25.1548 75.5402 24.9405C75.5302 24.7134 75.4761 24.6102 75.255 24.5615C75.2026 24.547 75.0888 24.5443 75.0181 24.5443C74.9402 24.5443 74.8994 24.5289 74.8994 24.4811C74.8994 24.4359 74.9481 24.4214 75.0403 24.4214C75.3829 24.4214 75.8007 24.4402 75.8065 24.4402C75.8882 24.4402 76.3072 24.4214 76.5675 24.4214C76.6589 24.4214 76.7055 24.4359 76.7055 24.4811C76.7055 24.5289 76.6666 24.5443 76.587 24.5443C76.5122 24.5443 76.4742 24.547 76.3928 24.5615C76.2121 24.5949 76.1596 24.7074 76.146 24.9405C76.1323 25.1548 76.1323 25.3411 76.1323 26.351V27.0619C76.1323 27.8016 76.0589 28.587 75.5006 29.0668C75.0295 29.4715 74.5504 29.5468 74.1162 29.5468C73.7637 29.5468 73.1245 29.5269 72.64 29.0898C72.3009 28.7816 72.0477 28.288 72.0477 27.3224V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.9309 24.7953L78.9403 24.82C78.554 24.8335 78.3952 24.8662 78.2958 25.0138C78.2296 25.1145 78.1967 25.193 78.1809 25.2453C78.1693 25.2998 78.148 25.3261 78.1084 25.3261C78.0626 25.3261 78.0481 25.2938 78.0481 25.2204C78.0481 25.1145 78.1737 24.5093 78.1867 24.4555C78.2083 24.3659 78.2296 24.3301 78.2684 24.3301C78.3208 24.3301 78.3867 24.3949 78.554 24.407C78.7463 24.4264 79.0004 24.4401 79.2201 24.4401H81.855C82.0689 24.4401 82.2125 24.4213 82.3151 24.407C82.4143 24.3871 82.4668 24.3761 82.4966 24.3761C82.5401 24.3761 82.5482 24.4144 82.5482 24.5133C82.5482 24.6544 82.5271 25.1145 82.5271 25.2863C82.5192 25.3545 82.5072 25.393 82.4668 25.393C82.4143 25.393 82.3986 25.358 82.3951 25.2625L82.389 25.1864C82.3735 25.0138 82.1949 24.8285 81.6046 24.815L80.764 24.7953V27.5212C80.764 28.1343 80.764 28.6592 80.7968 28.9454C80.8181 29.1332 80.8592 29.2785 81.055 29.3042C81.1524 29.3185 81.2942 29.333 81.3949 29.333C81.4703 29.333 81.5033 29.3527 81.5033 29.3866C81.5033 29.432 81.4484 29.4517 81.3764 29.4517C80.9346 29.4517 80.5172 29.432 80.333 29.432C80.1792 29.432 79.7581 29.4517 79.4918 29.4517C79.4064 29.4517 79.36 29.432 79.36 29.3866C79.36 29.3527 79.3848 29.333 79.4667 29.333C79.5658 29.333 79.6455 29.3185 79.7046 29.3042C79.8393 29.2785 79.8774 29.1332 79.9 28.9413C79.9309 28.6592 79.9309 28.1343 79.9309 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.8142 26.3512C84.8142 25.3413 84.8142 25.155 84.8026 24.9407C84.7889 24.7136 84.7377 24.6103 84.517 24.5616C84.4629 24.5471 84.3502 24.5444 84.2555 24.5444C84.1832 24.5444 84.1423 24.5291 84.1423 24.4812C84.1423 24.4361 84.1892 24.4215 84.2905 24.4215C84.4706 24.4215 84.6611 24.4267 84.8316 24.4267C85.0028 24.4361 85.1541 24.4404 85.2472 24.4404C85.4612 24.4404 86.7872 24.4404 86.9113 24.4361C87.0375 24.4215 87.1453 24.4072 87.1988 24.3952C87.2328 24.3873 87.2705 24.3662 87.3047 24.3662C87.3374 24.3662 87.3447 24.3952 87.3447 24.4267C87.3447 24.4727 87.3097 24.554 87.2922 24.8595C87.2842 24.9262 87.2705 25.2207 87.2549 25.3001C87.2514 25.3349 87.2367 25.3718 87.1911 25.3718C87.1453 25.3718 87.131 25.3413 87.131 25.2806C87.131 25.2335 87.1269 25.1216 87.0898 25.0406C87.0433 24.9218 86.9797 24.84 86.6434 24.8014C86.5327 24.7871 85.8357 24.7724 85.7004 24.7724C85.6666 24.7724 85.6534 24.7956 85.6534 24.84V26.5236C85.6534 26.5723 85.6612 26.597 85.7004 26.597C85.8471 26.597 86.6135 26.597 86.7654 26.5844C86.9229 26.5723 87.022 26.5524 87.0838 26.4853C87.131 26.4322 87.1584 26.3989 87.1911 26.3989C87.2172 26.3989 87.2367 26.4109 87.2367 26.4501C87.2367 26.4905 87.2102 26.597 87.1834 26.9352C87.1756 27.0691 87.1584 27.3371 87.1584 27.3822C87.1584 27.4363 87.1584 27.5122 87.0972 27.5122C87.0512 27.5122 87.0375 27.4832 87.0375 27.4498C87.0301 27.3822 87.0301 27.2962 87.0104 27.21C86.9797 27.077 86.884 26.976 86.6403 26.953C86.5136 26.9352 85.8511 26.93 85.6919 26.93C85.6612 26.93 85.6534 26.9572 85.6534 26.9974V27.5215C85.6534 27.7487 85.6473 28.3609 85.6534 28.553C85.6666 29.0139 85.7756 29.1113 86.4506 29.1113C86.6251 29.1113 86.9045 29.1113 87.0784 29.0327C87.2514 28.9523 87.331 28.8141 87.3776 28.5391C87.3892 28.4676 87.4023 28.4402 87.4516 28.4402C87.5043 28.4402 87.5043 28.4933 87.5043 28.5606C87.5043 28.7142 87.4516 29.1685 87.417 29.3009C87.3696 29.4717 87.3097 29.4717 87.0568 29.4717C86.558 29.4717 86.1912 29.458 85.9074 29.452C85.621 29.4383 85.4144 29.4323 85.2142 29.4323C85.1408 29.4323 84.9947 29.4323 84.8339 29.4383C84.6818 29.4383 84.5077 29.452 84.3761 29.452C84.2905 29.452 84.2443 29.4323 84.2443 29.3869C84.2443 29.3529 84.2685 29.3333 84.3502 29.3333C84.4493 29.3333 84.5307 29.3187 84.5892 29.3044C84.7232 29.2787 84.757 29.1335 84.7815 28.9416C84.8142 28.6595 84.8142 28.1345 84.8142 27.5215V26.3512",fill:"#686767"})]})}),V=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.99573 16C9.25964 16 10.2883 14.9745 10.2938 13.7118H5.69775C5.70325 14.9744 6.73181 16 7.99573 16Z",fill:"currentColor"}),t.jsx("path",{d:"M14.2106 12.7737V12.0912C14.2106 11.3503 13.7648 10.6915 13.108 10.4019V6.52185C13.108 5.4281 12.7614 4.40417 12.1055 3.56079C11.5471 2.8429 10.7917 2.28613 9.90662 1.93701V1.91077C9.90662 0.857178 9.04944 0 7.99585 0C6.94226 0 6.08521 0.857178 6.08521 1.91077V1.93701C5.20007 2.28613 4.4447 2.8429 3.88635 3.56079C3.23047 4.40417 2.88367 5.4281 2.88367 6.52185V10.4017C2.22705 10.6914 1.78125 11.3503 1.78125 12.0912V12.7736H14.2106V12.7737Z",fill:"currentColor"})]})}),A=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),z=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),B=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_8714_101)",children:t.jsx("path",{d:"M0 20V13.3333H2.22222V16.2222L5.66667 12.7778L7.22222 14.3333L3.77778 17.7778H6.66667V20H0ZM14.3333 7.22222L12.7778 5.66667L16.2222 2.22222H13.3333V0H20V6.66667H17.7778V3.77778L14.3333 7.22222Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_8714_101",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),H=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 20C15.1667 20 14.4583 19.7083 13.875 19.125C13.2917 18.5417 13 17.8333 13 17C13 16.9 13.025 16.6667 13.075 16.3L6.05 12.2C5.78333 12.45 5.475 12.6458 5.125 12.7875C4.775 12.9292 4.4 13 4 13C3.16667 13 2.45833 12.7083 1.875 12.125C1.29167 11.5417 1 10.8333 1 10C1 9.16667 1.29167 8.45833 1.875 7.875C2.45833 7.29167 3.16667 7 4 7C4.4 7 4.775 7.07083 5.125 7.2125C5.475 7.35417 5.78333 7.55 6.05 7.8L13.075 3.7C13.0417 3.58333 13.0208 3.47083 13.0125 3.3625C13.0042 3.25417 13 3.13333 13 3C13 2.16667 13.2917 1.45833 13.875 0.875C14.4583 0.291667 15.1667 0 16 0C16.8333 0 17.5417 0.291667 18.125 0.875C18.7083 1.45833 19 2.16667 19 3C19 3.83333 18.7083 4.54167 18.125 5.125C17.5417 5.70833 16.8333 6 16 6C15.6 6 15.225 5.92917 14.875 5.7875C14.525 5.64583 14.2167 5.45 13.95 5.2L6.925 9.3C6.95833 9.41667 6.97917 9.52917 6.9875 9.6375C6.99583 9.74583 7 9.86667 7 10C7 10.1333 6.99583 10.2542 6.9875 10.3625C6.97917 10.4708 6.95833 10.5833 6.925 10.7L13.95 14.8C14.2167 14.55 14.525 14.3542 14.875 14.2125C15.225 14.0708 15.6 14 16 14C16.8333 14 17.5417 14.2917 18.125 14.875C18.7083 15.4583 19 16.1667 19 17C19 17.8333 18.7083 18.5417 18.125 19.125C17.5417 19.7083 16.8333 20 16 20Z",fill:"currentColor"})})}),F=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 5H4V1H16V5ZM16 10.5C16.2833 10.5 16.5208 10.4042 16.7125 10.2125C16.9042 10.0208 17 9.78333 17 9.5C17 9.21667 16.9042 8.97917 16.7125 8.7875C16.5208 8.59583 16.2833 8.5 16 8.5C15.7167 8.5 15.4792 8.59583 15.2875 8.7875C15.0958 8.97917 15 9.21667 15 9.5C15 9.78333 15.0958 10.0208 15.2875 10.2125C15.4792 10.4042 15.7167 10.5 16 10.5ZM14 17V13H6V17H14ZM16 19H4V15H0V9C0 8.15 0.291667 7.4375 0.875 6.8625C1.45833 6.2875 2.16667 6 3 6H17C17.85 6 18.5625 6.2875 19.1375 6.8625C19.7125 7.4375 20 8.15 20 9V15H16V19Z",fill:"currentColor"})})}),Z=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.26368 20L6.86567 16.8C6.65008 16.7167 6.44693 16.6167 6.25622 16.5C6.06551 16.3833 5.87894 16.2583 5.69652 16.125L2.73632 17.375L0 12.625L2.56219 10.675C2.54561 10.5583 2.53731 10.4458 2.53731 10.3375V9.6625C2.53731 9.55417 2.54561 9.44167 2.56219 9.325L0 7.375L2.73632 2.625L5.69652 3.875C5.87894 3.74167 6.06965 3.61667 6.26866 3.5C6.46766 3.38333 6.66667 3.28333 6.86567 3.2L7.26368 0H12.7363L13.1343 3.2C13.3499 3.28333 13.5531 3.38333 13.7438 3.5C13.9345 3.61667 14.1211 3.74167 14.3035 3.875L17.2637 2.625L20 7.375L17.4378 9.325C17.4544 9.44167 17.4627 9.55417 17.4627 9.6625V10.3375C17.4627 10.4458 17.4461 10.5583 17.4129 10.675L19.9751 12.625L17.2388 17.375L14.3035 16.125C14.1211 16.2583 13.9303 16.3833 13.7313 16.5C13.5323 16.6167 13.3333 16.7167 13.1343 16.8L12.7363 20H7.26368ZM10.0498 13.5C11.0116 13.5 11.8325 13.1583 12.5124 12.475C13.1924 11.7917 13.5323 10.9667 13.5323 10C13.5323 9.03333 13.1924 8.20833 12.5124 7.525C11.8325 6.84167 11.0116 6.5 10.0498 6.5C9.07131 6.5 8.24627 6.84167 7.57463 7.525C6.90299 8.20833 6.56716 9.03333 6.56716 10C6.56716 10.9667 6.90299 11.7917 7.57463 12.475C8.24627 13.1583 9.07131 13.5 10.0498 13.5Z",fill:"currentColor"})})}),q=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M9.95 15.9999C10.3 15.9999 10.5958 15.8791 10.8375 15.6374C11.0792 15.3958 11.2 15.0999 11.2 14.7499C11.2 14.3999 11.0792 14.1041 10.8375 13.8624C10.5958 13.6208 10.3 13.4999 9.95 13.4999C9.6 13.4999 9.30417 13.6208 9.0625 13.8624C8.82083 14.1041 8.7 14.3999 8.7 14.7499C8.7 15.0999 8.82083 15.3958 9.0625 15.6374C9.30417 15.8791 9.6 15.9999 9.95 15.9999ZM9.05 12.1499H10.9C10.9 11.5999 10.9625 11.1666 11.0875 10.8499C11.2125 10.5333 11.5667 10.0999 12.15 9.54994C12.5833 9.11661 12.925 8.70411 13.175 8.31244C13.425 7.92077 13.55 7.44994 13.55 6.89994C13.55 5.96661 13.2083 5.24994 12.525 4.74994C11.8417 4.24994 11.0333 3.99994 10.1 3.99994C9.15 3.99994 8.37917 4.24994 7.7875 4.74994C7.19583 5.24994 6.78333 5.84994 6.55 6.54994L8.2 7.19994C8.28333 6.89994 8.47083 6.57494 8.7625 6.22494C9.05417 5.87494 9.5 5.69994 10.1 5.69994C10.6333 5.69994 11.0333 5.84577 11.3 6.13744C11.5667 6.42911 11.7 6.74994 11.7 7.09994C11.7 7.43327 11.6 7.74577 11.4 8.03744C11.2 8.32911 10.95 8.59994 10.65 8.84994C9.91667 9.49994 9.46667 9.99161 9.3 10.3249C9.13333 10.6583 9.05 11.2666 9.05 12.1499ZM10 19.9999C8.61667 19.9999 7.31667 19.7374 6.1 19.2124C4.88333 18.6874 3.825 17.9749 2.925 17.0749C2.025 16.1749 1.3125 15.1166 0.7875 13.8999C0.2625 12.6833 0 11.3833 0 9.99994C0 8.61661 0.2625 7.31661 0.7875 6.09994C1.3125 4.88327 2.025 3.82494 2.925 2.92494C3.825 2.02494 4.88333 1.31244 6.1 0.787439C7.31667 0.262439 8.61667 -6.10352e-05 10 -6.10352e-05C11.3833 -6.10352e-05 12.6833 0.262439 13.9 0.787439C15.1167 1.31244 16.175 2.02494 17.075 2.92494C17.975 3.82494 18.6875 4.88327 19.2125 6.09994C19.7375 7.31661 20 8.61661 20 9.99994C20 11.3833 19.7375 12.6833 19.2125 13.8999C18.6875 15.1166 17.975 16.1749 17.075 17.0749C16.175 17.9749 15.1167 18.6874 13.9 19.2124C12.6833 19.7374 11.3833 19.9999 10 19.9999Z",fill:"currentColor"})})}),W=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.55556 14C1.12778 14 0.761574 13.8477 0.456944 13.5431C0.152315 13.2384 0 12.8722 0 12.4444V1.55556C0 1.12778 0.152315 0.761574 0.456944 0.456944C0.761574 0.152315 1.12778 0 1.55556 0H12.4444C12.8722 0 13.2384 0.152315 13.5431 0.456944C13.8477 0.761574 14 1.12778 14 1.55556V12.4444C14 12.8722 13.8477 13.2384 13.5431 13.5431C13.2384 13.8477 12.8722 14 12.4444 14H1.55556ZM2.33333 10.8889H11.6667L8.75 7L6.41667 10.1111L4.66667 7.77778L2.33333 10.8889Z",fill:"currentColor"})})}),G=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM2.66667 9.33333H7.33333V8H2.66667V9.33333ZM2.66667 6.66667H9.33333V5.33333H2.66667V6.66667ZM2.66667 4H9.33333V2.66667H2.66667V4Z",fill:"currentColor"})})}),U=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.27472 12C3.81319 12 2.56868 11.4945 1.54121 10.4835C0.513736 9.47253 0 8.24176 0 6.79121C0 6.0989 0.134615 5.43681 0.403846 4.80495C0.673077 4.17308 1.05494 3.61538 1.54945 3.13187L4.35165 0.379121C4.48352 0.258242 4.62912 0.164835 4.78846 0.0989011C4.9478 0.032967 5.10989 0 5.27472 0C5.43956 0 5.60165 0.032967 5.76099 0.0989011C5.92033 0.164835 6.06593 0.258242 6.1978 0.379121L9 3.13187C9.4945 3.61538 9.87637 4.17308 10.1456 4.80495C10.4148 5.43681 10.5494 6.0989 10.5494 6.79121C10.5494 8.24176 10.0357 9.47253 9.00824 10.4835C7.98077 11.4945 6.73626 12 5.27472 12Z",fill:"currentColor"})})}),X=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 12V6.68333C4.62222 6.68333 3.93889 6.54722 3.28333 6.275C2.62778 6.00278 2.05 5.61667 1.55 5.11667C1.05 4.61667 0.666667 4.03889 0.4 3.38333C0.133333 2.72778 0 2.04444 0 1.33333V0H1.33333C2.03333 0 2.71111 0.136111 3.36667 0.408333C4.02222 0.680556 4.6 1.06667 5.1 1.56667C5.44444 1.91111 5.73056 2.28889 5.95833 2.7C6.18611 3.11111 6.36111 3.55 6.48333 4.01667C6.53889 3.93889 6.6 3.86389 6.66667 3.79167C6.73333 3.71944 6.80556 3.64444 6.88333 3.56667C7.38333 3.06667 7.96111 2.68056 8.61667 2.40833C9.27222 2.13611 9.95556 2 10.6667 2H12V3.33333C12 4.04444 11.8639 4.72778 11.5917 5.38333C11.3194 6.03889 10.9333 6.61667 10.4333 7.11667C9.93333 7.61667 9.35833 8 8.70833 8.26667C8.05833 8.53333 7.37778 8.66667 6.66667 8.66667V12H5.33333Z",fill:"currentColor"})})}),Y=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.013 8.18324C16.013 7.61597 15.9621 7.07051 15.8676 6.54688H8.33301V9.64142H12.6385C12.453 10.6414 11.8894 11.4887 11.0421 12.056V14.0632H13.6276C15.1403 12.6705 16.013 10.6196 16.013 8.18324Z",fill:"#4285F4"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 15.9995C10.4927 15.9995 12.3036 15.2832 13.6272 14.0613L11.0418 12.0541C10.3254 12.5341 9.40905 12.8177 8.33268 12.8177C6.24905 12.8177 4.48541 11.4104 3.85632 9.51953H1.18359V11.5923C2.49996 14.2068 5.20541 15.9995 8.33268 15.9995Z",fill:"#34A853"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.85664 9.51898C3.69664 9.03898 3.60574 8.52625 3.60574 7.99898C3.60574 7.4717 3.69664 6.95898 3.85664 6.47898V4.40625H1.18392C0.642099 5.48625 0.333008 6.70807 0.333008 7.99898C0.333008 9.28989 0.642099 10.5117 1.18392 11.5917L3.85664 9.51898Z",fill:"#FBBC05"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 3.18182C9.50723 3.18182 10.5618 3.58545 11.3909 4.37818L13.6854 2.08364C12.3 0.792727 10.489 0 8.33268 0C5.20541 0 2.49996 1.79273 1.18359 4.40727L3.85632 6.48C4.48541 4.58909 6.24905 3.18182 8.33268 3.18182Z",fill:"#EA4335"})]})}),K=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M16.167 8.04974C16.167 3.60622 12.5831 0 8.16699 0C3.75093 0 0.166992 3.60622 0.166992 8.04974C0.166992 12.0705 3.09181 15.4031 6.92291 16V10.371H4.87966V8.04974H6.92291V6.27565C6.92291 4.26114 8.10932 3.14197 9.93836 3.14197C10.8117 3.14197 11.718 3.30777 11.718 3.30777V5.27254H10.7128C9.71591 5.27254 9.40283 5.90259 9.40283 6.53264V8.04145H11.6273L11.2731 10.3627H9.40283V15.9917C13.2422 15.4031 16.167 12.0705 16.167 8.04974Z",fill:"#1877F2"}),t.jsx("path",{d:"M11.2811 10.3096L11.6354 8.00384H9.41086V6.50513C9.41086 5.87106 9.73218 5.25346 10.7209 5.25346H11.726V3.2936C11.726 3.2936 10.8197 3.12891 9.94639 3.12891C8.11735 3.12891 6.93095 4.24059 6.93095 6.24162V8.00384H4.8877V10.3096H6.93095V15.9009C7.33466 15.9668 7.75484 15.9997 8.17502 15.9997C8.59521 15.9997 9.0154 15.9668 9.4191 15.9009V10.3096H11.2811Z",fill:"white"})]})}),J=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_703_2142)",children:t.jsx("path",{d:"M10.3552 6.77143L16.3115 0H14.9001L9.72817 5.87954L5.59738 0H0.833008L7.07957 8.8909L0.833008 15.9918H2.24455L7.70622 9.78279L12.0686 15.9918H16.833L10.3548 6.77143H10.3552ZM8.42187 8.96923L7.78897 8.0839L2.75315 1.03921H4.92121L8.98517 6.7245L9.61807 7.60983L14.9007 14.9998H12.7327L8.42187 8.96957V8.96923Z",fill:"#5C5959"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_703_2142",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),Q=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),t.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),t.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),t.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),ee=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),te=n=>{const{size:r="16px",...o}=n;return t.jsx(e.Icon,{boxSize:r,...o,children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 8.88889C5.97297 8.88889 4.32432 7.24024 4.32432 5.21321C4.32432 3.18618 5.97297 1.53753 8 1.53753C10.027 1.53753 11.6757 3.18618 11.6757 5.21321C11.6757 7.24024 10.027 8.88889 8 8.88889ZM2 14.4625V13.136C2 11.2583 4.85714 9.92589 8 9.92589C11.1429 9.92589 14 11.2583 14 13.136V14.4625H2Z",fill:"currentColor"})})})},ne=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.22857 6.85714L0 1.6L1.6 0L8.45714 6.85714L1.6 13.7143L0 12.1143L5.22857 6.85714ZM12.7714 6.85714L7.54286 1.6L9.14286 0L16 6.85714L9.14286 13.7143L7.54286 12.1143L12.7714 6.85714Z",fill:"#5C5959"})})}),re=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.7714 6.85714L16 12.1143L14.4 13.7143L7.54286 6.85714L14.4 0L16 1.6L10.7714 6.85714ZM3.22857 6.85714L8.45714 12.1143L6.85714 13.7143L0 6.85714L6.85714 0L8.45714 1.6L3.22857 6.85714Z",fill:"#5C5959"})})}),oe=n=>{const{fill:r,width:o,height:i,...a}=n,s=r||"currentColor",l=o??"20",c=i??o??"20";return t.jsx(e.Icon,{...n,fill:s,children:t.jsx("svg",{width:l,height:c,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M18.4444 20L11.4444 13C10.8889 13.4444 10.25 13.7963 9.52778 14.0556C8.80556 14.3148 8.03704 14.4444 7.22222 14.4444C5.2037 14.4444 3.49537 13.7454 2.09722 12.3472C0.699074 10.9491 0 9.24074 0 7.22222C0 5.2037 0.699074 3.49537 2.09722 2.09722C3.49537 0.699074 5.2037 0 7.22222 0C9.24074 0 10.9491 0.699074 12.3472 2.09722C13.7454 3.49537 14.4444 5.2037 14.4444 7.22222C14.4444 8.03704 14.3148 8.80556 14.0556 9.52778C13.7963 10.25 13.4444 10.8889 13 11.4444L20 18.4444L18.4444 20ZM7.22222 12.2222C8.61111 12.2222 9.79167 11.7361 10.7639 10.7639C11.7361 9.79167 12.2222 8.61111 12.2222 7.22222C12.2222 5.83333 11.7361 4.65278 10.7639 3.68056C9.79167 2.70833 8.61111 2.22222 7.22222 2.22222C5.83333 2.22222 4.65278 2.70833 3.68056 3.68056C2.70833 4.65278 2.22222 5.83333 2.22222 7.22222C2.22222 8.61111 2.70833 9.79167 3.68056 10.7639C4.65278 11.7361 5.83333 12.2222 7.22222 12.2222Z"})})})},ie={Google:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(w,{label:"Google",leftIcon:t.jsx(Y,{}),"aria-label":e||"Google Login",variant:"secondary",size:n,onClick:r}),Facebook:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(w,{label:"Facebook",leftIcon:t.jsx(K,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:n,onClick:r}),X:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(w,{label:"X",leftIcon:t.jsx(J,{}),"aria-label":e||"X Login",variant:"secondary",size:n,onClick:r}),Microsoft:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(w,{label:"Microsoft",leftIcon:t.jsx(Q,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:n,onClick:r})},ae=o.css`
|
|
35
|
+
`;function w(e,t){const{labels:r}=n.useContext(f),o=r[e];return{...x[e],...o??{},...t??{}}}const C=n.forwardRef((({label:t,loading:n,variant:o="primary",size:i="default",disabled:a,leftIcon:s,rightIcon:l,children:c,labels:d,...u},p)=>{const h=w("Button",d);let f=v;"secondary"===o?f=b:"borderless"===o?f=m:"outline"===o&&(f=y);const x=t||c;return r.jsxs(e.Button,{"aria-label":(()=>{let e=u["aria-label"]||t;return n&&(e=h.loadingLabel),e})(),css:[g(i),f(a)],disabled:a||n,"aria-disabled":a||n,ref:p,...u,children:[s&&!n?r.jsx(e.Box,{marginRight:x?2:0,display:"flex",alignItems:"center",children:s}):null,!l&&n?r.jsx(e.Spinner,{size:"sm",marginRight:x?2:0}):null,c||t,l&&!n?r.jsx(e.Box,{marginLeft:x?2:0,display:"flex",alignItems:"center",children:l}):null,l&&n?r.jsx(e.Spinner,{size:"sm",marginLeft:x?2:0}):null]})})),j=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[t.jsx("path",{d:"M9.78791 8.03125H16V2.21875C16 1.27103 15.229 0.5 14.2812 0.5H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V8.96875H9.78791L10.5502 9.73106C10.7333 9.91413 10.7333 10.2109 10.5502 10.394C10.3672 10.577 10.0704 10.577 9.88731 10.394L8.32481 8.83147C8.14175 8.64841 8.14175 8.35162 8.32481 8.16856L9.88731 6.60606C10.0704 6.423 10.3672 6.423 10.5502 6.60606C10.7333 6.78912 10.7333 7.08591 10.5502 7.26897L9.78791 8.03125Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_1216_84",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),k=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M14.2812 0.5H7.1875V8.03125H12.4621L11.6998 7.26897C11.5168 7.08591 11.5168 6.78912 11.6998 6.60606C11.8829 6.423 12.1797 6.423 12.3627 6.60606L13.9252 8.16856C14.1083 8.35162 14.1083 8.64841 13.9252 8.83147L12.3627 10.394C12.1797 10.577 11.8829 10.577 11.6998 10.394C11.5168 10.2109 11.5168 9.91413 11.6998 9.73106L12.4621 8.96875H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V2.21875C16 1.27103 15.229 0.5 14.2812 0.5Z",fill:"#4F4E4E"})]})}),$=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M4.19632 10.4277L0 6.23139L1.04908 5.18231L4.19632 8.32955L10.9509 1.57495L12 2.62403L4.19632 10.4277Z",fill:"currentColor"})})}),S=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),E=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.5 7.49997H5.5V4.49997H4.5V7.49997ZM5 3.49997C5.14167 3.49997 5.26042 3.45205 5.35625 3.35622C5.45208 3.26039 5.5 3.14164 5.5 2.99997C5.5 2.8583 5.45208 2.73955 5.35625 2.64372C5.26042 2.54789 5.14167 2.49997 5 2.49997C4.85833 2.49997 4.73958 2.54789 4.64375 2.64372C4.54792 2.73955 4.5 2.8583 4.5 2.99997C4.5 3.14164 4.54792 3.26039 4.64375 3.35622C4.73958 3.45205 4.85833 3.49997 5 3.49997ZM5 9.99997C4.30833 9.99997 3.65833 9.86872 3.05 9.60622C2.44167 9.34372 1.9125 8.98747 1.4625 8.53747C1.0125 8.08747 0.65625 7.5583 0.39375 6.94997C0.13125 6.34164 0 5.69164 0 4.99997C0 4.3083 0.13125 3.6583 0.39375 3.04997C0.65625 2.44164 1.0125 1.91247 1.4625 1.46247C1.9125 1.01247 2.44167 0.656219 3.05 0.393719C3.65833 0.131219 4.30833 -3.05176e-05 5 -3.05176e-05C5.69167 -3.05176e-05 6.34167 0.131219 6.95 0.393719C7.55833 0.656219 8.0875 1.01247 8.5375 1.46247C8.9875 1.91247 9.34375 2.44164 9.60625 3.04997C9.86875 3.6583 10 4.3083 10 4.99997C10 5.69164 9.86875 6.34164 9.60625 6.94997C9.34375 7.5583 8.9875 8.08747 8.5375 8.53747C8.0875 8.98747 7.55833 9.34372 6.95 9.60622C6.34167 9.86872 5.69167 9.99997 5 9.99997Z",fill:"currentColor"})})}),L=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),R=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),T=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),O=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 16C7.45 16 6.97917 15.8042 6.5875 15.4125C6.19583 15.0208 6 14.55 6 14C6 13.45 6.19583 12.9792 6.5875 12.5875C6.97917 12.1958 7.45 12 8 12C8.55 12 9.02083 12.1958 9.4125 12.5875C9.80417 12.9792 10 13.45 10 14C10 14.55 9.80417 15.0208 9.4125 15.4125C9.02083 15.8042 8.55 16 8 16ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10ZM8 4C7.45 4 6.97917 3.80417 6.5875 3.4125C6.19583 3.02083 6 2.55 6 2C6 1.45 6.19583 0.979167 6.5875 0.5875C6.97917 0.195833 7.45 0 8 0C8.55 0 9.02083 0.195833 9.4125 0.5875C9.80417 0.979167 10 1.45 10 2C10 2.55 9.80417 3.02083 9.4125 3.4125C9.02083 3.80417 8.55 4 8 4Z",fill:"currentColor"})})}),P=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5 6.95455C5.56818 6.95455 6.05114 6.75568 6.44886 6.35795C6.84659 5.96023 7.04545 5.47727 7.04545 4.90909C7.04545 4.34091 6.84659 3.85795 6.44886 3.46023C6.05114 3.0625 5.56818 2.86364 5 2.86364C4.43182 2.86364 3.94886 3.0625 3.55114 3.46023C3.15341 3.85795 2.95455 4.34091 2.95455 4.90909C2.95455 5.47727 3.15341 5.96023 3.55114 6.35795C3.94886 6.75568 4.43182 6.95455 5 6.95455ZM5 6.13636C4.65909 6.13636 4.36932 6.01705 4.13068 5.77841C3.89205 5.53977 3.77273 5.25 3.77273 4.90909C3.77273 4.56818 3.89205 4.27841 4.13068 4.03977C4.36932 3.80114 4.65909 3.68182 5 3.68182C5.34091 3.68182 5.63068 3.80114 5.86932 4.03977C6.10795 4.27841 6.22727 4.56818 6.22727 4.90909C6.22727 5.25 6.10795 5.53977 5.86932 5.77841C5.63068 6.01705 5.34091 6.13636 5 6.13636ZM5 8.31818C3.89394 8.31818 2.88636 8.00947 1.97727 7.39205C1.06818 6.77462 0.409091 5.94697 0 4.90909C0.409091 3.87121 1.06818 3.04356 1.97727 2.42614C2.88636 1.80871 3.89394 1.5 5 1.5C6.10606 1.5 7.11364 1.80871 8.02273 2.42614C8.93182 3.04356 9.59091 3.87121 10 4.90909C9.59091 5.94697 8.93182 6.77462 8.02273 7.39205C7.11364 8.00947 6.10606 8.31818 5 8.31818Z",fill:"currentColor"})})}),M=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:t.jsx("path",{d:"M8.54545 9.9375L6.63636 8.05114C6.37121 8.13447 6.10417 8.19697 5.83523 8.23864C5.56629 8.2803 5.28788 8.30114 5 8.30114C3.85606 8.30114 2.83712 7.98485 1.94318 7.35227C1.04924 6.7197 0.401515 5.89962 0 4.89205C0.159091 4.49053 0.359848 4.11742 0.602273 3.77273C0.844697 3.42803 1.12121 3.11932 1.43182 2.84659L0.181818 1.57386L0.818182 0.9375L9.18182 9.30114L8.54545 9.9375ZM5 6.9375C5.08333 6.9375 5.16098 6.93371 5.23295 6.92614C5.30492 6.91856 5.38258 6.90341 5.46591 6.88068L3.01136 4.42614C2.98864 4.50947 2.97348 4.58712 2.96591 4.65909C2.95833 4.73106 2.95455 4.80871 2.95455 4.89205C2.95455 5.46023 3.15341 5.94318 3.55114 6.34091C3.94886 6.73864 4.43182 6.9375 5 6.9375ZM8.31818 7.14205L6.875 5.71023C6.92803 5.58144 6.9697 5.45076 7 5.31818C7.0303 5.18561 7.04545 5.04356 7.04545 4.89205C7.04545 4.32386 6.84659 3.84091 6.44886 3.44318C6.05114 3.04545 5.56818 2.84659 5 2.84659C4.84848 2.84659 4.70644 2.86174 4.57386 2.89205C4.44129 2.92235 4.31061 2.9678 4.18182 3.02841L3.02273 1.86932C3.33333 1.74053 3.65152 1.64394 3.97727 1.57955C4.30303 1.51515 4.64394 1.48295 5 1.48295C6.14394 1.48295 7.16288 1.79924 8.05682 2.43182C8.95076 3.06439 9.59848 3.88447 10 4.89205C9.82576 5.33902 9.59659 5.75379 9.3125 6.13636C9.02841 6.51894 8.69697 6.85417 8.31818 7.14205ZM6.21591 5.05114L4.85227 3.6875C5.06439 3.64962 5.25947 3.66667 5.4375 3.73864C5.61553 3.81061 5.76894 3.91477 5.89773 4.05114C6.02652 4.1875 6.11932 4.3447 6.17614 4.52273C6.23295 4.70076 6.24621 4.87689 6.21591 5.05114Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4626_1381",children:t.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),_=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M6.25 20C5.5625 20 4.97396 19.7552 4.48437 19.2656C3.99479 18.776 3.75 18.1875 3.75 17.5C3.75 16.8125 3.99479 16.224 4.48437 15.7344C4.97396 15.2448 5.5625 15 6.25 15C6.9375 15 7.52604 15.2448 8.01562 15.7344C8.50521 16.224 8.75 16.8125 8.75 17.5C8.75 18.1875 8.50521 18.776 8.01562 19.2656C7.52604 19.7552 6.9375 20 6.25 20ZM13.75 20C13.0625 20 12.474 19.7552 11.9844 19.2656C11.4948 18.776 11.25 18.1875 11.25 17.5C11.25 16.8125 11.4948 16.224 11.9844 15.7344C12.474 15.2448 13.0625 15 13.75 15C14.4375 15 15.026 15.2448 15.5156 15.7344C16.0052 16.224 16.25 16.8125 16.25 17.5C16.25 18.1875 16.0052 18.776 15.5156 19.2656C15.026 19.7552 14.4375 20 13.75 20ZM6.25 12.5C5.5625 12.5 4.97396 12.2552 4.48437 11.7656C3.99479 11.276 3.75 10.6875 3.75 10C3.75 9.3125 3.99479 8.72396 4.48437 8.23438C4.97396 7.74479 5.5625 7.5 6.25 7.5C6.9375 7.5 7.52604 7.74479 8.01562 8.23438C8.50521 8.72396 8.75 9.3125 8.75 10C8.75 10.6875 8.50521 11.276 8.01562 11.7656C7.52604 12.2552 6.9375 12.5 6.25 12.5ZM13.75 12.5C13.0625 12.5 12.474 12.2552 11.9844 11.7656C11.4948 11.276 11.25 10.6875 11.25 10C11.25 9.3125 11.4948 8.72396 11.9844 8.23438C12.474 7.74479 13.0625 7.5 13.75 7.5C14.4375 7.5 15.026 7.74479 15.5156 8.23438C16.0052 8.72396 16.25 9.3125 16.25 10C16.25 10.6875 16.0052 11.276 15.5156 11.7656C15.026 12.2552 14.4375 12.5 13.75 12.5ZM6.25 5C5.5625 5 4.97396 4.75521 4.48437 4.26562C3.99479 3.77604 3.75 3.1875 3.75 2.5C3.75 1.8125 3.99479 1.22396 4.48437 0.734375C4.97396 0.244792 5.5625 0 6.25 0C6.9375 0 7.52604 0.244792 8.01562 0.734375C8.50521 1.22396 8.75 1.8125 8.75 2.5C8.75 3.1875 8.50521 3.77604 8.01562 4.26562C7.52604 4.75521 6.9375 5 6.25 5ZM13.75 5C13.0625 5 12.474 4.75521 11.9844 4.26562C11.4948 3.77604 11.25 3.1875 11.25 2.5C11.25 1.8125 11.4948 1.22396 11.9844 0.734375C12.474 0.244792 13.0625 0 13.75 0C14.4375 0 15.026 0.244792 15.5156 0.734375C16.0052 1.22396 16.25 1.8125 16.25 2.5C16.25 3.1875 16.0052 3.77604 15.5156 4.26562C15.026 4.75521 14.4375 5 13.75 5Z",fill:"currentColor"})})}),I=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:t.jsx("path",{d:"M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4916_54426",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),D=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 18.6477L10 1.375L20 18.6477H0ZM10 15.9205C10.2576 15.9205 10.4735 15.8333 10.6477 15.6591C10.822 15.4848 10.9091 15.2689 10.9091 15.0114C10.9091 14.7538 10.822 14.5379 10.6477 14.3636C10.4735 14.1894 10.2576 14.1023 10 14.1023C9.74242 14.1023 9.52652 14.1894 9.35227 14.3636C9.17803 14.5379 9.09091 14.7538 9.09091 15.0114C9.09091 15.2689 9.17803 15.4848 9.35227 15.6591C9.52652 15.8333 9.74242 15.9205 10 15.9205ZM9.09091 13.1932H10.9091V8.64773H9.09091V13.1932Z",fill:"currentColor"})})}),A=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})})}),N=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.79733 2.62109L7.05688 4.36154L8.6964 6.00105L10.4368 4.26061L8.79733 2.62109",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4348 17.7395L26.7261 24.0306L28.4666 22.2904L22.1753 15.999L20.4348 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.83032 8.73722L8.57056 10.4775L15.5197 3.52853L17.9952 6.00428L19.7357 4.26384L15.5197 0.0478516L6.83032 8.73722",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.0828 8.74062L26.823 10.4811L28.4667 8.83761L26.7262 7.09717L25.0828 8.74062",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05664 26.7665L8.79688 28.5069L15.088 22.216L13.3476 20.4756L7.05664 26.7665",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 17.865L17.6987 19.6052L24.2126 13.0913L22.4722 11.3511L15.9583 17.865",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.606 8.61475L27.5582 15.5672L25.086 18.0396L26.8264 19.7799L31.0391 15.5672L22.3462 6.87451L20.606 8.61475",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 22.2898L4.32031 24.0302L5.95651 22.394L4.21607 20.6538L2.58008 22.2898",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 8.91145L17.6987 10.6517L23.99 4.36056L22.2496 2.62012L15.9583 8.91145",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 15.5676L8.69268 24.2603L10.4331 22.5198L3.48068 15.5676L5.96016 13.0881L4.21971 11.3477L0 15.5676",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3071 8.61154L17.8244 15.1288L19.5646 13.3885L13.0474 6.87109L11.3071 8.61154",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6091 26.8674L22.2493 28.5073L23.9897 26.7671L22.3496 25.127L20.6091 26.8674",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 8.83789L8.87079 15.1286L10.6112 13.3884L4.32052 7.09766L2.58008 8.83789",fill:"#9B9B9B"}),t.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),t.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4817 17.7395L17.9989 24.2567L19.7392 22.5163L13.2219 15.999L11.4817 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5195 27.6061L13.0437 25.1303L11.3035 26.8706L15.5195 31.0868L24.2159 22.3903L22.4756 20.6499L15.5195 27.6061",fill:"#9B9B9B"})]}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82666 18.0429L8.5669 19.7834L15.0881 13.2624L13.3476 11.522L6.82666 18.0429",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.8376 3.46878C39.7609 3.22403 39.6861 3.06362 39.5918 2.99958C39.5199 2.95005 39.386 2.93948 39.3278 2.93948C39.2598 2.93948 39.219 2.93264 39.219 2.87834C39.219 2.83171 39.2754 2.82031 39.3653 2.82031C39.7133 2.82031 40.0782 2.83648 40.1396 2.83648C40.1999 2.83648 40.4927 2.82031 40.8782 2.82031C40.9688 2.82031 41.0173 2.83648 41.0173 2.87834C41.0173 2.93264 40.9628 2.93948 40.8968 2.93948C40.8442 2.93948 40.7783 2.93948 40.7319 2.96373C40.6714 2.99191 40.6579 3.0373 40.6579 3.10921C40.6579 3.19853 40.724 3.42402 40.8055 3.721C40.9174 4.16202 41.5358 6.18037 41.656 6.55196H41.6755L42.9658 3.08496C43.0325 2.89616 43.0773 2.84497 43.1336 2.84497C43.2064 2.84497 43.2387 2.94632 43.3278 3.15999L44.7104 6.5043H44.7296C44.8482 6.05851 45.3823 4.30149 45.6173 3.52391C45.66 3.37138 45.6811 3.23169 45.6811 3.13615C45.6811 3.0315 45.6222 2.93948 45.3617 2.93948C45.2969 2.93948 45.2502 2.9171 45.2502 2.87834C45.2502 2.83171 45.3008 2.82031 45.4036 2.82031C45.7549 2.82031 46.034 2.83648 46.0939 2.83648C46.1395 2.83648 46.4268 2.82031 46.6462 2.82031C46.7184 2.82031 46.7658 2.83171 46.7658 2.87233C46.7658 2.9171 46.7351 2.93948 46.6744 2.93948C46.6067 2.93948 46.5142 2.94632 46.4407 2.97139C46.2796 3.0315 46.2092 3.29656 46.0657 3.67831C45.763 4.51578 45.0639 6.63155 44.7377 7.62964C44.6639 7.86258 44.6308 7.94279 44.5435 7.94279C44.4756 7.94279 44.4378 7.86258 44.3377 7.6141L42.9542 4.2818H42.9397C42.8143 4.62169 41.9279 6.97723 41.6423 7.58778C41.514 7.86258 41.4831 7.94279 41.4034 7.94279C41.3358 7.94279 41.3105 7.87025 41.2502 7.69575L39.8376 3.46878",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.4736 5.46052C52.4736 3.96919 51.6156 3.04363 50.5241 3.04363C49.7593 3.04363 48.8862 3.46848 48.8862 5.12686C48.8862 6.51167 49.6547 7.61007 50.9315 7.61007C51.3984 7.61007 52.4736 7.38417 52.4736 5.46052ZM47.9695 5.33425C47.9695 4.19523 48.7201 2.72607 50.7182 2.72607C52.3747 2.72607 53.4068 3.68811 53.4068 5.21384C53.4068 6.73834 52.3397 7.94243 50.6521 7.94243C48.7413 7.94243 47.9695 6.51161 47.9695 5.33425V5.33425Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.6253 5.27407C56.6253 5.34806 56.6388 5.37251 56.685 5.39469C56.8222 5.44111 57.0255 5.46059 57.1911 5.46059C57.4551 5.46059 57.5428 5.43261 57.6644 5.34806C57.8634 5.20029 58.0557 4.89253 58.0557 4.34561C58.0557 3.40327 57.4331 3.13178 57.0371 3.13178C56.8709 3.13178 56.7515 3.13593 56.685 3.15976C56.6388 3.17219 56.6253 3.19831 56.6253 3.25115V5.27407ZM55.8409 4.74893C55.8409 3.73799 55.8409 3.5494 55.8277 3.33842C55.8144 3.10921 55.7609 3.00435 55.5421 2.95689C55.4865 2.94632 55.3769 2.93948 55.2814 2.93948C55.208 2.93948 55.1667 2.92352 55.1667 2.87834C55.1667 2.83171 55.2146 2.82031 55.3122 2.82031C55.6681 2.82031 56.0873 2.83648 56.2272 2.83648C56.4521 2.83648 56.9576 2.82031 57.1633 2.82031C57.5836 2.82031 58.0313 2.86052 58.3884 3.10465C58.5765 3.23169 58.841 3.5724 58.841 4.01632C58.841 4.50957 58.6354 4.95825 57.9633 5.50455C58.5554 6.25187 59.014 6.84501 59.4066 7.25598C59.7788 7.64145 60.0519 7.68767 60.1537 7.70984C60.225 7.72373 60.2867 7.72891 60.3379 7.72891C60.3924 7.72891 60.4187 7.75233 60.4187 7.78404C60.4187 7.83357 60.3732 7.8489 60.2913 7.8489H59.6602C59.2866 7.8489 59.1197 7.81429 58.9498 7.72373C58.6626 7.56974 58.4076 7.25598 58.0369 6.74512C57.7708 6.37705 57.4665 5.92671 57.3766 5.82371C57.3461 5.78785 57.3051 5.78018 57.2585 5.78018L56.6788 5.76485C56.6469 5.76485 56.6253 5.78018 56.6253 5.8179V5.91344C56.6253 6.53145 56.6253 7.05661 56.6585 7.3368C56.6788 7.52871 56.7165 7.6773 56.9194 7.70155C57.0195 7.71751 57.1633 7.72891 57.2429 7.72891C57.297 7.72891 57.3264 7.75233 57.3264 7.78404C57.3264 7.82984 57.279 7.8489 57.1911 7.8489C56.8056 7.8489 56.3132 7.82984 56.2142 7.82984C56.0873 7.82984 55.6681 7.8489 55.4016 7.8489C55.3122 7.8489 55.2681 7.82984 55.2681 7.78404C55.2681 7.75233 55.2944 7.72891 55.3769 7.72891C55.4751 7.72891 55.5543 7.71751 55.6142 7.70155C55.7466 7.6773 55.7808 7.52871 55.8071 7.3368C55.8409 7.05661 55.8409 6.53145 55.8409 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.7401 5.92028C62.7401 6.76978 62.7401 7.22986 62.8795 7.34944C62.9923 7.45099 63.167 7.49804 63.6837 7.49804C64.037 7.49804 64.2973 7.48913 64.4635 7.30945C64.5458 7.22385 64.6235 7.03567 64.6351 6.91236C64.6426 6.85164 64.6544 6.8104 64.7079 6.8104C64.7576 6.8104 64.7636 6.84501 64.7636 6.92273C64.7636 6.99858 64.7159 7.49804 64.6633 7.68767C64.6235 7.83357 64.5885 7.87025 64.2426 7.87025C63.7651 7.87025 63.4198 7.85491 63.1195 7.8489C62.8194 7.83357 62.5805 7.82984 62.3067 7.82984C62.2352 7.82984 62.0852 7.82984 61.9272 7.83357C61.7749 7.83357 61.6029 7.8489 61.4709 7.8489C61.3832 7.8489 61.3349 7.82984 61.3349 7.78404C61.3349 7.75233 61.365 7.72891 61.4413 7.72891C61.543 7.72891 61.6216 7.71751 61.6819 7.70155C61.8176 7.6773 61.8487 7.52871 61.874 7.3368C61.9082 7.05661 61.9082 6.53145 61.9082 5.92028V4.74893C61.9082 3.73799 61.9082 3.5494 61.8951 3.33842C61.8817 3.10921 61.8269 3.00435 61.6095 2.95689C61.5577 2.94632 61.474 2.93948 61.3886 2.93948C61.3155 2.93948 61.2759 2.92352 61.2759 2.87834C61.2759 2.83171 61.3233 2.82031 61.4214 2.82031C61.7353 2.82031 62.1536 2.83648 62.3341 2.83648C62.4939 2.83648 62.9803 2.82031 63.2387 2.82031C63.3324 2.82031 63.38 2.83171 63.38 2.87834C63.38 2.92352 63.339 2.93948 63.2588 2.93948C63.1867 2.93948 63.0816 2.94632 62.9991 2.95689C62.8194 2.99191 62.7647 3.10465 62.7533 3.33842C62.7401 3.5494 62.7401 3.73799 62.7401 4.74893V5.92028",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.8097 5.48049C67.8097 6.18388 67.8141 6.6966 67.8234 6.82509C67.8294 6.99068 67.8447 7.25575 67.8978 7.33056C67.9832 7.45595 68.2426 7.59501 68.7672 7.59501C69.4469 7.59501 69.9002 7.46237 70.2973 7.11627C70.7267 6.74903 70.8568 6.14512 70.8568 5.46059C70.8568 4.61607 70.5043 4.06832 70.22 3.79517C69.6061 3.21012 68.8478 3.13178 68.3284 3.13178C68.1954 3.13178 67.9498 3.1496 67.8978 3.17696C67.8375 3.20432 67.8141 3.23706 67.8141 3.30918C67.8097 3.53819 67.8097 4.11682 67.8097 4.64343V5.48049ZM66.9788 4.74893C66.9788 3.73799 66.9788 3.5494 66.9632 3.33842C66.95 3.10921 66.8969 3.00435 66.6779 2.95689C66.6254 2.94632 66.5114 2.93948 66.4196 2.93948C66.3438 2.93948 66.3042 2.92352 66.3042 2.87834C66.3042 2.83171 66.3531 2.82031 66.4509 2.82031C66.8041 2.82031 67.2215 2.83648 67.4096 2.83648C67.6156 2.83648 68.0355 2.82031 68.4355 2.82031C69.267 2.82031 70.3786 2.82031 71.1044 3.57676C71.4374 3.92389 71.7481 4.47661 71.7481 5.26622C71.7481 6.10556 71.3968 6.74512 71.0236 7.125C70.7169 7.43669 70.0257 7.90942 68.7953 7.90942C68.5559 7.90942 68.2817 7.88911 68.0297 7.87025C67.7761 7.8489 67.5417 7.82984 67.379 7.82984C67.3042 7.82984 67.1574 7.82984 66.9964 7.83357C66.8441 7.83357 66.6721 7.8489 66.5373 7.8489C66.4509 7.8489 66.407 7.82984 66.407 7.78404C66.407 7.75233 66.4335 7.72891 66.5114 7.72891C66.612 7.72891 66.6932 7.71751 66.7518 7.70155C66.8855 7.6773 66.9187 7.52871 66.9456 7.3368C66.9788 7.05661 66.9788 6.53145 66.9788 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.2173 16.0733C41.2173 16.1481 41.231 16.1755 41.2755 16.1948C41.4152 16.241 41.6173 16.2607 41.7812 16.2607C42.0492 16.2607 42.1356 16.2333 42.2543 16.1481C42.456 16.0002 42.6456 15.6964 42.6456 15.1501C42.6456 14.2044 42.022 13.9325 41.6299 13.9325C41.4637 13.9325 41.3425 13.9385 41.2755 13.9582C41.231 13.9727 41.2173 13.9965 41.2173 14.0508V16.0733ZM40.4308 15.5499C40.4308 14.5375 40.4308 14.3499 40.419 14.1383C40.4055 13.9131 40.3531 13.8053 40.1297 13.7597C40.0783 13.746 39.966 13.7406 39.8735 13.7406C39.8016 13.7406 39.761 13.727 39.761 13.6772C39.761 13.6316 39.8055 13.6167 39.9083 13.6167C40.258 13.6167 40.6772 13.6397 40.8181 13.6397C41.0424 13.6397 41.5472 13.6167 41.757 13.6167C42.1733 13.6167 42.6222 13.6606 42.9812 13.9075C43.1658 14.0335 43.434 14.3723 43.434 14.8179C43.434 15.3084 43.2251 15.7621 42.5542 16.3086C43.1463 17.053 43.6056 17.6457 43.9979 18.0588C44.3697 18.4434 44.6426 18.4917 44.7425 18.5095C44.8176 18.5228 44.8756 18.5328 44.9299 18.5328C44.9804 18.5328 45.0097 18.5489 45.0097 18.5829C45.0097 18.6376 44.9628 18.6492 44.8837 18.6492H44.2503C43.8754 18.6492 43.7123 18.6171 43.5376 18.5228C43.2522 18.3697 42.9996 18.0588 42.627 17.5452C42.3611 17.1811 42.056 16.727 41.9688 16.6288C41.9358 16.5867 41.8937 16.5815 41.8463 16.5815L41.2714 16.5683C41.2376 16.5683 41.2173 16.5815 41.2173 16.6203V16.7152C41.2173 17.3328 41.2173 17.8571 41.2502 18.1375C41.2714 18.3294 41.3106 18.477 41.5097 18.5035C41.6096 18.5174 41.757 18.5328 41.8347 18.5328C41.8892 18.5328 41.9163 18.5489 41.9163 18.5829C41.9163 18.6287 41.8678 18.6492 41.7812 18.6492C41.3959 18.6492 40.9046 18.6287 40.8055 18.6287C40.6772 18.6287 40.258 18.6492 39.9937 18.6492C39.9083 18.6492 39.8582 18.6287 39.8582 18.5829C39.8582 18.5489 39.8862 18.5328 39.966 18.5328C40.0661 18.5328 40.1465 18.5174 40.2076 18.5035C40.3396 18.477 40.3734 18.3294 40.3999 18.1375C40.4308 17.8571 40.4308 17.3328 40.4308 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.4986 15.5498C46.4986 14.5374 46.4986 14.3499 46.4862 14.1383C46.4737 13.913 46.419 13.8052 46.1998 13.7596C46.1463 13.7459 46.0306 13.7406 45.9419 13.7406C45.8675 13.7406 45.8257 13.7269 45.8257 13.6771C45.8257 13.6315 45.8736 13.6166 45.9734 13.6166C46.1531 13.6166 46.3475 13.6247 46.5142 13.6247C46.6849 13.6315 46.8387 13.6396 46.932 13.6396C47.1456 13.6396 48.4681 13.6396 48.5961 13.6315C48.7201 13.6166 48.827 13.6054 48.8813 13.5928C48.914 13.5868 48.9553 13.5654 48.9864 13.5654C49.0191 13.5654 49.0272 13.5928 49.0272 13.6247C49.0272 13.6722 48.9959 13.7528 48.9727 14.0589C48.9686 14.1248 48.9553 14.4201 48.9414 14.4964C48.9352 14.5306 48.9199 14.5695 48.8736 14.5695C48.827 14.5695 48.8144 14.5374 48.8144 14.4781C48.8144 14.4315 48.8096 14.3167 48.7762 14.239C48.7275 14.1186 48.662 14.0375 48.3282 13.9965C48.2154 13.9836 47.5162 13.9727 47.384 13.9727C47.35 13.9727 47.3377 13.9905 47.3377 14.0375V15.7226C47.3377 15.7684 47.3454 15.7946 47.384 15.7946C47.5299 15.7946 48.2969 15.7946 48.4484 15.7809C48.6098 15.7684 48.7085 15.7488 48.7667 15.6818C48.8144 15.6281 48.8405 15.5948 48.8736 15.5948C48.902 15.5948 48.9199 15.6085 48.9199 15.6491C48.9199 15.6887 48.8952 15.7946 48.8678 16.1344C48.8627 16.2665 48.8405 16.5336 48.8405 16.5815C48.8405 16.6333 48.8405 16.7056 48.7802 16.7056C48.7335 16.7056 48.7201 16.6799 48.7201 16.6474C48.7165 16.5815 48.7165 16.4955 48.695 16.4063C48.662 16.2745 48.5704 16.1755 48.3222 16.1481C48.1959 16.1344 47.5359 16.1268 47.3784 16.1268C47.3454 16.1268 47.3377 16.1541 47.3377 16.1947V16.7191C47.3377 16.9454 47.3301 17.5599 47.3377 17.753C47.35 18.2081 47.4559 18.3115 48.1344 18.3115C48.3085 18.3115 48.5881 18.3115 48.7617 18.233C48.9352 18.1499 49.0146 18.0135 49.0628 17.7385C49.0749 17.6627 49.0869 17.6376 49.1348 17.6376C49.188 17.6376 49.188 17.6923 49.188 17.7582C49.188 17.9118 49.1348 18.3648 49.1008 18.4968C49.0521 18.6697 48.9959 18.6697 48.7427 18.6697C48.2428 18.6697 47.8782 18.6545 47.5902 18.6491C47.3046 18.6375 47.0969 18.6286 46.898 18.6286C46.8246 18.6286 46.6785 18.6286 46.5181 18.6375C46.3656 18.6375 46.1938 18.6491 46.0597 18.6491C45.9734 18.6491 45.9239 18.6286 45.9239 18.5828C45.9239 18.5488 45.9542 18.5327 46.0306 18.5327C46.1314 18.5327 46.2132 18.5173 46.2735 18.5035C46.4064 18.4769 46.4379 18.3294 46.4657 18.1375C46.4986 17.8571 46.4986 17.3327 46.4986 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.3845 18.5715C51.2755 18.5227 51.2566 18.4917 51.2566 18.3445C51.2566 17.9771 51.2813 17.579 51.2875 17.4735C51.2951 17.3723 51.3163 17.3017 51.3685 17.3017C51.429 17.3017 51.435 17.3607 51.435 17.4134C51.435 17.4979 51.463 17.6376 51.4951 17.753C51.6408 18.2448 52.0348 18.4243 52.4487 18.4243C53.0447 18.4243 53.3388 18.016 53.3388 17.6627C53.3388 17.3373 53.2368 17.0335 52.6864 16.6006L52.3805 16.3597C51.6485 15.7888 51.3959 15.3208 51.3959 14.7843C51.3959 14.0508 52.0079 13.5244 52.9342 13.5244C53.3649 13.5244 53.6447 13.5928 53.8181 13.6396C53.8789 13.655 53.9126 13.6722 53.9126 13.719C53.9126 13.8052 53.883 13.9965 53.883 14.5173C53.883 14.6647 53.8625 14.7171 53.8113 14.7171C53.7628 14.7171 53.7439 14.6771 53.7439 14.5986C53.7439 14.5374 53.7129 14.3304 53.5723 14.158C53.4708 14.0334 53.2795 13.8326 52.8445 13.8326C52.3531 13.8326 52.0545 14.1186 52.0545 14.5173C52.0545 14.8247 52.2099 15.0547 52.7614 15.4773L52.9454 15.6161C53.7533 16.2211 54.0368 16.6799 54.0368 17.3135C54.0368 17.6975 53.8913 18.1594 53.4136 18.4703C53.0816 18.6819 52.7088 18.7449 52.3531 18.7449C51.9691 18.7449 51.6698 18.6966 51.3845 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.4449 16.2609C60.4449 14.7716 59.5867 13.8452 58.4976 13.8452C57.731 13.8452 56.8585 14.2726 56.8585 15.9289C56.8585 17.3137 57.6253 18.4106 58.9013 18.4106C59.3691 18.4106 60.4449 18.1835 60.4449 16.2609ZM55.9399 16.1345C55.9399 14.9975 56.6912 13.5244 58.689 13.5244C60.3437 13.5244 61.3787 14.4918 61.3787 16.0161C61.3787 17.5404 60.3116 18.7449 58.6225 18.7449C56.713 18.7449 55.9399 17.3135 55.9399 16.1345V16.1345Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M63.5918 15.5499C63.5918 14.5375 63.5918 14.3499 63.579 14.1383C63.5653 13.9131 63.5118 13.8053 63.2915 13.7597C63.2387 13.746 63.1243 13.7406 63.0314 13.7406C62.9575 13.7406 62.9187 13.727 62.9187 13.6772C62.9187 13.6316 62.9649 13.6167 63.0661 13.6167C63.4175 13.6167 63.8366 13.6397 64.037 13.6397C64.1955 13.6397 64.6175 13.6167 64.8544 13.6167C64.9557 13.6167 65.0017 13.6316 65.0017 13.6772C65.0017 13.727 64.9615 13.7406 64.8956 13.7406C64.8216 13.7406 64.781 13.746 64.7012 13.7597C64.5207 13.791 64.4712 13.9075 64.4554 14.1383C64.4438 14.3499 64.4438 14.5375 64.4438 15.5499V16.481C64.4438 17.4441 64.6351 17.8515 64.9615 18.1189C65.2608 18.3649 65.5685 18.3908 65.7924 18.3908C66.086 18.3908 66.4466 18.2979 66.7125 18.0314C67.0781 17.6627 67.0972 17.0661 67.0972 16.3803V15.5499C67.0972 14.5375 67.0972 14.3499 67.0858 14.1383C67.0721 13.9131 67.018 13.8053 66.7992 13.7597C66.7459 13.746 66.6332 13.7406 66.5573 13.7406C66.4858 13.7406 66.4466 13.727 66.4466 13.6772C66.4466 13.6316 66.491 13.6167 66.5876 13.6167C66.9237 13.6167 67.3417 13.6397 67.3417 13.6397C67.4323 13.6397 67.8491 13.6167 68.1089 13.6167C68.2041 13.6167 68.2476 13.6316 68.2476 13.6772C68.2476 13.727 68.2097 13.7406 68.1282 13.7406C68.0561 13.7406 68.0138 13.746 67.9382 13.7597C67.7572 13.791 67.7013 13.9075 67.6893 14.1383C67.6762 14.3499 67.6762 14.5375 67.6762 15.5499V16.2607C67.6762 17.0006 67.6045 17.7832 67.0431 18.2627C66.5718 18.6697 66.0937 18.745 65.6583 18.745C65.3091 18.745 64.6681 18.723 64.1835 18.2826C63.8428 17.9771 63.5918 17.4851 63.5918 16.5212V15.5499",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.3762 16.0733C71.3762 16.1481 71.3888 16.1755 71.4361 16.1948C71.5762 16.241 71.7749 16.2607 71.942 16.2607C72.2083 16.2607 72.2937 16.2333 72.4141 16.1481C72.6143 16.0002 72.8066 15.6964 72.8066 15.1501C72.8066 14.2044 72.1809 13.9325 71.7886 13.9325C71.622 13.9325 71.5043 13.9385 71.4361 13.9582C71.3888 13.9727 71.3762 13.9965 71.3762 14.0508V16.0733ZM70.5907 15.5499C70.5907 14.5375 70.5907 14.3499 70.5772 14.1383C70.5634 13.9131 70.5117 13.8053 70.2917 13.7597C70.2361 13.746 70.1248 13.7406 70.0322 13.7406C69.9599 13.7406 69.9167 13.727 69.9167 13.6772C69.9167 13.6316 69.9634 13.6167 70.0664 13.6167C70.4158 13.6167 70.8371 13.6397 70.9762 13.6397C71.2044 13.6397 71.7084 13.6167 71.9152 13.6167C72.3343 13.6167 72.7813 13.6606 73.138 13.9075C73.3268 14.0335 73.5924 14.3723 73.5924 14.8179C73.5924 15.3084 73.3864 15.7621 72.7125 16.3086C73.305 17.053 73.7636 17.6457 74.1555 18.0588C74.5284 18.4434 74.8025 18.4917 74.9016 18.5095C74.9754 18.5228 75.0363 18.5328 75.0888 18.5328C75.1422 18.5328 75.1683 18.5489 75.1683 18.5829C75.1683 18.6376 75.1227 18.6492 75.0403 18.6492H74.4102C74.0393 18.6492 73.8699 18.6171 73.6994 18.5228C73.4121 18.3697 73.1579 18.0588 72.7867 17.5452C72.5195 17.1811 72.2143 16.727 72.1274 16.6288C72.0939 16.5867 72.053 16.5815 72.0081 16.5815L71.4315 16.5683C71.3969 16.5683 71.3762 16.5815 71.3762 16.6203V16.7152C71.3762 17.3328 71.3762 17.8571 71.4102 18.1375C71.4315 18.3294 71.4682 18.477 71.6702 18.5035C71.7683 18.5174 71.9152 18.5328 71.9946 18.5328C72.0476 18.5328 72.0738 18.5489 72.0738 18.5829C72.0738 18.6287 72.0273 18.6492 71.9419 18.6492C71.5558 18.6492 71.0626 18.6287 70.9635 18.6287C70.8371 18.6287 70.4158 18.6492 70.1522 18.6492C70.0664 18.6492 70.0197 18.6287 70.0197 18.5829C70.0197 18.5489 70.044 18.5328 70.1248 18.5328C70.2258 18.5328 70.3053 18.5174 70.3642 18.5035C70.4974 18.477 70.5304 18.3294 70.558 18.1375C70.5907 17.8571 70.5907 17.3328 70.5907 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.7248 18.016C76.0707 17.444 75.9004 16.6996 75.9004 16.0549C75.9004 15.6041 76.0397 14.8178 76.68 14.2313C77.1561 13.7909 77.789 13.5244 78.7811 13.5244C79.1931 13.5244 79.4405 13.553 79.7454 13.5928C79.9991 13.6247 80.2123 13.6879 80.4121 13.7047C80.4836 13.7124 80.512 13.746 80.512 13.787C80.512 13.8403 80.4917 13.9167 80.4784 14.1503C80.4648 14.3723 80.4701 14.7376 80.4571 14.869C80.4511 14.9695 80.4374 15.0236 80.3773 15.0236C80.3251 15.0236 80.3122 14.9695 80.3122 14.8761C80.3046 14.6701 80.2179 14.4404 80.0525 14.2655C79.8333 14.0334 79.3152 13.8519 78.7017 13.8519C78.1229 13.8519 77.7424 13.9965 77.4508 14.2655C76.9646 14.7094 76.8376 15.3413 76.8376 15.9871C76.8376 17.5711 78.0433 18.3559 78.9345 18.3559C79.5251 18.3559 79.8849 18.2919 80.1499 17.9833C80.2648 17.8571 80.352 17.6627 80.3773 17.5452C80.3972 17.4374 80.4121 17.4134 80.4648 17.4134C80.512 17.4134 80.5249 17.4585 80.5249 17.5131C80.5249 17.591 80.4455 18.1715 80.3773 18.3969C80.3421 18.5095 80.3176 18.5447 80.2065 18.5907C79.9384 18.6966 79.4325 18.7449 79.0066 18.7449C78.0959 18.7449 77.3306 18.5447 76.7248 18.016",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.9906 15.5498C82.9906 14.5374 82.9906 14.3499 82.9794 14.1383C82.9659 13.913 82.9112 13.8052 82.6928 13.7596C82.6399 13.7459 82.5272 13.7406 82.4333 13.7406C82.3601 13.7406 82.3191 13.7269 82.3191 13.6771C82.3191 13.6315 82.3661 13.6166 82.4629 13.6166C82.6474 13.6166 82.8378 13.6247 83.0049 13.6247C83.1806 13.6315 83.3331 13.6396 83.4252 13.6396C83.6378 13.6396 84.9615 13.6396 85.0891 13.6315C85.2143 13.6166 85.3208 13.6054 85.3739 13.5928C85.4089 13.5868 85.451 13.5654 85.4783 13.5654C85.5152 13.5654 85.519 13.5928 85.519 13.6247C85.519 13.6722 85.4862 13.7528 85.4686 14.0589C85.4613 14.1248 85.451 14.4201 85.4354 14.4964C85.4282 14.5306 85.4145 14.5695 85.3697 14.5695C85.3208 14.5695 85.3078 14.5374 85.3078 14.4781C85.3078 14.4315 85.302 14.3167 85.2667 14.239C85.2211 14.1186 85.1542 14.0375 84.8224 13.9965C84.7097 13.9836 84.0092 13.9727 83.8784 13.9727C83.8436 13.9727 83.8299 13.9905 83.8299 14.0375V15.7226C83.8299 15.7684 83.8399 15.7946 83.8784 15.7946C84.0224 15.7946 84.7913 15.7946 84.9426 15.7809C85.102 15.7684 85.2006 15.7488 85.2611 15.6818C85.3078 15.6281 85.3351 15.5948 85.3697 15.5948C85.3932 15.5948 85.4145 15.6085 85.4145 15.6491C85.4145 15.6887 85.3874 15.7946 85.3621 16.1344C85.3532 16.2665 85.3351 16.5336 85.3351 16.5815C85.3351 16.6333 85.3351 16.7056 85.2742 16.7056C85.2288 16.7056 85.2143 16.6799 85.2143 16.6474C85.2095 16.5815 85.2095 16.4955 85.1892 16.4063C85.1542 16.2745 85.0609 16.1755 84.8143 16.1481C84.6885 16.1344 84.0297 16.1268 83.873 16.1268C83.8399 16.1268 83.8299 16.1541 83.8299 16.1947V16.7191C83.8299 16.9454 83.8251 17.5599 83.8299 17.753C83.8436 18.2081 83.9524 18.3115 84.629 18.3115C84.8027 18.3115 85.0815 18.3115 85.2553 18.233C85.4282 18.1499 85.508 18.0135 85.5563 17.7385C85.5656 17.6627 85.5813 17.6376 85.6284 17.6376C85.6814 17.6376 85.6814 17.6923 85.6814 17.7582C85.6814 17.9118 85.6284 18.3648 85.595 18.4968C85.5482 18.6697 85.4862 18.6697 85.2354 18.6697C84.7378 18.6697 84.3714 18.6545 84.0844 18.6491C83.7965 18.6375 83.5907 18.6286 83.3949 18.6286C83.3193 18.6286 83.1725 18.6286 83.014 18.6375C82.8588 18.6375 82.6863 18.6491 82.5535 18.6491C82.4629 18.6491 82.4202 18.6286 82.4202 18.5828C82.4202 18.5488 82.4476 18.5327 82.5272 18.5327C82.6279 18.5327 82.7073 18.5173 82.7661 18.5035C82.8998 18.4769 82.9332 18.3294 82.9599 18.1375C82.9906 17.8571 82.9906 17.3327 82.9906 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.8766 18.5715C87.7717 18.5227 87.7495 18.4917 87.7495 18.3445C87.7495 17.9771 87.7754 17.579 87.7837 17.4735C87.7912 17.3723 87.8084 17.3017 87.861 17.3017C87.9232 17.3017 87.9269 17.3607 87.9269 17.4134C87.9269 17.4979 87.953 17.6376 87.9893 17.753C88.1342 18.2448 88.529 18.4243 88.941 18.4243C89.5376 18.4243 89.8323 18.016 89.8323 17.6627C89.8323 17.3373 89.7326 17.0335 89.1795 16.6006L88.8734 16.3597C88.1418 15.7888 87.8904 15.3208 87.8904 14.7843C87.8904 14.0508 88.5016 13.5244 89.4263 13.5244C89.8591 13.5244 90.1405 13.5928 90.3117 13.6396C90.3718 13.655 90.4051 13.6722 90.4051 13.719C90.4051 13.8052 90.3799 13.9965 90.3799 14.5173C90.3799 14.6647 90.3581 14.7171 90.3038 14.7171C90.259 14.7171 90.2369 14.6771 90.2369 14.5986C90.2369 14.5374 90.2049 14.3304 90.0661 14.158C89.965 14.0334 89.7716 13.8326 89.338 13.8326C88.8475 13.8326 88.5486 14.1186 88.5486 14.5173C88.5486 14.8247 88.7024 15.0547 89.2551 15.4773L89.4394 15.6161C90.2454 16.2211 90.5312 16.6799 90.5312 17.3135C90.5312 17.6975 90.3834 18.1594 89.9057 18.4703C89.5714 18.6819 89.1992 18.7449 88.8475 18.7449C88.4612 18.7449 88.1619 18.6966 87.8766 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.4308 26.351C40.4308 25.3411 40.4308 25.1548 40.419 24.9405C40.4055 24.7134 40.3396 24.6015 40.1919 24.5681C40.1202 24.547 40.03 24.5443 39.9511 24.5443C39.8862 24.5443 39.8462 24.5289 39.8462 24.4726C39.8462 24.4359 39.9005 24.4214 40.0037 24.4214C40.258 24.4214 40.6772 24.4402 40.8696 24.4402C41.0368 24.4402 41.43 24.4214 41.6832 24.4214C41.7688 24.4214 41.821 24.4359 41.821 24.4726C41.821 24.5289 41.7812 24.5443 41.7141 24.5443C41.6505 24.5443 41.596 24.547 41.5141 24.5615C41.3359 24.5949 41.2832 24.7074 41.2714 24.9405C41.2561 25.1548 41.2561 25.3411 41.2561 26.351V27.5214C41.2561 28.1675 41.2561 28.6935 41.2832 28.9814C41.3046 29.1605 41.3502 29.2786 41.5473 29.3043C41.6424 29.3186 41.7881 29.3331 41.8892 29.3331C41.962 29.3331 41.9941 29.3528 41.9941 29.3868C41.9941 29.4322 41.9425 29.4518 41.8679 29.4518C41.43 29.4518 41.0097 29.4322 40.8298 29.4322C40.6772 29.4322 40.258 29.4518 39.9937 29.4518C39.9084 29.4518 39.8582 29.4322 39.8582 29.3868C39.8582 29.3528 39.8862 29.3331 39.966 29.3331C40.0661 29.3331 40.1465 29.3186 40.2076 29.3043C40.3396 29.2786 40.3782 29.1683 40.3999 28.9737C40.4308 28.6935 40.4308 28.1675 40.4308 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.8558 28.5483C44.8695 29.0666 44.9551 29.2398 45.089 29.2861C45.2017 29.3252 45.3281 29.3329 45.4347 29.3329C45.5095 29.3329 45.5472 29.3457 45.5472 29.3866C45.5472 29.438 45.489 29.4516 45.3957 29.4516C44.9628 29.4516 44.6938 29.432 44.5696 29.432C44.5104 29.432 44.198 29.4516 43.8503 29.4516C43.7659 29.4516 43.7046 29.4465 43.7046 29.3866C43.7046 29.3457 43.7433 29.3329 43.8092 29.3329C43.8969 29.3329 44.0171 29.3252 44.1104 29.3006C44.2851 29.2467 44.3095 29.0512 44.3164 28.4749L44.3786 24.5339C44.3786 24.4007 44.3958 24.3076 44.4637 24.3076C44.5354 24.3076 44.5957 24.3949 44.7103 24.5132C44.7881 24.6013 45.8019 25.6856 46.7726 26.6505C47.2261 27.1038 48.1224 28.0625 48.2345 28.1673H48.271L48.2037 25.1793C48.196 24.7721 48.1345 24.6475 47.9763 24.5799C47.8783 24.5441 47.7164 24.5441 47.6252 24.5441C47.5453 24.5441 47.5162 24.5219 47.5162 24.4809C47.5162 24.4264 47.5921 24.4212 47.6914 24.4212C48.0379 24.4212 48.3572 24.44 48.4967 24.44C48.5705 24.44 48.8221 24.4212 49.1473 24.4212C49.2341 24.4212 49.3019 24.4264 49.3019 24.4809C49.3019 24.5219 49.2617 24.5441 49.1802 24.5441C49.1143 24.5441 49.0629 24.5441 48.9806 24.5613C48.7939 24.616 48.7427 24.7544 48.7359 25.1273L48.6621 29.3252C48.6621 29.4713 48.6347 29.5345 48.5746 29.5345C48.5023 29.5345 48.4221 29.4577 48.3496 29.3866C47.9311 28.9856 47.0783 28.1145 46.3861 27.4291C45.6599 26.7092 44.9219 25.8785 44.8017 25.7523H44.7843L44.8558 28.5483",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.4631 29.3742C51.3557 29.3253 51.3379 29.2921 51.3379 29.1469C51.3379 28.7815 51.363 28.3817 51.3686 28.2744C51.3766 28.1761 51.3959 28.1019 51.4488 28.1019C51.5085 28.1019 51.5165 28.1616 51.5165 28.2163C51.5165 28.2999 51.5426 28.44 51.5768 28.5527C51.7223 29.0455 52.1149 29.2264 52.5283 29.2264C53.1243 29.2264 53.4197 28.8209 53.4197 28.4673C53.4197 28.143 53.3183 27.8365 52.7673 27.4019L52.4601 27.1637C51.7281 26.589 51.4757 26.1256 51.4757 25.5866C51.4757 24.8534 52.0865 24.3301 53.0116 24.3301C53.4449 24.3301 53.7243 24.3949 53.8978 24.4401C53.9583 24.4555 53.991 24.4725 53.991 24.522C53.991 24.6101 53.9651 24.8011 53.9651 25.3186C53.9651 25.4654 53.9457 25.5192 53.8914 25.5192C53.8447 25.5192 53.8234 25.4807 53.8234 25.3988C53.8234 25.341 53.791 25.1344 53.6528 24.9626C53.5515 24.8335 53.3575 24.6356 52.927 24.6356C52.4344 24.6356 52.136 24.9216 52.136 25.3186C52.136 25.626 52.2894 25.8573 52.8408 26.2782L53.0269 26.4174C53.8313 27.022 54.1162 27.4829 54.1162 28.1146C54.1162 28.4996 53.9691 28.9599 53.4912 29.2708C53.161 29.4841 52.7865 29.5466 52.4344 29.5466C52.0483 29.5466 51.7474 29.4977 51.4631 29.3742",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.6296 24.7953L56.6388 24.82C56.2502 24.8335 56.0945 24.8662 55.994 25.0138C55.9275 25.1145 55.891 25.193 55.8788 25.2453C55.8668 25.2998 55.8469 25.3261 55.8071 25.3261C55.7609 25.3261 55.7466 25.2938 55.7466 25.2204C55.7466 25.1145 55.872 24.5093 55.8896 24.4555C55.9086 24.3659 55.9275 24.3301 55.965 24.3301C56.0193 24.3301 56.0873 24.3949 56.2502 24.407C56.445 24.4264 56.697 24.4401 56.9167 24.4401H59.5543C59.7653 24.4401 59.9116 24.4213 60.0115 24.407C60.1118 24.3871 60.165 24.3761 60.1924 24.3761C60.2394 24.3761 60.245 24.4144 60.245 24.5133C60.245 24.6544 60.2249 25.1145 60.2249 25.2863C60.2189 25.3545 60.2061 25.393 60.165 25.393C60.1118 25.393 60.0973 25.358 60.09 25.2625L60.0875 25.1864C60.0722 25.0138 59.8931 24.8285 59.301 24.815L58.4623 24.7953V27.5212C58.4623 28.1343 58.4623 28.6592 58.4976 28.9454C58.5148 29.1332 58.5554 29.2785 58.7543 29.3042C58.8478 29.3185 58.9941 29.333 59.0934 29.333C59.167 29.333 59.2003 29.3527 59.2003 29.3866C59.2003 29.432 59.1464 29.4517 59.0741 29.4517C58.6354 29.4517 58.2178 29.432 58.0313 29.432C57.876 29.432 57.4551 29.4517 57.1911 29.4517C57.1049 29.4517 57.0562 29.432 57.0562 29.3866C57.0562 29.3527 57.0852 29.333 57.1633 29.333C57.2663 29.333 57.3461 29.3185 57.4037 29.3042C57.5386 29.2785 57.5766 29.1332 57.5962 28.9413C57.6296 28.6592 57.6296 28.1343 57.6296 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.5148 26.351C62.5148 25.3411 62.5148 25.1548 62.5011 24.9405C62.4876 24.7134 62.4195 24.6015 62.2752 24.5681C62.2023 24.547 62.1156 24.5443 62.0331 24.5443C61.9675 24.5443 61.9272 24.5289 61.9272 24.4726C61.9272 24.4359 61.9807 24.4214 62.0852 24.4214C62.3403 24.4214 62.7614 24.4402 62.9535 24.4402C63.1195 24.4402 63.5118 24.4214 63.7651 24.4214C63.8509 24.4214 63.9037 24.4359 63.9037 24.4726C63.9037 24.5289 63.8633 24.5443 63.798 24.5443C63.7321 24.5443 63.6801 24.547 63.5991 24.5615C63.4198 24.5949 63.3635 24.7074 63.3535 24.9405C63.339 25.1548 63.339 25.3411 63.339 26.351V27.5214C63.339 28.1675 63.339 28.6935 63.3635 28.9814C63.3863 29.1605 63.4312 29.2786 63.6331 29.3043C63.7234 29.3186 63.8712 29.3331 63.973 29.3331C64.0451 29.3331 64.0778 29.3528 64.0778 29.3868C64.0778 29.4322 64.0217 29.4518 63.9493 29.4518C63.5118 29.4518 63.092 29.4322 62.9121 29.4322C62.7614 29.4322 62.3403 29.4518 62.0736 29.4518C61.9867 29.4518 61.9401 29.4322 61.9401 29.3868C61.9401 29.3528 61.9675 29.3331 62.0474 29.3331C62.1475 29.3331 62.2273 29.3186 62.2856 29.3043C62.4195 29.2786 62.4588 29.1683 62.4789 28.9737C62.5148 28.6935 62.5148 28.1675 62.5148 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.4491 24.7953L66.4598 24.82C66.0741 24.8335 65.9133 24.8662 65.8121 25.0138C65.7464 25.1145 65.7122 25.193 65.7014 25.2453C65.6857 25.2998 65.6662 25.3261 65.6277 25.3261C65.579 25.3261 65.5686 25.2938 65.5686 25.2204C65.5686 25.1145 65.6934 24.5093 65.707 24.4555C65.7276 24.3659 65.7464 24.3301 65.7875 24.3301C65.8401 24.3301 65.9072 24.3949 66.0741 24.407C66.2674 24.4264 66.519 24.4401 66.7379 24.4401H69.3734C69.5869 24.4401 69.7326 24.4213 69.8356 24.407C69.9321 24.3871 69.9869 24.3761 70.0117 24.3761C70.0586 24.3761 70.0664 24.4144 70.0664 24.5133C70.0664 24.6544 70.0449 25.1145 70.0449 25.2863C70.0393 25.3545 70.0258 25.393 69.9869 25.393C69.9321 25.393 69.9195 25.358 69.9118 25.2625L69.9075 25.1864C69.8938 25.0138 69.7121 24.8285 69.1229 24.815L68.2819 24.7953V27.5212C68.2819 28.1343 68.2819 28.6592 68.3148 28.9454C68.3351 29.1332 68.3747 29.2785 68.5749 29.3042C68.6688 29.3185 68.8139 29.333 68.9129 29.333C68.989 29.333 69.0223 29.3527 69.0223 29.3866C69.0223 29.432 68.9682 29.4517 68.8932 29.4517C68.4559 29.4517 68.0356 29.432 67.8479 29.432C67.6976 29.432 67.278 29.4517 67.0098 29.4517C66.9238 29.4517 66.8761 29.432 66.8761 29.3866C66.8761 29.3527 66.9053 29.333 66.9839 29.333C67.084 29.333 67.1636 29.3185 67.2216 29.3042C67.3573 29.2785 67.3965 29.1332 67.4181 28.9413C67.4491 28.6592 67.4491 28.1343 67.4491 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.0477 26.351C72.0477 25.3411 72.0477 25.1548 72.033 24.9405C72.0197 24.7134 71.9681 24.6102 71.7482 24.5615C71.6927 24.547 71.5826 24.5443 71.49 24.5443C71.4177 24.5443 71.3762 24.5289 71.3762 24.4811C71.3762 24.4359 71.4216 24.4214 71.5227 24.4214C71.874 24.4214 72.2937 24.4402 72.4937 24.4402C72.6528 24.4402 73.0702 24.4214 73.3123 24.4214C73.4122 24.4214 73.4588 24.4359 73.4588 24.4811C73.4588 24.5289 73.4182 24.5443 73.3515 24.5443C73.2804 24.5443 73.2373 24.547 73.1579 24.5615C72.9809 24.5949 72.9248 24.7074 72.9129 24.9405C72.8995 25.1548 72.8995 25.3411 72.8995 26.351V27.2824C72.8995 28.2482 73.0924 28.6554 73.4182 28.9198C73.7171 29.1683 74.0236 29.1932 74.2509 29.1932C74.5423 29.1932 74.8994 29.1001 75.1684 28.8336C75.5348 28.4674 75.5528 27.8699 75.5528 27.1833V26.351C75.5528 25.3411 75.5528 25.1548 75.5402 24.9405C75.5302 24.7134 75.4761 24.6102 75.255 24.5615C75.2026 24.547 75.0888 24.5443 75.0181 24.5443C74.9402 24.5443 74.8994 24.5289 74.8994 24.4811C74.8994 24.4359 74.9481 24.4214 75.0403 24.4214C75.3829 24.4214 75.8007 24.4402 75.8065 24.4402C75.8882 24.4402 76.3072 24.4214 76.5675 24.4214C76.6589 24.4214 76.7055 24.4359 76.7055 24.4811C76.7055 24.5289 76.6666 24.5443 76.587 24.5443C76.5122 24.5443 76.4742 24.547 76.3928 24.5615C76.2121 24.5949 76.1596 24.7074 76.146 24.9405C76.1323 25.1548 76.1323 25.3411 76.1323 26.351V27.0619C76.1323 27.8016 76.0589 28.587 75.5006 29.0668C75.0295 29.4715 74.5504 29.5468 74.1162 29.5468C73.7637 29.5468 73.1245 29.5269 72.64 29.0898C72.3009 28.7816 72.0477 28.288 72.0477 27.3224V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.9309 24.7953L78.9403 24.82C78.554 24.8335 78.3952 24.8662 78.2958 25.0138C78.2296 25.1145 78.1967 25.193 78.1809 25.2453C78.1693 25.2998 78.148 25.3261 78.1084 25.3261C78.0626 25.3261 78.0481 25.2938 78.0481 25.2204C78.0481 25.1145 78.1737 24.5093 78.1867 24.4555C78.2083 24.3659 78.2296 24.3301 78.2684 24.3301C78.3208 24.3301 78.3867 24.3949 78.554 24.407C78.7463 24.4264 79.0004 24.4401 79.2201 24.4401H81.855C82.0689 24.4401 82.2125 24.4213 82.3151 24.407C82.4143 24.3871 82.4668 24.3761 82.4966 24.3761C82.5401 24.3761 82.5482 24.4144 82.5482 24.5133C82.5482 24.6544 82.5271 25.1145 82.5271 25.2863C82.5192 25.3545 82.5072 25.393 82.4668 25.393C82.4143 25.393 82.3986 25.358 82.3951 25.2625L82.389 25.1864C82.3735 25.0138 82.1949 24.8285 81.6046 24.815L80.764 24.7953V27.5212C80.764 28.1343 80.764 28.6592 80.7968 28.9454C80.8181 29.1332 80.8592 29.2785 81.055 29.3042C81.1524 29.3185 81.2942 29.333 81.3949 29.333C81.4703 29.333 81.5033 29.3527 81.5033 29.3866C81.5033 29.432 81.4484 29.4517 81.3764 29.4517C80.9346 29.4517 80.5172 29.432 80.333 29.432C80.1792 29.432 79.7581 29.4517 79.4918 29.4517C79.4064 29.4517 79.36 29.432 79.36 29.3866C79.36 29.3527 79.3848 29.333 79.4667 29.333C79.5658 29.333 79.6455 29.3185 79.7046 29.3042C79.8393 29.2785 79.8774 29.1332 79.9 28.9413C79.9309 28.6592 79.9309 28.1343 79.9309 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.8142 26.3512C84.8142 25.3413 84.8142 25.155 84.8026 24.9407C84.7889 24.7136 84.7377 24.6103 84.517 24.5616C84.4629 24.5471 84.3502 24.5444 84.2555 24.5444C84.1832 24.5444 84.1423 24.5291 84.1423 24.4812C84.1423 24.4361 84.1892 24.4215 84.2905 24.4215C84.4706 24.4215 84.6611 24.4267 84.8316 24.4267C85.0028 24.4361 85.1541 24.4404 85.2472 24.4404C85.4612 24.4404 86.7872 24.4404 86.9113 24.4361C87.0375 24.4215 87.1453 24.4072 87.1988 24.3952C87.2328 24.3873 87.2705 24.3662 87.3047 24.3662C87.3374 24.3662 87.3447 24.3952 87.3447 24.4267C87.3447 24.4727 87.3097 24.554 87.2922 24.8595C87.2842 24.9262 87.2705 25.2207 87.2549 25.3001C87.2514 25.3349 87.2367 25.3718 87.1911 25.3718C87.1453 25.3718 87.131 25.3413 87.131 25.2806C87.131 25.2335 87.1269 25.1216 87.0898 25.0406C87.0433 24.9218 86.9797 24.84 86.6434 24.8014C86.5327 24.7871 85.8357 24.7724 85.7004 24.7724C85.6666 24.7724 85.6534 24.7956 85.6534 24.84V26.5236C85.6534 26.5723 85.6612 26.597 85.7004 26.597C85.8471 26.597 86.6135 26.597 86.7654 26.5844C86.9229 26.5723 87.022 26.5524 87.0838 26.4853C87.131 26.4322 87.1584 26.3989 87.1911 26.3989C87.2172 26.3989 87.2367 26.4109 87.2367 26.4501C87.2367 26.4905 87.2102 26.597 87.1834 26.9352C87.1756 27.0691 87.1584 27.3371 87.1584 27.3822C87.1584 27.4363 87.1584 27.5122 87.0972 27.5122C87.0512 27.5122 87.0375 27.4832 87.0375 27.4498C87.0301 27.3822 87.0301 27.2962 87.0104 27.21C86.9797 27.077 86.884 26.976 86.6403 26.953C86.5136 26.9352 85.8511 26.93 85.6919 26.93C85.6612 26.93 85.6534 26.9572 85.6534 26.9974V27.5215C85.6534 27.7487 85.6473 28.3609 85.6534 28.553C85.6666 29.0139 85.7756 29.1113 86.4506 29.1113C86.6251 29.1113 86.9045 29.1113 87.0784 29.0327C87.2514 28.9523 87.331 28.8141 87.3776 28.5391C87.3892 28.4676 87.4023 28.4402 87.4516 28.4402C87.5043 28.4402 87.5043 28.4933 87.5043 28.5606C87.5043 28.7142 87.4516 29.1685 87.417 29.3009C87.3696 29.4717 87.3097 29.4717 87.0568 29.4717C86.558 29.4717 86.1912 29.458 85.9074 29.452C85.621 29.4383 85.4144 29.4323 85.2142 29.4323C85.1408 29.4323 84.9947 29.4323 84.8339 29.4383C84.6818 29.4383 84.5077 29.452 84.3761 29.452C84.2905 29.452 84.2443 29.4323 84.2443 29.3869C84.2443 29.3529 84.2685 29.3333 84.3502 29.3333C84.4493 29.3333 84.5307 29.3187 84.5892 29.3044C84.7232 29.2787 84.757 29.1335 84.7815 28.9416C84.8142 28.6595 84.8142 28.1345 84.8142 27.5215V26.3512",fill:"#686767"})]})}),V=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.99573 16C9.25964 16 10.2883 14.9745 10.2938 13.7118H5.69775C5.70325 14.9744 6.73181 16 7.99573 16Z",fill:"currentColor"}),t.jsx("path",{d:"M14.2106 12.7737V12.0912C14.2106 11.3503 13.7648 10.6915 13.108 10.4019V6.52185C13.108 5.4281 12.7614 4.40417 12.1055 3.56079C11.5471 2.8429 10.7917 2.28613 9.90662 1.93701V1.91077C9.90662 0.857178 9.04944 0 7.99585 0C6.94226 0 6.08521 0.857178 6.08521 1.91077V1.93701C5.20007 2.28613 4.4447 2.8429 3.88635 3.56079C3.23047 4.40417 2.88367 5.4281 2.88367 6.52185V10.4017C2.22705 10.6914 1.78125 11.3503 1.78125 12.0912V12.7736H14.2106V12.7737Z",fill:"currentColor"})]})}),z=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),B=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),H=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_8714_101)",children:t.jsx("path",{d:"M0 20V13.3333H2.22222V16.2222L5.66667 12.7778L7.22222 14.3333L3.77778 17.7778H6.66667V20H0ZM14.3333 7.22222L12.7778 5.66667L16.2222 2.22222H13.3333V0H20V6.66667H17.7778V3.77778L14.3333 7.22222Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_8714_101",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),F=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 20C15.1667 20 14.4583 19.7083 13.875 19.125C13.2917 18.5417 13 17.8333 13 17C13 16.9 13.025 16.6667 13.075 16.3L6.05 12.2C5.78333 12.45 5.475 12.6458 5.125 12.7875C4.775 12.9292 4.4 13 4 13C3.16667 13 2.45833 12.7083 1.875 12.125C1.29167 11.5417 1 10.8333 1 10C1 9.16667 1.29167 8.45833 1.875 7.875C2.45833 7.29167 3.16667 7 4 7C4.4 7 4.775 7.07083 5.125 7.2125C5.475 7.35417 5.78333 7.55 6.05 7.8L13.075 3.7C13.0417 3.58333 13.0208 3.47083 13.0125 3.3625C13.0042 3.25417 13 3.13333 13 3C13 2.16667 13.2917 1.45833 13.875 0.875C14.4583 0.291667 15.1667 0 16 0C16.8333 0 17.5417 0.291667 18.125 0.875C18.7083 1.45833 19 2.16667 19 3C19 3.83333 18.7083 4.54167 18.125 5.125C17.5417 5.70833 16.8333 6 16 6C15.6 6 15.225 5.92917 14.875 5.7875C14.525 5.64583 14.2167 5.45 13.95 5.2L6.925 9.3C6.95833 9.41667 6.97917 9.52917 6.9875 9.6375C6.99583 9.74583 7 9.86667 7 10C7 10.1333 6.99583 10.2542 6.9875 10.3625C6.97917 10.4708 6.95833 10.5833 6.925 10.7L13.95 14.8C14.2167 14.55 14.525 14.3542 14.875 14.2125C15.225 14.0708 15.6 14 16 14C16.8333 14 17.5417 14.2917 18.125 14.875C18.7083 15.4583 19 16.1667 19 17C19 17.8333 18.7083 18.5417 18.125 19.125C17.5417 19.7083 16.8333 20 16 20Z",fill:"currentColor"})})}),q=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 5H4V1H16V5ZM16 10.5C16.2833 10.5 16.5208 10.4042 16.7125 10.2125C16.9042 10.0208 17 9.78333 17 9.5C17 9.21667 16.9042 8.97917 16.7125 8.7875C16.5208 8.59583 16.2833 8.5 16 8.5C15.7167 8.5 15.4792 8.59583 15.2875 8.7875C15.0958 8.97917 15 9.21667 15 9.5C15 9.78333 15.0958 10.0208 15.2875 10.2125C15.4792 10.4042 15.7167 10.5 16 10.5ZM14 17V13H6V17H14ZM16 19H4V15H0V9C0 8.15 0.291667 7.4375 0.875 6.8625C1.45833 6.2875 2.16667 6 3 6H17C17.85 6 18.5625 6.2875 19.1375 6.8625C19.7125 7.4375 20 8.15 20 9V15H16V19Z",fill:"currentColor"})})}),Z=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.26368 20L6.86567 16.8C6.65008 16.7167 6.44693 16.6167 6.25622 16.5C6.06551 16.3833 5.87894 16.2583 5.69652 16.125L2.73632 17.375L0 12.625L2.56219 10.675C2.54561 10.5583 2.53731 10.4458 2.53731 10.3375V9.6625C2.53731 9.55417 2.54561 9.44167 2.56219 9.325L0 7.375L2.73632 2.625L5.69652 3.875C5.87894 3.74167 6.06965 3.61667 6.26866 3.5C6.46766 3.38333 6.66667 3.28333 6.86567 3.2L7.26368 0H12.7363L13.1343 3.2C13.3499 3.28333 13.5531 3.38333 13.7438 3.5C13.9345 3.61667 14.1211 3.74167 14.3035 3.875L17.2637 2.625L20 7.375L17.4378 9.325C17.4544 9.44167 17.4627 9.55417 17.4627 9.6625V10.3375C17.4627 10.4458 17.4461 10.5583 17.4129 10.675L19.9751 12.625L17.2388 17.375L14.3035 16.125C14.1211 16.2583 13.9303 16.3833 13.7313 16.5C13.5323 16.6167 13.3333 16.7167 13.1343 16.8L12.7363 20H7.26368ZM10.0498 13.5C11.0116 13.5 11.8325 13.1583 12.5124 12.475C13.1924 11.7917 13.5323 10.9667 13.5323 10C13.5323 9.03333 13.1924 8.20833 12.5124 7.525C11.8325 6.84167 11.0116 6.5 10.0498 6.5C9.07131 6.5 8.24627 6.84167 7.57463 7.525C6.90299 8.20833 6.56716 9.03333 6.56716 10C6.56716 10.9667 6.90299 11.7917 7.57463 12.475C8.24627 13.1583 9.07131 13.5 10.0498 13.5Z",fill:"currentColor"})})}),W=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M9.95 15.9999C10.3 15.9999 10.5958 15.8791 10.8375 15.6374C11.0792 15.3958 11.2 15.0999 11.2 14.7499C11.2 14.3999 11.0792 14.1041 10.8375 13.8624C10.5958 13.6208 10.3 13.4999 9.95 13.4999C9.6 13.4999 9.30417 13.6208 9.0625 13.8624C8.82083 14.1041 8.7 14.3999 8.7 14.7499C8.7 15.0999 8.82083 15.3958 9.0625 15.6374C9.30417 15.8791 9.6 15.9999 9.95 15.9999ZM9.05 12.1499H10.9C10.9 11.5999 10.9625 11.1666 11.0875 10.8499C11.2125 10.5333 11.5667 10.0999 12.15 9.54994C12.5833 9.11661 12.925 8.70411 13.175 8.31244C13.425 7.92077 13.55 7.44994 13.55 6.89994C13.55 5.96661 13.2083 5.24994 12.525 4.74994C11.8417 4.24994 11.0333 3.99994 10.1 3.99994C9.15 3.99994 8.37917 4.24994 7.7875 4.74994C7.19583 5.24994 6.78333 5.84994 6.55 6.54994L8.2 7.19994C8.28333 6.89994 8.47083 6.57494 8.7625 6.22494C9.05417 5.87494 9.5 5.69994 10.1 5.69994C10.6333 5.69994 11.0333 5.84577 11.3 6.13744C11.5667 6.42911 11.7 6.74994 11.7 7.09994C11.7 7.43327 11.6 7.74577 11.4 8.03744C11.2 8.32911 10.95 8.59994 10.65 8.84994C9.91667 9.49994 9.46667 9.99161 9.3 10.3249C9.13333 10.6583 9.05 11.2666 9.05 12.1499ZM10 19.9999C8.61667 19.9999 7.31667 19.7374 6.1 19.2124C4.88333 18.6874 3.825 17.9749 2.925 17.0749C2.025 16.1749 1.3125 15.1166 0.7875 13.8999C0.2625 12.6833 0 11.3833 0 9.99994C0 8.61661 0.2625 7.31661 0.7875 6.09994C1.3125 4.88327 2.025 3.82494 2.925 2.92494C3.825 2.02494 4.88333 1.31244 6.1 0.787439C7.31667 0.262439 8.61667 -6.10352e-05 10 -6.10352e-05C11.3833 -6.10352e-05 12.6833 0.262439 13.9 0.787439C15.1167 1.31244 16.175 2.02494 17.075 2.92494C17.975 3.82494 18.6875 4.88327 19.2125 6.09994C19.7375 7.31661 20 8.61661 20 9.99994C20 11.3833 19.7375 12.6833 19.2125 13.8999C18.6875 15.1166 17.975 16.1749 17.075 17.0749C16.175 17.9749 15.1167 18.6874 13.9 19.2124C12.6833 19.7374 11.3833 19.9999 10 19.9999Z",fill:"currentColor"})})}),G=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.55556 14C1.12778 14 0.761574 13.8477 0.456944 13.5431C0.152315 13.2384 0 12.8722 0 12.4444V1.55556C0 1.12778 0.152315 0.761574 0.456944 0.456944C0.761574 0.152315 1.12778 0 1.55556 0H12.4444C12.8722 0 13.2384 0.152315 13.5431 0.456944C13.8477 0.761574 14 1.12778 14 1.55556V12.4444C14 12.8722 13.8477 13.2384 13.5431 13.5431C13.2384 13.8477 12.8722 14 12.4444 14H1.55556ZM2.33333 10.8889H11.6667L8.75 7L6.41667 10.1111L4.66667 7.77778L2.33333 10.8889Z",fill:"currentColor"})})}),U=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM2.66667 9.33333H7.33333V8H2.66667V9.33333ZM2.66667 6.66667H9.33333V5.33333H2.66667V6.66667ZM2.66667 4H9.33333V2.66667H2.66667V4Z",fill:"currentColor"})})}),X=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.27472 12C3.81319 12 2.56868 11.4945 1.54121 10.4835C0.513736 9.47253 0 8.24176 0 6.79121C0 6.0989 0.134615 5.43681 0.403846 4.80495C0.673077 4.17308 1.05494 3.61538 1.54945 3.13187L4.35165 0.379121C4.48352 0.258242 4.62912 0.164835 4.78846 0.0989011C4.9478 0.032967 5.10989 0 5.27472 0C5.43956 0 5.60165 0.032967 5.76099 0.0989011C5.92033 0.164835 6.06593 0.258242 6.1978 0.379121L9 3.13187C9.4945 3.61538 9.87637 4.17308 10.1456 4.80495C10.4148 5.43681 10.5494 6.0989 10.5494 6.79121C10.5494 8.24176 10.0357 9.47253 9.00824 10.4835C7.98077 11.4945 6.73626 12 5.27472 12Z",fill:"currentColor"})})}),Y=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 12V6.68333C4.62222 6.68333 3.93889 6.54722 3.28333 6.275C2.62778 6.00278 2.05 5.61667 1.55 5.11667C1.05 4.61667 0.666667 4.03889 0.4 3.38333C0.133333 2.72778 0 2.04444 0 1.33333V0H1.33333C2.03333 0 2.71111 0.136111 3.36667 0.408333C4.02222 0.680556 4.6 1.06667 5.1 1.56667C5.44444 1.91111 5.73056 2.28889 5.95833 2.7C6.18611 3.11111 6.36111 3.55 6.48333 4.01667C6.53889 3.93889 6.6 3.86389 6.66667 3.79167C6.73333 3.71944 6.80556 3.64444 6.88333 3.56667C7.38333 3.06667 7.96111 2.68056 8.61667 2.40833C9.27222 2.13611 9.95556 2 10.6667 2H12V3.33333C12 4.04444 11.8639 4.72778 11.5917 5.38333C11.3194 6.03889 10.9333 6.61667 10.4333 7.11667C9.93333 7.61667 9.35833 8 8.70833 8.26667C8.05833 8.53333 7.37778 8.66667 6.66667 8.66667V12H5.33333Z",fill:"currentColor"})})}),K=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.013 8.18324C16.013 7.61597 15.9621 7.07051 15.8676 6.54688H8.33301V9.64142H12.6385C12.453 10.6414 11.8894 11.4887 11.0421 12.056V14.0632H13.6276C15.1403 12.6705 16.013 10.6196 16.013 8.18324Z",fill:"#4285F4"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 15.9995C10.4927 15.9995 12.3036 15.2832 13.6272 14.0613L11.0418 12.0541C10.3254 12.5341 9.40905 12.8177 8.33268 12.8177C6.24905 12.8177 4.48541 11.4104 3.85632 9.51953H1.18359V11.5923C2.49996 14.2068 5.20541 15.9995 8.33268 15.9995Z",fill:"#34A853"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.85664 9.51898C3.69664 9.03898 3.60574 8.52625 3.60574 7.99898C3.60574 7.4717 3.69664 6.95898 3.85664 6.47898V4.40625H1.18392C0.642099 5.48625 0.333008 6.70807 0.333008 7.99898C0.333008 9.28989 0.642099 10.5117 1.18392 11.5917L3.85664 9.51898Z",fill:"#FBBC05"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 3.18182C9.50723 3.18182 10.5618 3.58545 11.3909 4.37818L13.6854 2.08364C12.3 0.792727 10.489 0 8.33268 0C5.20541 0 2.49996 1.79273 1.18359 4.40727L3.85632 6.48C4.48541 4.58909 6.24905 3.18182 8.33268 3.18182Z",fill:"#EA4335"})]})}),J=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M16.167 8.04974C16.167 3.60622 12.5831 0 8.16699 0C3.75093 0 0.166992 3.60622 0.166992 8.04974C0.166992 12.0705 3.09181 15.4031 6.92291 16V10.371H4.87966V8.04974H6.92291V6.27565C6.92291 4.26114 8.10932 3.14197 9.93836 3.14197C10.8117 3.14197 11.718 3.30777 11.718 3.30777V5.27254H10.7128C9.71591 5.27254 9.40283 5.90259 9.40283 6.53264V8.04145H11.6273L11.2731 10.3627H9.40283V15.9917C13.2422 15.4031 16.167 12.0705 16.167 8.04974Z",fill:"#1877F2"}),t.jsx("path",{d:"M11.2811 10.3096L11.6354 8.00384H9.41086V6.50513C9.41086 5.87106 9.73218 5.25346 10.7209 5.25346H11.726V3.2936C11.726 3.2936 10.8197 3.12891 9.94639 3.12891C8.11735 3.12891 6.93095 4.24059 6.93095 6.24162V8.00384H4.8877V10.3096H6.93095V15.9009C7.33466 15.9668 7.75484 15.9997 8.17502 15.9997C8.59521 15.9997 9.0154 15.9668 9.4191 15.9009V10.3096H11.2811Z",fill:"white"})]})}),Q=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_703_2142)",children:t.jsx("path",{d:"M10.3552 6.77143L16.3115 0H14.9001L9.72817 5.87954L5.59738 0H0.833008L7.07957 8.8909L0.833008 15.9918H2.24455L7.70622 9.78279L12.0686 15.9918H16.833L10.3548 6.77143H10.3552ZM8.42187 8.96923L7.78897 8.0839L2.75315 1.03921H4.92121L8.98517 6.7245L9.61807 7.60983L14.9007 14.9998H12.7327L8.42187 8.96957V8.96923Z",fill:"#5C5959"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_703_2142",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),ee=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),t.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),t.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),t.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),te=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),ne=n=>{const{size:r="16px",...o}=n;return t.jsx(e.Icon,{boxSize:r,...o,children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 8.88889C5.97297 8.88889 4.32432 7.24024 4.32432 5.21321C4.32432 3.18618 5.97297 1.53753 8 1.53753C10.027 1.53753 11.6757 3.18618 11.6757 5.21321C11.6757 7.24024 10.027 8.88889 8 8.88889ZM2 14.4625V13.136C2 11.2583 4.85714 9.92589 8 9.92589C11.1429 9.92589 14 11.2583 14 13.136V14.4625H2Z",fill:"currentColor"})})})},re=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.22857 6.85714L0 1.6L1.6 0L8.45714 6.85714L1.6 13.7143L0 12.1143L5.22857 6.85714ZM12.7714 6.85714L7.54286 1.6L9.14286 0L16 6.85714L9.14286 13.7143L7.54286 12.1143L12.7714 6.85714Z",fill:"#5C5959"})})}),oe=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.7714 6.85714L16 12.1143L14.4 13.7143L7.54286 6.85714L14.4 0L16 1.6L10.7714 6.85714ZM3.22857 6.85714L8.45714 12.1143L6.85714 13.7143L0 6.85714L6.85714 0L8.45714 1.6L3.22857 6.85714Z",fill:"#5C5959"})})}),ie=n=>{const{fill:r,width:o,height:i,...a}=n,s=r||"currentColor",l=o??"20",c=i??o??"20";return t.jsx(e.Icon,{...n,fill:s,children:t.jsx("svg",{width:l,height:c,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M18.4444 20L11.4444 13C10.8889 13.4444 10.25 13.7963 9.52778 14.0556C8.80556 14.3148 8.03704 14.4444 7.22222 14.4444C5.2037 14.4444 3.49537 13.7454 2.09722 12.3472C0.699074 10.9491 0 9.24074 0 7.22222C0 5.2037 0.699074 3.49537 2.09722 2.09722C3.49537 0.699074 5.2037 0 7.22222 0C9.24074 0 10.9491 0.699074 12.3472 2.09722C13.7454 3.49537 14.4444 5.2037 14.4444 7.22222C14.4444 8.03704 14.3148 8.80556 14.0556 9.52778C13.7963 10.25 13.4444 10.8889 13 11.4444L20 18.4444L18.4444 20ZM7.22222 12.2222C8.61111 12.2222 9.79167 11.7361 10.7639 10.7639C11.7361 9.79167 12.2222 8.61111 12.2222 7.22222C12.2222 5.83333 11.7361 4.65278 10.7639 3.68056C9.79167 2.70833 8.61111 2.22222 7.22222 2.22222C5.83333 2.22222 4.65278 2.70833 3.68056 3.68056C2.70833 4.65278 2.22222 5.83333 2.22222 7.22222C2.22222 8.61111 2.70833 9.79167 3.68056 10.7639C4.65278 11.7361 5.83333 12.2222 7.22222 12.2222Z"})})})},ae={Google:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(C,{label:"Google",leftIcon:t.jsx(K,{}),"aria-label":e||"Google Login",variant:"secondary",size:n,onClick:r}),Facebook:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(C,{label:"Facebook",leftIcon:t.jsx(J,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:n,onClick:r}),X:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(C,{label:"X",leftIcon:t.jsx(Q,{}),"aria-label":e||"X Login",variant:"secondary",size:n,onClick:r}),Microsoft:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(C,{label:"Microsoft",leftIcon:t.jsx(ee,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:n,onClick:r})},se=o.css`
|
|
36
36
|
width: 20px !important;
|
|
37
37
|
padding: 0 !important;
|
|
38
38
|
min-width: 20px !important;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,le=o.css`
|
|
82
82
|
width: 20px !important;
|
|
83
83
|
padding: 0 !important;
|
|
84
84
|
min-width: 20px !important;
|
|
@@ -131,17 +131,17 @@
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
134
|
+
`,ce=({icon:t,disabled:n,...o})=>r.jsx(e.Button,{css:le,"aria-label":o["aria-label"],disabled:n,...o,children:t}),de=({disabled:e,labels:t,...n})=>{const o=w("CloseButton",t);return r.jsx(ce,{css:se,icon:r.jsx(T,{}),"aria-label":n["aria-label"]||o.closeLabel,disabled:e,...n})},ue=o.css`
|
|
135
135
|
position: relative;
|
|
136
|
-
`,
|
|
136
|
+
`,pe=o.css`
|
|
137
137
|
padding: 4px;
|
|
138
138
|
background: rgba(0, 0, 0, 0);
|
|
139
139
|
border: none;
|
|
140
|
-
`,
|
|
140
|
+
`,he=o.css`
|
|
141
141
|
&:focus-visible {
|
|
142
142
|
outline: none;
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`,fe=e=>o.css`
|
|
145
145
|
background-color: ${h("neutral",800)};
|
|
146
146
|
border-radius: 4px;
|
|
147
147
|
border: 1px solid ${h("neutral",800)};
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
${"text"===e&&`\n background-color: transparent;\n border: none;\n box-shadow: none;\n color: ${h("neutral",800)};\n font-size: 16px;\n line-height: 24px;\n text-shadow: 0 0 1px ${h("neutral",100)};\n `}
|
|
160
|
-
`,
|
|
160
|
+
`,xe=({children:t,content:o,showArrow:i=!0,disabled:a,position:s="bottom",variant:l="pill",portalRef:c,openDelay:d=0,closeDelay:u=0})=>{const[p,h]=n.useState(!1);return a?t:r.jsxs(e.Tooltip.Root,{positioning:{placement:s,offset:"pill"===l?void 0:{mainAxis:0,crossAxis:0}},openDelay:d,closeDelay:u,open:p,onOpenChange:({open:e})=>h(e),children:[r.jsx(e.Tooltip.Trigger,{tabIndex:0,onClick:()=>h(!0),css:he,children:t}),r.jsx(e.Portal,{disabled:a,container:c,children:r.jsx(e.Tooltip.Positioner,{children:r.jsxs(e.Tooltip.Content,{css:fe(l),children:[i&&"pill"===l?r.jsx(e.Tooltip.Arrow,{children:r.jsx(e.Tooltip.ArrowTip,{})}):null,o]})})})]})},ge=({isExpanded:t,ariaLabel:n,icon:i,label:a,tooltip:s,disabled:l,onClick:c,showGap:d,vertical:u})=>{return r.jsx(e.Button,{className:"toolbar-item-button",css:(p=t,o.css`
|
|
161
161
|
display: flex;
|
|
162
162
|
align-items: center;
|
|
163
163
|
justify-content: ${p?"space-between":"center"};
|
|
@@ -213,13 +213,14 @@
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
`),"aria-label":n,disabled:l,onClick:c,mr:u
|
|
216
|
+
`),"aria-label":n,disabled:l,onClick:c,mr:d&&!u?"16px":"0",mb:d&&u?"16px":"0",children:r.jsxs(e.Box,{display:"flex",overflow:"hidden",style:{justifyContent:"flex-end",alignItems:"center"},whiteSpace:"nowrap",transition:"max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease",maxWidth:t?"150px":"32px",padding:"8px",margin:t?"8px":"0",children:[i&&r.jsx(e.Box,{as:"span",mr:i&&t?"8px":"0px",children:r.jsx(xe,{content:s,disabled:!s,children:i})}),a&&r.jsx(e.Box,{"aria-hidden":!t,overflow:"hidden",maxWidth:t?"150px":"0px",whiteSpace:"nowrap",transition:"max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease",children:r.jsx(xe,{content:s,disabled:!s,children:a})})]})});var p};const ve=({items:t,vertical:o=!1,expanded:i=!1,showExpandedToggle:a,autoCollapse:s=!1,ariaLabel:l,defaultGaps:c,labels:d})=>{const u=w("Toolbar",d),[p,h]=n.useState(i),{containerRef:f,visibleNumberOfItems:x,shouldForceCollapse:g}=function({itemsCount:e,isExpanded:t,isVertical:r,collapsedWidth:o,expandedLabelWidth:i,gap:a=0,showExpandedToggle:s,autoCollapse:l}){const c=n.useRef(null),[d,u]=n.useState(0),[p,h]=n.useState(e),[f,x]=n.useState(!1);return n.useEffect((()=>{if(!c.current)return;const e=new ResizeObserver((e=>{const t=e[0];u(Math.floor(t.contentRect.width))}));return e.observe(c.current),()=>e.disconnect()}),[]),n.useEffect((()=>{if(0===d)return;if(!l)return x(!1),void h(e);const n=d-(s?o+a:0),c=o+a;x(e*(t?i+a:c)-a>n),e>1&&!r&&h(Math.floor(n/c))}),[d,e,t,r,o,i,a,s,l]),{containerRef:c,visibleNumberOfItems:p,shouldForceCollapse:f}}({itemsCount:t.length,isExpanded:p,isVertical:o,collapsedWidth:48,expandedLabelWidth:100,gap:16,showExpandedToggle:a,autoCollapse:s});n.useEffect((()=>{h(i)}),[i]);const v=t.slice(0,x),b=t.slice(x,t.length),m=b.map((e=>({label:e.label,startIcon:e.icon,disabled:e.disabled,onClick:e.onClick,itemAriaLabel:e.ariaLabel}))),y=r.jsx("div",{style:{position:"relative",display:"flex",width:"48px"},children:r.jsx(ge,{isExpanded:p,ariaLabel:p?"Collapse":"Expand",icon:r.jsx(O,{}),showGap:!1,vertical:o})}),[C,j]=n.useState(!1);return r.jsx("div",{role:"toolbar","aria-label":l,css:ue,children:r.jsxs(e.Group,{ref:f,orientation:o?"vertical":"horizontal",attached:!0,display:"grid",borderCollapse:"collapse",gridAutoFlow:o||1===t.length?"row":"column",children:[v.map((e=>{const t=c&&!1!==e.gap||!c&&!0===e.gap;return r.jsx(ge,{isExpanded:p&&!g,ariaLabel:e.ariaLabel,icon:e.icon,label:e.label,tooltip:e.tooltip,disabled:e.disabled,onClick:e.onClick,showGap:t,vertical:o},e.ariaLabel)})),g&&m.length>1&&r.jsxs(e.Menu.Root,{onSelect:({value:e})=>(e=>{const t=b.find((t=>t.label===e));t&&t.onClick&&t.onClick()})(e),onOpenChange:({open:e})=>j(e),open:C,children:[r.jsx(e.Menu.Trigger,{asChild:!0,children:y}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{style:{minWidth:0,padding:0},children:m.map((({label:t,startIcon:n,onClick:i,itemAriaLabel:a},s)=>r.jsx(e.Menu.Item,{css:pe,value:t||l||s.toString(),role:"menuitem",children:r.jsx(ge,{isExpanded:!1,icon:n,ariaLabel:a,label:"",onClick:i,showGap:!1,vertical:o})})))})})})]}),a&&!s&&!g&&r.jsx(ge,{isExpanded:p,ariaLabel:p?u.collapseAriaLabel:u.expandAriaLabel,icon:p?r.jsx(re,{}):r.jsx(oe,{}),label:u.collapseLabel,onClick:()=>h(!p),showGap:!1,vertical:o})]})})},be=(e,t)=>o.css`
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
220
220
|
gap: 4px;
|
|
221
221
|
padding: 2px 12px;
|
|
222
222
|
cursor: pointer;
|
|
223
|
+
font-size: ${t??"16px"};
|
|
223
224
|
color: ${"dark"===e?h("neutral",100):"default"};
|
|
224
225
|
background-color: ${"dark"===e?"default":"transparent"};
|
|
225
226
|
&:hover {
|
|
@@ -245,7 +246,7 @@
|
|
|
245
246
|
display: flex;
|
|
246
247
|
flex-direction: column;
|
|
247
248
|
gap: 8px;
|
|
248
|
-
`,
|
|
249
|
+
`,ye=o.css`
|
|
249
250
|
display: flex;
|
|
250
251
|
justify-content: space-between;
|
|
251
252
|
align-items: center;
|
|
@@ -295,7 +296,7 @@
|
|
|
295
296
|
box-shadow: none;
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
|
-
`,
|
|
299
|
+
`,we=o.css`
|
|
299
300
|
display: flex;
|
|
300
301
|
align-items: flex-start;
|
|
301
302
|
gap: 0;
|
|
@@ -351,7 +352,7 @@
|
|
|
351
352
|
color: ${h("neutral",600)};
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
|
-
`,
|
|
355
|
+
`,Ce=o.css`
|
|
355
356
|
display: flex;
|
|
356
357
|
align-items: center;
|
|
357
358
|
justify-content: space-between;
|
|
@@ -371,26 +372,26 @@
|
|
|
371
372
|
font-weight: 400;
|
|
372
373
|
color: ${h("neutral",700)};
|
|
373
374
|
}
|
|
374
|
-
`,
|
|
375
|
+
`,je=o.css`
|
|
375
376
|
font-size: 14px;
|
|
376
377
|
line-height: 20px;
|
|
377
378
|
font-weight: 700;
|
|
378
379
|
color: ${h("neutral",900)};
|
|
379
|
-
`,
|
|
380
|
+
`,ke=({item:t,isLast:n})=>{return r.jsxs(r.Fragment,{children:[r.jsx(e.Menu.Item,{css:we,value:t.value||t.label||"",disabled:t.disabled,role:"menuitem","aria-label":t.label,children:t.children?t.children:r.jsxs(r.Fragment,{children:[t.startIcon,r.jsxs("div",{css:(i=!!t.startIcon,a=!!t.endIcon,o.css`
|
|
380
381
|
width: 100%;
|
|
381
382
|
margin-left: ${i?"8px":"0"};
|
|
382
383
|
margin-right: ${a?"8px":"0"};
|
|
383
|
-
`),children:[r.jsxs("div",{css:
|
|
384
|
+
`),children:[r.jsxs("div",{css:Ce,children:[r.jsx("p",{className:"ds-menu-item-label",children:t.label}),t.command?r.jsx(e.Menu.ItemCommand,{"aria-label":`Shortcut ${t.command}`,children:t.command}):null]}),t.caption?r.jsx("p",{className:"ds-menu-item-caption",children:t.caption}):null]}),t.endIcon]})}),n?null:r.jsx(e.Menu.Separator,{borderColor:"var(--chakra-colors-neutral-300)"})]});var i,a},$e=({theme:t="light",label:o,fontSize:i,items:a,groups:s,onSelect:l,customTrigger:c})=>{const[d,u]=n.useState(!1);return r.jsxs(e.Menu.Root,{onSelect:({value:e})=>l&&l(e),onOpenChange:({open:e})=>u(e),open:d,children:[r.jsx(e.Menu.Trigger,{css:be(t,i),asChild:!0,children:c||r.jsxs("button",{type:"button",children:[o,r.jsx(L,{marginLeft:"6px",rotate:d?"180":"0",height:"14px",width:"14px"})]})}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsxs(e.Menu.Content,{css:me,role:"menu","aria-label":o||"Menu",children:[a?.map(((t,o)=>{if(t.submenu){const[i,a]=n.useState(!1);return r.jsxs(e.Menu.Root,{positioning:{placement:"right-start",gutter:2},onSelect:({value:e})=>l&&l(e),onOpenChange:({open:e})=>a(e),open:i,children:[r.jsxs(e.Menu.TriggerItem,{css:ye,role:"menuitem","aria-haspopup":"true","aria-expanded":i?"true":"false",children:[t.label,r.jsx(L,{rotate:"270",color:"var(--chakra-colors-neutral-700)"})]}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{css:me,role:"menu","aria-label":`${t.label} submenu`,children:t.submenu.map(((e,n)=>r.jsx(ke,{item:e,isLast:n===(t.submenu?.length||0)-1},e.value)))})})})]},`${t.value}-${o}`)}return r.jsx(ke,{item:t,isLast:o===a.length-1},`${t.value}-${o}`)})),s?.map(((t,o)=>r.jsxs(n.Fragment,{children:[r.jsxs(e.Menu.ItemGroup,{role:"group","aria-labelledby":`group-${o}`,children:[r.jsx(e.Menu.ItemGroupLabel,{id:`group-${o}`,css:je,children:t.title}),t.items?.map((e=>r.jsx(ke,{item:e,isLast:s.length-1===o},e.value)))]}),o!==s.length-1?r.jsx(e.Menu.Separator,{borderColor:"var(--chakra-colors-neutral-300)"}):null]},t.title)))]})})})]})},Se=o.css`
|
|
384
385
|
width: 200px;
|
|
385
386
|
border: 1px solid ${h("neutral",600)};
|
|
386
387
|
border-radius: 4px;
|
|
387
388
|
padding: 8px;
|
|
388
|
-
`,
|
|
389
|
+
`,Ee=e=>o.css`
|
|
389
390
|
&[data-state='open'] {
|
|
390
391
|
background-color: ${"primary"===e?h("primary",600):h("neutral",200)} !important;
|
|
391
392
|
border: 1px solid ${h("primary",800)} !important;
|
|
392
393
|
}
|
|
393
|
-
`,
|
|
394
|
+
`,Le=e=>o.css`
|
|
394
395
|
font-size: ${"small"===e?"14px":"16px"};
|
|
395
396
|
line-height: ${"small"===e?"20px":"24px"};
|
|
396
397
|
color: ${h("neutral",800)};
|
|
@@ -404,7 +405,29 @@
|
|
|
404
405
|
&:focus-visible {
|
|
405
406
|
outline-color: ${h("primary",700)};
|
|
406
407
|
}
|
|
407
|
-
`,
|
|
408
|
+
`,Te=n.forwardRef(((t,n)=>{const{portalled:o=!0,portalRef:i,...a}=t;return r.jsx(e.Portal,{disabled:!o,container:i,children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{css:Se,ref:n,...a})})})})),Oe=o.css`
|
|
409
|
+
position: relative;
|
|
410
|
+
width: 100%;
|
|
411
|
+
padding-left: 19px;
|
|
412
|
+
`,Pe=o.css`
|
|
413
|
+
font-size: 16px;
|
|
414
|
+
line-height: 24px;
|
|
415
|
+
margin-bottom: 4px;
|
|
416
|
+
color: ${h("neutral",900)};
|
|
417
|
+
`,Me=o.css`
|
|
418
|
+
width: 3px;
|
|
419
|
+
height: 100%;
|
|
420
|
+
background-color: ${h("error",900)};
|
|
421
|
+
position: absolute;
|
|
422
|
+
top: 0;
|
|
423
|
+
left: 0;
|
|
424
|
+
`,_e=o.css`
|
|
425
|
+
font-size: 14px;
|
|
426
|
+
line-height: 20px;
|
|
427
|
+
font-weight: 700;
|
|
428
|
+
color: ${h("error",900)};
|
|
429
|
+
margin-bottom: 8px;
|
|
430
|
+
`,Ie=o.css`
|
|
408
431
|
.chakra-checkbox__control {
|
|
409
432
|
width: 20px;
|
|
410
433
|
height: 20px;
|
|
@@ -482,7 +505,7 @@
|
|
|
482
505
|
cursor: not-allowed;
|
|
483
506
|
}
|
|
484
507
|
}
|
|
485
|
-
`,
|
|
508
|
+
`,De=({name:t,value:n,checked:o,defaultChecked:i,disabled:a,indeterminate:s,onCheckedChange:l,children:c,...d})=>r.jsxs(e.Checkbox.Root,{css:Ie,name:t,value:n,checked:s?"indeterminate":o,defaultChecked:i,disabled:a,onCheckedChange:l,"aria-label":void 0,gap:c?"10px":"0",...d,children:[r.jsx(e.Checkbox.HiddenInput,{}),r.jsx(e.Checkbox.Control,{children:s?r.jsx(S,{}):r.jsx($,{})}),r.jsx(e.Checkbox.Label,{children:c})]}),Ae=o.css`
|
|
486
509
|
width: 241px;
|
|
487
510
|
min-height: 70px;
|
|
488
511
|
padding: 12px;
|
|
@@ -522,7 +545,7 @@
|
|
|
522
545
|
color: ${h("neutral",600)};
|
|
523
546
|
cursor: not-allowed;
|
|
524
547
|
}
|
|
525
|
-
`,
|
|
548
|
+
`,Ne=o.css`
|
|
526
549
|
width: 100%;
|
|
527
550
|
padding: 0;
|
|
528
551
|
display: flex;
|
|
@@ -532,25 +555,25 @@
|
|
|
532
555
|
&[data-disabled] {
|
|
533
556
|
background-color: ${h("neutral",100)};
|
|
534
557
|
}
|
|
535
|
-
`,
|
|
558
|
+
`,Ve=o.css`
|
|
536
559
|
svg {
|
|
537
560
|
height: 32px;
|
|
538
561
|
width: 32px;
|
|
539
562
|
}
|
|
540
|
-
`,
|
|
563
|
+
`,ze=(e,t)=>o.css`
|
|
541
564
|
font-size: 16px;
|
|
542
565
|
line-height: 24px;
|
|
543
566
|
font-weight: 400;
|
|
544
567
|
color: ${h("neutral",t?600:900)};
|
|
545
568
|
text-align: ${"centered"===e?"center":"left"};
|
|
546
569
|
display: block;
|
|
547
|
-
`,
|
|
570
|
+
`,Be=(e,t)=>o.css`
|
|
548
571
|
font-size: 14px;
|
|
549
572
|
line-height: 20px;
|
|
550
573
|
font-weight: 400;
|
|
551
574
|
color: ${h("neutral",t?600:700)};
|
|
552
575
|
text-align: ${"centered"===e?"center":"left"};
|
|
553
|
-
`,
|
|
576
|
+
`,He=e=>o.css`
|
|
554
577
|
position: ${"centered"===e?"absolute":"relative"};
|
|
555
578
|
top: 0;
|
|
556
579
|
right: 0;
|
|
@@ -575,7 +598,7 @@
|
|
|
575
598
|
border: 1px solid ${h("neutral",400)};
|
|
576
599
|
cursor: not-allowed;
|
|
577
600
|
}
|
|
578
|
-
`,
|
|
601
|
+
`,Fe=o.css`
|
|
579
602
|
width: 241px;
|
|
580
603
|
min-height: 70px;
|
|
581
604
|
padding: 12px;
|
|
@@ -615,7 +638,7 @@
|
|
|
615
638
|
color: ${h("neutral",600)};
|
|
616
639
|
cursor: not-allowed;
|
|
617
640
|
}
|
|
618
|
-
`,
|
|
641
|
+
`,qe=o.css`
|
|
619
642
|
width: 100%;
|
|
620
643
|
padding: 0;
|
|
621
644
|
display: flex;
|
|
@@ -625,24 +648,24 @@
|
|
|
625
648
|
&[data-disabled] {
|
|
626
649
|
background-color: ${h("neutral",100)};
|
|
627
650
|
}
|
|
628
|
-
`,
|
|
651
|
+
`,Ze=o.css`
|
|
629
652
|
svg {
|
|
630
653
|
height: 32px;
|
|
631
654
|
width: 32px;
|
|
632
655
|
}
|
|
633
|
-
`,
|
|
656
|
+
`,We=(e,t)=>o.css`
|
|
634
657
|
font-size: 16px;
|
|
635
658
|
line-height: 24px;
|
|
636
659
|
font-weight: 400;
|
|
637
660
|
color: ${h("neutral",t?600:900)};
|
|
638
661
|
text-align: ${"centered"===e?"center":"left"};
|
|
639
|
-
`,
|
|
662
|
+
`,Ge=(e,t)=>o.css`
|
|
640
663
|
font-size: 14px;
|
|
641
664
|
line-height: 20px;
|
|
642
665
|
font-weight: 400;
|
|
643
666
|
color: ${h("neutral",t?600:700)};
|
|
644
667
|
text-align: ${"centered"===e?"center":"left"};
|
|
645
|
-
`,
|
|
668
|
+
`,Ue=e=>o.css`
|
|
646
669
|
position: ${"centered"===e?"absolute":"relative"};
|
|
647
670
|
top: 0;
|
|
648
671
|
right: 0;
|
|
@@ -672,7 +695,7 @@
|
|
|
672
695
|
border: 1px solid ${h("neutral",400)};
|
|
673
696
|
cursor: not-allowed;
|
|
674
697
|
}
|
|
675
|
-
`,
|
|
698
|
+
`,Xe=o.css`
|
|
676
699
|
.ds-radio-item-indicator {
|
|
677
700
|
width: 20px;
|
|
678
701
|
height: 20px;
|
|
@@ -738,21 +761,21 @@
|
|
|
738
761
|
}
|
|
739
762
|
}
|
|
740
763
|
}
|
|
741
|
-
`,
|
|
764
|
+
`,Ye=o.css`
|
|
742
765
|
cursor: pointer;
|
|
743
766
|
|
|
744
767
|
&[data-disabled] {
|
|
745
768
|
color: ${h("neutral",500)};
|
|
746
769
|
cursor: not-allowed;
|
|
747
770
|
}
|
|
748
|
-
`,
|
|
771
|
+
`,Ke=o.css`
|
|
749
772
|
margin: 0 !important;
|
|
750
773
|
width: 20px !important;
|
|
751
774
|
height: 20px !important;
|
|
752
|
-
`,
|
|
775
|
+
`,Je=({children:t,value:n,disabled:o,...i})=>r.jsxs(e.RadioGroup.Item,{css:Xe,value:n,disabled:o,...i,children:[r.jsx(e.RadioGroup.ItemHiddenInput,{css:Ke}),r.jsx(e.RadioGroup.ItemIndicator,{className:"ds-radio-item-indicator"}),t?r.jsx(e.RadioGroup.ItemText,{css:Ye,children:t}):null]}),Qe=({children:n,horizontal:r=!1,name:o,value:i="",onChange:a,customGap:s,...l})=>{let c=r?"20px":"8px";return c=s||c,t.jsx(e.RadioGroup.Root,{onValueChange:e=>{a&&a(o,e.value||"")},value:i,...l,children:t.jsx(e.HStack,{gap:c,flexDirection:r?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:n})})},et=o.css`
|
|
753
776
|
height: 60px;
|
|
754
777
|
padding: 40px 12px;
|
|
755
|
-
`,
|
|
778
|
+
`,tt=o.css`
|
|
756
779
|
height: 20px;
|
|
757
780
|
width: 20px;
|
|
758
781
|
background-color: ${h("primary",500)};
|
|
@@ -799,7 +822,7 @@
|
|
|
799
822
|
outline: none;
|
|
800
823
|
cursor: not-allowed;
|
|
801
824
|
}
|
|
802
|
-
`,
|
|
825
|
+
`,nt=o.css`
|
|
803
826
|
font-size: 14px;
|
|
804
827
|
line-height: 20px;
|
|
805
828
|
color: ${h("neutral",800)};
|
|
@@ -813,11 +836,11 @@
|
|
|
813
836
|
align-items: center;
|
|
814
837
|
position: relative;
|
|
815
838
|
top: -30px;
|
|
816
|
-
`,
|
|
839
|
+
`,rt=o.css`
|
|
817
840
|
background-color: ${h("neutral",300)};
|
|
818
841
|
border: none;
|
|
819
842
|
box-shadow: none;
|
|
820
|
-
`,
|
|
843
|
+
`,ot=o.css`
|
|
821
844
|
background-color: ${h("primary",500)};
|
|
822
845
|
border: 1px solid ${h("primary",700)};
|
|
823
846
|
border-radius: 8px;
|
|
@@ -830,7 +853,7 @@
|
|
|
830
853
|
background-color: ${h("neutral",400)};
|
|
831
854
|
border: none;
|
|
832
855
|
}
|
|
833
|
-
`,
|
|
856
|
+
`,it=(e,t)=>o.css`
|
|
834
857
|
font-size: 12px;
|
|
835
858
|
line-height: 16px;
|
|
836
859
|
color: ${h("neutral",800)};
|
|
@@ -865,7 +888,7 @@
|
|
|
865
888
|
}
|
|
866
889
|
|
|
867
890
|
${t?`\n --ty: -6px !important;\n\n .chakra-slider__markerIndicator {\n height: 16px;\n width: 4px;\n background-color: ${h("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${h("neutral",400)} !important;\n }\n }\n `:""};
|
|
868
|
-
`,
|
|
891
|
+
`,at=t=>{const{value:n}=t;return r.jsx(e.For,{each:n,children:(t,n)=>r.jsxs(e.Slider.Thumb,{css:tt,index:n,children:[r.jsx("div",{css:nt,className:"ds-slider-value-preview",children:t}),r.jsx(e.Slider.HiddenInput,{})]},n)})},st=n.forwardRef(((t,n)=>{const{marks:o,isCentred:i}=t;return o?.length?r.jsx(e.Slider.MarkerGroup,{ref:n,children:o.map(((t,n)=>{const o="number"==typeof t?t:t.value,a="number"==typeof t?void 0:t.label,s=i&&1===n;return r.jsxs(e.Slider.Marker,{css:it(i,s),value:o,children:[r.jsx(e.Slider.MarkerIndicator,{}),r.jsx("p",{children:a})]},o)}))}):null})),lt=n.forwardRef(((t,o)=>{const{marks:i,onValueChange:a,isCentred:s,value:l,...c}=t,[d,u]=n.useState(l||[0]);n.useEffect((()=>{u(l||[0])}),[l]);let p=i?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(s){const e=c.min||0,t=c.max||100;p=[e,(e+t)/2,t].map((e=>({value:e,label:void 0})))}const h=!!p?.some((e=>e.label));return r.jsx(e.Slider.Root,{css:et,ref:o,thumbAlignment:"center",onValueChange:e=>{u(e.value),a&&a(e)},origin:s?"center":"start",value:d,...c,children:r.jsxs(e.Slider.Control,{"data-has-mark-label":h||void 0,children:[r.jsx(e.Slider.Track,{css:rt,children:r.jsx(e.Slider.Range,{css:ot})}),r.jsx(at,{value:d}),r.jsx(st,{marks:p,isCentred:s})]})})})),ct=o.css`
|
|
869
892
|
--switch-height: 24px;
|
|
870
893
|
--switch-width: 40px;
|
|
871
894
|
|
|
@@ -964,14 +987,14 @@
|
|
|
964
987
|
cursor: not-allowed;
|
|
965
988
|
}
|
|
966
989
|
}
|
|
967
|
-
`,
|
|
990
|
+
`,dt=({name:t,defaultChecked:n=!1,onChange:o,disabled:i=!1,isLabelOnLeft:a=!1,children:s,...l})=>r.jsx("div",{style:{display:"flex",alignItems:"center"},children:r.jsxs(e.Switch.Root,{css:ct,id:t,name:t,"aria-label":l["aria-label"]||t,defaultChecked:n,onCheckedChange:({checked:e})=>{o&&o(t,e)},disabled:i,...l,children:[a&&null!=s?r.jsx(e.Switch.Label,{children:s}):null,r.jsx(e.Switch.HiddenInput,{style:{width:"42px",height:"26px"}}),r.jsx("div",{className:"chakra-switch__control-container",children:r.jsx(e.Switch.Control,{children:r.jsx(e.Switch.Thumb,{children:r.jsx(e.Switch.ThumbIndicator,{display:"flex",children:r.jsx($,{})})})})}),a||null==s?null:r.jsx(e.Switch.Label,{children:s})]})}),ut=o.css`
|
|
968
991
|
position: relative;
|
|
969
992
|
height: 100%;
|
|
970
993
|
width: 100%;
|
|
971
994
|
&:focus-visible {
|
|
972
995
|
outline-color: ${h("primary",700)};
|
|
973
996
|
}
|
|
974
|
-
`,
|
|
997
|
+
`,pt=o.css`
|
|
975
998
|
font-size: 16px;
|
|
976
999
|
line-height: 24px;
|
|
977
1000
|
color: ${h("neutral",900)};
|
|
@@ -981,12 +1004,12 @@
|
|
|
981
1004
|
color: ${h("error",500)};
|
|
982
1005
|
margin-right: 3px;
|
|
983
1006
|
}
|
|
984
|
-
`,
|
|
1007
|
+
`,ht=o.css`
|
|
985
1008
|
font-size: 14px;
|
|
986
1009
|
line-height: 20px;
|
|
987
1010
|
color: ${h("neutral",700)};
|
|
988
1011
|
text-align: left;
|
|
989
|
-
`,
|
|
1012
|
+
`,ft=(e,t)=>o.css`
|
|
990
1013
|
margin-top: 12px;
|
|
991
1014
|
display: flex;
|
|
992
1015
|
flex-direction: ${e?"row":"column"};
|
|
@@ -998,23 +1021,23 @@
|
|
|
998
1021
|
transition:
|
|
999
1022
|
max-height 250ms ease,
|
|
1000
1023
|
opacity 200ms ease;
|
|
1001
|
-
`,
|
|
1024
|
+
`,xt=o.css`
|
|
1002
1025
|
width: 3px;
|
|
1003
1026
|
height: 100%;
|
|
1004
1027
|
background-color: ${h("error",900)};
|
|
1005
1028
|
position: absolute;
|
|
1006
1029
|
top: 0;
|
|
1007
1030
|
left: 0;
|
|
1008
|
-
`,
|
|
1031
|
+
`,gt=o.css`
|
|
1009
1032
|
font-size: 14px;
|
|
1010
1033
|
line-height: 20px;
|
|
1011
1034
|
font-weight: 700;
|
|
1012
1035
|
color: ${h("error",900)};
|
|
1013
1036
|
text-align: left;
|
|
1014
|
-
`,
|
|
1037
|
+
`,vt=o.css`
|
|
1015
1038
|
color: ${h("neutral",700)};
|
|
1016
1039
|
margin-left: 4px;
|
|
1017
|
-
`,
|
|
1040
|
+
`,bt=o.css`
|
|
1018
1041
|
color: ${h("neutral",700)};
|
|
1019
1042
|
display: flex;
|
|
1020
1043
|
align-items: center;
|
|
@@ -1026,11 +1049,11 @@
|
|
|
1026
1049
|
> span {
|
|
1027
1050
|
margin-left: 6px;
|
|
1028
1051
|
}
|
|
1029
|
-
`,
|
|
1052
|
+
`,mt=o.css`
|
|
1030
1053
|
width: 100%;
|
|
1031
1054
|
max-width: 370px;
|
|
1032
1055
|
position: relative;
|
|
1033
|
-
`,
|
|
1056
|
+
`,yt=e=>o.css`
|
|
1034
1057
|
font-size: 16px;
|
|
1035
1058
|
line-height: 24px;
|
|
1036
1059
|
font-weight: 400;
|
|
@@ -1041,26 +1064,26 @@
|
|
|
1041
1064
|
color: ${e?h("neutral",600):h("error",500)};
|
|
1042
1065
|
margin-right: 3px;
|
|
1043
1066
|
}
|
|
1044
|
-
`,
|
|
1067
|
+
`,wt=e=>o.css`
|
|
1045
1068
|
font-size: 14px;
|
|
1046
1069
|
line-height: 20px;
|
|
1047
1070
|
font-weight: 400;
|
|
1048
1071
|
color: ${h("neutral",e?600:700)};
|
|
1049
1072
|
text-align: left;
|
|
1050
|
-
`,
|
|
1073
|
+
`,Ct=o.css`
|
|
1051
1074
|
width: 3px;
|
|
1052
1075
|
height: 100%;
|
|
1053
1076
|
background-color: ${h("error",900)};
|
|
1054
1077
|
position: absolute;
|
|
1055
1078
|
top: 0;
|
|
1056
1079
|
left: 0;
|
|
1057
|
-
`,
|
|
1080
|
+
`,jt=o.css`
|
|
1058
1081
|
font-size: 14px;
|
|
1059
1082
|
line-height: 20px;
|
|
1060
1083
|
font-weight: 700;
|
|
1061
1084
|
color: ${h("error",900)};
|
|
1062
1085
|
text-align: left;
|
|
1063
|
-
`,
|
|
1086
|
+
`,kt=(e,t)=>o.css`
|
|
1064
1087
|
width: 100%;
|
|
1065
1088
|
margin-top: 8px;
|
|
1066
1089
|
|
|
@@ -1096,7 +1119,7 @@
|
|
|
1096
1119
|
padding: 0 4px;
|
|
1097
1120
|
}
|
|
1098
1121
|
}
|
|
1099
|
-
|
|
1122
|
+
`,$t=(e,t)=>o.css`
|
|
1100
1123
|
position: relative;
|
|
1101
1124
|
height: 100%;
|
|
1102
1125
|
width: 100%;
|
|
@@ -1105,14 +1128,14 @@
|
|
|
1105
1128
|
align-items: flex-start;
|
|
1106
1129
|
gap: ${"small"===e?"12px":"16px"};
|
|
1107
1130
|
margin-bottom: ${t?"0":"20px"};
|
|
1108
|
-
`,
|
|
1131
|
+
`,St=o.css`
|
|
1109
1132
|
width: 3px;
|
|
1110
1133
|
height: 100%;
|
|
1111
1134
|
background-color: ${h("error",900)};
|
|
1112
1135
|
position: absolute;
|
|
1113
1136
|
top: 0;
|
|
1114
1137
|
left: 0;
|
|
1115
|
-
`,
|
|
1138
|
+
`,Et=(e,t)=>o.css`
|
|
1116
1139
|
color: ${h("neutral",t?600:900)};
|
|
1117
1140
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1118
1141
|
font-weight: 400;
|
|
@@ -1134,7 +1157,7 @@
|
|
|
1134
1157
|
margin-top: 4px;
|
|
1135
1158
|
color: ${t?h("neutral",600):h("error",500)};
|
|
1136
1159
|
}
|
|
1137
|
-
`,
|
|
1160
|
+
`,Lt=(e,t)=>o.css`
|
|
1138
1161
|
color: ${h("neutral",t?600:700)};
|
|
1139
1162
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1140
1163
|
font-weight: 400;
|
|
@@ -1143,13 +1166,13 @@
|
|
|
1143
1166
|
&:first-letter {
|
|
1144
1167
|
text-transform: uppercase;
|
|
1145
1168
|
}
|
|
1146
|
-
|
|
1169
|
+
`,Rt=e=>o.css`
|
|
1147
1170
|
color: ${h("error",900)};
|
|
1148
1171
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1149
1172
|
font-weight: 700;
|
|
1150
1173
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1151
1174
|
margin-top: 2px;
|
|
1152
|
-
`,
|
|
1175
|
+
`,Tt=(e,t,n)=>o.css`
|
|
1153
1176
|
height: ${"small"===e?"28px":"40px"};
|
|
1154
1177
|
width: 100%;
|
|
1155
1178
|
border-radius: 4px;
|
|
@@ -1187,7 +1210,7 @@
|
|
|
1187
1210
|
}
|
|
1188
1211
|
|
|
1189
1212
|
${t||n?`\n border: 1px solid ${h("neutral",700)};\n `:""}
|
|
1190
|
-
`,
|
|
1213
|
+
`,Ot=({label:t,caption:o,placeholder:i,errorMessage:a,required:s,disabled:l,size:c="default",noMarginBottom:d=!1,defaultValue:u="",onChange:p,labels:h,...f})=>{const x=w("TextInput",h),[g,v]=n.useState(u);return r.jsxs("div",{css:$t(c,d),className:"ds-text-input-container",children:[a?r.jsx("div",{css:St}):null,r.jsxs(e.Field.Root,{required:s,invalid:!!a,gap:"0",style:{marginLeft:a?"19px":"0px"},children:[t?r.jsxs(e.Field.Label,{css:Et(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":x.requiredSymbolLabel}),t,s?"":r.jsx("span",{children:x.optionalSuffix})]}):null,o?r.jsx(e.Field.HelperText,{css:Lt(c,l),"aria-label":o,children:o}):null,a?r.jsx(e.Field.ErrorText,{css:Rt(c),"aria-label":a,children:a}):null,r.jsx(e.Input,{placeholder:i,disabled:l,css:Tt(c,g,u),onChange:e=>{v(e.target.value),p&&p(e)},value:g,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...f})]})]})},Pt=l.forwardRef(((n,r)=>{const{children:o,...i}=n;return t.jsxs(e.Select.Control,{...i,children:[t.jsx(e.Select.Trigger,{ref:r,children:o}),t.jsx(e.Select.IndicatorGroup,{children:t.jsx(e.Select.Indicator,{children:t.jsx(L,{})})})]})})),Mt=l.forwardRef(((n,r)=>{const{...o}=n;return t.jsx(e.Portal,{children:t.jsx(e.Select.Positioner,{children:t.jsx(e.Select.Content,{...o,ref:r})})})})),_t=l.forwardRef(((n,r)=>{const{item:o,children:i,...a}=n;return t.jsx(e.Select.Item,{item:o,...a,ref:r,children:i},o.value)})),It=l.forwardRef(((n,r)=>{const{children:o,...i}=n;return t.jsx(e.Select.ValueText,{...i,ref:r,children:t.jsx(e.Select.Context,{children:e=>{const t=e.selectedItems;return 0===t.length?n.placeholder:o?o(t):1===t.length?e.collection.stringifyItem(t[0]):`${t.length} selected`}})})})),Dt=l.forwardRef(((n,r)=>t.jsx(e.Select.Root,{...n,ref:r,positioning:{sameWidth:!0,...n.positioning},children:n.asChild?n.children:t.jsxs(t.Fragment,{children:[t.jsx(e.Select.HiddenSelect,{}),n.children]})})));l.forwardRef(((n,r)=>{const{children:o,label:i,...a}=n;return t.jsxs(e.Select.ItemGroup,{...a,ref:r,children:[t.jsx(e.Select.ItemGroupLabel,{children:i}),o]})}));const At=e.Select.Label;e.Select.ItemText;const Nt=e=>o.css`
|
|
1191
1214
|
position: relative;
|
|
1192
1215
|
height: 100%;
|
|
1193
1216
|
width: 100%;
|
|
@@ -1199,14 +1222,14 @@
|
|
|
1199
1222
|
&:focus-visible {
|
|
1200
1223
|
outline-color: ${h("primary",700)};
|
|
1201
1224
|
}
|
|
1202
|
-
`,
|
|
1225
|
+
`,Vt=o.css`
|
|
1203
1226
|
width: 3px;
|
|
1204
1227
|
height: 100%;
|
|
1205
1228
|
background-color: ${h("error",900)};
|
|
1206
1229
|
position: absolute;
|
|
1207
1230
|
top: 0;
|
|
1208
1231
|
left: 0;
|
|
1209
|
-
`,
|
|
1232
|
+
`,zt=e=>o.css`
|
|
1210
1233
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1211
1234
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1212
1235
|
font-weight: 400;
|
|
@@ -1225,7 +1248,7 @@
|
|
|
1225
1248
|
color: ${h("neutral",600)};
|
|
1226
1249
|
}
|
|
1227
1250
|
}
|
|
1228
|
-
`,
|
|
1251
|
+
`,Bt=(e,t)=>o.css`
|
|
1229
1252
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1230
1253
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1231
1254
|
font-weight: 400;
|
|
@@ -1233,7 +1256,7 @@
|
|
|
1233
1256
|
text-align: left;
|
|
1234
1257
|
|
|
1235
1258
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1236
|
-
`,
|
|
1259
|
+
`,Ht=(e,t,n,r)=>o.css`
|
|
1237
1260
|
.chakra-select__trigger {
|
|
1238
1261
|
min-height: ${"small"===e?"32px":"40px"};
|
|
1239
1262
|
border-radius: 4px;
|
|
@@ -1288,40 +1311,40 @@
|
|
|
1288
1311
|
}
|
|
1289
1312
|
}
|
|
1290
1313
|
}
|
|
1291
|
-
`,
|
|
1314
|
+
`,Ft=o.css`
|
|
1292
1315
|
margin-top: -8px;
|
|
1293
1316
|
border-radius: 4px;
|
|
1294
1317
|
border: 1px solid ${h("neutral",400)};
|
|
1295
1318
|
border-top-left-radius: 0px;
|
|
1296
1319
|
border-top-right-radius: 0px;
|
|
1297
1320
|
border-top: none;
|
|
1298
|
-
`,
|
|
1321
|
+
`,qt=o.css`
|
|
1299
1322
|
align-items: flex-start;
|
|
1300
1323
|
&[data-highlighted] {
|
|
1301
1324
|
background-color: ${h("neutral",200)};
|
|
1302
1325
|
cursor: pointer;
|
|
1303
1326
|
}
|
|
1304
|
-
`,
|
|
1327
|
+
`,Zt=(e,t)=>o.css`
|
|
1305
1328
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1306
1329
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1307
1330
|
color: ${h("neutral",800)};
|
|
1308
1331
|
text-align: left;
|
|
1309
1332
|
|
|
1310
1333
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1311
|
-
`,
|
|
1334
|
+
`,Wt=(e,t)=>o.css`
|
|
1312
1335
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1313
1336
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1314
1337
|
color: ${h("neutral",700)};
|
|
1315
1338
|
text-align: left;
|
|
1316
1339
|
|
|
1317
1340
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1318
|
-
`,
|
|
1341
|
+
`,Gt=e=>o.css`
|
|
1319
1342
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1320
1343
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1321
1344
|
font-weight: 700;
|
|
1322
1345
|
color: ${h("error",900)};
|
|
1323
1346
|
text-align: left;
|
|
1324
|
-
`,
|
|
1347
|
+
`,Ut=e=>o.css`
|
|
1325
1348
|
max-width: 100%;
|
|
1326
1349
|
display: flex;
|
|
1327
1350
|
justify-content: center;
|
|
@@ -1393,28 +1416,28 @@
|
|
|
1393
1416
|
background-color: ${h("neutral",300)};
|
|
1394
1417
|
color: ${h("neutral",600)};
|
|
1395
1418
|
}
|
|
1396
|
-
`,
|
|
1419
|
+
`,Xt=o.css`
|
|
1397
1420
|
background-color: ${h("neutral",100)};
|
|
1398
1421
|
border: 1px solid ${h("neutral",300)};
|
|
1399
|
-
`,
|
|
1422
|
+
`,Yt=o.css`
|
|
1400
1423
|
background-color: ${h("neutral",200)};
|
|
1401
1424
|
border: 1px solid ${h("neutral",400)};
|
|
1402
|
-
`,
|
|
1425
|
+
`,Kt=o.css`
|
|
1403
1426
|
background-color: ${h("success",100)};
|
|
1404
1427
|
border: 1px solid ${h("success",300)};
|
|
1405
1428
|
color: ${h("success",900)};
|
|
1406
|
-
`,
|
|
1429
|
+
`,Jt=o.css`
|
|
1407
1430
|
background-color: ${h("warning",100)};
|
|
1408
1431
|
border: 1px solid ${h("warning",300)};
|
|
1409
1432
|
color: ${h("warning",900)};
|
|
1410
|
-
`,
|
|
1433
|
+
`,Qt=o.css`
|
|
1411
1434
|
background-color: ${h("error",100)};
|
|
1412
1435
|
border: 1px solid ${h("error",300)};
|
|
1413
1436
|
color: ${h("error",900)};
|
|
1414
|
-
`,
|
|
1437
|
+
`,en=({label:t,size:n="default",variant:o,disabled:i,icon:a,onClose:s,closable:l,...c})=>{let d=Xt;return"info-grey"===o?d=Yt:"success"===o?d=Kt:"warning"===o?d=Jt:"error"===o&&(d=Qt),r.jsxs(e.Tag.Root,{css:[Ut(n),d],"data-disabled":i,...c,children:[a?r.jsx(e.Tag.StartElement,{"aria-label":`${t} tag icon`,children:a}):null,r.jsx(e.Tag.Label,{"aria-label":t,children:t}),l&&!i&&"small"!==n?r.jsx(e.Tag.EndElement,{children:r.jsx("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:s,onKeyDown:e=>{!s||"Enter"!==e.key&&" "!==e.key||s()},"aria-label":`${t} tag close button`,children:r.jsx(T,{})})}):null]})},tn=({placeholder:t,size:n,disabled:o})=>r.jsx(It,{placeholder:t,children:t=>{const{label:i,caption:a}=t[0];return r.jsxs(e.HStack,{flexDirection:"column",alignItems:"flex-start",children:[r.jsx("p",{css:Zt(n,o),children:i}),a?r.jsx("p",{css:Wt(n,o),children:a}):null]})}}),nn=({placeholder:t,removeItem:n,disabled:o})=>r.jsx(It,{placeholder:t,children:t=>t.map((t=>r.jsx(e.HStack,{flexDirection:"row",alignItems:"flex-start",children:r.jsx(en,{label:t.label,variant:"info-grey",disabled:o,onClose:()=>n(t.value),closable:!0},t.value)},t.value)))}),rn=({label:t,caption:o,placeholder:i="",items:a,size:s="default",required:l,disabled:c,onChange:d,errorMessage:u,multiple:p,labels:h,...f})=>{const x=w("Select",h),[g,v]=n.useState(f.defaultValue||[]),b=(t=>e.createListCollection({items:t}))(a),m=e=>{v(e),d&&d(e)},y=`${t||x.defaultAriaLabel}${l?x.requiredSuffix:""}${o?` ${o}.`:""}${c?x.disabledSuffix:""}`.trim();return r.jsxs(e.Group,{css:Nt(s),style:f.style,className:"ds-select-input-container",tabIndex:c?0:void 0,"aria-disabled":c,"aria-label":c?y:void 0,children:[u?r.jsx("div",{css:Vt}):null,r.jsxs(Dt,{css:{},collection:b,disabled:c,required:l,multiple:p,"aria-label":f["aria-label"]||t,value:g,onValueChange:e=>m(e.value),style:{marginLeft:u?"19px":"0px"},...f,children:[t?r.jsxs(At,{css:zt(s),children:[l?r.jsx("span",{children:"*"}):null,t]}):null,o?r.jsx("p",{css:Bt(s,c),children:o}):null,u&&r.jsx("p",{css:Gt(s),children:u}),r.jsx(Pt,{css:Ht(s,g.length>0,!!u,p),children:p?r.jsx(nn,{placeholder:i,disabled:c,removeItem:e=>{const t=g.filter((t=>t!==e));m(t)}}):r.jsx(tn,{placeholder:i,size:s,disabled:c})}),r.jsx(Mt,{css:Ft,children:b.items.map((t=>r.jsxs(_t,{css:qt,item:t,children:[r.jsxs(e.Box,{children:[r.jsx("p",{css:Zt(s),children:t.label}),r.jsx("p",{css:Wt(s),children:t.caption})]}),p?r.jsx(De,{checked:g.some((e=>e===t.value))}):null]},t.value)))})]})]})},on=o.css`
|
|
1415
1438
|
width: 100%;
|
|
1416
1439
|
max-width: 486px;
|
|
1417
|
-
`,
|
|
1440
|
+
`,an=o.css`
|
|
1418
1441
|
font-size: 16px;
|
|
1419
1442
|
line-height: 24px;
|
|
1420
1443
|
font-weight: 400;
|
|
@@ -1425,13 +1448,13 @@
|
|
|
1425
1448
|
color: ${h("error",500)};
|
|
1426
1449
|
margin-right: 3px;
|
|
1427
1450
|
}
|
|
1428
|
-
`,
|
|
1451
|
+
`,sn=o.css`
|
|
1429
1452
|
font-size: 14px;
|
|
1430
1453
|
line-height: 20px;
|
|
1431
1454
|
font-weight: 400;
|
|
1432
1455
|
color: ${h("neutral",700)};
|
|
1433
1456
|
text-align: left;
|
|
1434
|
-
`,
|
|
1457
|
+
`,ln=o.css`
|
|
1435
1458
|
display: flex;
|
|
1436
1459
|
align-items: center;
|
|
1437
1460
|
justify-content: space-between;
|
|
@@ -1449,9 +1472,9 @@
|
|
|
1449
1472
|
button {
|
|
1450
1473
|
width: 98px;
|
|
1451
1474
|
}
|
|
1452
|
-
`,
|
|
1475
|
+
`,cn=o.css`
|
|
1453
1476
|
margin-top: 12px;
|
|
1454
|
-
`,
|
|
1477
|
+
`,dn=e=>o.css`
|
|
1455
1478
|
height: 8px;
|
|
1456
1479
|
width: 100%;
|
|
1457
1480
|
background-color: ${h("neutral",300)};
|
|
@@ -1465,7 +1488,7 @@
|
|
|
1465
1488
|
background-color: ${h("medium"===e?"warning":"strong"===e||"very-strong"===e?"success":"error",900)};
|
|
1466
1489
|
border-radius: 8px;
|
|
1467
1490
|
}
|
|
1468
|
-
`,
|
|
1491
|
+
`,un=e=>o.css`
|
|
1469
1492
|
display: flex;
|
|
1470
1493
|
align-items: center;
|
|
1471
1494
|
gap: 4px;
|
|
@@ -1482,13 +1505,13 @@
|
|
|
1482
1505
|
justify-content: center;
|
|
1483
1506
|
align-items: center;
|
|
1484
1507
|
}
|
|
1485
|
-
`,
|
|
1508
|
+
`,pn=o.css`
|
|
1486
1509
|
position: relative;
|
|
1487
1510
|
height: 100%;
|
|
1488
1511
|
&:focus-visible {
|
|
1489
1512
|
outline-color: ${h("primary",700)};
|
|
1490
1513
|
}
|
|
1491
|
-
`,
|
|
1514
|
+
`,hn=o.css`
|
|
1492
1515
|
font-size: 16px;
|
|
1493
1516
|
line-height: 24px;
|
|
1494
1517
|
color: ${h("neutral",900)};
|
|
@@ -1498,27 +1521,27 @@
|
|
|
1498
1521
|
color: ${h("error",500)};
|
|
1499
1522
|
margin-right: 3px;
|
|
1500
1523
|
}
|
|
1501
|
-
`,
|
|
1524
|
+
`,fn=o.css`
|
|
1502
1525
|
font-size: 14px;
|
|
1503
1526
|
line-height: 20px;
|
|
1504
1527
|
color: ${h("neutral",700)};
|
|
1505
1528
|
text-align: left;
|
|
1506
|
-
`,
|
|
1529
|
+
`,xn=o.css`
|
|
1507
1530
|
margin-top: 12px;
|
|
1508
|
-
`,
|
|
1531
|
+
`,gn=o.css`
|
|
1509
1532
|
width: 3px;
|
|
1510
1533
|
height: 100%;
|
|
1511
1534
|
background-color: ${h("error",900)};
|
|
1512
1535
|
position: absolute;
|
|
1513
1536
|
top: 0;
|
|
1514
1537
|
left: 0;
|
|
1515
|
-
`,
|
|
1538
|
+
`,vn=o.css`
|
|
1516
1539
|
font-size: 14px;
|
|
1517
1540
|
line-height: 20px;
|
|
1518
1541
|
font-weight: 700;
|
|
1519
1542
|
color: ${h("error",900)};
|
|
1520
1543
|
text-align: left;
|
|
1521
|
-
`,
|
|
1544
|
+
`,bn=o.css`
|
|
1522
1545
|
height: 100%;
|
|
1523
1546
|
min-height: 48px;
|
|
1524
1547
|
width: 100%;
|
|
@@ -1527,7 +1550,7 @@
|
|
|
1527
1550
|
border-radius: 4px;
|
|
1528
1551
|
background-color: ${h("neutral",100)};
|
|
1529
1552
|
padding: 12px;
|
|
1530
|
-
`,
|
|
1553
|
+
`,mn=e=>o.css`
|
|
1531
1554
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1532
1555
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1533
1556
|
font-weight: 400;
|
|
@@ -1538,13 +1561,13 @@
|
|
|
1538
1561
|
color: ${h("error",500)};
|
|
1539
1562
|
margin-right: 3px;
|
|
1540
1563
|
}
|
|
1541
|
-
`,
|
|
1564
|
+
`,yn=e=>o.css`
|
|
1542
1565
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1543
1566
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1544
1567
|
font-weight: 400;
|
|
1545
1568
|
color: ${h("neutral",700)};
|
|
1546
1569
|
text-align: left;
|
|
1547
|
-
`,
|
|
1570
|
+
`,wn=o.css`
|
|
1548
1571
|
display: flex;
|
|
1549
1572
|
align-items: center;
|
|
1550
1573
|
gap: 12px;
|
|
@@ -1565,7 +1588,7 @@
|
|
|
1565
1588
|
margin-top: 18px;
|
|
1566
1589
|
width: 100%;
|
|
1567
1590
|
}
|
|
1568
|
-
`,
|
|
1591
|
+
`,Cn=e=>o.css`
|
|
1569
1592
|
position: relative;
|
|
1570
1593
|
height: 100%;
|
|
1571
1594
|
width: 100%;
|
|
@@ -1574,14 +1597,14 @@
|
|
|
1574
1597
|
align-items: flex-start;
|
|
1575
1598
|
gap: ${"small"===e?"12px":"16px"};
|
|
1576
1599
|
margin-bottom: 16px;
|
|
1577
|
-
`,
|
|
1600
|
+
`,jn=o.css`
|
|
1578
1601
|
width: 3px;
|
|
1579
1602
|
height: 100%;
|
|
1580
1603
|
background-color: ${h("error",900)};
|
|
1581
1604
|
position: absolute;
|
|
1582
1605
|
top: 0;
|
|
1583
1606
|
left: 0;
|
|
1584
|
-
`,
|
|
1607
|
+
`,kn=(e,t)=>o.css`
|
|
1585
1608
|
color: ${h("neutral",t?600:900)};
|
|
1586
1609
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1587
1610
|
font-weight: 400;
|
|
@@ -1595,24 +1618,24 @@
|
|
|
1595
1618
|
.chakra-field__requiredIndicator {
|
|
1596
1619
|
color: ${t?h("neutral",600):h("error",500)};
|
|
1597
1620
|
}
|
|
1598
|
-
|
|
1621
|
+
`,$n=(e,t)=>o.css`
|
|
1599
1622
|
color: ${h("neutral",t?600:700)};
|
|
1600
1623
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1601
1624
|
font-weight: 400;
|
|
1602
1625
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1603
|
-
`,
|
|
1626
|
+
`,Sn=o.css`
|
|
1604
1627
|
color: ${h("neutral",600)};
|
|
1605
1628
|
font-size: 12px;
|
|
1606
1629
|
font-weight: 400;
|
|
1607
1630
|
line-height: 16px;
|
|
1608
1631
|
margin-top: 8px;
|
|
1609
|
-
`,
|
|
1632
|
+
`,En=o.css`
|
|
1610
1633
|
color: ${h("error",900)};
|
|
1611
1634
|
font-size: 14px;
|
|
1612
1635
|
font-weight: 700;
|
|
1613
1636
|
line-height: 20px;
|
|
1614
1637
|
margin-top: 2px;
|
|
1615
|
-
`,
|
|
1638
|
+
`,Ln=(e,t,n)=>o.css`
|
|
1616
1639
|
height: 104px;
|
|
1617
1640
|
width: 100%;
|
|
1618
1641
|
border-radius: 4px;
|
|
@@ -1649,7 +1672,7 @@
|
|
|
1649
1672
|
}
|
|
1650
1673
|
|
|
1651
1674
|
${t||n?`\n border: 1px solid ${h("neutral",700)};\n `:""}
|
|
1652
|
-
|
|
1675
|
+
`,Rn=(e,t)=>o.css`
|
|
1653
1676
|
height: ${e};
|
|
1654
1677
|
width: ${t};
|
|
1655
1678
|
border: 1px solid ${h("neutral",300)};
|
|
@@ -1663,7 +1686,7 @@
|
|
|
1663
1686
|
height: 100%;
|
|
1664
1687
|
overflow-y: scroll;
|
|
1665
1688
|
}
|
|
1666
|
-
`,
|
|
1689
|
+
`,Tn=o.css`
|
|
1667
1690
|
padding: 16px 12px;
|
|
1668
1691
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1669
1692
|
|
|
@@ -1686,16 +1709,16 @@
|
|
|
1686
1709
|
color: ${h("neutral",700)};
|
|
1687
1710
|
text-align: left;
|
|
1688
1711
|
}
|
|
1689
|
-
`,
|
|
1712
|
+
`,On=o.css``,Pn=o.css`
|
|
1690
1713
|
display: flex;
|
|
1691
1714
|
flex-direction: column;
|
|
1692
1715
|
gap: 12px;
|
|
1693
1716
|
padding: 12px;
|
|
1694
1717
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1695
|
-
`,
|
|
1718
|
+
`,Mn=o.css`
|
|
1696
1719
|
padding-top: 12px;
|
|
1697
1720
|
padding-left: 8px;
|
|
1698
|
-
`,
|
|
1721
|
+
`,_n=o.css``,In=e=>o.css`
|
|
1699
1722
|
display: flex;
|
|
1700
1723
|
gap: 12px;
|
|
1701
1724
|
padding: 12px 8px;
|
|
@@ -1719,7 +1742,7 @@
|
|
|
1719
1742
|
background-color: ${h("primary",100)};
|
|
1720
1743
|
width: 99.8%;
|
|
1721
1744
|
}
|
|
1722
|
-
`,
|
|
1745
|
+
`,Dn=o.css`
|
|
1723
1746
|
width: 100%;
|
|
1724
1747
|
max-width: calc(100% - 44px);
|
|
1725
1748
|
|
|
@@ -1750,7 +1773,7 @@
|
|
|
1750
1773
|
.ds-base-map-children {
|
|
1751
1774
|
margin-top: 10px;
|
|
1752
1775
|
}
|
|
1753
|
-
`,
|
|
1776
|
+
`,An=(e,t,n,r,i,a="icon")=>{let s="16px",l=`4px solid ${h("neutral",100)}`;if("cluster"===a){const e=28,t=96,n=.5;if(l=`4px solid ${h("neutral",100)}`,void 0!==i&&i>1){const r=e+(i-1)*n;s=`${Math.min(r,t)}px`}else s=`${e}px`}else"simple-pin"===a?(l=`4px solid ${h("error",500)}`,s="24px"):n&&(s="28px",l=`2px solid ${h("neutral",100)}`);return o.css`
|
|
1754
1777
|
text-overflow: ellipsis;
|
|
1755
1778
|
height: ${s};
|
|
1756
1779
|
width: ${s};
|
|
@@ -1790,14 +1813,14 @@
|
|
|
1790
1813
|
height: 14px;
|
|
1791
1814
|
width: 14px;
|
|
1792
1815
|
}
|
|
1793
|
-
`},
|
|
1816
|
+
`},Nn=n.forwardRef((({ariaLabel:e,icon:t,backgroundColor:n,onClick:i,showFocusState:a,count:s,mode:l,variant:c="icon"},d)=>{const u=s?(p=s)>=1e8?"99M+":p>=1e6?`${(p/1e6).toFixed(0)}M`:p>=1e5?`${(p/1e3).toFixed(0)}K`:p.toString():void 0;var p;return r.jsx("div",{css:a?o.css`
|
|
1794
1817
|
outline: 2px solid ${h("primary",700)};
|
|
1795
1818
|
outline-offset: 2px;
|
|
1796
1819
|
border-radius: 50%;
|
|
1797
1820
|
box-shadow:
|
|
1798
1821
|
0 0 0 2px ${h("neutral",100)},
|
|
1799
1822
|
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1800
|
-
`:"",children:r.jsxs("button",{type:"button",css:Pn(n,!!i,!!t,l,s,c),"aria-label":e||(s?`Cluster of ${s} locations`:"simple-pin"===c?"Map pin location":"Map point"),ref:u,onClick:i,children:["cluster"===c&&d,"icon"===c&&t]})})})),Dn={Paper:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(_n,{ariaLabel:e||"paper icon",icon:t.jsx(G,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:n,ref:r,showFocusState:o}),Drop:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(_n,{ariaLabel:e||"drop icon",icon:t.jsx(U,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:n,ref:r,showFocusState:o}),Plant:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(_n,{ariaLabel:e||"plant icon",icon:t.jsx(X,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:n,ref:r,showFocusState:o}),Point:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(_n,{ariaLabel:e||"point icon",backgroundColor:h("primary",500),onClick:n,ref:r,showFocusState:o})};function In(){return"undefined"!=typeof window}function Nn(e){return zn(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function An(e){var t;return null==(t=(zn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zn(e){return!!In()&&(e instanceof Node||e instanceof Vn(e).Node)}function Bn(e){return!!In()&&(e instanceof Element||e instanceof Vn(e).Element)}function Hn(e){return!!In()&&(e instanceof HTMLElement||e instanceof Vn(e).HTMLElement)}function Fn(e){return!(!In()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot)}const Zn=new Set(["inline","contents"]);function qn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zn.has(o)}const Wn=new Set(["table","td","th"]);function Gn(e){return Wn.has(Nn(e))}const Un=[":popover-open",":modal"];function Xn(e){return Un.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Yn=["transform","translate","scale","rotate","perspective"],Kn=["transform","translate","scale","rotate","perspective","filter"],Jn=["paint","layout","strict","content"];function Qn(e){const t=er(),n=Bn(e)?rr(e):e;return Yn.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Kn.some((e=>(n.willChange||"").includes(e)))||Jn.some((e=>(n.contain||"").includes(e)))}function er(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const tr=new Set(["html","body","#document"]);function nr(e){return tr.has(Nn(e))}function rr(e){return Vn(e).getComputedStyle(e)}function or(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ir(e){if("html"===Nn(e))return e;const t=e.assignedSlot||e.parentNode||Fn(e)&&e.host||An(e);return Fn(t)?t.host:t}function ar(e){const t=ir(e);return nr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hn(t)&&qn(t)?t:ar(t)}function sr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ar(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Vn(o);if(i){const e=lr(a);return t.concat(a,a.visualViewport||[],qn(o)?o:[],e&&n?sr(e):[])}return t.concat(o,sr(o,[],n))}function lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const cr=Math.min,ur=Math.max,dr=Math.round,pr=Math.floor,hr=e=>({x:e,y:e}),fr={left:"right",right:"left",bottom:"top",top:"bottom"},xr={start:"end",end:"start"};function gr(e,t,n){return ur(e,cr(t,n))}function vr(e,t){return"function"==typeof e?e(t):e}function mr(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function yr(e){return"x"===e?"y":"x"}function wr(e){return"y"===e?"height":"width"}const Cr=new Set(["top","bottom"]);function jr(e){return Cr.has(mr(e))?"y":"x"}function kr(e){return yr(jr(e))}function $r(e){return e.replace(/start|end/g,(e=>xr[e]))}const Sr=["left","right"],Er=["right","left"],Rr=["top","bottom"],Lr=["bottom","top"];function Or(e,t,n,r){const o=br(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Er:Sr:t?Sr:Er;case"left":case"right":return t?Rr:Lr;default:return[]}}(mr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map($r)))),i}function Tr(e){return e.replace(/left|right|bottom|top/g,(e=>fr[e]))}function Mr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Pr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const _r="data-floating-ui-focusable";function Dr(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Fn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ir(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Nr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Vr(e){return(null==e?void 0:e.ownerDocument)||document}function Ar(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Ar(e,t.id,n)]))}var zr="undefined"!=typeof document?n.useLayoutEffect:function(){};const Br={...l}.useInsertionEffect||(e=>e());function Hr(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Br((()=>{t.current=e})),l.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Fr(e,t,n){let{reference:r,floating:o}=e;const i=jr(t),a=kr(t),s=wr(a),l=mr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(br(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Zr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=vr(t,e),f=Mr(h),x=s[p?"floating"===d?"reference":"floating":d],g=Pr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(x)))||n?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},y=Pr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:m,strategy:l}):v);return{top:(g.top-y.top+f.top)/b.y,bottom:(y.bottom-g.bottom+f.bottom)/b.y,left:(g.left-y.left+f.left)/b.x,right:(y.right-g.right+f.right)/b.x}}const qr=new Set(["left","top"]);function Wr(e){const t=rr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Hn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=dr(n)!==i||dr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Gr(e){return Bn(e)?e:e.contextElement}function Ur(e){const t=Gr(e);if(!Hn(t))return hr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wr(t);let a=(i?dr(n.width):n.width)/r,s=(i?dr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Xr=hr(0);function Yr(e){const t=Vn(e);return er()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xr}function Kr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Gr(e);let a=hr(1);t&&(r?Bn(r)&&(a=Ur(r)):a=Ur(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Vn(e))&&t}(i,n,r)?Yr(i):hr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Vn(i),t=r&&Bn(r)?Vn(r):r;let n=e,o=lr(n);for(;o&&r&&t!==n;){const e=Ur(o),t=o.getBoundingClientRect(),r=rr(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Vn(o),o=lr(n)}}return Pr({width:u,height:d,x:l,y:c})}function Jr(e,t){const n=or(e).scrollLeft;return t?t.left+n:Kr(An(e)).left+n}function Qr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jr(e,n),y:n.top+t.scrollTop}}const eo=new Set(["absolute","fixed"]);function to(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Vn(e),r=An(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=er();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Jr(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=An(e),n=or(e),r=e.ownerDocument.body,o=ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jr(e);const s=-n.scrollTop;return"rtl"===rr(r).direction&&(a+=ur(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(An(e));else if(Bn(t))r=function(e,t){const n=Kr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hn(e)?Ur(e):hr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Yr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Pr(r)}function no(e,t){const n=ir(e);return!(n===t||!Bn(n)||nr(n))&&("fixed"===rr(n).position||no(n,t))}function ro(e,t,n){const r=Hn(t),o=An(t),i="fixed"===n,a=Kr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=hr(0);function c(){l.x=Jr(o)}if(r||!r&&!i)if(("body"!==Nn(t)||qn(o))&&(s=or(t)),r){const e=Kr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?hr(0):Qr(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function oo(e){return"static"===rr(e).position}function io(e,t){if(!Hn(e)||"fixed"===rr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function ao(e,t){const n=Vn(e);if(Xn(e))return n;if(!Hn(e)){let t=ir(e);for(;t&&!nr(t);){if(Bn(t)&&!oo(t))return t;t=ir(t)}return n}let r=io(e,t);for(;r&&Gn(r)&&oo(r);)r=io(r,t);return r&&nr(r)&&oo(r)&&!Qn(r)?n:r||function(e){let t=ir(e);for(;Hn(t)&&!nr(t);){if(Qn(t))return t;if(Xn(t))return null;t=ir(t)}return null}(e)||n}const so={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=An(r),s=!!t&&Xn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=hr(1);const u=hr(0),d=Hn(r);if((d||!d&&!i)&&(("body"!==Nn(r)||qn(a))&&(l=or(r)),Hn(r))){const e=Kr(r);c=Ur(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?hr(0):Qr(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:An,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Xn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=sr(e,[],!1).filter((e=>Bn(e)&&"body"!==Nn(e))),o=null;const i="fixed"===rr(e).position;let a=i?ir(e):e;for(;Bn(a)&&!nr(a);){const t=rr(a),n=Qn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&eo.has(o.position)||qn(a)&&!n&&no(e,a))?r=r.filter((e=>e!==a)):o=t,a=ir(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=to(t,n,o);return e.top=ur(r.top,e.top),e.right=cr(r.right,e.right),e.bottom=cr(r.bottom,e.bottom),e.left=ur(r.left,e.left),e}),to(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ao,getElementRects:async function(e){const t=this.getOffsetParent||ao,n=this.getDimensions,r=await n(e.floating);return{reference:ro(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Wr(e);return{width:t,height:n}},getScale:Ur,isElement:Bn,isRTL:function(e){return"rtl"===rr(e).direction}};function lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function co(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Gr(e),u=o||i?[...c?sr(c):[],...sr(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=An(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-pr(d)+"px "+-pr(o.clientWidth-(u+p))+"px "+-pr(o.clientHeight-(d+h))+"px "+-pr(u)+"px",threshold:ur(0,cr(1,l))||1};let x=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!x)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||lo(c,e.getBoundingClientRect())||a(),x=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let x=l?Kr(e):null;return l&&function t(){const r=Kr(e);x&&!lo(x,r)&&n();x=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const uo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mr(n),s=br(n),l="y"===jr(n),c=qr.has(a)?-1:1,u=i&&l?-1:1,d=vr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},po=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=vr(e,t),c={x:n,y:r},u=await Zr(t,l),d=jr(mr(o)),p=yr(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=gr(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=gr(f+u["y"===d?"top":"left"],f,f-u[e])}const x=s.fn({...t,[p]:h,[d]:f});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:i,[d]:a}}}}}},ho=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:x=!0,...g}=vr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=mr(o),m=jr(s),b=mr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!x?[Tr(s)]:function(e){const t=Tr(e);return[$r(e),t,$r(t)]}(s)),C="none"!==f;!p&&C&&w.push(...Or(s,x,f,y));const j=[s,...w],k=await Zr(t,g),$=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&$.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=br(e),o=kr(e),i=wr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Tr(a)),[a,Tr(a)]}(o,a,y);$.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:$}],!$.every((e=>e<=0))){var E,R;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===d&&m!==jr(t))||S.every((e=>jr(e.placement)!==m||e.overflows[0]>0)))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(R=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=S.filter((e=>{if(C){const t=jr(e.placement);return t===m||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},fo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=vr(e,t)||{};if(null==c)return{};const d=Mr(u),p={x:n,y:r},h=kr(o),f=wr(h),x=await a.getDimensions(c),g="y"===h,v=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",y=i.reference[f]+i.reference[h]-p[h]-i.floating[f],w=p[h]-i.reference[h],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let j=C?C[b]:0;j&&await(null==a.isElement?void 0:a.isElement(C))||(j=s.floating[b]||i.floating[f]);const k=y/2-w/2,$=j/2-x[f]/2-1,S=cr(d[v],$),E=cr(d[m],$),R=S,L=j-x[f]-E,O=j/2-x[f]/2+k,T=gr(R,O,L),M=!l.arrow&&null!=br(o)&&O!==T&&i.reference[f]/2-(O<R?S:E)-x[f]/2<0,P=M?O<R?O-R:O-L:0;return{[h]:p[h]+P,data:{[h]:T,centerOffset:O-T-P,...M&&{alignmentOffset:P}},reset:M}}}),xo=(e,t,n)=>{const r=new Map,o={platform:so,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fr(c,r,l),p=r,h={},f=0;for(let n=0;n<s.length;n++){const{name:i,fn:x}=s[n],{x:g,y:v,data:m,reset:b}=await x({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[i]:{...h[i],...m}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Fr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var go="undefined"!=typeof document?n.useLayoutEffect:function(){};function vo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!vo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!vo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function mo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=mo(e);return Math.round(t*n)/n}function yo(e){const t=l.useRef(e);return go((()=>{t.current=e})),t}const wo=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?fo({element:n.current,padding:r}).fn(t):{}:n?fo({element:n,padding:r}).fn(t):{};var o}}),Co=(e,t)=>({...uo(e),options:[e,t]}),jo=(e,t)=>({...po(e),options:[e,t]}),ko=(e,t)=>({...wo(e),options:[e,t]}),$o="data-floating-ui-focusable",So="active",Eo="selected",Ro={...l};let Lo=!1,Oo=0;const To=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Oo++;const Mo=Ro.useId||function(){const[e,t]=l.useState((()=>Lo?To():void 0));return zr((()=>{null==e&&t(To())}),[]),l.useEffect((()=>{Lo=!0}),[]),e};let Po;"production"!==process.env.NODE_ENV&&(Po=new Set);const _o=l.createContext(null),Do=l.createContext(null),Io=()=>{var e;return(null==(e=l.useContext(_o))?void 0:e.id)||null},No=()=>l.useContext(Do);const Vo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ao={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Bo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Mo(),i=l.useRef({}),[a]=l.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),s=null!=Io();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Bn(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=Po)&&e.has(o)||(null==(i=Po)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=l.useState(r.reference),d=Hr(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=l.useMemo((()=>({setPositionReference:u})),[]),h=l.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return l.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:a,floatingId:o,refs:p})),[t,d,h,a,o,p])}function Ho(e){void 0===e&&(e={});const{nodeId:t}=e,n=Bo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=l.useState(null),[s,u]=l.useState(null),d=(null==o?void 0:o.domReference)||i,p=l.useRef(null),h=No();zr((()=>{d&&(p.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:d}=e,[p,h]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,x]=l.useState(r);vo(f,r)||x(r);const[g,v]=l.useState(null),[m,b]=l.useState(null),y=l.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),w=l.useCallback((e=>{e!==$.current&&($.current=e,b(e))}),[]),C=i||g,j=a||m,k=l.useRef(null),$=l.useRef(null),S=l.useRef(p),E=null!=u,R=yo(u),L=yo(o),O=yo(d),T=l.useCallback((()=>{if(!k.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};L.current&&(e.platform=L.current),xo(k.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};M.current&&!vo(S.current,t)&&(S.current=t,c.flushSync((()=>{h(t)})))}))}),[f,t,n,L,O]);go((()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const M=l.useRef(!1);go((()=>(M.current=!0,()=>{M.current=!1})),[]),go((()=>{if(C&&(k.current=C),j&&($.current=j),C&&j){if(R.current)return R.current(C,j,T);T()}}),[C,j,T,R,E]);const P=l.useMemo((()=>({reference:k,floating:$,setReference:y,setFloating:w})),[y,w]),_=l.useMemo((()=>({reference:C,floating:j})),[C,j]),D=l.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=bo(_.floating,p.x),r=bo(_.floating,p.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...mo(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,_.floating,p.x,p.y]);return l.useMemo((()=>({...p,update:T,refs:P,elements:_,floatingStyles:D})),[p,T,P,_,D])}({...e,elements:{...o,...s&&{reference:s}}}),x=l.useCallback((e=>{const t=Bn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(Bn(e)||null===e)&&(p.current=e,a(e)),(Bn(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Bn(e))&&f.refs.setReference(e)}),[f.refs]),v=l.useMemo((()=>({...f.refs,setReference:g,setPositionReference:x,domReference:p})),[f.refs,g,x]),m=l.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),b=l.useMemo((()=>({...f,...r,refs:v,elements:m,nodeId:t})),[f,v,m,t,r]);return zr((()=>{r.dataRef.current.floatingContext=b;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),l.useMemo((()=>({...f,context:b,refs:v,elements:m})),[f,v,m,b])}function Fo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[So]:t,[Eo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[$o]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[So,Eo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Zo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function qo(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=t,u=Mo(),d=(null==(n=i.domReference)?void 0:n.id)||u,p=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(_r)?t:t.querySelector("["+_r+"]")||t:null)?void 0:e.id)||a}),[i.floating,a]),h=null!=(r=Zo.get(c))?r:c,f=null!=Io(),x=l.useMemo((()=>"tooltip"===h||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:o?p:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?p:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:d},..."menu"===h&&f&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}}),[h,p,f,o,d,c]),g=l.useMemo((()=>{const e={id:p,...h&&{role:h}};return"tooltip"===h||"label"===c?e:{...e,..."menu"===h&&{"aria-labelledby":d}}}),[h,p,d,c]),v=l.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[p,c]);return l.useMemo((()=>s?{reference:x,floating:g,item:v}:{}),[s,x,g,v])}const Wo=o.css`
|
|
1823
|
+
`:"",children:r.jsxs("button",{type:"button",css:An(n,!!i,!!t,l,s,c),"aria-label":e||(s?`Cluster of ${s} locations`:"simple-pin"===c?"Map pin location":"Map point"),ref:d,onClick:i,children:["cluster"===c&&u,"icon"===c&&t]})})})),Vn={Paper:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(Nn,{ariaLabel:e||"paper icon",icon:t.jsx(U,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:n,ref:r,showFocusState:o}),Drop:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(Nn,{ariaLabel:e||"drop icon",icon:t.jsx(X,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:n,ref:r,showFocusState:o}),Plant:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(Nn,{ariaLabel:e||"plant icon",icon:t.jsx(Y,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:n,ref:r,showFocusState:o}),Point:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(Nn,{ariaLabel:e||"point icon",backgroundColor:h("primary",500),onClick:n,ref:r,showFocusState:o})};function zn(){return"undefined"!=typeof window}function Bn(e){return qn(e)?(e.nodeName||"").toLowerCase():"#document"}function Hn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fn(e){var t;return null==(t=(qn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qn(e){return!!zn()&&(e instanceof Node||e instanceof Hn(e).Node)}function Zn(e){return!!zn()&&(e instanceof Element||e instanceof Hn(e).Element)}function Wn(e){return!!zn()&&(e instanceof HTMLElement||e instanceof Hn(e).HTMLElement)}function Gn(e){return!(!zn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Hn(e).ShadowRoot)}const Un=new Set(["inline","contents"]);function Xn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Un.has(o)}const Yn=new Set(["table","td","th"]);function Kn(e){return Yn.has(Bn(e))}const Jn=[":popover-open",":modal"];function Qn(e){return Jn.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const er=["transform","translate","scale","rotate","perspective"],tr=["transform","translate","scale","rotate","perspective","filter"],nr=["paint","layout","strict","content"];function rr(e){const t=or(),n=Zn(e)?sr(e):e;return er.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||tr.some((e=>(n.willChange||"").includes(e)))||nr.some((e=>(n.contain||"").includes(e)))}function or(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ir=new Set(["html","body","#document"]);function ar(e){return ir.has(Bn(e))}function sr(e){return Hn(e).getComputedStyle(e)}function lr(e){return Zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cr(e){if("html"===Bn(e))return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||Fn(e);return Gn(t)?t.host:t}function dr(e){const t=cr(e);return ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wn(t)&&Xn(t)?t:dr(t)}function ur(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=dr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Hn(o);if(i){const e=pr(a);return t.concat(a,a.visualViewport||[],Xn(o)?o:[],e&&n?ur(e):[])}return t.concat(o,ur(o,[],n))}function pr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const hr=Math.min,fr=Math.max,xr=Math.round,gr=Math.floor,vr=e=>({x:e,y:e}),br={left:"right",right:"left",bottom:"top",top:"bottom"},mr={start:"end",end:"start"};function yr(e,t,n){return fr(e,hr(t,n))}function wr(e,t){return"function"==typeof e?e(t):e}function Cr(e){return e.split("-")[0]}function jr(e){return e.split("-")[1]}function kr(e){return"x"===e?"y":"x"}function $r(e){return"y"===e?"height":"width"}const Sr=new Set(["top","bottom"]);function Er(e){return Sr.has(Cr(e))?"y":"x"}function Lr(e){return kr(Er(e))}function Rr(e){return e.replace(/start|end/g,(e=>mr[e]))}const Tr=["left","right"],Or=["right","left"],Pr=["top","bottom"],Mr=["bottom","top"];function _r(e,t,n,r){const o=jr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Or:Tr:t?Tr:Or;case"left":case"right":return t?Pr:Mr;default:return[]}}(Cr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Rr)))),i}function Ir(e){return e.replace(/left|right|bottom|top/g,(e=>br[e]))}function Dr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ar(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const Nr="data-floating-ui-focusable";function Vr(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Gn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function zr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Br(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Hr(e){return(null==e?void 0:e.ownerDocument)||document}function Fr(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Fr(e,t.id,n)]))}var qr="undefined"!=typeof document?n.useLayoutEffect:function(){};const Zr={...l}.useInsertionEffect||(e=>e());function Wr(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Zr((()=>{t.current=e})),l.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Gr(e,t,n){let{reference:r,floating:o}=e;const i=Er(t),a=Lr(t),s=$r(a),l=Cr(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(jr(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Ur(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=wr(t,e),f=Dr(h),x=s[p?"floating"===u?"reference":"floating":u],g=Ar(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(x)))||n?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),m=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Ar(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+f.top)/m.y,bottom:(y.bottom-g.bottom+f.bottom)/m.y,left:(g.left-y.left+f.left)/m.x,right:(y.right-g.right+f.right)/m.x}}const Xr=new Set(["left","top"]);function Yr(e){const t=sr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Wn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=xr(n)!==i||xr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Kr(e){return Zn(e)?e:e.contextElement}function Jr(e){const t=Kr(e);if(!Wn(t))return vr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Yr(t);let a=(i?xr(n.width):n.width)/r,s=(i?xr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Qr=vr(0);function eo(e){const t=Hn(e);return or()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qr}function to(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Kr(e);let a=vr(1);t&&(r?Zn(r)&&(a=Jr(r)):a=Jr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Hn(e))&&t}(i,n,r)?eo(i):vr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(i){const e=Hn(i),t=r&&Zn(r)?Hn(r):r;let n=e,o=pr(n);for(;o&&r&&t!==n;){const e=Jr(o),t=o.getBoundingClientRect(),r=sr(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=a,n=Hn(o),o=pr(n)}}return Ar({width:d,height:u,x:l,y:c})}function no(e,t){const n=lr(e).scrollLeft;return t?t.left+n:to(Fn(e)).left+n}function ro(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-no(e,n),y:n.top+t.scrollTop}}const oo=new Set(["absolute","fixed"]);function io(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Hn(e),r=Fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=or();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=no(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Fn(e),n=lr(e),r=e.ownerDocument.body,o=fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+no(e);const s=-n.scrollTop;return"rtl"===sr(r).direction&&(a+=fr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Fn(e));else if(Zn(t))r=function(e,t){const n=to(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Wn(e)?Jr(e):vr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=eo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ar(r)}function ao(e,t){const n=cr(e);return!(n===t||!Zn(n)||ar(n))&&("fixed"===sr(n).position||ao(n,t))}function so(e,t,n){const r=Wn(t),o=Fn(t),i="fixed"===n,a=to(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=vr(0);function c(){l.x=no(o)}if(r||!r&&!i)if(("body"!==Bn(t)||Xn(o))&&(s=lr(t)),r){const e=to(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?vr(0):ro(o,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function lo(e){return"static"===sr(e).position}function co(e,t){if(!Wn(e)||"fixed"===sr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Fn(e)===n&&(n=n.ownerDocument.body),n}function uo(e,t){const n=Hn(e);if(Qn(e))return n;if(!Wn(e)){let t=cr(e);for(;t&&!ar(t);){if(Zn(t)&&!lo(t))return t;t=cr(t)}return n}let r=co(e,t);for(;r&&Kn(r)&&lo(r);)r=co(r,t);return r&&ar(r)&&lo(r)&&!rr(r)?n:r||function(e){let t=cr(e);for(;Wn(t)&&!ar(t);){if(rr(t))return t;if(Qn(t))return null;t=cr(t)}return null}(e)||n}const po={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Fn(r),s=!!t&&Qn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vr(1);const d=vr(0),u=Wn(r);if((u||!u&&!i)&&(("body"!==Bn(r)||Xn(a))&&(l=lr(r)),Wn(r))){const e=to(r);c=Jr(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!a||u||i?vr(0):ro(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:Fn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Qn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ur(e,[],!1).filter((e=>Zn(e)&&"body"!==Bn(e))),o=null;const i="fixed"===sr(e).position;let a=i?cr(e):e;for(;Zn(a)&&!ar(a);){const t=sr(a),n=rr(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&oo.has(o.position)||Xn(a)&&!n&&ao(e,a))?r=r.filter((e=>e!==a)):o=t,a=cr(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=io(t,n,o);return e.top=fr(r.top,e.top),e.right=hr(r.right,e.right),e.bottom=hr(r.bottom,e.bottom),e.left=fr(r.left,e.left),e}),io(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:uo,getElementRects:async function(e){const t=this.getOffsetParent||uo,n=this.getDimensions,r=await n(e.floating);return{reference:so(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Yr(e);return{width:t,height:n}},getScale:Jr,isElement:Zn,isRTL:function(e){return"rtl"===sr(e).direction}};function ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Kr(e),d=o||i?[...c?ur(c):[],...ur(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&s?function(e,t){let n,r=null;const o=Fn(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-gr(u)+"px "+-gr(o.clientWidth-(d+p))+"px "+-gr(o.clientHeight-(u+h))+"px "+-gr(d)+"px",threshold:fr(0,hr(1,l))||1};let x=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!x)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||ho(c,e.getBoundingClientRect())||a(),x=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let x=l?to(e):null;return l&&function t(){const r=to(e);x&&!ho(x,r)&&n();x=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const xo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Cr(n),s=jr(n),l="y"===Er(n),c=Xr.has(a)?-1:1,d=i&&l?-1:1,u=wr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},go=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=wr(e,t),c={x:n,y:r},d=await Ur(t,l),u=Er(Cr(o)),p=kr(u);let h=c[p],f=c[u];if(i){const e="y"===p?"bottom":"right";h=yr(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===u?"bottom":"right";f=yr(f+d["y"===u?"top":"left"],f,f-d[e])}const x=s.fn({...t,[p]:h,[u]:f});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:i,[u]:a}}}}}},vo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:x=!0,...g}=wr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Cr(o),b=Er(s),m=Cr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(m||!x?[Ir(s)]:function(e){const t=Ir(e);return[Rr(e),t,Rr(t)]}(s)),C="none"!==f;!p&&C&&w.push(..._r(s,x,f,y));const j=[s,...w],k=await Ur(t,g),$=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&$.push(k[v]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=jr(e),o=Lr(e),i=$r(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ir(a)),[a,Ir(a)]}(o,a,y);$.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:$}],!$.every((e=>e<=0))){var E,L;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===u&&b!==Er(t))||S.every((e=>Er(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(L=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(h){case"bestFit":{var R;const e=null==(R=S.filter((e=>{if(C){const t=Er(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},bo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=wr(e,t)||{};if(null==c)return{};const u=Dr(d),p={x:n,y:r},h=Lr(o),f=$r(h),x=await a.getDimensions(c),g="y"===h,v=g?"top":"left",b=g?"bottom":"right",m=g?"clientHeight":"clientWidth",y=i.reference[f]+i.reference[h]-p[h]-i.floating[f],w=p[h]-i.reference[h],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let j=C?C[m]:0;j&&await(null==a.isElement?void 0:a.isElement(C))||(j=s.floating[m]||i.floating[f]);const k=y/2-w/2,$=j/2-x[f]/2-1,S=hr(u[v],$),E=hr(u[b],$),L=S,R=j-x[f]-E,T=j/2-x[f]/2+k,O=yr(L,T,R),P=!l.arrow&&null!=jr(o)&&T!==O&&i.reference[f]/2-(T<L?S:E)-x[f]/2<0,M=P?T<L?T-L:T-R:0;return{[h]:p[h]+M,data:{[h]:O,centerOffset:T-O-M,...P&&{alignmentOffset:M}},reset:P}}}),mo=(e,t,n)=>{const r=new Map,o={platform:po,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Gr(c,r,l),p=r,h={},f=0;for(let n=0;n<s.length;n++){const{name:i,fn:x}=s[n],{x:g,y:v,data:b,reset:m}=await x({x:d,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,h={...h,[i]:{...h[i],...b}},m&&f<=50&&(f++,"object"==typeof m&&(m.placement&&(p=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):m.rects),({x:d,y:u}=Gr(c,p,l))),n=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var yo="undefined"!=typeof document?n.useLayoutEffect:function(){};function wo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!wo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!wo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Co(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jo(e,t){const n=Co(e);return Math.round(t*n)/n}function ko(e){const t=l.useRef(e);return yo((()=>{t.current=e})),t}const $o=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?bo({element:n.current,padding:r}).fn(t):{}:n?bo({element:n,padding:r}).fn(t):{};var o}}),So=(e,t)=>({...xo(e),options:[e,t]}),Eo=(e,t)=>({...go(e),options:[e,t]}),Lo=(e,t)=>({...$o(e),options:[e,t]}),Ro="data-floating-ui-focusable",To="active",Oo="selected",Po={...l};let Mo=!1,_o=0;const Io=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_o++;const Do=Po.useId||function(){const[e,t]=l.useState((()=>Mo?Io():void 0));return qr((()=>{null==e&&t(Io())}),[]),l.useEffect((()=>{Mo=!0}),[]),e};let Ao;"production"!==process.env.NODE_ENV&&(Ao=new Set);const No=l.createContext(null),Vo=l.createContext(null),zo=()=>{var e;return(null==(e=l.useContext(No))?void 0:e.id)||null},Bo=()=>l.useContext(Vo);const Ho={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Fo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},qo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Zo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Do(),i=l.useRef({}),[a]=l.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),s=null!=zo();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Zn(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=Ao)&&e.has(o)||(null==(i=Ao)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,d]=l.useState(r.reference),u=Wr(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=l.useMemo((()=>({setPositionReference:d})),[]),h=l.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return l.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:h,events:a,floatingId:o,refs:p})),[t,u,h,a,o,p])}function Wo(e){void 0===e&&(e={});const{nodeId:t}=e,n=Zo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=l.useState(null),[s,d]=l.useState(null),u=(null==o?void 0:o.domReference)||i,p=l.useRef(null),h=Bo();qr((()=>{u&&(p.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[p,h]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,x]=l.useState(r);wo(f,r)||x(r);const[g,v]=l.useState(null),[b,m]=l.useState(null),y=l.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),w=l.useCallback((e=>{e!==$.current&&($.current=e,m(e))}),[]),C=i||g,j=a||b,k=l.useRef(null),$=l.useRef(null),S=l.useRef(p),E=null!=d,L=ko(d),R=ko(o),T=ko(u),O=l.useCallback((()=>{if(!k.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),mo(k.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};P.current&&!wo(S.current,t)&&(S.current=t,c.flushSync((()=>{h(t)})))}))}),[f,t,n,R,T]);yo((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const P=l.useRef(!1);yo((()=>(P.current=!0,()=>{P.current=!1})),[]),yo((()=>{if(C&&(k.current=C),j&&($.current=j),C&&j){if(L.current)return L.current(C,j,O);O()}}),[C,j,O,L,E]);const M=l.useMemo((()=>({reference:k,floating:$,setReference:y,setFloating:w})),[y,w]),_=l.useMemo((()=>({reference:C,floating:j})),[C,j]),I=l.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=jo(_.floating,p.x),r=jo(_.floating,p.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Co(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,_.floating,p.x,p.y]);return l.useMemo((()=>({...p,update:O,refs:M,elements:_,floatingStyles:I})),[p,O,M,_,I])}({...e,elements:{...o,...s&&{reference:s}}}),x=l.useCallback((e=>{const t=Zn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(Zn(e)||null===e)&&(p.current=e,a(e)),(Zn(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Zn(e))&&f.refs.setReference(e)}),[f.refs]),v=l.useMemo((()=>({...f.refs,setReference:g,setPositionReference:x,domReference:p})),[f.refs,g,x]),b=l.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),m=l.useMemo((()=>({...f,...r,refs:v,elements:b,nodeId:t})),[f,v,b,t,r]);return qr((()=>{r.dataRef.current.floatingContext=m;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=m)})),l.useMemo((()=>({...f,context:m,refs:v,elements:b})),[f,v,b,m])}function Go(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[To]:t,[Oo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Ro]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[To,Oo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Uo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Xo(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=t,d=Do(),u=(null==(n=i.domReference)?void 0:n.id)||d,p=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(Nr)?t:t.querySelector("["+Nr+"]")||t:null)?void 0:e.id)||a}),[i.floating,a]),h=null!=(r=Uo.get(c))?r:c,f=null!=zo(),x=l.useMemo((()=>"tooltip"===h||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:o?p:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?p:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:u},..."menu"===h&&f&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}}),[h,p,f,o,u,c]),g=l.useMemo((()=>{const e={id:p,...h&&{role:h}};return"tooltip"===h||"label"===c?e:{...e,..."menu"===h&&{"aria-labelledby":u}}}),[h,p,u,c]),v=l.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[p,c]);return l.useMemo((()=>s?{reference:x,floating:g,item:v}:{}),[s,x,g,v])}const Yo=o.css`
|
|
1801
1824
|
height: auto;
|
|
1802
1825
|
max-height: 512px;
|
|
1803
1826
|
width: 100%;
|
|
@@ -1811,7 +1834,7 @@
|
|
|
1811
1834
|
0px 4px 6px -4px #0000001a,
|
|
1812
1835
|
0px 10px 15px -3px #0000001a;
|
|
1813
1836
|
outline: 0;
|
|
1814
|
-
`,
|
|
1837
|
+
`,Ko=o.css`
|
|
1815
1838
|
display: flex;
|
|
1816
1839
|
align-items: flex-start;
|
|
1817
1840
|
justify-content: space-between;
|
|
@@ -1823,7 +1846,7 @@
|
|
|
1823
1846
|
.ds-map-pop-up-close-button {
|
|
1824
1847
|
margin-top: 4px;
|
|
1825
1848
|
}
|
|
1826
|
-
`,
|
|
1849
|
+
`,Jo=o.css`
|
|
1827
1850
|
height: 100%;
|
|
1828
1851
|
max-height: 400px;
|
|
1829
1852
|
overflow-y: auto;
|
|
@@ -1831,11 +1854,11 @@
|
|
|
1831
1854
|
&:focus-visible {
|
|
1832
1855
|
outline-color: ${h("primary",700)};
|
|
1833
1856
|
}
|
|
1834
|
-
`,
|
|
1857
|
+
`,Qo=o.css`
|
|
1835
1858
|
padding: 8px 12px;
|
|
1836
1859
|
border-top: 1px solid ${h("neutral",300)};
|
|
1837
1860
|
min-height: 44px;
|
|
1838
|
-
`,
|
|
1861
|
+
`,ei=(e,t,n,r,i,a)=>o.css`
|
|
1839
1862
|
height: ${e}px;
|
|
1840
1863
|
width: ${t}px;
|
|
1841
1864
|
position: absolute;
|
|
@@ -1844,14 +1867,14 @@
|
|
|
1844
1867
|
${`${i}: -${a-1}px`};
|
|
1845
1868
|
background-color: ${h("neutral",100)};
|
|
1846
1869
|
border: 1px solid ${h("neutral",300)};
|
|
1847
|
-
`,
|
|
1870
|
+
`,ti=o.css`
|
|
1848
1871
|
background-color: ${h("neutral",100)};
|
|
1849
|
-
`,
|
|
1872
|
+
`,ni=o.css`
|
|
1850
1873
|
padding: 16px 16px 0px 16px;
|
|
1851
1874
|
&:focus-visible {
|
|
1852
1875
|
outline-color: ${h("primary",700)};
|
|
1853
1876
|
}
|
|
1854
|
-
`,
|
|
1877
|
+
`,ri=o.css`
|
|
1855
1878
|
font-size: 16px;
|
|
1856
1879
|
font-weight: 700;
|
|
1857
1880
|
line-height: 24px;
|
|
@@ -1861,14 +1884,14 @@
|
|
|
1861
1884
|
align-items: center;
|
|
1862
1885
|
text-align: left;
|
|
1863
1886
|
gap: 10px;
|
|
1864
|
-
`,
|
|
1887
|
+
`,oi=o.css`
|
|
1865
1888
|
font-size: 12px;
|
|
1866
1889
|
font-weight: 400;
|
|
1867
1890
|
line-height: 16px;
|
|
1868
1891
|
text-align: left;
|
|
1869
1892
|
color: ${h("neutral",700)};
|
|
1870
1893
|
margin-bottom: 8px;
|
|
1871
|
-
`,
|
|
1894
|
+
`,ii=o.css`
|
|
1872
1895
|
width: 100%;
|
|
1873
1896
|
padding: 16px 0;
|
|
1874
1897
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
@@ -1876,32 +1899,32 @@
|
|
|
1876
1899
|
&:last-of-type {
|
|
1877
1900
|
border-bottom: none;
|
|
1878
1901
|
}
|
|
1879
|
-
`,
|
|
1902
|
+
`,ai=o.css`
|
|
1880
1903
|
display: flex;
|
|
1881
1904
|
align-items: flex-start;
|
|
1882
1905
|
justify-content: space-between;
|
|
1883
|
-
`,
|
|
1906
|
+
`,si=o.css`
|
|
1884
1907
|
display: flex;
|
|
1885
1908
|
flex-direction: column;
|
|
1886
|
-
`,
|
|
1909
|
+
`,li=e=>o.css`
|
|
1887
1910
|
font-size: 16px;
|
|
1888
1911
|
font-weight: 400;
|
|
1889
1912
|
line-height: 24px;
|
|
1890
1913
|
text-align: left;
|
|
1891
1914
|
color: ${h("neutral",e?500:800)};
|
|
1892
|
-
`,
|
|
1915
|
+
`,ci=e=>o.css`
|
|
1893
1916
|
font-size: 14px;
|
|
1894
1917
|
font-weight: 400;
|
|
1895
1918
|
line-height: 20px;
|
|
1896
1919
|
text-align: left;
|
|
1897
1920
|
color: ${h("neutral",e?500:700)};
|
|
1898
|
-
`,
|
|
1921
|
+
`,di=({name:t,label:n,caption:o,showInfoButton:i=!0,infoButtonLabel:a="About data",variant:s="switch",disabled:l,onInfoClick:c,isDefaultSelected:d=!1,onChange:u})=>{const p="switch"===s;return r.jsxs("div",{css:ii,children:[p?r.jsxs("div",{css:ai,children:[r.jsxs("div",{css:si,children:[r.jsx("p",{css:li(l),"aria-label":n,"aria-disabled":l,children:n}),r.jsx("p",{"aria-label":o,css:ci(l),children:o})]}),r.jsx(dt,{"aria-label":`${n}, ${o}`,name:t,disabled:l,defaultChecked:d,onChange:u,role:"switch"})]}):r.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[r.jsx(Je,{value:t,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:n}),r.jsx("p",{style:{marginLeft:"28px"},css:ci(l),children:o})]}),i?r.jsx(e.Box,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:p?0:"28px",children:r.jsx(C,{variant:"secondary",label:a,rightIcon:r.jsx(E,{}),size:"small",onClick:c,disabled:l})}):null]})},ui=o.css`
|
|
1899
1922
|
margin-bottom: 16px;
|
|
1900
1923
|
border: 1px solid ${h("neutral",300)};
|
|
1901
1924
|
border-radius: 4px;
|
|
1902
1925
|
box-shadow: 0px 1px 2px 0px #0000000d;
|
|
1903
1926
|
background-color: ${h("neutral",100)};
|
|
1904
|
-
`,
|
|
1927
|
+
`,pi=o.css`
|
|
1905
1928
|
padding: 6px 8px;
|
|
1906
1929
|
align-items: center;
|
|
1907
1930
|
background-color: ${h("neutral",100)};
|
|
@@ -1924,12 +1947,12 @@
|
|
|
1924
1947
|
0 0 0 2px ${h("neutral",100)},
|
|
1925
1948
|
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1926
1949
|
}
|
|
1927
|
-
`,
|
|
1950
|
+
`,hi=o.css`
|
|
1928
1951
|
font-size: 12px;
|
|
1929
1952
|
font-weight: 700;
|
|
1930
1953
|
line-height: 16px;
|
|
1931
1954
|
color: ${h("neutral",800)};
|
|
1932
|
-
`,
|
|
1955
|
+
`,fi=o.css`
|
|
1933
1956
|
padding: 12px 8px;
|
|
1934
1957
|
display: flex;
|
|
1935
1958
|
flex-direction: column;
|
|
@@ -1945,14 +1968,14 @@
|
|
|
1945
1968
|
margin-bottom: 0px;
|
|
1946
1969
|
}
|
|
1947
1970
|
}
|
|
1948
|
-
`,
|
|
1971
|
+
`,xi=o.css`
|
|
1949
1972
|
padding: 12px;
|
|
1950
1973
|
padding-bottom: 20px;
|
|
1951
1974
|
display: flex;
|
|
1952
1975
|
gap: 12px;
|
|
1953
1976
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1954
1977
|
background-color: ${h("neutral",100)};
|
|
1955
|
-
`,
|
|
1978
|
+
`,gi=o.css`
|
|
1956
1979
|
display: flex;
|
|
1957
1980
|
flex-direction: column;
|
|
1958
1981
|
|
|
@@ -1961,44 +1984,44 @@
|
|
|
1961
1984
|
fill: ${h("neutral",700)} !important;
|
|
1962
1985
|
}
|
|
1963
1986
|
}
|
|
1964
|
-
`,
|
|
1987
|
+
`,vi=o.css`
|
|
1965
1988
|
display: flex;
|
|
1966
1989
|
align-items: flex-start;
|
|
1967
1990
|
justify-content: space-between;
|
|
1968
1991
|
gap: 12px;
|
|
1969
1992
|
margin-bottom: 16px;
|
|
1970
|
-
`,
|
|
1993
|
+
`,bi=o.css`
|
|
1971
1994
|
font-size: 16px;
|
|
1972
1995
|
line-height: 24px;
|
|
1973
1996
|
font-weight: 400;
|
|
1974
1997
|
text-align: left;
|
|
1975
1998
|
color: ${h("neutral",900)};
|
|
1976
|
-
`,
|
|
1999
|
+
`,mi=o.css`
|
|
1977
2000
|
font-size: 14px;
|
|
1978
2001
|
line-height: 20px;
|
|
1979
2002
|
font-weight: 400;
|
|
1980
2003
|
text-align: left;
|
|
1981
2004
|
color: ${h("neutral",700)};
|
|
1982
|
-
`,
|
|
2005
|
+
`,yi=o.css`
|
|
1983
2006
|
display: flex;
|
|
1984
2007
|
justify-content: space-between;
|
|
1985
2008
|
|
|
1986
2009
|
button {
|
|
1987
2010
|
width: 46%;
|
|
1988
2011
|
}
|
|
1989
|
-
`,
|
|
2012
|
+
`,wi=o.css`
|
|
1990
2013
|
width: 234px;
|
|
1991
2014
|
border: 1px solid ${h("neutral",600)};
|
|
1992
2015
|
border-radius: 4px;
|
|
1993
|
-
`,
|
|
2016
|
+
`,Ci=o.css`
|
|
1994
2017
|
padding: 12px;
|
|
1995
|
-
`,
|
|
2018
|
+
`,ji=o.css`
|
|
1996
2019
|
font-size: 14px;
|
|
1997
2020
|
line-height: 20px;
|
|
1998
2021
|
font-weight: 400;
|
|
1999
2022
|
text-align: left;
|
|
2000
2023
|
color: ${h("neutral",900)};
|
|
2001
|
-
`,
|
|
2024
|
+
`,ki=o.css`
|
|
2002
2025
|
display: flex;
|
|
2003
2026
|
align-items: center;
|
|
2004
2027
|
gap: 12px;
|
|
@@ -2019,20 +2042,20 @@
|
|
|
2019
2042
|
margin-top: 18px;
|
|
2020
2043
|
width: 100%;
|
|
2021
2044
|
}
|
|
2022
|
-
|
|
2045
|
+
`,$i=({defaultValue:t,onOpacityChanged:o,labels:i})=>{const a=w("OpacityControl",i),[s,l]=n.useState(t);return r.jsxs(e.Popover.Root,{positioning:{placement:"bottom-end"},children:[r.jsx(e.Popover.Trigger,{asChild:!0,children:r.jsx(C,{label:a.opacityButtonLabel,size:"small",variant:"secondary",leftIcon:r.jsx(E,{})})}),r.jsx(e.Popover.Positioner,{children:r.jsx(e.Popover.Content,{css:wi,children:r.jsxs(e.Popover.Body,{css:Ci,children:[r.jsx("p",{css:ji,children:a.opacityHeading}),r.jsxs("div",{css:ki,children:[r.jsxs("div",{style:{position:"relative"},children:[r.jsx(Ot,{"aria-label":a.opacityAriaLabel,min:"0",max:"100",value:s,onChange:e=>{const t=e.target.value||"0";let n=parseInt(t,10);n=Number.isNaN(n)?0:n,n=n<0?0:n,n=n>100?100:n,l(n),o&&o(n)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:a.percentSuffix})]}),r.jsx(lt,{min:0,max:100,value:[s],onValueChangeEnd:({value:e})=>{l(e[0]),o&&o(e[0])}})]})]})})})]})},Si=e=>o.css`
|
|
2023
2046
|
width: 20px;
|
|
2024
2047
|
height: 20px;
|
|
2025
2048
|
border-radius: 50%;
|
|
2026
2049
|
background-color: ${e};
|
|
2027
2050
|
border: 1px solid ${h("neutral",400)};
|
|
2028
|
-
`,
|
|
2051
|
+
`,Ei=e=>o.css`
|
|
2029
2052
|
width: 20px;
|
|
2030
2053
|
height: 8px;
|
|
2031
2054
|
border-radius: 2px;
|
|
2032
2055
|
background-color: ${e};
|
|
2033
2056
|
border: 1px solid ${h("neutral",400)};
|
|
2034
2057
|
margin-top: 6px;
|
|
2035
|
-
`,
|
|
2058
|
+
`,Li=e=>o.css`
|
|
2036
2059
|
width: 20px;
|
|
2037
2060
|
height: 20px;
|
|
2038
2061
|
border-radius: 50%;
|
|
@@ -2045,26 +2068,26 @@
|
|
|
2045
2068
|
width: 10px;
|
|
2046
2069
|
height: 10px;
|
|
2047
2070
|
}
|
|
2048
|
-
|
|
2071
|
+
`,Ri=o.css`
|
|
2049
2072
|
width: 100%;
|
|
2050
2073
|
display: flex;
|
|
2051
2074
|
justify-content: space-between;
|
|
2052
2075
|
gap: 8px;
|
|
2053
2076
|
margin-bottom: 16px;
|
|
2054
|
-
`,
|
|
2077
|
+
`,Ti=o.css`
|
|
2055
2078
|
display: flex;
|
|
2056
2079
|
gap: 8px;
|
|
2057
|
-
`,
|
|
2080
|
+
`,Oi=o.css`
|
|
2058
2081
|
font-size: 14px;
|
|
2059
2082
|
line-height: 20px;
|
|
2060
2083
|
font-weight: 400;
|
|
2061
2084
|
color: ${h("neutral",800)};
|
|
2062
|
-
`,
|
|
2085
|
+
`,Pi=o.css`
|
|
2063
2086
|
font-size: 12px;
|
|
2064
2087
|
line-height: 16px;
|
|
2065
2088
|
font-weight: 400;
|
|
2066
2089
|
color: ${h("neutral",700)};
|
|
2067
|
-
`,
|
|
2090
|
+
`,Mi=o.css`
|
|
2068
2091
|
button {
|
|
2069
2092
|
height: 25px;
|
|
2070
2093
|
font-size: 12px;
|
|
@@ -2073,12 +2096,12 @@
|
|
|
2073
2096
|
color: ${h("neutral",600)};
|
|
2074
2097
|
padding: 0 10px;
|
|
2075
2098
|
}
|
|
2076
|
-
`,
|
|
2099
|
+
`,_i=o.css`
|
|
2077
2100
|
width: 100%;
|
|
2078
2101
|
display: flex;
|
|
2079
2102
|
flex-direction: column;
|
|
2080
2103
|
margin-bottom: 16px;
|
|
2081
|
-
`,
|
|
2104
|
+
`,Ii=o.css`
|
|
2082
2105
|
height: 20px;
|
|
2083
2106
|
width: 100%;
|
|
2084
2107
|
margin-bottom: 8px;
|
|
@@ -2096,27 +2119,27 @@
|
|
|
2096
2119
|
border-top-right-radius: 3px;
|
|
2097
2120
|
border-bottom-right-radius: 3px;
|
|
2098
2121
|
}
|
|
2099
|
-
`,
|
|
2122
|
+
`,Di=o.css`
|
|
2100
2123
|
display: flex;
|
|
2101
2124
|
justify-content: space-between;
|
|
2102
2125
|
align-items: flex-start;
|
|
2103
|
-
`,
|
|
2126
|
+
`,Ai=o.css`
|
|
2104
2127
|
width: 100%;
|
|
2105
2128
|
font-size: 12px;
|
|
2106
2129
|
line-height: 16px;
|
|
2107
2130
|
font-weight: 400;
|
|
2108
2131
|
color: ${h("neutral",800)};
|
|
2109
2132
|
text-align: center;
|
|
2110
|
-
`,
|
|
2133
|
+
`,Ni=o.css`
|
|
2111
2134
|
font-size: 12px;
|
|
2112
2135
|
line-height: 16px;
|
|
2113
2136
|
font-weight: 400;
|
|
2114
2137
|
color: ${h("neutral",700)};
|
|
2115
2138
|
text-align: center;
|
|
2116
|
-
`,
|
|
2139
|
+
`,Vi=e=>{const t=e.map(((t,n)=>`${n/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,n)=>`${e} ${t[n]}`)).join(", ")})`},zi=o.css`
|
|
2117
2140
|
display: flex;
|
|
2118
2141
|
flex-direction: column;
|
|
2119
|
-
`,
|
|
2142
|
+
`,Bi=o.css`
|
|
2120
2143
|
display: flex;
|
|
2121
2144
|
gap: 16px;
|
|
2122
2145
|
align-items: center;
|
|
@@ -2125,41 +2148,41 @@
|
|
|
2125
2148
|
.ds-select-input-container {
|
|
2126
2149
|
margin-bottom: 0px;
|
|
2127
2150
|
}
|
|
2128
|
-
`,
|
|
2151
|
+
`,Hi=o.css`
|
|
2129
2152
|
font-size: 18px;
|
|
2130
2153
|
line-height: 28px;
|
|
2131
2154
|
font-weight: 400;
|
|
2132
2155
|
color: ${h("neutral",700)};
|
|
2133
|
-
`,
|
|
2156
|
+
`,Fi=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:o,showItemCountText:i,labels:a})=>{const s=w("ItemCount",a),l=0===n?0:(t-1)*e+1,c=0===n?0:Math.min(l+e-1,n);return r.jsxs("div",{css:zi,children:[r.jsxs("div",{css:Bi,children:[r.jsx("div",{style:{width:"80px"},children:r.jsx(rn,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{o&&o(parseInt(e[0],10))},required:!0})}),r.jsx("p",{css:Hi,children:s.perPageLabel})]}),i?r.jsx("p",{css:Hi,children:s.showingLabel(l,c,n)}):null]})},qi=e=>o.css`
|
|
2134
2157
|
border: 1px solid ${h("neutral",300)};
|
|
2135
2158
|
${e?"border: none;":""}
|
|
2136
|
-
`,
|
|
2159
|
+
`,Zi=e=>o.css`
|
|
2137
2160
|
color: ${h("neutral",e?400:700)};
|
|
2138
2161
|
line-height: 20px;
|
|
2139
2162
|
white-space: nowrap;
|
|
2140
2163
|
overflow: hidden;
|
|
2141
2164
|
text-overflow: ellipsis;
|
|
2142
|
-
`,
|
|
2165
|
+
`,Wi=o.css`
|
|
2143
2166
|
font-weight: 400;
|
|
2144
2167
|
color: ${h("neutral",700)};
|
|
2145
2168
|
white-space: nowrap;
|
|
2146
2169
|
overflow: hidden;
|
|
2147
2170
|
text-overflow: ellipsis;
|
|
2148
|
-
`,
|
|
2171
|
+
`,Gi=o.css`
|
|
2149
2172
|
color: ${h("neutral",700)};
|
|
2150
2173
|
text-align: right;
|
|
2151
2174
|
font-weight: 700;
|
|
2152
2175
|
white-space: nowrap;
|
|
2153
2176
|
overflow: hidden;
|
|
2154
2177
|
text-overflow: ellipsis;
|
|
2155
|
-
`,
|
|
2178
|
+
`,Ui=e=>o.css`
|
|
2156
2179
|
width: 16px;
|
|
2157
2180
|
height: 16px;
|
|
2158
2181
|
|
|
2159
2182
|
path {
|
|
2160
2183
|
fill: ${h("neutral",e?400:700)};
|
|
2161
2184
|
}
|
|
2162
|
-
`,
|
|
2185
|
+
`,Xi=o.css`
|
|
2163
2186
|
display: flex;
|
|
2164
2187
|
align-items: center;
|
|
2165
2188
|
justify-content: space-between;
|
|
@@ -2168,7 +2191,7 @@
|
|
|
2168
2191
|
border-bottom: 1px solid ${h("neutral",200)};
|
|
2169
2192
|
width: 100%;
|
|
2170
2193
|
text-align: left;
|
|
2171
|
-
`,
|
|
2194
|
+
`,Yi=o.css`
|
|
2172
2195
|
display: flex;
|
|
2173
2196
|
align-items: center;
|
|
2174
2197
|
justify-content: space-between;
|
|
@@ -2201,18 +2224,18 @@
|
|
|
2201
2224
|
&:disabled {
|
|
2202
2225
|
background-color: ${h("neutral",200)};
|
|
2203
2226
|
}
|
|
2204
|
-
`,
|
|
2227
|
+
`,Ki=({id:t,label:n,caption:o,icon:i,value:a,variant:s="data",onItemClick:l,isExpanded:c=!1,ariaLabel:d,disabled:u=!1,isHighlighted:p=!1})=>{const f=("navigation"===s||"select"===s)&&!!l,x=f?e.chakra.button:e.chakra.div,g=d||("data"===s&&a?`${n}, ${a}`:n);return r.jsxs(x,{id:t,css:["data"===s?Xi:Yi,p&&{backgroundColor:h("neutral",200)}],onClick:f?l:void 0,tabIndex:f?0:void 0,onKeyDown:e=>{f&&("Enter"!==e.key&&" "!==e.key||l?.())},role:f?"button":void 0,"aria-expanded":f?c:void 0,"aria-label":g,disabled:u,"aria-selected":p,children:[r.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",children:[i,r.jsxs(e.Box,{flex:"1",minWidth:0,children:[r.jsx(e.Text,{fontWeight:"data"===s?"400":"700",css:Zi(u),children:n}),o&&r.jsx(e.Text,{css:Wi,children:o})]})]}),"data"===s&&a&&r.jsx(e.Text,{css:Gi,children:a}),"navigation"===s&&r.jsx(e.Icon,{as:R,boxSize:4,"aria-hidden":"true",css:Ui(u)})]})},Ji=({items:t,noBorder:n,highlightedIndex:o})=>r.jsx(e.Box,{css:qi(n),children:t.map(((e,t)=>r.jsx(Ki,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick,isHighlighted:t===o},e.id??e.label)))}),Qi=o.css`
|
|
2205
2228
|
svg {
|
|
2206
2229
|
path {
|
|
2207
2230
|
fill: ${h("primary",500)};
|
|
2208
2231
|
}
|
|
2209
2232
|
}
|
|
2210
|
-
`,
|
|
2233
|
+
`,ea=o.css`
|
|
2211
2234
|
font-size: 16px;
|
|
2212
2235
|
line-height: 24px;
|
|
2213
2236
|
font-weight: 700;
|
|
2214
2237
|
color: ${h("neutral",900)};
|
|
2215
|
-
`,
|
|
2238
|
+
`,ta=o.css`
|
|
2216
2239
|
span {
|
|
2217
2240
|
height: 20px;
|
|
2218
2241
|
width: 20px;
|
|
@@ -2222,7 +2245,7 @@
|
|
|
2222
2245
|
background-color: transparent;
|
|
2223
2246
|
}
|
|
2224
2247
|
}
|
|
2225
|
-
`,
|
|
2248
|
+
`,na=o.css`
|
|
2226
2249
|
font-size: 16px;
|
|
2227
2250
|
line-height: 24px;
|
|
2228
2251
|
font-weight: 400;
|
|
@@ -2232,11 +2255,11 @@
|
|
|
2232
2255
|
color: ${h("neutral",900)};
|
|
2233
2256
|
font-weight: 700;
|
|
2234
2257
|
}
|
|
2235
|
-
`,
|
|
2258
|
+
`,ra=({totalItems:t,pageSize:n,currentPage:o,variant:i="default",onPageChange:a,labels:s})=>{const l=w("Pagination",s),c="compact"===i||"compact-with-buttons"===i,d="compact-with-buttons"===i;return r.jsx("div",{"aria-label":l.paginationLabel,children:r.jsx(e.Pagination.Root,{count:t,pageSize:n,defaultPage:o,onPageChange:e=>a&&a(e.page),siblingCount:1,children:r.jsxs(e.ButtonGroup,{gap:"2",size:"sm",variant:"ghost",css:ta,children:[r.jsx(e.Pagination.PrevTrigger,{asChild:!0,children:d?r.jsx(C,{variant:"secondary",label:l.previousLabel,size:"small",leftIcon:r.jsx(L,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):r.jsx(ce,{css:Qi,style:{rotate:"90deg"},icon:r.jsx(L,{}),"aria-label":l.previousPageLabel})}),c?r.jsx(e.Pagination.PageText,{css:ea}):r.jsx(e.Pagination.Items,{render:e=>r.jsx(ce,{css:na,"aria-label":l.pageLabel(e.value),icon:r.jsx("p",{children:e.value})})}),r.jsx(e.Pagination.NextTrigger,{asChild:!0,children:d?r.jsx(C,{variant:"secondary",label:l.nextLabel,size:"small",rightIcon:r.jsx(L,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):r.jsx(ce,{css:Qi,style:{rotate:"270deg"},icon:r.jsx(L,{}),"aria-label":l.nextPageLabel})})]})})})},oa=e=>o.css`
|
|
2236
2259
|
border: ${"full-width"===e?"none":`1px solid ${h("neutral",300)}`};
|
|
2237
2260
|
border-radius: 2px;
|
|
2238
2261
|
box-shadow: ${"full-width"===e?"none":`0 0 0 1px ${h("neutral",300)}`};
|
|
2239
|
-
`,
|
|
2262
|
+
`,ia=e=>o.css`
|
|
2240
2263
|
tr {
|
|
2241
2264
|
background-color: ${h("neutral","full-width"===e?100:200)};
|
|
2242
2265
|
|
|
@@ -2244,14 +2267,14 @@
|
|
|
2244
2267
|
border-color: ${h("neutral",300)};
|
|
2245
2268
|
}
|
|
2246
2269
|
}
|
|
2247
|
-
`,
|
|
2270
|
+
`,aa=o.css`
|
|
2248
2271
|
font-size: 16px;
|
|
2249
2272
|
line-height: 24px;
|
|
2250
2273
|
font-weight: 700;
|
|
2251
2274
|
color: ${h("neutral",800)};
|
|
2252
2275
|
display: flex;
|
|
2253
2276
|
align-items: center;
|
|
2254
|
-
`,
|
|
2277
|
+
`,sa=o.css`
|
|
2255
2278
|
height: 24px;
|
|
2256
2279
|
width: 10px;
|
|
2257
2280
|
display: flex;
|
|
@@ -2264,7 +2287,7 @@
|
|
|
2264
2287
|
height: 10px;
|
|
2265
2288
|
width: 10px !important;
|
|
2266
2289
|
min-width: 10px !important;
|
|
2267
|
-
|
|
2290
|
+
background-color: transparent;
|
|
2268
2291
|
svg {
|
|
2269
2292
|
height: 10px;
|
|
2270
2293
|
width: 10px;
|
|
@@ -2273,19 +2296,19 @@
|
|
|
2273
2296
|
}
|
|
2274
2297
|
}
|
|
2275
2298
|
}
|
|
2276
|
-
`,
|
|
2299
|
+
`,la=e=>o.css`
|
|
2277
2300
|
svg {
|
|
2278
2301
|
path {
|
|
2279
|
-
fill: ${e?h("primary",600):h("
|
|
2302
|
+
fill: ${e?h("primary",600):h("neutral",500)} !important;
|
|
2280
2303
|
}
|
|
2281
2304
|
}
|
|
2282
|
-
`,
|
|
2305
|
+
`,ca=o.css`
|
|
2283
2306
|
margin-top: 12px;
|
|
2284
2307
|
display: flex;
|
|
2285
2308
|
justify-content: space-between;
|
|
2286
|
-
`,
|
|
2309
|
+
`,da=o.css`
|
|
2287
2310
|
margin-top: 9px;
|
|
2288
|
-
`,
|
|
2311
|
+
`,ua=o.css`
|
|
2289
2312
|
tr {
|
|
2290
2313
|
height: 48px;
|
|
2291
2314
|
|
|
@@ -2297,14 +2320,14 @@
|
|
|
2297
2320
|
background-color: ${h("neutral",200)};
|
|
2298
2321
|
}
|
|
2299
2322
|
}
|
|
2300
|
-
`,
|
|
2323
|
+
`,pa=o.css`
|
|
2301
2324
|
height: 480px;
|
|
2302
2325
|
display: flex;
|
|
2303
2326
|
align-items: center;
|
|
2304
2327
|
justify-content: center;
|
|
2305
|
-
`,
|
|
2328
|
+
`,ha=e.Table.Row,fa=e.Table.Cell,xa=o.css`
|
|
2306
2329
|
border: 1px solid ${h("neutral",300)};
|
|
2307
|
-
`,
|
|
2330
|
+
`,ga=o.css`
|
|
2308
2331
|
padding: 16px;
|
|
2309
2332
|
cursor: pointer;
|
|
2310
2333
|
&:focus-visible {
|
|
@@ -2319,9 +2342,9 @@
|
|
|
2319
2342
|
transparent
|
|
2320
2343
|
);
|
|
2321
2344
|
}
|
|
2322
|
-
`,
|
|
2345
|
+
`,va=o.css`
|
|
2323
2346
|
border: 1px solid ${h("neutral",300)};
|
|
2324
|
-
`,
|
|
2347
|
+
`,ba=o.css`
|
|
2325
2348
|
padding: 16px;
|
|
2326
2349
|
cursor: pointer;
|
|
2327
2350
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
@@ -2341,7 +2364,7 @@
|
|
|
2341
2364
|
transparent
|
|
2342
2365
|
);
|
|
2343
2366
|
}
|
|
2344
|
-
`,
|
|
2367
|
+
`,ma=o.css`
|
|
2345
2368
|
.item-content-open > * {
|
|
2346
2369
|
max-height: auto;
|
|
2347
2370
|
|
|
@@ -2362,9 +2385,9 @@
|
|
|
2362
2385
|
padding-bottom 0.2s ease,
|
|
2363
2386
|
padding-top 0.2s ease;
|
|
2364
2387
|
}
|
|
2365
|
-
`,
|
|
2388
|
+
`,ya=o.css`
|
|
2366
2389
|
border-top: 1px solid ${h("neutral",300)};
|
|
2367
|
-
`;function
|
|
2390
|
+
`;function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca,ja={exports:{}},ka={},$a={exports:{}},Sa={exports:{}},Ea={};var La,Ra,Ta,Oa,Pa,Ma,_a,Ia,Da,Aa,Na,Va,za,Ba={};
|
|
2368
2391
|
/** @license React v16.13.1
|
|
2369
2392
|
* react-is.development.js
|
|
2370
2393
|
*
|
|
@@ -2372,7 +2395,7 @@
|
|
|
2372
2395
|
*
|
|
2373
2396
|
* This source code is licensed under the MIT license found in the
|
|
2374
2397
|
* LICENSE file in the root directory of this source tree.
|
|
2375
|
-
*/function Va(){return $a||($a=1,"production"===process.env.NODE_ENV?Ca.exports=function(){if(ma)return ja;ma=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return ja.AsyncMode=l,ja.ConcurrentMode=c,ja.ContextConsumer=s,ja.ContextProvider=a,ja.Element=t,ja.ForwardRef=u,ja.Fragment=r,ja.Lazy=f,ja.Memo=h,ja.Portal=n,ja.Profiler=i,ja.StrictMode=o,ja.Suspense=d,ja.isAsyncMode=function(e){return y(e)||b(e)===l},ja.isConcurrentMode=y,ja.isContextConsumer=function(e){return b(e)===s},ja.isContextProvider=function(e){return b(e)===a},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ja.isForwardRef=function(e){return b(e)===u},ja.isFragment=function(e){return b(e)===r},ja.isLazy=function(e){return b(e)===f},ja.isMemo=function(e){return b(e)===h},ja.isPortal=function(e){return b(e)===n},ja.isProfiler=function(e){return b(e)===i},ja.isStrictMode=function(e){return b(e)===o},ja.isSuspense=function(e){return b(e)===d},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x)},ja.typeOf=b,ja}():Ca.exports=(ka||(ka=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var x=e.type;switch(x){case l:case c:case r:case i:case o:case d:return x;default:var g=x&&x.$$typeof;switch(g){case s:case u:case f:case h:case a:return g;default:return p}}case n:return p}}}var y=l,w=c,C=s,j=a,k=t,$=u,S=r,E=f,R=h,L=n,O=i,T=o,M=d,P=!1;function _(e){return b(e)===c}Na.AsyncMode=y,Na.ConcurrentMode=w,Na.ContextConsumer=C,Na.ContextProvider=j,Na.Element=k,Na.ForwardRef=$,Na.Fragment=S,Na.Lazy=E,Na.Memo=R,Na.Portal=L,Na.Profiler=O,Na.StrictMode=T,Na.Suspense=M,Na.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(e)||b(e)===l},Na.isConcurrentMode=_,Na.isContextConsumer=function(e){return b(e)===s},Na.isContextProvider=function(e){return b(e)===a},Na.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Na.isForwardRef=function(e){return b(e)===u},Na.isFragment=function(e){return b(e)===r},Na.isLazy=function(e){return b(e)===f},Na.isMemo=function(e){return b(e)===h},Na.isPortal=function(e){return b(e)===n},Na.isProfiler=function(e){return b(e)===i},Na.isStrictMode=function(e){return b(e)===o},Na.isSuspense=function(e){return b(e)===d},Na.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x)},Na.typeOf=b}()),Na)),Ca.exports}function Aa(){if(Ea)return Sa;Ea=1;return Sa="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function za(){return La?Ra:(La=1,Ra=Function.call.bind(Object.prototype.hasOwnProperty))}function Ba(){if(Pa)return Ma;Pa=1;var e=Va(),t=a,n=Aa(),r=za(),o=function(){if(Ta)return Oa;Ta=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Aa(),n={},r=za();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Oa=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Ma=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+m(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+m(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new h("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=m(l);if("object"!==c)return new h("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return f((function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,a){var s=t[r],l=m(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,b(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return f((function(o,i,a,s,l){var c=o[i],u=m(c);if("object"!==u)return new h("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var f=e[p];if(r(e,p)&&"function"!=typeof f)return g(a,s,l,p,b(f));if(!f)return new h("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=f(c,p,a,s,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,d,p,f){if(c=c||u,p=p||s,f!==n){if(l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function x(e){return f((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Ma}function Ha(){if(Ia)return wa.exports;if(Ia=1,"production"!==process.env.NODE_ENV){var e=Va();wa.exports=Ba()(e.isElement,!0)}else wa.exports=function(){if(Da)return _a;Da=1;var e=Aa();function t(){}function n(){}return n.resetWarningCache=t,_a=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();return wa.exports}var Fa,Za={exports:{}};var qa,Wa={},Ga={};function Ua(){if(qa)return Ga;return qa=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},Ga.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Ga.int=function(e){return parseInt(e,10)},Ga.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Ga.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Ga}var Xa,Ya,Ka={};function Ja(){if(Ya)return Wa;Ya=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.addClassName=a,Wa.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Wa.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},Wa.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Wa.createSVGTransform=function(e,t){return o(e,t,"")},Wa.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},Wa.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},Wa.getTranslation=o,Wa.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},Wa.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},Wa.matchesSelector=r,Wa.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},Wa.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},Wa.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},Wa.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},Wa.removeClassName=s,Wa.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Wa.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=Ua(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(function(){if(Xa)return Ka;Xa=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.browserPrefixToKey=n,Ka.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},Ka.default=void 0,Ka.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return Ka.default=t(),Ka}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return Wa}var Qa,es={};function ts(){if(Qa)return es;Qa=1,Object.defineProperty(es,"__esModule",{value:!0}),es.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},es.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},es.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),a=n(t);return i?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:a,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},es.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},es.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=n(r);if("string"==typeof a){const{ownerDocument:n}=s,r=n.defaultView;let o;if("parent"===a)o=s.parentNode;else{o=s.getRootNode().querySelector(a)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=o,l=r.getComputedStyle(s),c=r.getComputedStyle(i);a={left:-s.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-s.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(s)-s.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(s)-s.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(a.right)&&(o=Math.min(o,a.right));(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom));(0,e.isNum)(a.left)&&(o=Math.max(o,a.left));(0,e.isNum)(a.top)&&(i=Math.max(i,a.top));return[o,i]},es.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const a=n(o),s=o.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,s,o.props.scale)},es.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=Ua(),t=Ja();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return es}var ns,rs,os,is,as={},ss={};function ls(){if(ns)return ss;return ns=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.default=function(){},ss}function cs(){if(rs)return as;rs=1,Object.defineProperty(as,"__esModule",{value:!0}),as.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(n),t=c(Ha()),r=c(i),o=Ja(),a=ts(),s=Ua(),l=c(ls());function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=p,f=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,o.getTouchIdentifier)(e);this.touchIdentifier=r;const i=(0,a.getControlPosition)(e,r,this);if(null==i)return;const{x:s,y:c}=i,u=(0,a.createCoreData)(this,s,c);(0,l.default)("DraggableCore: handleDragStart: %j",u),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,o.addEvent)(n,h.move,this.handleDrag),(0,o.addEvent)(n,h.stop,this.handleDragStop))})),u(this,"handleDrag",(e=>{const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);(0,l.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),u(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const i=(0,a.createCoreData)(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(s.ownerDocument,h.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,h.stop,this.handleDragStop))})),u(this,"onMouseDown",(e=>(h=p,this.handleDragStart(e)))),u(this,"onMouseUp",(e=>(h=p,this.handleDragStop(e)))),u(this,"onTouchStart",(e=>(h=d,this.handleDragStart(e)))),u(this,"onTouchEnd",(e=>(h=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,d.move,this.handleDrag),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(t,d.stop,this.handleDragStop),(0,o.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return as.default=f,u(f,"displayName","DraggableCore"),u(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),u(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),as}function us(){return os||(os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(n),r=p(Ha()),o=p(i),a=function(){if(Fa)return Za.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return Fa=1,Za.exports=t,Za.exports.clsx=t,Za.exports}(),s=Ja(),l=ts(),c=Ua(),u=p(cs()),d=p(ls());function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",((e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),f(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),f(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:f,scale:x,...g}=this.props;let v={},m=null;const b=!Boolean(p)||this.state.dragging,y=p||o,w={x:(0,l.canDragX)(this)&&b?this.state.x:y.x,y:(0,l.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?m=(0,s.createSVGTransform)(w,f):v=(0,s.createCSSTransform)(w,f);const C=(0,a.clsx)(r.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return t.createElement(u.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...v},transform:m}))}}e.default=x,f(x,"displayName","Draggable"),f(x,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(x,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ya)),ya}var ds=function(){if(is)return ba.exports;is=1;const{default:e,DraggableCore:t}=us();return ba.exports=e,ba.exports.default=e,ba.exports.DraggableCore=t,ba.exports}(),ps=va(ds);const hs=(e="medium",t,n,r)=>{const i=t||{xsmall:"240px",small:"320px",medium:"480px",large:"640px",xlarge:"960px","full-width":"90%"}[e]||"240px",a=r||{xsmall:"560px",small:"720px",medium:"720px",large:"720px",xlarge:"720px","full-width":"unset"}[e]||"560px",s="unset"===a?"80vh":`min(${a}, 80vh)`;let l="auto";return n?l=n:"full-width"===e&&(l="90%"),o.css`
|
|
2398
|
+
*/function Ha(){return Ra||(Ra=1,"production"===process.env.NODE_ENV?Sa.exports=function(){if(Ca)return Ea;Ca=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return m(e)===c}return Ea.AsyncMode=l,Ea.ConcurrentMode=c,Ea.ContextConsumer=s,Ea.ContextProvider=a,Ea.Element=t,Ea.ForwardRef=d,Ea.Fragment=r,Ea.Lazy=f,Ea.Memo=h,Ea.Portal=n,Ea.Profiler=i,Ea.StrictMode=o,Ea.Suspense=u,Ea.isAsyncMode=function(e){return y(e)||m(e)===l},Ea.isConcurrentMode=y,Ea.isContextConsumer=function(e){return m(e)===s},Ea.isContextProvider=function(e){return m(e)===a},Ea.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ea.isForwardRef=function(e){return m(e)===d},Ea.isFragment=function(e){return m(e)===r},Ea.isLazy=function(e){return m(e)===f},Ea.isMemo=function(e){return m(e)===h},Ea.isPortal=function(e){return m(e)===n},Ea.isProfiler=function(e){return m(e)===i},Ea.isStrictMode=function(e){return m(e)===o},Ea.isSuspense=function(e){return m(e)===u},Ea.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x)},Ea.typeOf=m,Ea}():Sa.exports=(La||(La=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var x=e.type;switch(x){case l:case c:case r:case i:case o:case u:return x;default:var g=x&&x.$$typeof;switch(g){case s:case d:case f:case h:case a:return g;default:return p}}case n:return p}}}var y=l,w=c,C=s,j=a,k=t,$=d,S=r,E=f,L=h,R=n,T=i,O=o,P=u,M=!1;function _(e){return m(e)===c}Ba.AsyncMode=y,Ba.ConcurrentMode=w,Ba.ContextConsumer=C,Ba.ContextProvider=j,Ba.Element=k,Ba.ForwardRef=$,Ba.Fragment=S,Ba.Lazy=E,Ba.Memo=L,Ba.Portal=R,Ba.Profiler=T,Ba.StrictMode=O,Ba.Suspense=P,Ba.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(e)||m(e)===l},Ba.isConcurrentMode=_,Ba.isContextConsumer=function(e){return m(e)===s},Ba.isContextProvider=function(e){return m(e)===a},Ba.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ba.isForwardRef=function(e){return m(e)===d},Ba.isFragment=function(e){return m(e)===r},Ba.isLazy=function(e){return m(e)===f},Ba.isMemo=function(e){return m(e)===h},Ba.isPortal=function(e){return m(e)===n},Ba.isProfiler=function(e){return m(e)===i},Ba.isStrictMode=function(e){return m(e)===o},Ba.isSuspense=function(e){return m(e)===u},Ba.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x)},Ba.typeOf=m}()),Ba)),Sa.exports}function Fa(){if(Oa)return Ta;Oa=1;return Ta="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function qa(){return Ma?Pa:(Ma=1,Pa=Function.call.bind(Object.prototype.hasOwnProperty))}function Za(){if(Aa)return Da;Aa=1;var e=Ha(),t=a,n=Fa(),r=qa(),o=function(){if(Ia)return _a;Ia=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Fa(),n={},r=qa();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,s,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},_a=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Da=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new h("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,a,s+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===m(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return f((function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,a,s,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,a,c,m(d));var u=d(s,c,o,i,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,a,s,l){var c=o[i],d=b(c);if("object"!==d)return new h("Invalid "+s+" `"+l+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},o[i],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return g(a,s,l,p,m(f));if(!f)return new h("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=f(c,p,a,s,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,u,p,f){if(c=c||d,p=p||s,f!==n){if(l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function x(e){return f((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function m(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=m(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},Da}function Wa(){if(za)return $a.exports;if(za=1,"production"!==process.env.NODE_ENV){var e=Ha();$a.exports=Za()(e.isElement,!0)}else $a.exports=function(){if(Va)return Na;Va=1;var e=Fa();function t(){}function n(){}return n.resetWarningCache=t,Na=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();return $a.exports}var Ga,Ua={exports:{}};var Xa,Ya={},Ka={};function Ja(){if(Xa)return Ka;return Xa=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},Ka.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Ka.int=function(e){return parseInt(e,10)},Ka.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Ka.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Ka}var Qa,es,ts={};function ns(){if(es)return Ya;es=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.addClassName=a,Ya.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Ya.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},Ya.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Ya.createSVGTransform=function(e,t){return o(e,t,"")},Ya.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},Ya.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},Ya.getTranslation=o,Ya.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},Ya.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},Ya.matchesSelector=r,Ya.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},Ya.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},Ya.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},Ya.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},Ya.removeClassName=s,Ya.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Ya.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=Ja(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(function(){if(Qa)return ts;Qa=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.browserPrefixToKey=n,ts.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},ts.default=void 0,ts.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return ts.default=t(),ts}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return Ya}var rs,os={};function is(){if(rs)return os;rs=1,Object.defineProperty(os,"__esModule",{value:!0}),os.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},os.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},os.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),a=n(t);return i?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:a,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},os.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},os.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=n(r);if("string"==typeof a){const{ownerDocument:n}=s,r=n.defaultView;let o;if("parent"===a)o=s.parentNode;else{o=s.getRootNode().querySelector(a)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=o,l=r.getComputedStyle(s),c=r.getComputedStyle(i);a={left:-s.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-s.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(s)-s.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(s)-s.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(a.right)&&(o=Math.min(o,a.right));(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom));(0,e.isNum)(a.left)&&(o=Math.max(o,a.left));(0,e.isNum)(a.top)&&(i=Math.max(i,a.top));return[o,i]},os.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const a=n(o),s=o.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,s,o.props.scale)},os.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=Ja(),t=ns();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return os}var as,ss,ls,cs,ds={},us={};function ps(){if(as)return us;return as=1,Object.defineProperty(us,"__esModule",{value:!0}),us.default=function(){},us}function hs(){if(ss)return ds;ss=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(n),t=c(Wa()),r=c(i),o=ns(),a=is(),s=Ja(),l=c(ps());function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=p,f=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,o.getTouchIdentifier)(e);this.touchIdentifier=r;const i=(0,a.getControlPosition)(e,r,this);if(null==i)return;const{x:s,y:c}=i,d=(0,a.createCoreData)(this,s,c);(0,l.default)("DraggableCore: handleDragStart: %j",d),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,o.addEvent)(n,h.move,this.handleDrag),(0,o.addEvent)(n,h.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);(0,l.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),d(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const i=(0,a.createCoreData)(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(s.ownerDocument,h.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,h.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(h=p,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(h=p,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(h=u,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(h=u,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,u.move,this.handleDrag),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(t,u.stop,this.handleDragStop),(0,o.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ds.default=f,d(f,"displayName","DraggableCore"),d(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),d(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ds}function fs(){return ls||(ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(a,t,i):a[t]=e[t]);return a}(e,t)}(n),r=p(Wa()),o=p(i),a=function(){if(Ga)return Ua.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return Ga=1,Ua.exports=t,Ua.exports.clsx=t,Ua.exports}(),s=ns(),l=is(),c=Ja(),d=p(hs()),u=p(ps());function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",((e,t)=>{(0,u.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),f(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),f(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:u,position:p,positionOffset:f,scale:x,...g}=this.props;let v={},b=null;const m=!Boolean(p)||this.state.dragging,y=p||o,w={x:(0,l.canDragX)(this)&&m?this.state.x:y.x,y:(0,l.canDragY)(this)&&m?this.state.y:y.y};this.state.isElementSVG?b=(0,s.createSVGTransform)(w,f):v=(0,s.createCSSTransform)(w,f);const C=(0,a.clsx)(r.props.className||"",i,{[c]:this.state.dragging,[u]:this.state.dragged});return t.createElement(d.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...v},transform:b}))}}e.default=x,f(x,"displayName","Draggable"),f(x,"propTypes",{...d.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(x,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ka)),ka}var xs=function(){if(cs)return ja.exports;cs=1;const{default:e,DraggableCore:t}=fs();return ja.exports=e,ja.exports.default=e,ja.exports.DraggableCore=t,ja.exports}(),gs=wa(xs);const vs=(e="medium",t,n,r)=>{const i=t||{xsmall:"240px",small:"320px",medium:"480px",large:"640px",xlarge:"960px","full-width":"90%"}[e]||"240px",a=r||{xsmall:"560px",small:"720px",medium:"720px",large:"720px",xlarge:"720px","full-width":"unset"}[e]||"560px",s="unset"===a?"80vh":`min(${a}, 80vh)`;let l="auto";return n?l=n:"full-width"===e&&(l="90%"),o.css`
|
|
2376
2399
|
max-width: 100%;
|
|
2377
2400
|
width: ${i};
|
|
2378
2401
|
height: ${l};
|
|
@@ -2382,7 +2405,7 @@
|
|
|
2382
2405
|
border-radius: 4px;
|
|
2383
2406
|
box-shadow: 0px 4px 6px -4px #0000001a;
|
|
2384
2407
|
box-shadow: 0px 10px 15px -3px #0000001a;
|
|
2385
|
-
`},
|
|
2408
|
+
`},bs=o.css`
|
|
2386
2409
|
height: 100%;
|
|
2387
2410
|
min-height: 40px;
|
|
2388
2411
|
display: flex;
|
|
@@ -2390,27 +2413,27 @@
|
|
|
2390
2413
|
justify-content: space-between;
|
|
2391
2414
|
padding: 8px;
|
|
2392
2415
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2393
|
-
`,
|
|
2416
|
+
`,ms=o.css`
|
|
2394
2417
|
top: 10px;
|
|
2395
|
-
`,
|
|
2418
|
+
`,ys=o.css`
|
|
2396
2419
|
padding: 12px;
|
|
2397
|
-
`,
|
|
2420
|
+
`,ws=e=>o.css`
|
|
2398
2421
|
height: 100%;
|
|
2399
2422
|
width: ${e||"320px"};
|
|
2400
2423
|
background-color: ${h("neutral",100)};
|
|
2401
2424
|
box-shadow: 0px 1px 2px -1px #0000001a;
|
|
2402
2425
|
box-shadow: 0px 1px 3px 0px #0000001a;
|
|
2403
2426
|
position: relative;
|
|
2404
|
-
`,
|
|
2427
|
+
`,Cs=o.css`
|
|
2405
2428
|
border-right: 1px solid ${h("neutral",300)};
|
|
2406
|
-
`,
|
|
2429
|
+
`,js=o.css`
|
|
2407
2430
|
border: 1px solid ${h("neutral",300)};
|
|
2408
2431
|
border-radius: 4px;
|
|
2409
|
-
`,
|
|
2432
|
+
`,ks=o.css`
|
|
2410
2433
|
min-height: 48px;
|
|
2411
2434
|
width: 100%;
|
|
2412
2435
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2413
|
-
|
|
2436
|
+
`,$s=(e,t)=>o.css`
|
|
2414
2437
|
height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
|
|
2415
2438
|
width: 100%;
|
|
2416
2439
|
overflow-y: auto;
|
|
@@ -2418,7 +2441,7 @@
|
|
|
2418
2441
|
&:focus-visible {
|
|
2419
2442
|
outline-color: ${h("primary",700)};
|
|
2420
2443
|
}
|
|
2421
|
-
`,
|
|
2444
|
+
`,Ss=o.css`
|
|
2422
2445
|
min-height: 64px;
|
|
2423
2446
|
width: 100%;
|
|
2424
2447
|
display: flex;
|
|
@@ -2428,7 +2451,7 @@
|
|
|
2428
2451
|
bottom: 0;
|
|
2429
2452
|
left: 0;
|
|
2430
2453
|
border-top: 1px solid ${h("neutral",300)};
|
|
2431
|
-
`;var
|
|
2454
|
+
`;var Es,Ls;!function(){if(Ls)return Es;Ls=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}Es=e}();var Rs=Ts()?n.useLayoutEffect:n.useEffect;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function Ts(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Os=function(e){var t,r=e.children,o=e.type,a=void 0===o?"reach-portal":o,s=n.useRef(null),l=n.useRef(null),c=(t=n.useState(Object.create(null))[1],n.useCallback((function(){t(Object.create(null))}),[]));return Rs((function(){if(s.current){var e=s.current.ownerDocument;return l.current=null==e?void 0:e.createElement(a),e.body.appendChild(l.current),c(),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}}),[a,c]),l.current?i.createPortal(r,l.current):n.createElement("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Os.displayName="Portal");
|
|
2432
2455
|
/*! *****************************************************************************
|
|
2433
2456
|
Copyright (c) Microsoft Corporation.
|
|
2434
2457
|
|
|
@@ -2442,16 +2465,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
2442
2465
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2443
2466
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2444
2467
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2445
|
-
***************************************************************************** */var Rs,Ls,Os=function(){return Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Os.apply(this,arguments)};function Ts(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ms(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ps(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _s(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(Rs||(Rs={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Ls||(Ls={}));var Ds=Rs.Start,Is=Rs.Stop,Ns=Rs.Raise,Vs=Rs.Send,As=Rs.Cancel,zs=Rs.NullEvent,Bs=Rs.Assign;Rs.After,Rs.DoneState;var Hs=Rs.Log,Fs=Rs.Init,Zs=Rs.Invoke;Rs.ErrorExecution;var qs,Ws=Rs.ErrorPlatform,Gs=Rs.ErrorCustom,Us=Rs.Update,Xs=Rs.Choose,Ys=Rs.Pure,Ks={},Js="xstate.guard",Qs="production"===process.env.NODE_ENV;function el(e,t,n){void 0===n&&(n=".");var r=rl(e,n),o=rl(t,n);return bl(o)?!!bl(r)&&o===r:bl(r)?r in o:Object.keys(r).every((function(e){return e in o&&el(r[e],o[e])}))}function tl(e){try{return bl(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function nl(e,t){try{return vl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function rl(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:vl(e)?ol(e):"string"!=typeof e?e:ol(nl(e,t));var n}function ol(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function il(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function al(e,t,n){var r,o,i={};try{for(var a=Ms(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}var sl=function(e){return function(t){var n,r,o=t;try{for(var i=Ms(e),a=i.next();!a.done;a=i.next()){o=o[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function ll(e){return e?bl(e)?[[e]]:cl(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?ll(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function cl(e){var t;return(t=[]).concat.apply(t,_s([],Ps(e),!1))}function ul(e){return vl(e)?e:[e]}function dl(e){return void 0===e?[]:ul(e)}function pl(e,t,n){var r,o;if(ml(e))return e(t,n.data);var i={};try{for(var a=Ms(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];ml(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}function hl(e){return e instanceof Promise||!(null===e||!ml(e)&&"object"!=typeof e||!ml(e.then))}function fl(e,t){return il(e.states,(function(e,n){if(e){var r=(bl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:fl(e,r)}}}))}function xl(e,t,n,r){Qs||gl(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,a=n.assignment,s={state:r,action:n,_event:t},l={};if(ml(a))l=a(e,t.data,s);else try{for(var c=Ms(Object.keys(a)),u=c.next();!u.done;u=c.next()){var d=u.value,p=a[d];l[d]=ml(p)?p(e,t.data,s):p}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var gl=function(){};function vl(e){return Array.isArray(e)}function ml(e){return"function"==typeof e}function bl(e){return"string"==typeof e}function yl(e,t){if(e)return bl(e)?{type:Js,name:e,predicate:t?t[e]:void 0}:ml(e)?{type:Js,name:e.name,predicate:e}:e}Qs||(gl=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var wl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Cl(e){return!!e&&"__xstatenode"in e}function jl(e,t){return bl(e)||"number"==typeof e?Os({type:e},t):e}function kl(e,t){if(!bl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=jl(e);return Os({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function $l(e,t){return ul(t).map((function(t){return void 0===t||"string"==typeof t||Cl(t)?{target:t,event:e}:Os(Os({},t),{event:e})}))}function Sl(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===Js)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,a);var s=null==i?void 0:i[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,r.data,a)}function El(e){return"string"==typeof e?{type:e}:e}function Rl(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function Ll(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Ol(e){return(e.type===Ns||e.type===Vs&&e.to===Ls.Internal)&&"number"!=typeof e.delay}(qs={})[wl]=function(){return this},qs[Symbol.observable]=function(){return this};var Tl=kl({type:Fs});function Ml(e,t){return t&&t[e]||void 0}function Pl(e,t){var n;if(bl(e)||"number"==typeof e)n=ml(r=Ml(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(ml(e))n={type:e.name||e.toString(),exec:e};else{var r;if(ml(r=Ml(e.type,t)))n=Os(Os({},e),{exec:r});else if(r){var o=r.type||e.type;n=Os(Os(Os({},r),e),{type:o})}else n=e}return n}var _l=function(e,t){return e?(vl(e)?e:[e]).map((function(e){return Pl(e,t)})):[]};function Dl(e){var t=Pl(e);return Os(Os({id:bl(e)?e:t.id},t),{type:t.type})}function Il(e,t){var n="".concat(Rs.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Nl(e,t){var n="".concat(Rs.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Vl(e,t){var n="".concat(Rs.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Al(e,t,n,r,o,i,a){void 0===a&&(a=!1);var s=a?[]:function(e){var t,n,r=[];try{for(var o=Ms(e),i=o.next();!i.done;i=o.next())for(var a=i.value,s=0;s<a.actions.length;)a.actions[s].type!==Bs?s++:(r.push(a.actions[s]),a.actions.splice(s,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=s.length?xl(n,r,s,t):n,c=a?[n]:void 0,u=[];function d(o,s){var d;switch(s.type){case Ns:var p=function(e,t,n,r){var o,i={_event:n},a=kl(ml(e.event)?e.event(t,n.data,i):e.event);if(bl(e.delay)){var s=r&&r[e.delay];o=ml(s)?s(t,n.data,i):s}else o=ml(e.delay)?e.delay(t,n.data,i):e.delay;return Os(Os({},e),{type:Ns,_event:a,delay:o})}(s,l,r,e.options.delays);return i&&"number"==typeof p.delay&&i(p,l,r),p;case Vs:var h=function(e,t,n,r){var o,i={_event:n},a=kl(ml(e.event)?e.event(t,n.data,i):e.event);if(bl(e.delay)){var s=r&&r[e.delay];o=ml(s)?s(t,n.data,i):s}else o=ml(e.delay)?e.delay(t,n.data,i):e.delay;var l=ml(e.to)?e.to(t,n.data,i):e.to;return Os(Os({},e),{to:l,_event:a,event:a.data,delay:o})}(s,l,r,e.options.delays);if(!Qs){var f=s.delay;gl(!bl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&h.to!==Ls.Internal&&("entry"===o?u.push(h):i(h,l,r)),h;case Hs:var x=function(e,t,n){return Os(Os({},e),{value:bl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(s,l,r);return null==i||i(x,l,r),x;case Xs:if(!(b=null===(d=s.conds.find((function(n){var o=yl(n.cond,e.options.guards);return!o||Sl(e,o,l,r,i?void 0:t)})))||void 0===d?void 0:d.actions))return[];var g=Ps(Al(e,t,l,r,[{type:o,actions:_l(dl(b),e.options.actions)}],i,a),2),v=g[0],m=g[1];return l=m,null==c||c.push(l),v;case Ys:var b;if(!(b=s.get(l,r.data)))return[];var y=Ps(Al(e,t,l,r,[{type:o,actions:_l(dl(b),e.options.actions)}],i,a),2),w=y[0],C=y[1];return l=C,null==c||c.push(l),w;case Is:x=function(e,t,n){var r=ml(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:Rs.Stop,activity:o}}(s,l,r);return null==i||i(x,n,r),x;case Bs:l=xl(l,r,[s],i?void 0:t),null==c||c.push(l);break;default:var j=Pl(s,e.options.actions),k=j.exec;if(i)i(j,l,r);else if(k&&c){var $=c.length-1,S=Os(Os({},j),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,_s([c[$]],Ps(t),!1))}});j=S}return j}}var p=cl(o.map((function(e){var t,n,o=[];try{for(var a=Ms(e.actions),s=a.next();!s.done;s=a.next()){var c=s.value,p=d(e.type,c);p&&(o=o.concat(p))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return u.forEach((function(e){i(e,l,r)})),u.length=0,o})));return[p,l]}var zl=function(e,t){return t(e)};function Bl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[wl]=function(){return this},t}function Hl(e,t,n){var r=Bl(t);if(r.deferred=!0,Cl(e)){var o=r.state=zl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var Fl=function(e){return"atomic"===e.type||"final"===e.type};function Zl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function ql(e){return Zl(e).filter((function(e){return"history"!==e.type}))}function Wl(e){var t=[e];return Fl(e)?t:t.concat(cl(ql(e).map(Wl)))}function Gl(e,t){var n,r,o,i,a,s,l,c,u=Xl(new Set(e)),d=new Set(t);try{for(var p=Ms(d),h=p.next();!h.done;h=p.next())for(var f=(j=h.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var x=Xl(d);try{for(var g=Ms(d),v=g.next();!v.done;v=g.next()){if("compound"!==(j=v.value).type||x.get(j)&&x.get(j).length){if("parallel"===j.type)try{for(var m=(a=void 0,Ms(ql(j))),b=m.next();!b.done;b=m.next()){var y=b.value;d.has(y)||(d.add(y),u.get(y)?u.get(y).forEach((function(e){return d.add(e)})):y.initialStateNodes.forEach((function(e){return d.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}}else u.get(j)?u.get(j).forEach((function(e){return d.add(e)})):j.initialStateNodes.forEach((function(e){return d.add(e)}))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var w=Ms(d),C=w.next();!C.done;C=w.next()){var j;for(f=(j=C.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return d}function Ul(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Fl(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=Ul(e,t)})),o}function Xl(e){var t,n,r=new Map;try{for(var o=Ms(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function Yl(e,t){return Ul(e,Xl(Gl([e],t)))}function Kl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Jl(e,t){return"compound"===t.type?ql(t).some((function(t){return"final"===t.type&&Kl(e,t)})):"parallel"===t.type&&ql(t).every((function(t){return Jl(e,t)}))}function Ql(e){return new Set(cl(e.map((function(e){return e.tags}))))}function ec(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(bl(e)||bl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return ec(e[n],t[n])}))}var tc=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ks,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||Ks,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return _s([],Ps(new Set(cl(_s([],Ps(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Tl,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Tl;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),bl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,_s([],Ps(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Ts(e,["configuration","transitions","tags","machine"]);return Os(Os({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return el(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Qs&&gl(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),nc={deferEvents:!1},rc=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Os(Os({},nc),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),oc=new Map,ic=0,ac=function(){return"x:".concat(ic++)},sc=function(e,t){return oc.set(e,t),e},lc=function(e){return oc.get(e)},cc=function(e){oc.delete(e)};function uc(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Qs||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function dc(e){if(uc()){var t=function(){var e=uc();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function pc(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(e){var t;return Os(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[wl]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,s),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=Rl(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),s={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,a}var hc,fc={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(hc||(hc={}));var xc=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=hc.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(vl(e))return r.batch(e),r.state;var n=kl(jl(e,t));if(r.status===hc.Stopped)return Qs||gl(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==hc.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,i=r.parent&&(t===Ls.Parent||r.parent.id===t),a=i?r.parent:bl(t)?t===Ls.Internal?r:r.children.get(t)||lc(t):(o=t)&&"function"==typeof o.send?t:void 0;if(a)if("machine"in a){if(r.status!==hc.Stopped||r.parent!==a||r.state.done){var s=Os(Os({},e),{name:e.name===Gs?"".concat(Vl(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,s]):a.send(s)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Qs||gl(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||Ml(e.type,o),a=ml(i)?i:i?i.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Ns:var s=e;r.defer(s);break;case Vs:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===Tl):r.send(l._event);break;case As:r.cancel(e.sendId);break;case Ds:if(r.status!==hc.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Rs.Invoke){var u=El(c.src),d=r.machine.options.services?r.machine.options.services[u.type]:void 0,p=c.id,h=c.data;Qs||gl(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!d)return void(Qs||gl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var x=h?pl(h,t,n):void 0;if("string"==typeof d)return;var g=ml(d)?d(t,n.data,{data:x,src:u,meta:c.meta}):d;if(!g)return;var v=void 0;Cl(g)&&(g=x?g.withContext(x):g,v={autoForward:f}),r.spawn(g,p,v)}else r.spawnActivity(c);break;case Is:r.stopChild(e.activity.id);break;case Hs:var m=e,b=m.label,y=m.value;b?r.logger(b,y):r.logger(y);break;default:Qs||gl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=Os(Os({},e.defaultOptions),n),i=o.clock,a=o.logger,s=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=a,this.clock=i,this.parent=s,this.options=o,this.scheduler=new rc({deferEvents:this.options.deferEvents}),this.sessionId=ac()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:zl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Qs||gl(this.status!==hc.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=Ms(e.actions),i=o.next();!i.done;i=o.next()){var a=i.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,a,s,l,c,u=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Tl||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);if(this.children.forEach((function(e){u.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Ms(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Ms(this.listeners),x=f.next();!x.done;x=f.next()){(0,x.value)(e,e.event)}}catch(e){o={error:e}}finally{try{x&&!x.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=Ms(this.contextListeners),v=g.next();!v.done;v=g.next()){(0,v.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var m=e.configuration.find((function(e){return"final"===e.type&&e.parent===u.machine})),b=m&&m.doneData?pl(m.doneData,e.context,t):void 0;this._doneEvent=Nl(this.id,b);try{for(var y=Ms(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),cc(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===hc.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=Rl(e,t,n);this.listeners.add(o.next),this.status!==hc.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===hc.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===hc.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===hc.Running)return this;this.machine._init(),sc(this.sessionId,this),this.initialized=!0,this.status=hc.Running;var n=void 0===e?this.initialState:zl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(tc.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Tl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){ml(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,a,s,l,c;try{for(var u=Ms(this.listeners),d=u.next();!d.done;d=u.next()){var p=d.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}try{for(var h=Ms(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var x=Ms(this.contextListeners),g=x.next();!g.done;g=x.next()){p=g.value;this.contextListeners.delete(p)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=x.return)&&i.call(x)}finally{if(o)throw o.error}}try{for(var v=Ms(this.doneListeners),m=v.next();!m.done;m=v.next()){p=m.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=hc.Stopped,this._initialState=void 0;try{for(var b=Ms(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){l={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new rc({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=kl({type:"xstate.stop"}),r=zl(e,(function(){var t=cl(_s([],Ps(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return _l(t.onExit,e.machine.options.actions)}))),r=Ps(Al(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],i=r[1],a=new tc({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!Ol(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),cc(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===hc.NotStarted&&this.options.deferEvents)Qs||gl(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==hc.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,i=t.state,a=!1,s=[],l=function(e){var r=kl(e);t.forward(r),i=zl(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),s.push.apply(s,_s([],Ps(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return Os(Os({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),a=a||!!i.changed};try{for(var c=Ms(e),u=c.next();!u.done;u=c.next()){l(u.value)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=a,i.actions=s,t.update(i,kl(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=kl(e);if(0===r.name.indexOf(Ws)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Ws)})))throw r.data.data;return zl(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Ms(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,a=this.children.get(i);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),ml(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==hc.Running)return Hl(e,t);if(hl(e))return this.spawnPromise(Promise.resolve(e),t);if(ml(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&ml(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Cl(e))return this.spawnMachine(e,Os(Os({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,Os(Os({},this.options),{parent:this,id:n.id||t.id})),i=Os(Os({},fc),n);i.sync&&o.onTransition((function(e){r.send(Us,{state:e,id:o.id})}));var a=o;return this.children.set(o.id,a),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(kl(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=pc(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(kl(Nl(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=Vl(t,e);try{o.send(kl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Qs){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=Rl(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[wl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,a=!1,s=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),a||i.send(kl(e,{origin:t}))}),(function(e){s.add(e)}))}catch(e){this.send(Vl(t,e))}if(hl(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return s.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Rl(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,ml(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[wl]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(kl(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(kl(Vl(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(kl(Nl(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[wl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else Qs||gl(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[wl]=function(){return this},n))},e.prototype.attachDev=function(){var e=uc();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(Os(Os({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Os({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}dc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[wl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===hc.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=gc,e}();function gc(e,t){return new xc(e,t)}function vc(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function mc(e){return Os(Os({type:Zs},e),{toJSON:function(){e.onDone,e.onError;var t=Ts(e,["onDone","onError"]);return Os(Os({},t),{type:Zs,src:vc(e.src)})}})}var bc="",yc="*",wc={},Cc=function(e){return"#"===e[0]},jc=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||_s([this.machine.key],Ps(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,Qs||gl(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?il(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Os(((r={})[o.id]=o,r),o.idMap)),o})):wc;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=Ms(Zl(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===bc})):bc in this.config.on),this.strict=!!this.config.strict,this.onEntry=dl(this.config.entry||this.config.onEntry).map((function(e){return Pl(e)})),this.onExit=dl(this.config.exit||this.config.onExit).map((function(e){return Pl(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=dl(this.config.invoke).map((function(e,t){var n,r;if(Cl(e)){var o=Ll(a.id,t);return a.machine.options.services=Os(((n={})[o]=e,n),a.machine.options.services),mc({src:o,id:o})}if(bl(e.src)){o=e.id||Ll(a.id,t);return mc(Os(Os({},e),{id:o,src:e.src}))}if(Cl(e.src)||ml(e.src)){o=e.id||Ll(a.id,t);return a.machine.options.services=Os(((r={})[o]=e.src,r),a.machine.options.services),mc(Os(Os({id:o},e),{src:o}))}var i=e.src;return mc(Os(Os({id:Ll(a.id,t)},e),{src:i}))})),this.activities=dl(this.config.activities).concat(this.invoke).map((function(e){return Dl(e)})),this.transition=this.transition.bind(this),this.tags=dl(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Wl(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,s=r.services,l=r.delays;return new e(this.config,{actions:Os(Os({},o),t.actions),activities:Os(Os({},i),t.activities),guards:Os(Os({},a),t.guards),services:Os(Os({},s),t.services),delays:Os(Os({},l),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return ml(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:il(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===bc,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===yc}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(Rs.After,"(").concat(e,")").concat(n)}(ml(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Vs,event:ml(e)?e:jl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:ml(e)?e.name:tl(e)}}(r,{delay:t})),e.onExit.push({type:As,sendId:r}),r},r=vl(t)?t.map((function(e,t){var r=n(e.delay,t);return Os(Os({},e),{event:r})})):cl(Object.keys(t).map((function(e,r){var o=t[e],i=bl(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return dl(i).map((function(e){return Os(Os({},e),{event:s,delay:a})}))})));return r.map((function(t){var n=t.delay;return Os(Os({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof tc?e.value:rl(e,this.delimiter);if(bl(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),a=[this];return a.push.apply(a,_s([],Ps(cl(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=tl(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof tc?e:tc.create(e),n=Array.from(Gl([],this.getStateNodes(t.value)));return new tc(Os(Os({},t),{value:this.resolve(t.value),configuration:n,done:Jl(n,this),tags:Ql(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var a=Ms(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];if(c){var u=this.getStateNode(l)._transition(c,t,n);u&&(i[l]=u)}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}var d=Object.keys(i).map((function(e){return i[e]})),p=cl(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=cl(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:p,exitSet:cl(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:cl(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return bl(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,kl(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],l=[];try{for(var c=Ms(this.getCandidates(a)),u=c.next();!u.done;u=c.next()){var d=u.value,p=d.cond,h=d.in,f=e.context,x=!h||(bl(h)&&Cc(h)?e.matches(rl(this.getStateNodeById(h).path,this.delimiter)):el(rl(h,this.delimiter),sl(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||Sl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&x){void 0!==d.target&&(l=d.target),s.push.apply(s,_s([],Ps(d.actions),!1)),o=d;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var v=cl(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:cl(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:v,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,i,a){var s,l,c,u,d=this,p=i?Gl([],this.getStateNodes(i.value)):[],h=new Set;try{for(var f=Ms(Array.from(e).sort((function(e,t){return e.order-t.order}))),x=f.next();!x.done;x=f.next()){(!Kl(p,m=x.value)||Kl(n.exitSet,m)||m.parent&&h.has(m.parent))&&h.add(m)}}catch(e){s={error:e}}finally{try{x&&!x.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}try{for(var g=Ms(p),v=g.next();!v.done;v=g.next()){var m;Kl(e,m=v.value)&&!Kl(n.exitSet,m.parent)||n.exitSet.push(m)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=cl(b.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(Il(e.id,e.doneData),Il(i.id,e.doneData?pl(e.doneData,r,o):void 0));var a=i.parent;return"parallel"===a.type&&ql(a).every((function(e){return Jl(n.configuration,e)}))&&t.push(Il(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Dl(e);return{type:Rs.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:_l(a?_s(_s([],Ps(t),!1),Ps(n),!1):_s(_s([],Ps(n),!1),Ps(t),!1),d.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:Ns,event:"function"==typeof e?e:jl(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),j=Array.from(y).map((function(e){return{type:"exit",actions:_l(_s(_s([],Ps(e.onExit),!1),Ps(e.activities.map((function(e){return function(e){var t=ml(e)?e:Dl(e);return{type:Rs.Stop,activity:t,exec:void 0}}(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:_l(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=_l(cl(_s([],Ps(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!Ol(e)}));return j.concat({type:"stop",actions:k})}return j},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,a=kl(t);if(e instanceof tc)o=void 0===n?e:this.resolveState(tc.from(e,n));else{var s=bl(e)?this.resolve(ol(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(tc.from(s,l))}if(!Qs&&a.name===yc)throw new Error("An event cannot have the wildcard type ('".concat(yc,"')"));if(this.strict&&!this.events.includes(a.name)&&(i=a.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(o.value,o,a)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},u=Gl([],this.getStateNodes(o.value)),d=c.configuration.length?Gl(u,c.configuration):u;return c.configuration=_s([],Ps(d),!1),this.resolveTransition(c,o,o.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,_s([],Ps(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,a,s,l,c=this;void 0===o&&(o=Tl);var u=e.configuration,d=!t||e.transitions.length>0,p=d?e.configuration:t?t.configuration:[],h=Jl(p,this),f=d?Yl(this.machine,u):void 0,x=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(p),h,e,n,o,t,r),v=t?Os({},t.activities):{};try{for(var m=Ms(g),b=m.next();!b.done;b=m.next()){var y=b.value;try{for(var w=(s=void 0,Ms(y.actions)),C=w.next();!C.done;C=w.next()){var j=C.value;j.type===Ds?v[j.activity.id||j.activity.type]=j:j.type===Is&&(v[j.activity.id||j.activity.type]=!1)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}var k,$,S=Ps(Al(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=S[0],R=S[1],L=Ps(function(e,t){var n,r,o=Ps([[],[]],2),i=o[0],a=o[1];try{for(var s=Ms(e),l=s.next();!l.done;l=s.next()){var c=l.value;t(c)?i.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[i,a]}(E,Ol),2),O=L[0],T=L[1],M=E.filter((function(e){var t;return e.type===Ds&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Zs})),P=M.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=El(e.src),a=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],s=e.data?pl(e.data,n,r):void 0,l=a?Hl(a,e.id,s):Bl(e.id);return l.meta=e,l}(t.activity,c.machine,R,o),e}),t?Os({},t.children):{}),_=new tc({value:f||t.value,context:R,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?x?(k=x,$=f,{current:$,states:fl(k,$)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?v:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:P,done:h,tags:Ql(p),machine:this}),D=n!==R;_.changed=o.name===Us||D;var I=_.history;I&&delete I.history;var N=!h&&(this._transient||u.some((function(e){return e._transient})));if(!(d||N&&o.name!==bc))return _;var V=_;if(!h)for(N&&(V=this.resolveRaisedTransition(V,{type:zs},o,r));O.length;){var A=O.shift();V=this.resolveRaisedTransition(V,A._event,o,r)}var z=V.changed||(I?!!V.actions.length||D||typeof I.value!=typeof V.value||!ec(V.value,I.value):void 0);return V.changed=z,V.history=I,V},e.prototype.getStateNode=function(e){if(Cc(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=Cc(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&Cc(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=nl(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||wc;switch(this.type){case"parallel":return il(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):wc}));case"compound":if(bl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?il(e,(function(e,t){return e?n.getStateNode(t).resolve(e):wc})):this.initialStateValue||{};default:return e||wc}},e.prototype.getResolvedPath=function(e){if(Cc(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return nl(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=al(this.states,(function(e){return e.initialStateValue||wc}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Fl(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=bl(t.target)&&Cc(t.target)?ol(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Fl(this)?[this]:"compound"!==this.type||this.initial?cl(ll(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Qs||gl(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=Ps(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:al(this.states,(function(t,n){if(!e)return t.historyValue();var r=bl(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?cl(ll(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,a=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var a=Ms(o),s=a.next();!s.done;s=a.next()){var l=s.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return bl(a)?[n.getStateNode(a)]:cl(ll(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=cl(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=Ms(Object.keys(o)),s=a.next();!s.done;s=a.next()){var l=o[s.value];if(l.states)try{for(var c=(n=void 0,Ms(l.events)),u=c.next();!u.done;u=c.next()){var d=u.value;i.add("".concat(d))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!bl(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return dl(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return bl(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=Os(Os({},e),{actions:_l(dl(e.actions)),cond:yl(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return Os(Os({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=yc,a=o[i],s=void 0===a?[]:a,l=Ts(o,["*"]);n=cl(Object.keys(l).map((function(e){Qs||e!==bc||gl(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=$l(e,l[e]);return Qs||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(bl(e.target)||Cl(e.target))})),o=t===bc?"the transient event":"event '".concat(t,"'");gl(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat($l(yc,s)))}else n=[];var c=this.config.always?$l("",this.config.always):[],u=this.config.onDone?$l(String(Il(this.id)),this.config.onDone):[];Qs||gl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=cl(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,_s([],Ps($l(String(Nl(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,_s([],Ps($l(String(Vl(e.id)),e.onError)),!1)),t}))),p=this.after,h=cl(_s(_s(_s(_s([],Ps(u),!1),Ps(d),!1),Ps(n),!1),Ps(c),!1).map((function(e){return dl(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ms(p),x=f.next();!x.done;x=f.next()){var g=x.value;h.push(g)}}catch(t){e={error:t}}finally{try{x&&!x.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var kc,$c=function(e){return{type:Bs,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(kc||(kc={}));var Sc="undefined"!=typeof document?n.useLayoutEffect:function(){};function Ec(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}var Rc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Lc=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var Oc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Tc=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Mc(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Pc(e){var t=n.useRef([]),r=n.useRef([]);Sc((function(){var n=e.subscribe((function(e){var n,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=Oc(function(e,t){var n,r,o=Rc([[],[]],2),i=o[0],a=o[1];try{for(var s=Lc(e),l=s.next();!l.done;l=s.next()){var c=l.value;t(c)?i.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[i,a]}(i,(function(e){return e.exec.__effect===kc.Effect})),2),s=a[0],l=a[1];(n=t.current).push.apply(n,Tc([],Oc(s.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,Tc([],Oc(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),Sc((function(){for(;r.current.length;){var e=Oc(r.current.shift(),2);Mc(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=Oc(t.current.shift(),2);Mc(e[0],e[1])}}))}var _c=function(){return _c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_c.apply(this,arguments)},Dc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ic=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var Nc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Vc(e,t){void 0===t&&(t={});var r=n.useCallback((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),o=function(e,t,r){void 0===t&&(t={});var o=Ec((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Ic(n.useState(o),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var a=t.context,s=t.guards,l=t.actions,c=t.activities,u=t.services,d=t.delays,p=t.state,h=Dc(t,["context","guards","actions","activities","services","delays","state"]),f=Ec((function(){var e={context:a,guards:s,actions:l,activities:c,services:u,delays:d};return gc(o.withConfig(e,(function(){return _c(_c({},o.context),a)})),_c({deferEvents:!0},h))}));return Sc((function(){var e;return r&&(e=f.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(r))),function(){null==e||e.unsubscribe()}}),[r]),Sc((function(){return f.start(p?tc.create(p):void 0),function(){f.stop()}}),[]),Sc((function(){Object.assign(f.machine.options.actions,l),Object.assign(f.machine.options.guards,s),Object.assign(f.machine.options.activities,c),Object.assign(f.machine.options.services,u),Object.assign(f.machine.options.delays,d)}),[l,s,c,u,d]),Pc(f),f}(e,t,r),i=Nc(n.useState((function(){var e=o.machine.initialState;return t.state?tc.create(t.state):e})),2),a=i[0],s=i[1];return[a,o.send,o]}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(null,arguments)}function zc(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Bc={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Bc.str(e)||Bc.num(e))return e===t;if(Bc.obj(e)&&Bc.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Bc.und(n)||e===t}};function Hc(e,t){return Bc.und(e)||Bc.nul(e)?t:e}function Fc(e){return Bc.und(e)?[]:Bc.arr(e)?e:[e]}function Zc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Bc.fun(e)?e(...n):e}function qc(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,zc(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Bc.und(t))return Ac({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Bc.und(t[r])?Ac({},n,{[r]:e[r]}):n),{});return Ac({to:t},n)}class Wc{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Gc extends Wc{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Wc&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Wc&&e.removeChild(this)))}}class Uc extends Wc{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Wc&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Wc&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof Wc)&&(t[n]=r instanceof Wc?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let Xc,Yc;let Kc,Jc=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Qc,eu=()=>Date.now();class tu extends Uc{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ac({},e,{style:Qc(e.style)}):e,this.update=t,this.attach()}}let nu=!1;const ru=new Set,ou=()=>{if(!nu)return!1;let e=eu();for(let t of ru){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let s=a.fromValues[t],l=a.toValues[t],c=r.lastPosition,u=l instanceof Wc,d=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(u&&(l=l.getValue()),a.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof s&&"string"!=typeof l){if(void 0!==a.duration)c=s+a.easing((e-r.startTime)/a.duration)*(l-s),o=e>=r.startTime+a.duration;else if(a.decay)c=s+d/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,d=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){d+=1*((-a.tension*(c-l)+-a.friction*d)/a.mass)/1e3,c+=1*d/1e3}let n=!(!a.clamp||0===a.tension)&&(s<l?c>l:c<l),u=Math.abs(d)<=a.precision,p=0===a.tension||Math.abs(l-c)<=a.precision;o=n||u&&p,r.lastVelocity=d,r.lastTime=e}u&&!a.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(ru.delete(t),t.stop(!0))}return ru.size?Jc(ou):nu=!1,nu};function iu(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return iu({range:e,output:t,extrapolate:n});if(Kc&&"string"==typeof e.output[0])return Kc(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}}class au extends Gc{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Gc&&!(e instanceof au)?e.getPayload():Array.isArray(e)?e:[e],this.calc=iu(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=iu(e,t,n)}interpolate(e,t,n){return new au(this,e,t,n)}}const su=(e,t,n)=>e&&new au(e,t,n);function lu(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>lu(e,t)))}class cu extends Wc{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&lu(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new au(this,e,t,n)}}class uu extends Gc{constructor(e){super(),this.payload=e.map((e=>new cu(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new au(this,e,t)}}let du=0,pu=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=du++}update(e){if(!e)return this;const t=qc(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=zc(t,["delay","to"]);if(Bc.arr(o)||Bc.fun(o))this.queue.push(Ac({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const a=Ac({to:{[n]:o},delay:Zc(r,n)},i),s=e[a.delay]&&e[a.delay].to;e[a.delay]=Ac({},e[a.delay],a,{to:Ac({},s,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,o=void 0===r?{}:r;Bc.obj(n)&&(this.merged=Ac({},n,this.merged)),Bc.obj(o)&&(this.merged=Ac({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,a=zc(r,["delay"]);const s=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=Bc.arr(a.to)||Bc.fun(a.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(a,s):this.diff(a).start(s))}),i):l?this.runAsync(a,s):this.diff(a).start(s)}))}else Bc.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,ru.has(t)||ru.add(t),nu||(nu=!0,Jc(ou));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,ru.has(t)&&ru.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=zc(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(Bc.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ac({},r,qc(r.to[t]));Bc.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(Bc.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=Ac({},r,qc(n));if(Bc.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=Ac({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,a=t.config,s=void 0===a?{}:a,l=t.reverse,c=t.attach,u=t.reset,d=t.immediate;if(l){var p=[i,r];r=p[0],i=p[1]}this.merged=Ac({},r,this.merged,i),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const a=Bc.num(o),l=Bc.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!Yc[o],c=Bc.arr(o),p=!a&&!c&&!l;let f=Bc.und(r[n])?o:r[n],x=a||c||l?o:1,g=Zc(s,n);h&&(x=h.animations[n].parent);let v,m=i.parent,b=i.interpolation,y=Fc(h?x.getPayload():x),w=o;p&&(w=Kc({range:[0,1],output:[o,o]})(1));let C=b&&b.getValue();const j=!Bc.und(m)&&i.animatedValues.some((e=>!e.done)),k=!Bc.equ(w,C),$=!Bc.equ(w,i.previous),S=!Bc.equ(g,i.config);if(u||$&&k||S){if(a||l)m=b=i.parent||new cu(f);else if(c)m=b=i.parent||new uu(f);else if(p){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||u?f:e,i.parent?(m=i.parent,m.setValue(0,!1)):m=new cu(0);const t={output:[e,o]};i.interpolation?(b=i.interpolation,i.interpolation.updateConfig(t)):b=m.interpolate(t)}return y=Fc(h?x.getPayload():x),v=Fc(m.getPayload()),u&&!p&&m.setValue(f,!1),this.hasChanged=!0,v.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=j?e.lastVelocity:void 0,e.lastTime=j?e.lastTime:void 0,e.startTime=eu(),e.done=!1,e.animatedStyles.clear()})),Zc(d,n)&&m.setValue(p?x:o,!1),Ac({},e,{[n]:Ac({},i,{name:n,parent:m,interpolation:b,animatedValues:v,toValues:y,previous:w,config:g,fromValues:Fc(m.getValue()),immediate:Zc(d,n),initialVelocity:Hc(g.velocity,0),clamp:Hc(g.clamp,!1),precision:Hc(g.precision,.01),tension:Hc(g.tension,170),friction:Hc(g.friction,26),mass:Hc(g.mass,1),duration:g.duration,easing:Hc(g.easing,(e=>e)),decay:g.decay})})}return k?e:(p&&(m.setValue(1,!1),b.updateConfig({output:[w,w]})),m.done=!0,this.hasChanged=!0,Ac({},e,{[n]:Ac({},e[n],{previous:w})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const hu=e=>{const t=Bc.fun(e),r=((e,t)=>{const r=n.useRef(!1),o=n.useRef(),i=Bc.fun(t),a=n.useMemo((()=>{let n;return o.current&&(o.current.map((e=>e.destroy())),o.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new pu,a=i?Zc(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),s=a[0],l=a[1];o.current=s,n.useImperativeHandle(l,(()=>({start:()=>Promise.all(o.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>o.current.forEach((t=>t.stop(e))),get controllers(){return o.current}})));const c=n.useMemo((()=>e=>o.current.map(((t,n)=>{t.update(i?Zc(e,n,t):e[n]),l||t.start()}))),[e]);n.useEffect((()=>{r.current?i||c(t):l||o.current.forEach((e=>e.start()))})),n.useEffect((()=>(r.current=!0,()=>o.current.forEach((e=>e.destroy())))),[]);const u=o.current.map((e=>e.getValues()));return i?[u,c,e=>o.current.forEach((t=>t.pause(e)))]:u})(1,t?e:[e]),o=r[0],i=r[1],a=r[2];return t?[o[0],i,a]:o};class fu extends Uc{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Wc||(e=Xc.transform(e)),this.payload=e}}const xu={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},gu="[-+]?\\d*\\.?\\d+",vu=gu+"%";function mu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const bu=new RegExp("rgb"+mu(gu,gu,gu)),yu=new RegExp("rgba"+mu(gu,gu,gu,gu)),wu=new RegExp("hsl"+mu(gu,vu,vu)),Cu=new RegExp("hsla"+mu(gu,vu,vu,gu)),ju=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ku=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$u=/^#([0-9a-fA-F]{6})$/,Su=/^#([0-9a-fA-F]{8})$/;function Eu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ru(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Eu(o,r,e+1/3),a=Eu(o,r,e),s=Eu(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Lu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ou(e){return(parseFloat(e)%360+360)%360/360}function Tu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Mu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Pu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=$u.exec(e))?parseInt(t[1]+"ff",16)>>>0:xu.hasOwnProperty(e)?xu[e]:(t=bu.exec(e))?(Lu(t[1])<<24|Lu(t[2])<<16|Lu(t[3])<<8|255)>>>0:(t=yu.exec(e))?(Lu(t[1])<<24|Lu(t[2])<<16|Lu(t[3])<<8|Tu(t[4]))>>>0:(t=ju.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Su.exec(e))?parseInt(t[1],16)>>>0:(t=ku.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wu.exec(e))?(255|Ru(Ou(t[1]),Mu(t[2]),Mu(t[3])))>>>0:(t=Cu.exec(e))?(Ru(Ou(t[1]),Mu(t[2]),Mu(t[3]))|Tu(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const _u=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Du=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Iu=new RegExp(`(${Object.keys(xu).join("|")})`,"g");let Nu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Vu=["Webkit","Ms","Moz","O"];function Au(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Nu.hasOwnProperty(e)&&Nu[e]?(""+t).trim():t+"px"}Nu=Object.keys(Nu).reduce(((e,t)=>(Vu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Nu);const zu={};var Bu;Qc=e=>new fu(e),Bu=e=>{const t=e.output.map((e=>e.replace(Du,Pu))).map((e=>e.replace(Iu,Pu))),n=t[0].match(_u).map((()=>[]));t.forEach((e=>{e.match(_u).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(_u).map(((t,r)=>iu(Ac({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(_u,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},Kc=Bu,Yc=xu,function(e,t){Xc={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,a=t.scrollTop,s=t.scrollLeft,l=zc(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Au(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:zu[t]||(zu[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var Hu;const Fu=(Hu=e=>n.forwardRef(((t,r)=>{const o=function(){const e=n.useState(!1)[1];return n.useCallback((()=>e((e=>!e))),[])}(),i=n.useRef(!0),a=n.useRef(null),s=n.useRef(null),l=n.useCallback((e=>{const t=a.current;a.current=new tu(e,(()=>{let e=!1;s.current&&(e=Xc.fn(s.current,a.current.getAnimatedValue())),s.current&&!1!==e||o()})),t&&t.detach()}),[]);n.useEffect((()=>()=>{i.current=!1,a.current&&a.current.detach()}),[]),n.useImperativeHandle(r,(()=>(e=>e.current)(s))),l(t);const c=a.current.getValue();c.scrollTop,c.scrollLeft;const u=zc(c,["scrollTop","scrollLeft"]),d=(p=e,!Bc.fun(p)||p.prototype instanceof n.Component?e=>s.current=function(e,t){return t&&(Bc.fun(t)?t(e):Bc.obj(t)&&(t.current=e)),e}(e,r):void 0);var p;return n.createElement(e,Ac({},u,{ref:d}))})),e=>(Bc.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Hu(n),e}),Hu))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Zu(e,t){return e.map((function(e,n){return e+t[n]}))}function qu(e,t){return e.map((function(e,n){return e-t[n]}))}function Wu(e){return Math.hypot.apply(Math,e)}function Gu(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Uu(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Xu(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Uu(t-e,n-t,r)+t:e>n?+Uu(e-n,n-t,r)+n:e}function Yu(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Ku(){return Ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}function Ju(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ed(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function td(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ed(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function nd(){}function rd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?nd:1===t.length?t[0]:function(){for(var e,n,r=td(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function od(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function id(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function ad(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];switch(typeof s){case"function":n[a]=s.call(n,e[a],a,e);break;case"object":n[a]=ad(e[a],s);break;case"boolean":s&&(n[a]=e[a])}}return n}var sd=Ku({},{threshold:function(e){return void 0===e&&(e=0),od(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return od(.15);case!1:return od(0);default:return od(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:od(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return sd.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,a=t.top,s=void 0===a?-1/0:a,l=t.bottom;return[[r,i],[s,void 0===l?1/0:l]]}}),ld="undefined"!=typeof window&&window.document&&window.document.createElement,cd={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=ld?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},ud=Ku({},sd,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,a=void 0!==i&&i,s=n.axis,l=od(e,o?3:a||(void 0===s?void 0:s)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),od(e)},swipeDistance:function(e){return void 0===e&&(e=60),od(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function dd(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),ad(e,cd)}({domTarget:t,eventOptions:n,window:r,enabled:o});return a.drag=function(e){return void 0===e&&(e={}),ad(e,ud)}(i),a}function pd(e){return Ku({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:nd,canceled:!1,memo:void 0,args:void 0},e)}function hd(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:pd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:pd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:pd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:pd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:pd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var fd=new Map,xd=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=Ku({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,o=t.rubberband,i=t.threshold,a=this.state,s=a._bounds,l=a._initial,c=a._active,u=a._intentional,d=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===u[0]?gd(h[0],i[0]):u[0],x=!1===u[1]?gd(h[1],i[1]):u[1],g=this.checkIntentionality([f,x],h);if(g._blocked)return Ku({},g,{_movement:h,delta:[0,0]});var v,m,b,y,w=g._intentional,C=h;(!1!==w[0]&&!1===u[0]&&(m=id(n,this.state),v=id(r,this.state),l[0]=m[0],s[0]=v[0]),!1!==w[1]&&!1===u[1])&&(m=null!=(b=m)?b:id(n,this.state),v=null!=(y=v)?y:id(r,this.state),l[1]=m[1],s[1]=v[1]);var j=[!1!==w[0]?h[0]-w[0]:l[0],!1!==w[1]?h[1]-w[1]:l[1]],k=Zu(j,d),$=c?o:[0,0];return j=vd(s,Zu(j,l),$),Ku({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:j,values:e,offset:vd(s,k,$),delta:qu(j,p)})},t.clean=function(){this.clearTimeout()},Yu(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function gd(e,t){return Math.abs(e)>=t&&Gu(e)*t}function vd(e,t,n){var r=t[0],o=t[1],i=n[0],a=n[1],s=e[0],l=s[0],c=s[1],u=e[1],d=u[0],p=u[1];return[Xu(r,l,c,i),Xu(o,d,p,a)]}function md(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,a=t.type,s=r.values;return{_lastEventType:a,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:s}}function bd(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,Ku({},t,{event:n})].concat(o))}}var yd=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,a=td(t.classes);!(i=a()).done;){new(0,i.value)(t,r).addBindings(e)}for(var s=0,l=Object.entries(t.nativeRefs);s<l.length;s++){var c=l[s];jd(e,c[0],bd(c[1],Ku({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=Cd(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;$d(o,wd(r),i);for(var a=0,s=Object.entries(t);a<s.length;a++){var l=s[a],c=l[0],u=l[1],d=c.slice(2).toLowerCase();r.push([d,rd.apply(void 0,u)])}kd(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,a=Object.entries(t);i<a.length;i++){var s=a[i],l=s[0],c=s[1],u=Array.isArray(c)?c:[c];r[l+o]=rd.apply(void 0,u)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Cd(t.config),n=t.config.eventOptions;e&&$d(e,wd(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){$d(n,o[i],r)}e.windowListeners={}}(t)},this.state=hd(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function wd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Cd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function jd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function kd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=td(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.addEventListener(a,s,n)}}function $d(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=td(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.removeEventListener(a,s,n)}}function Sd(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(fd.get("drag"));e.wheel&&t.add(fd.get("wheel"));e.scroll&&t.add(fd.get("scroll"));e.move&&t.add(fd.get("move"));e.pinch&&t.add(fd.get("pinch"));e.hover&&t.add(fd.get("hover"));return t}(e),i=n.useMemo((function(){return new yd(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?Ed:i.bind}function Ed(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function Rd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Ld(e){var t="buttons"in e?e.buttons:0,n=Rd(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Od(e){var t=Rd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Td=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=[]),r.window&&($d(r.window,o[t],r.eventOptions),kd(r.window,o[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Qu(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Ld(e);if(n.down){t.updateSharedState(n);var r=Od(e),o=t.getKinematics(r,e),i=md(Qu(t),e),a=t.state._isTap,s=Wu(o._movement);a&&s>=3&&(a=!1),t.updateGestureState(Ku({},i,o,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,o=r[0],i=r[1],a=t.state.movement,s=a[0],l=a[1],c=t.state._intentional,u=c[0],d=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],x=t.config.swipeDistance,g=x[0],v=x[1],m=Ku({},md(Qu(t),e),t.getMovement(t.state.values)),b=[0,0];m.elapsedTime<220&&(!1!==u&&Math.abs(o)>h&&Math.abs(s)>g&&(b[0]=Gu(o)),!1!==d&&Math.abs(i)>f&&Math.abs(l)>v&&(b[1]=Gu(i))),t.updateGestureState(Ku({},m,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Qu(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&($d(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}Ju(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Od(e);this.updateSharedState(Ld(e)),this.updateGestureState(Ku({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return Ku({},hd()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),md(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(jd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&jd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Ju(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return qu(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=Wu(t),o=0===r?0:1/r,i=0===n?0:1/n,a=i*r,s=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:s,velocity:a,distance:Wu(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(xd));function Md(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Md(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Md(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||Md(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Pd(e,t){try{return Md(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function _d(e,t){void 0===t&&(t={}),fd.set("drag",Td);var r=n.useRef();return r.current||(r.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return i&&n===this&&t(s,o)||(r=e.apply(this,s),i=!0,n=this,o=s),r}}(dd,Pd)),Sd({drag:e},r.current(t))}
|
|
2468
|
+
***************************************************************************** */var Ps,Ms,_s=function(){return _s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_s.apply(this,arguments)};function Is(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ds(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function As(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ns(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(Ps||(Ps={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Ms||(Ms={}));var Vs=Ps.Start,zs=Ps.Stop,Bs=Ps.Raise,Hs=Ps.Send,Fs=Ps.Cancel,qs=Ps.NullEvent,Zs=Ps.Assign;Ps.After,Ps.DoneState;var Ws=Ps.Log,Gs=Ps.Init,Us=Ps.Invoke;Ps.ErrorExecution;var Xs,Ys=Ps.ErrorPlatform,Ks=Ps.ErrorCustom,Js=Ps.Update,Qs=Ps.Choose,el=Ps.Pure,tl={},nl="xstate.guard",rl="production"===process.env.NODE_ENV;function ol(e,t,n){void 0===n&&(n=".");var r=sl(e,n),o=sl(t,n);return jl(o)?!!jl(r)&&o===r:jl(r)?r in o:Object.keys(r).every((function(e){return e in o&&ol(r[e],o[e])}))}function il(e){try{return jl(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function al(e,t){try{return wl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function sl(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:wl(e)?ll(e):"string"!=typeof e?e:ll(al(e,t));var n}function ll(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function cl(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function dl(e,t,n){var r,o,i={};try{for(var a=Ds(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}var ul=function(e){return function(t){var n,r,o=t;try{for(var i=Ds(e),a=i.next();!a.done;a=i.next()){o=o[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function pl(e){return e?jl(e)?[[e]]:hl(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?pl(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function hl(e){var t;return(t=[]).concat.apply(t,Ns([],As(e),!1))}function fl(e){return wl(e)?e:[e]}function xl(e){return void 0===e?[]:fl(e)}function gl(e,t,n){var r,o;if(Cl(e))return e(t,n.data);var i={};try{for(var a=Ds(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];Cl(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}function vl(e){return e instanceof Promise||!(null===e||!Cl(e)&&"object"!=typeof e||!Cl(e.then))}function bl(e,t){return cl(e.states,(function(e,n){if(e){var r=(jl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:bl(e,r)}}}))}function ml(e,t,n,r){rl||yl(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,a=n.assignment,s={state:r,action:n,_event:t},l={};if(Cl(a))l=a(e,t.data,s);else try{for(var c=Ds(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];l[u]=Cl(p)?p(e,t.data,s):p}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var yl=function(){};function wl(e){return Array.isArray(e)}function Cl(e){return"function"==typeof e}function jl(e){return"string"==typeof e}function kl(e,t){if(e)return jl(e)?{type:nl,name:e,predicate:t?t[e]:void 0}:Cl(e)?{type:nl,name:e.name,predicate:e}:e}rl||(yl=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var $l=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Sl(e){return!!e&&"__xstatenode"in e}function El(e,t){return jl(e)||"number"==typeof e?_s({type:e},t):e}function Ll(e,t){if(!jl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=El(e);return _s({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Rl(e,t){return fl(t).map((function(t){return void 0===t||"string"==typeof t||Sl(t)?{target:t,event:e}:_s(_s({},t),{event:e})}))}function Tl(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===nl)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,a);var s=null==i?void 0:i[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,r.data,a)}function Ol(e){return"string"==typeof e?{type:e}:e}function Pl(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function Ml(e,t){return"".concat(e,":invocation[").concat(t,"]")}function _l(e){return(e.type===Bs||e.type===Hs&&e.to===Ms.Internal)&&"number"!=typeof e.delay}(Xs={})[$l]=function(){return this},Xs[Symbol.observable]=function(){return this};var Il=Ll({type:Gs});function Dl(e,t){return t&&t[e]||void 0}function Al(e,t){var n;if(jl(e)||"number"==typeof e)n=Cl(r=Dl(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Cl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Cl(r=Dl(e.type,t)))n=_s(_s({},e),{exec:r});else if(r){var o=r.type||e.type;n=_s(_s(_s({},r),e),{type:o})}else n=e}return n}var Nl=function(e,t){return e?(wl(e)?e:[e]).map((function(e){return Al(e,t)})):[]};function Vl(e){var t=Al(e);return _s(_s({id:jl(e)?e:t.id},t),{type:t.type})}function zl(e,t){var n="".concat(Ps.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Bl(e,t){var n="".concat(Ps.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Hl(e,t){var n="".concat(Ps.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Fl(e,t,n,r,o,i,a){void 0===a&&(a=!1);var s=a?[]:function(e){var t,n,r=[];try{for(var o=Ds(e),i=o.next();!i.done;i=o.next())for(var a=i.value,s=0;s<a.actions.length;)a.actions[s].type!==Zs?s++:(r.push(a.actions[s]),a.actions.splice(s,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=s.length?ml(n,r,s,t):n,c=a?[n]:void 0,d=[];function u(o,s){var u;switch(s.type){case Bs:var p=function(e,t,n,r){var o,i={_event:n},a=Ll(Cl(e.event)?e.event(t,n.data,i):e.event);if(jl(e.delay)){var s=r&&r[e.delay];o=Cl(s)?s(t,n.data,i):s}else o=Cl(e.delay)?e.delay(t,n.data,i):e.delay;return _s(_s({},e),{type:Bs,_event:a,delay:o})}(s,l,r,e.options.delays);return i&&"number"==typeof p.delay&&i(p,l,r),p;case Hs:var h=function(e,t,n,r){var o,i={_event:n},a=Ll(Cl(e.event)?e.event(t,n.data,i):e.event);if(jl(e.delay)){var s=r&&r[e.delay];o=Cl(s)?s(t,n.data,i):s}else o=Cl(e.delay)?e.delay(t,n.data,i):e.delay;var l=Cl(e.to)?e.to(t,n.data,i):e.to;return _s(_s({},e),{to:l,_event:a,event:a.data,delay:o})}(s,l,r,e.options.delays);if(!rl){var f=s.delay;yl(!jl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&h.to!==Ms.Internal&&("entry"===o?d.push(h):i(h,l,r)),h;case Ws:var x=function(e,t,n){return _s(_s({},e),{value:jl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(s,l,r);return null==i||i(x,l,r),x;case Qs:if(!(m=null===(u=s.conds.find((function(n){var o=kl(n.cond,e.options.guards);return!o||Tl(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=As(Fl(e,t,l,r,[{type:o,actions:Nl(xl(m),e.options.actions)}],i,a),2),v=g[0],b=g[1];return l=b,null==c||c.push(l),v;case el:var m;if(!(m=s.get(l,r.data)))return[];var y=As(Fl(e,t,l,r,[{type:o,actions:Nl(xl(m),e.options.actions)}],i,a),2),w=y[0],C=y[1];return l=C,null==c||c.push(l),w;case zs:x=function(e,t,n){var r=Cl(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:Ps.Stop,activity:o}}(s,l,r);return null==i||i(x,n,r),x;case Zs:l=ml(l,r,[s],i?void 0:t),null==c||c.push(l);break;default:var j=Al(s,e.options.actions),k=j.exec;if(i)i(j,l,r);else if(k&&c){var $=c.length-1,S=_s(_s({},j),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ns([c[$]],As(t),!1))}});j=S}return j}}var p=hl(o.map((function(e){var t,n,o=[];try{for(var a=Ds(e.actions),s=a.next();!s.done;s=a.next()){var c=s.value,p=u(e.type,c);p&&(o=o.concat(p))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[p,l]}var ql=function(e,t){return t(e)};function Zl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[$l]=function(){return this},t}function Wl(e,t,n){var r=Zl(t);if(r.deferred=!0,Sl(e)){var o=r.state=ql(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var Gl=function(e){return"atomic"===e.type||"final"===e.type};function Ul(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Xl(e){return Ul(e).filter((function(e){return"history"!==e.type}))}function Yl(e){var t=[e];return Gl(e)?t:t.concat(hl(Xl(e).map(Yl)))}function Kl(e,t){var n,r,o,i,a,s,l,c,d=Ql(new Set(e)),u=new Set(t);try{for(var p=Ds(u),h=p.next();!h.done;h=p.next())for(var f=(j=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var x=Ql(u);try{for(var g=Ds(u),v=g.next();!v.done;v=g.next()){if("compound"!==(j=v.value).type||x.get(j)&&x.get(j).length){if("parallel"===j.type)try{for(var b=(a=void 0,Ds(Xl(j))),m=b.next();!m.done;m=b.next()){var y=m.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{m&&!m.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else d.get(j)?d.get(j).forEach((function(e){return u.add(e)})):j.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var w=Ds(u),C=w.next();!C.done;C=w.next()){var j;for(f=(j=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return u}function Jl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Gl(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=Jl(e,t)})),o}function Ql(e){var t,n,r=new Map;try{for(var o=Ds(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function ec(e,t){return Jl(e,Ql(Kl([e],t)))}function tc(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function nc(e,t){return"compound"===t.type?Xl(t).some((function(t){return"final"===t.type&&tc(e,t)})):"parallel"===t.type&&Xl(t).every((function(t){return nc(e,t)}))}function rc(e){return new Set(hl(e.map((function(e){return e.tags}))))}function oc(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(jl(e)||jl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return oc(e[n],t[n])}))}var ic=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=tl,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||tl,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return Ns([],As(new Set(hl(Ns([],As(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Il,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Il;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),jl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ns([],As(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Is(e,["configuration","transitions","tags","machine"]);return _s(_s({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return ol(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;rl&&yl(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),ac={deferEvents:!1},sc=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=_s(_s({},ac),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),lc=new Map,cc=0,dc=function(){return"x:".concat(cc++)},uc=function(e,t){return lc.set(e,t),e},pc=function(e){return lc.get(e)},hc=function(e){lc.delete(e)};function fc(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(rl||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function xc(e){if(fc()){var t=function(){var e=fc();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function gc(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(e){var t;return _s(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[$l]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,s),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=Pl(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),s={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,a}var vc,bc={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(vc||(vc={}));var mc=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=vc.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(wl(e))return r.batch(e),r.state;var n=Ll(El(e,t));if(r.status===vc.Stopped)return rl||yl(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==vc.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,i=r.parent&&(t===Ms.Parent||r.parent.id===t),a=i?r.parent:jl(t)?t===Ms.Internal?r:r.children.get(t)||pc(t):(o=t)&&"function"==typeof o.send?t:void 0;if(a)if("machine"in a){if(r.status!==vc.Stopped||r.parent!==a||r.state.done){var s=_s(_s({},e),{name:e.name===Ks?"".concat(Hl(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,s]):a.send(s)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));rl||yl(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||Dl(e.type,o),a=Cl(i)?i:i?i.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Bs:var s=e;r.defer(s);break;case Hs:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===Il):r.send(l._event);break;case Fs:r.cancel(e.sendId);break;case Vs:if(r.status!==vc.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Ps.Invoke){var d=Ol(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;rl||yl(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(rl||yl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var x=h?gl(h,t,n):void 0;if("string"==typeof u)return;var g=Cl(u)?u(t,n.data,{data:x,src:d,meta:c.meta}):u;if(!g)return;var v=void 0;Sl(g)&&(g=x?g.withContext(x):g,v={autoForward:f}),r.spawn(g,p,v)}else r.spawnActivity(c);break;case zs:r.stopChild(e.activity.id);break;case Ws:var b=e,m=b.label,y=b.value;m?r.logger(m,y):r.logger(y);break;default:rl||yl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=_s(_s({},e.defaultOptions),n),i=o.clock,a=o.logger,s=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=a,this.clock=i,this.parent=s,this.options=o,this.scheduler=new sc({deferEvents:this.options.deferEvents}),this.sessionId=dc()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:ql(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return rl||yl(this.status!==vc.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=Ds(e.actions),i=o.next();!i.done;i=o.next()){var a=i.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,a,s,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Il||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Ds(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Ds(this.listeners),x=f.next();!x.done;x=f.next()){(0,x.value)(e,e.event)}}catch(e){o={error:e}}finally{try{x&&!x.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=Ds(this.contextListeners),v=g.next();!v.done;v=g.next()){(0,v.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var b=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),m=b&&b.doneData?gl(b.doneData,e.context,t):void 0;this._doneEvent=Bl(this.id,m);try{for(var y=Ds(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),hc(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===vc.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=Pl(e,t,n);this.listeners.add(o.next),this.status!==vc.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===vc.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===vc.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===vc.Running)return this;this.machine._init(),uc(this.sessionId,this),this.initialized=!0,this.status=vc.Running;var n=void 0===e?this.initialState:ql(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(ic.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Il)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Cl(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,a,s,l,c;try{for(var d=Ds(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=Ds(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var x=Ds(this.contextListeners),g=x.next();!g.done;g=x.next()){p=g.value;this.contextListeners.delete(p)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=x.return)&&i.call(x)}finally{if(o)throw o.error}}try{for(var v=Ds(this.doneListeners),b=v.next();!b.done;b=v.next()){p=b.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=vc.Stopped,this._initialState=void 0;try{for(var m=Ds(Object.keys(this.delayedEventsMap)),y=m.next();!y.done;y=m.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){l={error:e}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new sc({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=Ll({type:"xstate.stop"}),r=ql(e,(function(){var t=hl(Ns([],As(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Nl(t.onExit,e.machine.options.actions)}))),r=As(Fl(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],i=r[1],a=new ic({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!_l(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),hc(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===vc.NotStarted&&this.options.deferEvents)rl||yl(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==vc.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,i=t.state,a=!1,s=[],l=function(e){var r=Ll(e);t.forward(r),i=ql(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),s.push.apply(s,Ns([],As(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return _s(_s({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),a=a||!!i.changed};try{for(var c=Ds(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=a,i.actions=s,t.update(i,Ll(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=Ll(e);if(0===r.name.indexOf(Ys)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Ys)})))throw r.data.data;return ql(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Ds(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,a=this.children.get(i);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),Cl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==vc.Running)return Wl(e,t);if(vl(e))return this.spawnPromise(Promise.resolve(e),t);if(Cl(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&Cl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Sl(e))return this.spawnMachine(e,_s(_s({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,_s(_s({},this.options),{parent:this,id:n.id||t.id})),i=_s(_s({},bc),n);i.sync&&o.onTransition((function(e){r.send(Js,{state:e,id:o.id})}));var a=o;return this.children.set(o.id,a),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(Ll(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=gc(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(Ll(Bl(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=Hl(t,e);try{o.send(Ll(n,{origin:t}))}catch(r){!function(e,t,n){if(!rl){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=Pl(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[$l]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,a=!1,s=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),a||i.send(Ll(e,{origin:t}))}),(function(e){s.add(e)}))}catch(e){this.send(Hl(t,e))}if(vl(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return s.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Pl(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,Cl(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[$l]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(Ll(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(Ll(Hl(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(Ll(Bl(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[$l]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else rl||yl(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[$l]=function(){return this},n))},e.prototype.attachDev=function(){var e=fc();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(_s(_s({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:_s({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}xc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[$l]=function(){return this},e.prototype.getSnapshot=function(){return this.status===vc.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=yc,e}();function yc(e,t){return new mc(e,t)}function wc(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Cc(e){return _s(_s({type:Us},e),{toJSON:function(){e.onDone,e.onError;var t=Is(e,["onDone","onError"]);return _s(_s({},t),{type:Us,src:wc(e.src)})}})}var jc="",kc="*",$c={},Sc=function(e){return"#"===e[0]},Ec=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||Ns([this.machine.key],As(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,rl||yl(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?cl(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,_s(((r={})[o.id]=o,r),o.idMap)),o})):$c;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=Ds(Ul(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===jc})):jc in this.config.on),this.strict=!!this.config.strict,this.onEntry=xl(this.config.entry||this.config.onEntry).map((function(e){return Al(e)})),this.onExit=xl(this.config.exit||this.config.onExit).map((function(e){return Al(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=xl(this.config.invoke).map((function(e,t){var n,r;if(Sl(e)){var o=Ml(a.id,t);return a.machine.options.services=_s(((n={})[o]=e,n),a.machine.options.services),Cc({src:o,id:o})}if(jl(e.src)){o=e.id||Ml(a.id,t);return Cc(_s(_s({},e),{id:o,src:e.src}))}if(Sl(e.src)||Cl(e.src)){o=e.id||Ml(a.id,t);return a.machine.options.services=_s(((r={})[o]=e.src,r),a.machine.options.services),Cc(_s(_s({id:o},e),{src:o}))}var i=e.src;return Cc(_s(_s({id:Ml(a.id,t)},e),{src:i}))})),this.activities=xl(this.config.activities).concat(this.invoke).map((function(e){return Vl(e)})),this.transition=this.transition.bind(this),this.tags=xl(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Yl(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,s=r.services,l=r.delays;return new e(this.config,{actions:_s(_s({},o),t.actions),activities:_s(_s({},i),t.activities),guards:_s(_s({},a),t.guards),services:_s(_s({},s),t.services),delays:_s(_s({},l),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Cl(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:cl(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===jc,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===kc}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(Ps.After,"(").concat(e,")").concat(n)}(Cl(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Hs,event:Cl(e)?e:El(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Cl(e)?e.name:il(e)}}(r,{delay:t})),e.onExit.push({type:Fs,sendId:r}),r},r=wl(t)?t.map((function(e,t){var r=n(e.delay,t);return _s(_s({},e),{event:r})})):hl(Object.keys(t).map((function(e,r){var o=t[e],i=jl(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return xl(i).map((function(e){return _s(_s({},e),{event:s,delay:a})}))})));return r.map((function(t){var n=t.delay;return _s(_s({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof ic?e.value:sl(e,this.delimiter);if(jl(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),a=[this];return a.push.apply(a,Ns([],As(hl(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=il(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ic?e:ic.create(e),n=Array.from(Kl([],this.getStateNodes(t.value)));return new ic(_s(_s({},t),{value:this.resolve(t.value),configuration:n,done:nc(n,this),tags:rc(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var a=Ds(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),p=hl(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=hl(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:p,exitSet:hl(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:hl(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return jl(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,Ll(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],l=[];try{for(var c=Ds(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,x=!h||(jl(h)&&Sc(h)?e.matches(sl(this.getStateNodeById(h).path,this.delimiter)):ol(sl(h,this.delimiter),ul(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||Tl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&x){void 0!==u.target&&(l=u.target),s.push.apply(s,Ns([],As(u.actions),!1)),o=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var v=hl(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:hl(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:v,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,i,a){var s,l,c,d,u=this,p=i?Kl([],this.getStateNodes(i.value)):[],h=new Set;try{for(var f=Ds(Array.from(e).sort((function(e,t){return e.order-t.order}))),x=f.next();!x.done;x=f.next()){(!tc(p,b=x.value)||tc(n.exitSet,b)||b.parent&&h.has(b.parent))&&h.add(b)}}catch(e){s={error:e}}finally{try{x&&!x.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}try{for(var g=Ds(p),v=g.next();!v.done;v=g.next()){var b;tc(e,b=v.value)&&!tc(n.exitSet,b.parent)||n.exitSet.push(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var m=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=hl(m.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(zl(e.id,e.doneData),zl(i.id,e.doneData?gl(e.doneData,r,o):void 0));var a=i.parent;return"parallel"===a.type&&Xl(a).every((function(e){return nc(n.configuration,e)}))&&t.push(zl(a.id)),t}))),C=m.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Vl(e);return{type:Ps.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Nl(a?Ns(Ns([],As(t),!1),As(n),!1):Ns(Ns([],As(n),!1),As(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:Bs,event:"function"==typeof e?e:El(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),j=Array.from(y).map((function(e){return{type:"exit",actions:Nl(Ns(Ns([],As(e.onExit),!1),As(e.activities.map((function(e){return function(e){var t=Cl(e)?e:Vl(e);return{type:Ps.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Nl(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Nl(hl(Ns([],As(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!_l(e)}));return j.concat({type:"stop",actions:k})}return j},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,a=Ll(t);if(e instanceof ic)o=void 0===n?e:this.resolveState(ic.from(e,n));else{var s=jl(e)?this.resolve(ll(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(ic.from(s,l))}if(!rl&&a.name===kc)throw new Error("An event cannot have the wildcard type ('".concat(kc,"')"));if(this.strict&&!this.events.includes(a.name)&&(i=a.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(o.value,o,a)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=Kl([],this.getStateNodes(o.value)),u=c.configuration.length?Kl(d,c.configuration):d;return c.configuration=Ns([],As(u),!1),this.resolveTransition(c,o,o.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,Ns([],As(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,a,s,l,c=this;void 0===o&&(o=Il);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=nc(p,this),f=u?ec(this.machine,d):void 0,x=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(p),h,e,n,o,t,r),v=t?_s({},t.activities):{};try{for(var b=Ds(g),m=b.next();!m.done;m=b.next()){var y=m.value;try{for(var w=(s=void 0,Ds(y.actions)),C=w.next();!C.done;C=w.next()){var j=C.value;j.type===Vs?v[j.activity.id||j.activity.type]=j:j.type===zs&&(v[j.activity.id||j.activity.type]=!1)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}var k,$,S=As(Fl(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=S[0],L=S[1],R=As(function(e,t){var n,r,o=As([[],[]],2),i=o[0],a=o[1];try{for(var s=Ds(e),l=s.next();!l.done;l=s.next()){var c=l.value;t(c)?i.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[i,a]}(E,_l),2),T=R[0],O=R[1],P=E.filter((function(e){var t;return e.type===Vs&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Us})),M=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=Ol(e.src),a=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],s=e.data?gl(e.data,n,r):void 0,l=a?Wl(a,e.id,s):Zl(e.id);return l.meta=e,l}(t.activity,c.machine,L,o),e}),t?_s({},t.children):{}),_=new ic({value:f||t.value,context:L,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?x?(k=x,$=f,{current:$,states:bl(k,$)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?O:[],activities:f?v:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:M,done:h,tags:rc(p),machine:this}),I=n!==L;_.changed=o.name===Js||I;var D=_.history;D&&delete D.history;var A=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||A&&o.name!==jc))return _;var N=_;if(!h)for(A&&(N=this.resolveRaisedTransition(N,{type:qs},o,r));T.length;){var V=T.shift();N=this.resolveRaisedTransition(N,V._event,o,r)}var z=N.changed||(D?!!N.actions.length||I||typeof D.value!=typeof N.value||!oc(N.value,D.value):void 0);return N.changed=z,N.history=D,N},e.prototype.getStateNode=function(e){if(Sc(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=Sc(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&Sc(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=al(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||$c;switch(this.type){case"parallel":return cl(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):$c}));case"compound":if(jl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?cl(e,(function(e,t){return e?n.getStateNode(t).resolve(e):$c})):this.initialStateValue||{};default:return e||$c}},e.prototype.getResolvedPath=function(e){if(Sc(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return al(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=dl(this.states,(function(e){return e.initialStateValue||$c}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Gl(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=jl(t.target)&&Sc(t.target)?ll(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Gl(this)?[this]:"compound"!==this.type||this.initial?hl(pl(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(rl||yl(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=As(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:dl(this.states,(function(t,n){if(!e)return t.historyValue();var r=jl(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?hl(pl(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,a=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var a=Ds(o),s=a.next();!s.done;s=a.next()){var l=s.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return jl(a)?[n.getStateNode(a)]:hl(pl(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=hl(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=Ds(Object.keys(o)),s=a.next();!s.done;s=a.next()){var l=o[s.value];if(l.states)try{for(var c=(n=void 0,Ds(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!jl(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return xl(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return jl(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=_s(_s({},e),{actions:Nl(xl(e.actions)),cond:kl(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return _s(_s({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=kc,a=o[i],s=void 0===a?[]:a,l=Is(o,["*"]);n=hl(Object.keys(l).map((function(e){rl||e!==jc||yl(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=Rl(e,l[e]);return rl||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(jl(e.target)||Sl(e.target))})),o=t===jc?"the transient event":"event '".concat(t,"'");yl(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(Rl(kc,s)))}else n=[];var c=this.config.always?Rl("",this.config.always):[],d=this.config.onDone?Rl(String(zl(this.id)),this.config.onDone):[];rl||yl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=hl(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ns([],As(Rl(String(Bl(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ns([],As(Rl(String(Hl(e.id)),e.onError)),!1)),t}))),p=this.after,h=hl(Ns(Ns(Ns(Ns([],As(d),!1),As(u),!1),As(n),!1),As(c),!1).map((function(e){return xl(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ds(p),x=f.next();!x.done;x=f.next()){var g=x.value;h.push(g)}}catch(t){e={error:t}}finally{try{x&&!x.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var Lc,Rc=function(e){return{type:Zs,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(Lc||(Lc={}));var Tc="undefined"!=typeof document?n.useLayoutEffect:function(){};function Oc(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}var Pc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Mc=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var _c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ic=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Dc(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Ac(e){var t=n.useRef([]),r=n.useRef([]);Tc((function(){var n=e.subscribe((function(e){var n,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=_c(function(e,t){var n,r,o=Pc([[],[]],2),i=o[0],a=o[1];try{for(var s=Mc(e),l=s.next();!l.done;l=s.next()){var c=l.value;t(c)?i.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[i,a]}(i,(function(e){return e.exec.__effect===Lc.Effect})),2),s=a[0],l=a[1];(n=t.current).push.apply(n,Ic([],_c(s.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,Ic([],_c(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),Tc((function(){for(;r.current.length;){var e=_c(r.current.shift(),2);Dc(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=_c(t.current.shift(),2);Dc(e[0],e[1])}}))}var Nc=function(){return Nc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nc.apply(this,arguments)},Vc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},zc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var Bc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Hc(e,t){void 0===t&&(t={});var r=n.useCallback((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),o=function(e,t,r){void 0===t&&(t={});var o=Oc((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=zc(n.useState(o),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var a=t.context,s=t.guards,l=t.actions,c=t.activities,d=t.services,u=t.delays,p=t.state,h=Vc(t,["context","guards","actions","activities","services","delays","state"]),f=Oc((function(){var e={context:a,guards:s,actions:l,activities:c,services:d,delays:u};return yc(o.withConfig(e,(function(){return Nc(Nc({},o.context),a)})),Nc({deferEvents:!0},h))}));return Tc((function(){var e;return r&&(e=f.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(r))),function(){null==e||e.unsubscribe()}}),[r]),Tc((function(){return f.start(p?ic.create(p):void 0),function(){f.stop()}}),[]),Tc((function(){Object.assign(f.machine.options.actions,l),Object.assign(f.machine.options.guards,s),Object.assign(f.machine.options.activities,c),Object.assign(f.machine.options.services,d),Object.assign(f.machine.options.delays,u)}),[l,s,c,d,u]),Ac(f),f}(e,t,r),i=Bc(n.useState((function(){var e=o.machine.initialState;return t.state?ic.create(t.state):e})),2),a=i[0],s=i[1];return[a,o.send,o]}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(null,arguments)}function qc(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Zc={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Zc.str(e)||Zc.num(e))return e===t;if(Zc.obj(e)&&Zc.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Zc.und(n)||e===t}};function Wc(e,t){return Zc.und(e)||Zc.nul(e)?t:e}function Gc(e){return Zc.und(e)?[]:Zc.arr(e)?e:[e]}function Uc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zc.fun(e)?e(...n):e}function Xc(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,qc(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Zc.und(t))return Fc({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Zc.und(t[r])?Fc({},n,{[r]:e[r]}):n),{});return Fc({to:t},n)}class Yc{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Kc extends Yc{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Yc&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Yc&&e.removeChild(this)))}}class Jc extends Yc{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Yc&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Yc&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof Yc)&&(t[n]=r instanceof Yc?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let Qc,ed;let td,nd=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let rd,od=()=>Date.now();class id extends Jc{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Fc({},e,{style:rd(e.style)}):e,this.update=t,this.attach()}}let ad=!1;const sd=new Set,ld=()=>{if(!ad)return!1;let e=od();for(let t of sd){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let s=a.fromValues[t],l=a.toValues[t],c=r.lastPosition,d=l instanceof Yc,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(l=l.getValue()),a.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof s&&"string"!=typeof l){if(void 0!==a.duration)c=s+a.easing((e-r.startTime)/a.duration)*(l-s),o=e>=r.startTime+a.duration;else if(a.decay)c=s+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-l)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(s<l?c>l:c<l),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(l-c)<=a.precision;o=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(sd.delete(t),t.stop(!0))}return sd.size?nd(ld):ad=!1,ad};function cd(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return cd({range:e,output:t,extrapolate:n});if(td&&"string"==typeof e.output[0])return td(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}}class dd extends Kc{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Kc&&!(e instanceof dd)?e.getPayload():Array.isArray(e)?e:[e],this.calc=cd(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=cd(e,t,n)}interpolate(e,t,n){return new dd(this,e,t,n)}}const ud=(e,t,n)=>e&&new dd(e,t,n);function pd(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>pd(e,t)))}class hd extends Yc{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&pd(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new dd(this,e,t,n)}}class fd extends Kc{constructor(e){super(),this.payload=e.map((e=>new hd(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new dd(this,e,t)}}let xd=0,gd=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=xd++}update(e){if(!e)return this;const t=Xc(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=qc(t,["delay","to"]);if(Zc.arr(o)||Zc.fun(o))this.queue.push(Fc({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const a=Fc({to:{[n]:o},delay:Uc(r,n)},i),s=e[a.delay]&&e[a.delay].to;e[a.delay]=Fc({},e[a.delay],a,{to:Fc({},s,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,o=void 0===r?{}:r;Zc.obj(n)&&(this.merged=Fc({},n,this.merged)),Zc.obj(o)&&(this.merged=Fc({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,a=qc(r,["delay"]);const s=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=Zc.arr(a.to)||Zc.fun(a.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(a,s):this.diff(a).start(s))}),i):l?this.runAsync(a,s):this.diff(a).start(s)}))}else Zc.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,sd.has(t)||sd.add(t),ad||(ad=!0,nd(ld));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,sd.has(t)&&sd.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=qc(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(Zc.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Fc({},r,Xc(r.to[t]));Zc.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(Zc.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=Fc({},r,Xc(n));if(Zc.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=Fc({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,a=t.config,s=void 0===a?{}:a,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var p=[i,r];r=p[0],i=p[1]}this.merged=Fc({},r,this.merged,i),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const a=Zc.num(o),l=Zc.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!ed[o],c=Zc.arr(o),p=!a&&!c&&!l;let f=Zc.und(r[n])?o:r[n],x=a||c||l?o:1,g=Uc(s,n);h&&(x=h.animations[n].parent);let v,b=i.parent,m=i.interpolation,y=Gc(h?x.getPayload():x),w=o;p&&(w=td({range:[0,1],output:[o,o]})(1));let C=m&&m.getValue();const j=!Zc.und(b)&&i.animatedValues.some((e=>!e.done)),k=!Zc.equ(w,C),$=!Zc.equ(w,i.previous),S=!Zc.equ(g,i.config);if(d||$&&k||S){if(a||l)b=m=i.parent||new hd(f);else if(c)b=m=i.parent||new fd(f);else if(p){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(b=i.parent,b.setValue(0,!1)):b=new hd(0);const t={output:[e,o]};i.interpolation?(m=i.interpolation,i.interpolation.updateConfig(t)):m=b.interpolate(t)}return y=Gc(h?x.getPayload():x),v=Gc(b.getPayload()),d&&!p&&b.setValue(f,!1),this.hasChanged=!0,v.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=j?e.lastVelocity:void 0,e.lastTime=j?e.lastTime:void 0,e.startTime=od(),e.done=!1,e.animatedStyles.clear()})),Uc(u,n)&&b.setValue(p?x:o,!1),Fc({},e,{[n]:Fc({},i,{name:n,parent:b,interpolation:m,animatedValues:v,toValues:y,previous:w,config:g,fromValues:Gc(b.getValue()),immediate:Uc(u,n),initialVelocity:Wc(g.velocity,0),clamp:Wc(g.clamp,!1),precision:Wc(g.precision,.01),tension:Wc(g.tension,170),friction:Wc(g.friction,26),mass:Wc(g.mass,1),duration:g.duration,easing:Wc(g.easing,(e=>e)),decay:g.decay})})}return k?e:(p&&(b.setValue(1,!1),m.updateConfig({output:[w,w]})),b.done=!0,this.hasChanged=!0,Fc({},e,{[n]:Fc({},e[n],{previous:w})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const vd=e=>{const t=Zc.fun(e),r=((e,t)=>{const r=n.useRef(!1),o=n.useRef(),i=Zc.fun(t),a=n.useMemo((()=>{let n;return o.current&&(o.current.map((e=>e.destroy())),o.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new gd,a=i?Uc(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),s=a[0],l=a[1];o.current=s,n.useImperativeHandle(l,(()=>({start:()=>Promise.all(o.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>o.current.forEach((t=>t.stop(e))),get controllers(){return o.current}})));const c=n.useMemo((()=>e=>o.current.map(((t,n)=>{t.update(i?Uc(e,n,t):e[n]),l||t.start()}))),[e]);n.useEffect((()=>{r.current?i||c(t):l||o.current.forEach((e=>e.start()))})),n.useEffect((()=>(r.current=!0,()=>o.current.forEach((e=>e.destroy())))),[]);const d=o.current.map((e=>e.getValues()));return i?[d,c,e=>o.current.forEach((t=>t.pause(e)))]:d})(1,t?e:[e]),o=r[0],i=r[1],a=r[2];return t?[o[0],i,a]:o};class bd extends Jc{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Yc||(e=Qc.transform(e)),this.payload=e}}const md={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},yd="[-+]?\\d*\\.?\\d+",wd=yd+"%";function Cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const jd=new RegExp("rgb"+Cd(yd,yd,yd)),kd=new RegExp("rgba"+Cd(yd,yd,yd,yd)),$d=new RegExp("hsl"+Cd(yd,wd,wd)),Sd=new RegExp("hsla"+Cd(yd,wd,wd,yd)),Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ld=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Rd=/^#([0-9a-fA-F]{6})$/,Td=/^#([0-9a-fA-F]{8})$/;function Od(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pd(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Od(o,r,e+1/3),a=Od(o,r,e),s=Od(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Md(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function _d(e){return(parseFloat(e)%360+360)%360/360}function Id(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Dd(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ad(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Rd.exec(e))?parseInt(t[1]+"ff",16)>>>0:md.hasOwnProperty(e)?md[e]:(t=jd.exec(e))?(Md(t[1])<<24|Md(t[2])<<16|Md(t[3])<<8|255)>>>0:(t=kd.exec(e))?(Md(t[1])<<24|Md(t[2])<<16|Md(t[3])<<8|Id(t[4]))>>>0:(t=Ed.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Td.exec(e))?parseInt(t[1],16)>>>0:(t=Ld.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=$d.exec(e))?(255|Pd(_d(t[1]),Dd(t[2]),Dd(t[3])))>>>0:(t=Sd.exec(e))?(Pd(_d(t[1]),Dd(t[2]),Dd(t[3]))|Id(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Nd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Vd=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zd=new RegExp(`(${Object.keys(md).join("|")})`,"g");let Bd={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Hd=["Webkit","Ms","Moz","O"];function Fd(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Bd.hasOwnProperty(e)&&Bd[e]?(""+t).trim():t+"px"}Bd=Object.keys(Bd).reduce(((e,t)=>(Hd.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Bd);const qd={};var Zd;rd=e=>new bd(e),Zd=e=>{const t=e.output.map((e=>e.replace(Vd,Ad))).map((e=>e.replace(zd,Ad))),n=t[0].match(Nd).map((()=>[]));t.forEach((e=>{e.match(Nd).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Nd).map(((t,r)=>cd(Fc({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Nd,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},td=Zd,ed=md,function(e,t){Qc={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,a=t.scrollTop,s=t.scrollLeft,l=qc(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Fd(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:qd[t]||(qd[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var Wd;const Gd=(Wd=e=>n.forwardRef(((t,r)=>{const o=function(){const e=n.useState(!1)[1];return n.useCallback((()=>e((e=>!e))),[])}(),i=n.useRef(!0),a=n.useRef(null),s=n.useRef(null),l=n.useCallback((e=>{const t=a.current;a.current=new id(e,(()=>{let e=!1;s.current&&(e=Qc.fn(s.current,a.current.getAnimatedValue())),s.current&&!1!==e||o()})),t&&t.detach()}),[]);n.useEffect((()=>()=>{i.current=!1,a.current&&a.current.detach()}),[]),n.useImperativeHandle(r,(()=>(e=>e.current)(s))),l(t);const c=a.current.getValue();c.scrollTop,c.scrollLeft;const d=qc(c,["scrollTop","scrollLeft"]),u=(p=e,!Zc.fun(p)||p.prototype instanceof n.Component?e=>s.current=function(e,t){return t&&(Zc.fun(t)?t(e):Zc.obj(t)&&(t.current=e)),e}(e,r):void 0);var p;return n.createElement(e,Fc({},d,{ref:u}))})),e=>(Zc.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Wd(n),e}),Wd))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Ud(e,t){return e.map((function(e,n){return e+t[n]}))}function Xd(e,t){return e.map((function(e,n){return e-t[n]}))}function Yd(e){return Math.hypot.apply(Math,e)}function Kd(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Jd(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Qd(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Jd(t-e,n-t,r)+t:e>n?+Jd(e-n,n-t,r)+n:e}function eu(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function tu(){return tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function nu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ou(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function au(){}function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?au:1===t.length?t[0]:function(){for(var e,n,r=iu(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function lu(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function cu(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function du(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];switch(typeof s){case"function":n[a]=s.call(n,e[a],a,e);break;case"object":n[a]=du(e[a],s);break;case"boolean":s&&(n[a]=e[a])}}return n}var uu=tu({},{threshold:function(e){return void 0===e&&(e=0),lu(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return lu(.15);case!1:return lu(0);default:return lu(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:lu(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return uu.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,a=t.top,s=void 0===a?-1/0:a,l=t.bottom;return[[r,i],[s,void 0===l?1/0:l]]}}),pu="undefined"!=typeof window&&window.document&&window.document.createElement,hu={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=pu?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},fu=tu({},uu,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,a=void 0!==i&&i,s=n.axis,l=lu(e,o?3:a||(void 0===s?void 0:s)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),lu(e)},swipeDistance:function(e){return void 0===e&&(e=60),lu(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function xu(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),du(e,hu)}({domTarget:t,eventOptions:n,window:r,enabled:o});return a.drag=function(e){return void 0===e&&(e={}),du(e,fu)}(i),a}function gu(e){return tu({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:au,canceled:!1,memo:void 0,args:void 0},e)}function vu(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:gu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:gu({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:gu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:gu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:gu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var bu=new Map,mu=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=tu({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,o=t.rubberband,i=t.threshold,a=this.state,s=a._bounds,l=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?yu(h[0],i[0]):d[0],x=!1===d[1]?yu(h[1],i[1]):d[1],g=this.checkIntentionality([f,x],h);if(g._blocked)return tu({},g,{_movement:h,delta:[0,0]});var v,b,m,y,w=g._intentional,C=h;(!1!==w[0]&&!1===d[0]&&(b=cu(n,this.state),v=cu(r,this.state),l[0]=b[0],s[0]=v[0]),!1!==w[1]&&!1===d[1])&&(b=null!=(m=b)?m:cu(n,this.state),v=null!=(y=v)?y:cu(r,this.state),l[1]=b[1],s[1]=v[1]);var j=[!1!==w[0]?h[0]-w[0]:l[0],!1!==w[1]?h[1]-w[1]:l[1]],k=Ud(j,u),$=c?o:[0,0];return j=wu(s,Ud(j,l),$),tu({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:j,values:e,offset:wu(s,k,$),delta:Xd(j,p)})},t.clean=function(){this.clearTimeout()},eu(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function yu(e,t){return Math.abs(e)>=t&&Kd(e)*t}function wu(e,t,n){var r=t[0],o=t[1],i=n[0],a=n[1],s=e[0],l=s[0],c=s[1],d=e[1],u=d[0],p=d[1];return[Qd(r,l,c,i),Qd(o,u,p,a)]}function Cu(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,a=t.type,s=r.values;return{_lastEventType:a,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:s}}function ju(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,tu({},t,{event:n})].concat(o))}}var ku=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,a=iu(t.classes);!(i=a()).done;){new(0,i.value)(t,r).addBindings(e)}for(var s=0,l=Object.entries(t.nativeRefs);s<l.length;s++){var c=l[s];Eu(e,c[0],ju(c[1],tu({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=Su(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;Ru(o,$u(r),i);for(var a=0,s=Object.entries(t);a<s.length;a++){var l=s[a],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,su.apply(void 0,d)])}Lu(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,a=Object.entries(t);i<a.length;i++){var s=a[i],l=s[0],c=s[1],d=Array.isArray(c)?c:[c];r[l+o]=su.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Su(t.config),n=t.config.eventOptions;e&&Ru(e,$u(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){Ru(n,o[i],r)}e.windowListeners={}}(t)},this.state=vu(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function $u(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Su(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Eu(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Lu(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iu(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.addEventListener(a,s,n)}}function Ru(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iu(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.removeEventListener(a,s,n)}}function Tu(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(bu.get("drag"));e.wheel&&t.add(bu.get("wheel"));e.scroll&&t.add(bu.get("scroll"));e.move&&t.add(bu.get("move"));e.pinch&&t.add(bu.get("pinch"));e.hover&&t.add(bu.get("hover"));return t}(e),i=n.useMemo((function(){return new ku(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?Ou:i.bind}function Ou(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function Pu(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Mu(e){var t="buttons"in e?e.buttons:0,n=Pu(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function _u(e){var t=Pu(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Iu=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(Ru(r.window,o[t],r.eventOptions),Lu(r.window,o[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(ru(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Mu(e);if(n.down){t.updateSharedState(n);var r=_u(e),o=t.getKinematics(r,e),i=Cu(ru(t),e),a=t.state._isTap,s=Yd(o._movement);a&&s>=3&&(a=!1),t.updateGestureState(tu({},i,o,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,o=r[0],i=r[1],a=t.state.movement,s=a[0],l=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],x=t.config.swipeDistance,g=x[0],v=x[1],b=tu({},Cu(ru(t),e),t.getMovement(t.state.values)),m=[0,0];b.elapsedTime<220&&(!1!==d&&Math.abs(o)>h&&Math.abs(s)>g&&(m[0]=Kd(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>v&&(m[1]=Kd(i))),t.updateGestureState(tu({},b,{tap:n,swipe:m})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(ru(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Ru(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}nu(t,e);var n=t.prototype;return n.startDrag=function(e){var t=_u(e);this.updateSharedState(Mu(e)),this.updateGestureState(tu({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return tu({},vu()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),Cu(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Eu(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Eu(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}nu(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Xd(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=Yd(t),o=0===r?0:1/r,i=0===n?0:1/n,a=i*r,s=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:s,velocity:a,distance:Yd(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(mu));function Du(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Du(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Du(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||Du(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Au(e,t){try{return Du(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function Nu(e,t){void 0===t&&(t={}),bu.set("drag",Iu);var r=n.useRef();return r.current||(r.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return i&&n===this&&t(s,o)||(r=e.apply(this,s),i=!0,n=this,o=s),r}}(xu,Au)),Tu({drag:e},r.current(t))}
|
|
2446
2469
|
/*!
|
|
2447
2470
|
* tabbable 5.3.3
|
|
2448
2471
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2449
|
-
*/var
|
|
2472
|
+
*/var Vu=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],zu=Vu.join(","),Bu="undefined"==typeof Element,Hu=Bu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fu=!Bu&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},qu=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(zu));return t&&Hu.call(e,zu)&&r.unshift(e),r=r.filter(n)},Zu=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:a,candidates:l})}else{Hu.call(a,zu)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else i.unshift.apply(i,a.children)}}return o},Wu=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Gu=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Uu=function(e){return"INPUT"===e.tagName},Xu=function(e){return function(e){return Uu(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Fu(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},Yu=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ku=function(e,t){return!(t.disabled||function(e){return Uu(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Hu.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Hu.call(o,"details:not([open]) *"))return!0;var i=Fu(e).host,a=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return Yu(e)}else{if("function"==typeof r){for(var s=e;e;){var l=e.parentElement,c=Fu(e);if(l&&!l.shadowRoot&&!0===r(l))return Yu(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=s}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Hu.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ju=function(e,t){return!(Xu(t)||Wu(t)<0||!Ku(e,t))},Qu=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ep=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,a=i?t.scope:t,s=Wu(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(Gu).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},tp=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Zu([e],t.includeContainer,{filter:Ju.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Qu}):qu(e,t.includeContainer,Ju.bind(null,t)),ep(n)},np=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Hu.call(e,zu)&&Ju(t,e)},rp=Vu.concat("iframe").join(","),op=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Hu.call(e,rp)&&Ku(t,e)};
|
|
2450
2473
|
/*!
|
|
2451
2474
|
* focus-trap 6.9.4
|
|
2452
2475
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2453
2476
|
*/
|
|
2454
|
-
function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){rp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var op,ip=(op=[],{activateTrap:function(e){if(op.length>0){var t=op[op.length-1];t!==e&&t.pause()}var n=op.indexOf(e);-1===n||op.splice(n,1),op.push(e)},deactivateTrap:function(e){var t=op.indexOf(e);-1!==t&&op.splice(t,1),op.length>0&&op[op.length-1].unpause()}}),ap=function(e){return setTimeout(e,0)},sp=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},lp=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},cp=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},up=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=np({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=Kd(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?Bd([t],n.includeContainer,{filter:Gd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):zd(t,n.includeContainer,Gd.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return Jd(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return Jd(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=cp(e);s(t)>=0||(lp(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!ep(t,o.tabbableOptions)}):lp(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=cp(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(i.mostRecentlyFocusedNode||c()))},x=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==lp(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=cp(e);u();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=sp(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||ep(t,o.tabbableOptions)&&!Jd(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[p].lastTabbableNode}}else{var h=sp(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||ep(t,o.tabbableOptions)&&!Jd(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===i.tabbableGroups.length-1?0:h+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},g=function(e){var t=cp(e);s(t)>=0||lp(o.clickOutsideDeactivates,e)||lp(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return ip.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?ap((function(){d(c())})):d(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),n},m=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",x,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||u(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&u(),v(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=np({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,ip.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),l=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var u=function(){ap((function(){c&&d(p(i.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(p(i.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,m()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,u(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&u(),this}}).updateContainerElements(e),n};var dp=!1;if("undefined"!=typeof window){var pp={get passive(){dp=!0}};window.addEventListener("testPassive",null,pp),window.removeEventListener("testPassive",null,pp)}var hp,fp="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),xp=[],gp=!1,vp=-1,mp=void 0,bp=void 0,yp=function(e){return xp.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},wp=function(e){var t=e||window.event;return!!yp(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Cp=function(e,t){if(e){if(!xp.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};xp=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(xp),[n]),fp?(e.ontouchstart=function(e){1===e.targetTouches.length&&(vp=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-vp;!yp(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?wp(e):e.stopPropagation())}(t,e)},gp||(document.addEventListener("touchmove",wp,dp?{passive:!1}:void 0),gp=!0)):function(e){if(void 0===bp){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(bp=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===mp&&(mp=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},jp=function(e){e?(xp=xp.filter((function(t){return t.targetElement!==e})),fp?(e.ontouchstart=null,e.ontouchmove=null,gp&&0===xp.length&&(document.removeEventListener("touchmove",wp,dp?{passive:!1}:void 0),gp=!1)):xp.length||(void 0!==bp&&(document.body.style.paddingRight=bp,bp=void 0),void 0!==mp&&(document.body.style.overflow=mp,mp=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},kp=[],$p="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(hp||(hp={}));var Sp,Ep=function(e){return Object.freeze(e)},Rp=function(e,t){this.inlineSize=e,this.blockSize=t,Ep(this)},Lp=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ep(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Op=function(e){return e instanceof SVGElement&&"getBBox"in e},Tp=function(e){if(Op(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Mp=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Pp="undefined"!=typeof window?window:{},_p=new WeakMap,Dp=/auto|scroll/,Ip=/^tb|vertical/,Np=/msie|trident/i.test(Pp.navigator&&Pp.navigator.userAgent),Vp=function(e){return parseFloat(e||"0")},Ap=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Rp((n?t:e)||0,(n?e:t)||0)},zp=Ep({devicePixelContentBoxSize:Ap(),borderBoxSize:Ap(),contentBoxSize:Ap(),contentRect:new Lp(0,0,0,0)}),Bp=function(e,t){if(void 0===t&&(t=!1),_p.has(e)&&!t)return _p.get(e);if(Tp(e))return _p.set(e,zp),zp;var n=getComputedStyle(e),r=Op(e)&&e.ownerSVGElement&&e.getBBox(),o=!Np&&"border-box"===n.boxSizing,i=Ip.test(n.writingMode||""),a=!r&&Dp.test(n.overflowY||""),s=!r&&Dp.test(n.overflowX||""),l=r?0:Vp(n.paddingTop),c=r?0:Vp(n.paddingRight),u=r?0:Vp(n.paddingBottom),d=r?0:Vp(n.paddingLeft),p=r?0:Vp(n.borderTopWidth),h=r?0:Vp(n.borderRightWidth),f=r?0:Vp(n.borderBottomWidth),x=d+c,g=l+u,v=(r?0:Vp(n.borderLeftWidth))+h,m=p+f,b=s?e.offsetHeight-m-e.clientHeight:0,y=a?e.offsetWidth-v-e.clientWidth:0,w=o?x+v:0,C=o?g+m:0,j=r?r.width:Vp(n.width)-w-y,k=r?r.height:Vp(n.height)-C-b,$=j+x+y+v,S=k+g+b+m,E=Ep({devicePixelContentBoxSize:Ap(Math.round(j*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:Ap($,S,i),contentBoxSize:Ap(j,k,i),contentRect:new Lp(d,l,j,k)});return _p.set(e,E),E},Hp=function(e,t,n){var r=Bp(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case hp.DEVICE_PIXEL_CONTENT_BOX:return a;case hp.BORDER_BOX:return o;default:return i}},Fp=function(e){var t=Bp(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Ep([t.borderBoxSize]),this.contentBoxSize=Ep([t.contentBoxSize]),this.devicePixelContentBoxSize=Ep([t.devicePixelContentBoxSize])},Zp=function(e){if(Tp(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},qp=function(){var e=1/0,t=[];kp.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Fp(t.target),o=Zp(t.target);r.push(n),t.lastReportedSize=Hp(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Wp=function(e){kp.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Zp(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Gp=function(){var e=0;for(Wp(e);kp.some((function(e){return e.activeTargets.length>0}));)e=qp(),Wp(e);return kp.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:$p}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=$p),window.dispatchEvent(e)}(),e>0},Up=[],Xp=function(e){if(!Sp){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Up.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Sp=function(){n.textContent="".concat(t?t--:t++)}}Up.push(e),Sp()},Yp=0,Kp={attributes:!0,characterData:!0,childList:!0,subtree:!0},Jp=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Qp=function(e){return void 0===e&&(e=0),Date.now()+e},eh=!1,th=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!eh){eh=!0;var n,r=Qp(e);n=function(){var n=!1;try{n=Gp()}finally{if(eh=!1,e=r-Qp(),!Yp)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Xp((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Kp)};document.body?t():Pp.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Jp.forEach((function(t){return Pp.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Jp.forEach((function(t){return Pp.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),nh=function(e){!Yp&&e>0&&th.start(),!(Yp+=e)&&th.stop()},rh=function(){function e(e,t){this.target=e,this.observedBox=t||hp.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Hp(this.target,this.observedBox,!0);return function(e){return!Op(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),oh=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ih=new WeakMap,ah=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},sh=function(){function e(){}return e.connect=function(e,t){var n=new oh(e,t);ih.set(e,n)},e.observe=function(e,t,n){var r=ih.get(e),o=0===r.observationTargets.length;ah(r.observationTargets,t)<0&&(o&&kp.push(r),r.observationTargets.push(new rh(t,n&&n.box)),nh(1),th.schedule())},e.unobserve=function(e,t){var n=ih.get(e),r=ah(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&kp.splice(kp.indexOf(n),1),n.observationTargets.splice(r,1),nh(-1))},e.disconnect=function(e){var t=this,n=ih.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),lh=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");sh.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mp(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");sh.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mp(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");sh.unobserve(this,e)},e.prototype.disconnect=function(){sh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ch(){return ch=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ch.apply(this,arguments)}function uh(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var dh="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function ph(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function hh(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var fh={box:"border-box"};function xh(e,t){var r=t.label,o=t.enabled,i=t.resizeSourceRef,a=n.useState(0),s=a[0],l=a[1];n.useDebugValue(r+": "+s);var c=n.useCallback((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return dh((function(){if(e.current&&o){var t=new lh(c);return t.observe(e.current,fh),function(){t.disconnect()}}}),[e,c,o]),o?s:0}function gh(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var vh={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},mh={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},bh=function(e,t,n){return void 0===n&&(n=e.context),new jc(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:ch({},vh,mh)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:ch({},vh,mh)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:ch({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[$c({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(gh()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),yh=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],wh=["velocity"],Ch=["onRest","config"],jh={tension:170,friction:26},kh=jh.tension,$h=jh.friction,Sh=n.forwardRef((function(e,t){var r=e.children,o=e.sibling,i=e.className,a=e.footer,s=e.header,l=e.open,c=e.initialState,u=e.lastSnapRef,d=e.initialFocusRef,p=e.onDismiss,h=e.maxHeight,f=e.defaultSnap,x=void 0===f?Rh:f,g=e.snapPoints,v=void 0===g?Lh:g,m=e.blocking,b=void 0===m||m,y=e.scrollLocking,w=void 0===y||y,C=e.style,j=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?b:S,R=e.expandOnContentDrag,L=void 0!==R&&R,O=uh(e,yh),T=function(){var e=n.useState(!1),t=e[0],r=e[1],o=n.useState({}),i=o[0],a=o[1],s=n.useCallback((function(e){return a((function(t){var n;return ch({},t,((n={})[e]=!1,n))})),function(){a((function(t){var n;return ch({},t,((n={})[e]=!0,n))}))}}),[]);return n.useEffect((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&r(!0)}),[i]),{ready:t,registerReady:s}}(),M=T.ready,P=T.registerReady,_=n.useRef(!1),D=n.useRef(j),I=n.useRef(k),N=n.useRef($);n.useEffect((function(){D.current=j,I.current=k,N.current=$}),[k,j,$]);var V,A,z=hu((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=z[0],H=z[1],F=n.useRef(null),Z=n.useRef(null),q=n.useRef(null),W=n.useRef(null),G=n.useRef(null),U=n.useRef(null),X=n.useRef(0),Y=n.useRef(),K=n.useRef(!1),J=(V=n.useMemo((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),A=n.useRef(null==V?void 0:V.matches),n.useDebugValue(A.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){A.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),A),Q=function(e){var t=e.targetRef,r=e.enabled,o=e.reserveScrollBarGap,i=n.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1;i.current={activate:function(){n||(n=!0,Cp(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,jp(e))}}}),[r,t,o]),i}({targetRef:Z,enabled:M&&w,reserveScrollBarGap:E}),ee=function(e){var t=e.targetRef,r=e.enabled,o=n.useRef({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1,i=[],a=[];o.current={activate:function(){if(!n){n=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){n&&(n=!1,a.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],a=[])}}}),[t,r]),o}({targetRef:F,enabled:M&&b}),te=function(e){var t=e.targetRef,r=e.fallbackRef,o=e.initialFocusRef,i=e.enabled,a=n.useRef({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return n.useDebugValue(i?"Enabled":"Disabled"),n.useEffect((function(){if(!i)return a.current.deactivate(),void(a.current={activate:function(){},deactivate:function(){}});var e=r.current,n=up(t.current,{onActivate:void 0,initialFocus:o?function(){return(null==o?void 0:o.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),s=!1;a.current={activate:function(){try{return s?Promise.resolve():(s=!0,Promise.resolve(n.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){s&&(s=!1,n.deactivate())}}}),[i,r,o,t]),a}({targetRef:F,fallbackRef:U,initialFocusRef:d||void 0,enabled:M&&b&&!1!==d}),ne=function(e){var t=e.getSnapPoints,r=e.heightRef,o=e.lastSnapRef,i=e.ready,a=function(e){var t=e.contentRef,r=e.controlledMaxHeight,o=e.footerEnabled,i=e.footerRef,a=e.headerEnabled,s=e.headerRef,l=e.registerReady,c=e.resizeSourceRef,u=n.useMemo((function(){return l("contentHeight")}),[l]),d=function(e,t,r){var o=n.useMemo((function(){return t("maxHeight")}),[t]),i=n.useState((function(){return hh(e)||"undefined"!=typeof window?window.innerHeight:0})),a=i[0],s=i[1],l=a>0,c=n.useRef(0);return n.useDebugValue(e?"controlled":"auto"),n.useEffect((function(){l&&o()}),[l,o]),dh((function(){if(e)return s(hh(e)),void(r.current="maxheightprop");var t=function(){c.current||(c.current=requestAnimationFrame((function(){s(window.innerHeight),r.current="window",c.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),r.current="window",o(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(c.current)}}),[e,o,r]),a}(r,l,c),p=xh(s,{label:"headerHeight",enabled:a,resizeSourceRef:c}),h=xh(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=xh(i,{label:"footerHeight",enabled:o,resizeSourceRef:c}),x=Math.min(d-p-f,h)+p+f;n.useDebugValue("minHeight: "+x);var g=h>0;return n.useEffect((function(){g&&u()}),[g,u]),{maxHeight:d,minHeight:x,headerHeight:p,footerHeight:f}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=a.maxHeight,l=a.minHeight,c=a.headerHeight,u=a.footerHeight,d=function(e,t){var n=[].concat(e).map(hh).reduce((function(e,n){return e.add(ph(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(i?t({height:r.current,footerHeight:u,headerHeight:c,minHeight:l,maxHeight:s}):[0],s),p=d.snapPoints,h=d.minSnap,f=d.maxSnap;return n.useDebugValue("minSnap: "+h+", maxSnap:"+f),{minSnap:h,maxSnap:f,findSnap:function(e){var t=hh("function"==typeof e?e({footerHeight:u,headerHeight:c,height:r.current,minHeight:l,maxHeight:s,snapPoints:p,lastSnap:o.current}):e);return p.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:q,controlledMaxHeight:h,footerEnabled:!!a,footerRef:G,getSnapPoints:v,headerEnabled:!1!==s,headerRef:W,heightRef:X,lastSnapRef:u,ready:M,registerReady:P,resizeSourceRef:Y}),re=ne.minSnap,oe=ne.maxSnap,ie=ne.maxHeight,ae=ne.findSnap,se=n.useRef(ie),le=n.useRef(re),ce=n.useRef(oe),ue=n.useRef(ae),de=n.useRef(0);dh((function(){se.current=ie,ce.current=oe,le.current=re,ue.current=ae,de.current=ae(x)}),[ae,x,ie,oe,re]);var pe=n.useCallback((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=uh(n,wh),a=uh(e,Ch);return new Promise((function(e){return H(ch({},a,{config:ch({velocity:o},i,{mass:1,tension:kh,friction:Math.max($h,$h+($h-$h*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),he=Vc(bh,{devTools:!1,actions:{onOpenCancel:n.useCallback((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapCancel:n.useCallback((function(e){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:n.useCallback((function(){return null==I.current?void 0:I.current({type:"CLOSE"})}),[]),onResizeCancel:n.useCallback((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Y.current})}),[]),onOpenEnd:n.useCallback((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:Y.current})}),[])},context:{initialState:c},services:{onSnapStart:n.useCallback((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:n.useCallback((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:n.useCallback((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:n.useCallback((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Y.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:n.useCallback((function(e,t){try{return Promise.resolve(null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==N.current?void 0:N.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==N.current?void 0:N.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==N.current?void 0:N.current({type:"RESIZE",source:Y.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:n.useCallback((function(e,t){try{return Promise.resolve(pe({y:de.current,ready:0,maxHeight:se.current,maxSnap:ce.current,minSnap:de.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe]),activate:n.useCallback((function(e,t){try{return _.current=!0,Promise.resolve(Promise.all([Q.current.activate(),te.current.activate(),ee.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[ee,te,Q]),deactivate:n.useCallback((function(){try{return Q.current.deactivate(),te.current.deactivate(),ee.current.deactivate(),_.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[ee,te,Q]),openImmediately:n.useCallback((function(){try{return X.current=de.current,Promise.resolve(pe({y:de.current,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:de.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe]),openSmoothly:n.useCallback((function(){try{return Promise.resolve(pe({y:0,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:de.current,immediate:!0})).then((function(){return X.current=de.current,Promise.resolve(pe({y:de.current,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:de.current,immediate:J.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[pe,J]),snapSmoothly:n.useCallback((function(e,t){try{var n=ue.current(e.y);return X.current=n,u.current=n,Promise.resolve(pe({y:n,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:J.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe,u,J]),resizeSmoothly:n.useCallback((function(){try{var e=ue.current(X.current);return X.current=e,u.current=e,Promise.resolve(pe({y:e,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:"element"!==Y.current||J.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe,u,J]),closeSmoothly:n.useCallback((function(e,t){try{return pe({minSnap:X.current,immediate:!0}),X.current=0,Promise.resolve(pe({y:0,maxHeight:se.current,maxSnap:ce.current,immediate:J.current})).then((function(){return Promise.resolve(pe({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[pe,J])}}),fe=he[0],xe=he[1];n.useEffect((function(){M&&xe(l?"OPEN":"CLOSE")}),[l,xe,M]),dh((function(){(ie||oe||re)&&xe("RESIZE")}),[ie,oe,re,xe]),n.useEffect((function(){return function(){Q.current.deactivate(),te.current.deactivate(),ee.current.deactivate()}}),[ee,te,Q]),n.useImperativeHandle(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,a=void 0===i?"custom":i;xe("SNAP",{payload:{y:ue.current(e),velocity:o,source:a}})},get height(){return X.current}}}),[xe]),n.useEffect((function(){var e=Z.current,t=function(e){K.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return L&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[L,Z]);var ge=_d((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,a=void 0!==i&&i,s=e.cancel,l=e.direction[1],c=e.down,u=e.first,d=e.last,h=e.memo,f=void 0===h?B.y.getValue():h,x=e.tap,g=e.velocity,v=-1*e.movement[1];if(!_.current)return s(),f;if(p&&o&&x)return s(),setTimeout((function(){return p()}),0),f;if(x)return f;var m=f+v,b=v*g,y=Math.max(le.current,Math.min(ce.current,m+2*b));if(!c&&p&&l>0&&m+b<le.current/2)return s(),p(),f;var w=c?p||le.current!==ce.current?Xu(m,p?0:le.current,ce.current,.55):m<le.current?Xu(m,le.current,2*ce.current,.55):Xu(m,le.current/2,ce.current,.55):y;return L&&a?(w>=ce.current&&(w=ce.current),f===ce.current&&Z.current.scrollTop>0&&(w=ce.current),K.current=w<ce.current):K.current=!1,u&&xe("DRAG"),d?(xe("SNAP",{payload:{y:w,velocity:g>.05?g:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ce.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(le.current))throw new TypeError("minSnapRef is NaN!!");var ve=function(e){var t,n=e.spring,r=su([n.y,n.maxHeight],(function(e,t){return Math.round(ph(t-e,0,16))+"px"})),o=su([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return ph(e,t,n)+"px"})),i=su([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=su([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),s=su([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return ph((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=su([n.y,n.minSnap],(function(e,t){return t?ph(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=s,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return n.createElement(Fu.div,ch({},O,{"data-rsbs-root":!0,"data-rsbs-state":Eh.find(fe.matches),"data-rsbs-is-blocking":b,"data-rsbs-is-dismissable":!!p,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!a,className:i,ref:F,style:ch({},ve,C,{opacity:B.ready})}),o,b&&n.createElement("div",ch({key:"backdrop","data-rsbs-backdrop":!0},ge({closeOnTap:!0}))),n.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:U,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),p&&p())}},!1!==s&&n.createElement("div",ch({key:"header","data-rsbs-header":!0,ref:W},ge()),s),n.createElement("div",ch({key:"scroll","data-rsbs-scroll":!0,ref:Z},L?ge({isContentDragging:!0}):{}),n.createElement("div",{"data-rsbs-content":!0,ref:q},r)),a&&n.createElement("div",ch({key:"footer",ref:G,"data-rsbs-footer":!0},ge()),a)))})),Eh=["closed","opening","open","closing","dragging","snapping","resizing"];function Rh(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Lh(e){return e.minHeight}var Oh=["onSpringStart","onSpringEnd","skipInitialTransition"],Th=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,a=uh(e,Oh),s=n.useState(!1),l=s[0],c=s[1],u=n.useRef(),d=n.useRef(null),p=n.useRef(i&&a.open?"OPEN":"CLOSED");dh((function(){if(a.open)return cancelAnimationFrame(u.current),c(!0),function(){p.current="CLOSED"}}),[a.open]);var h=n.useCallback((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(u.current)}))}),[r]),f=n.useCallback((function(e){return Promise.resolve(null==o?void 0:o(e)).then((function(){"CLOSE"===e.type&&(u.current=requestAnimationFrame((function(){return c(!1)})))}))}),[o]);return l?n.createElement(Es,{"data-rsbs-portal":!0},n.createElement(Sh,ch({},a,{lastSnapRef:d,ref:t,initialState:p.current,onSpringStart:h,onSpringEnd:f}))):null}));const Mh=o.css`
|
|
2477
|
+
function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){sp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lp,cp=(lp=[],{activateTrap:function(e){if(lp.length>0){var t=lp[lp.length-1];t!==e&&t.pause()}var n=lp.indexOf(e);-1===n||lp.splice(n,1),lp.push(e)},deactivateTrap:function(e){var t=lp.indexOf(e);-1!==t&&lp.splice(t,1),lp.length>0&&lp[lp.length-1].unpause()}}),dp=function(e){return setTimeout(e,0)},up=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},pp=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},hp=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},fp=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=ap({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=tp(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?Zu([t],n.includeContainer,{filter:Ku.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):qu(t,n.includeContainer,Ku.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return np(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return np(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=hp(e);s(t)>=0||(pp(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!op(t,o.tabbableOptions)}):pp(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=hp(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},x=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==pp(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=hp(e);d();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=up(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||op(t,o.tabbableOptions)&&!np(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[p].lastTabbableNode}}else{var h=up(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||op(t,o.tabbableOptions)&&!np(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===i.tabbableGroups.length-1?0:h+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=hp(e);s(t)>=0||pp(o.clickOutsideDeactivates,e)||pp(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return cp.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?dp((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),n},b=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",x,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&d(),v(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=ap({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,b(),i.active=!1,i.paused=!1,cp.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),l=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){dp((function(){c&&u(p(i.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(p(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,b()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var xp=!1;if("undefined"!=typeof window){var gp={get passive(){xp=!0}};window.addEventListener("testPassive",null,gp),window.removeEventListener("testPassive",null,gp)}var vp,bp="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),mp=[],yp=!1,wp=-1,Cp=void 0,jp=void 0,kp=function(e){return mp.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},$p=function(e){var t=e||window.event;return!!kp(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Sp=function(e,t){if(e){if(!mp.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};mp=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(mp),[n]),bp?(e.ontouchstart=function(e){1===e.targetTouches.length&&(wp=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-wp;!kp(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?$p(e):e.stopPropagation())}(t,e)},yp||(document.addEventListener("touchmove",$p,xp?{passive:!1}:void 0),yp=!0)):function(e){if(void 0===jp){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(jp=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Cp&&(Cp=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Ep=function(e){e?(mp=mp.filter((function(t){return t.targetElement!==e})),bp?(e.ontouchstart=null,e.ontouchmove=null,yp&&0===mp.length&&(document.removeEventListener("touchmove",$p,xp?{passive:!1}:void 0),yp=!1)):mp.length||(void 0!==jp&&(document.body.style.paddingRight=jp,jp=void 0),void 0!==Cp&&(document.body.style.overflow=Cp,Cp=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Lp=[],Rp="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(vp||(vp={}));var Tp,Op=function(e){return Object.freeze(e)},Pp=function(e,t){this.inlineSize=e,this.blockSize=t,Op(this)},Mp=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Op(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),_p=function(e){return e instanceof SVGElement&&"getBBox"in e},Ip=function(e){if(_p(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Dp=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Ap="undefined"!=typeof window?window:{},Np=new WeakMap,Vp=/auto|scroll/,zp=/^tb|vertical/,Bp=/msie|trident/i.test(Ap.navigator&&Ap.navigator.userAgent),Hp=function(e){return parseFloat(e||"0")},Fp=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Pp((n?t:e)||0,(n?e:t)||0)},qp=Op({devicePixelContentBoxSize:Fp(),borderBoxSize:Fp(),contentBoxSize:Fp(),contentRect:new Mp(0,0,0,0)}),Zp=function(e,t){if(void 0===t&&(t=!1),Np.has(e)&&!t)return Np.get(e);if(Ip(e))return Np.set(e,qp),qp;var n=getComputedStyle(e),r=_p(e)&&e.ownerSVGElement&&e.getBBox(),o=!Bp&&"border-box"===n.boxSizing,i=zp.test(n.writingMode||""),a=!r&&Vp.test(n.overflowY||""),s=!r&&Vp.test(n.overflowX||""),l=r?0:Hp(n.paddingTop),c=r?0:Hp(n.paddingRight),d=r?0:Hp(n.paddingBottom),u=r?0:Hp(n.paddingLeft),p=r?0:Hp(n.borderTopWidth),h=r?0:Hp(n.borderRightWidth),f=r?0:Hp(n.borderBottomWidth),x=u+c,g=l+d,v=(r?0:Hp(n.borderLeftWidth))+h,b=p+f,m=s?e.offsetHeight-b-e.clientHeight:0,y=a?e.offsetWidth-v-e.clientWidth:0,w=o?x+v:0,C=o?g+b:0,j=r?r.width:Hp(n.width)-w-y,k=r?r.height:Hp(n.height)-C-m,$=j+x+y+v,S=k+g+m+b,E=Op({devicePixelContentBoxSize:Fp(Math.round(j*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:Fp($,S,i),contentBoxSize:Fp(j,k,i),contentRect:new Mp(u,l,j,k)});return Np.set(e,E),E},Wp=function(e,t,n){var r=Zp(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case vp.DEVICE_PIXEL_CONTENT_BOX:return a;case vp.BORDER_BOX:return o;default:return i}},Gp=function(e){var t=Zp(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Op([t.borderBoxSize]),this.contentBoxSize=Op([t.contentBoxSize]),this.devicePixelContentBoxSize=Op([t.devicePixelContentBoxSize])},Up=function(e){if(Ip(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Xp=function(){var e=1/0,t=[];Lp.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Gp(t.target),o=Up(t.target);r.push(n),t.lastReportedSize=Wp(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Yp=function(e){Lp.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Up(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Kp=function(){var e=0;for(Yp(e);Lp.some((function(e){return e.activeTargets.length>0}));)e=Xp(),Yp(e);return Lp.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Rp}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Rp),window.dispatchEvent(e)}(),e>0},Jp=[],Qp=function(e){if(!Tp){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Jp.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Tp=function(){n.textContent="".concat(t?t--:t++)}}Jp.push(e),Tp()},eh=0,th={attributes:!0,characterData:!0,childList:!0,subtree:!0},nh=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rh=function(e){return void 0===e&&(e=0),Date.now()+e},oh=!1,ih=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!oh){oh=!0;var n,r=rh(e);n=function(){var n=!1;try{n=Kp()}finally{if(oh=!1,e=r-rh(),!eh)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Qp((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,th)};document.body?t():Ap.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),nh.forEach((function(t){return Ap.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),nh.forEach((function(t){return Ap.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),ah=function(e){!eh&&e>0&&ih.start(),!(eh+=e)&&ih.stop()},sh=function(){function e(e,t){this.target=e,this.observedBox=t||vp.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Wp(this.target,this.observedBox,!0);return function(e){return!_p(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),lh=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ch=new WeakMap,dh=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},uh=function(){function e(){}return e.connect=function(e,t){var n=new lh(e,t);ch.set(e,n)},e.observe=function(e,t,n){var r=ch.get(e),o=0===r.observationTargets.length;dh(r.observationTargets,t)<0&&(o&&Lp.push(r),r.observationTargets.push(new sh(t,n&&n.box)),ah(1),ih.schedule())},e.unobserve=function(e,t){var n=ch.get(e),r=dh(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Lp.splice(Lp.indexOf(n),1),n.observationTargets.splice(r,1),ah(-1))},e.disconnect=function(e){var t=this,n=ch.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ph=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");uh.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Dp(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");uh.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Dp(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");uh.unobserve(this,e)},e.prototype.disconnect=function(){uh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function hh(){return hh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hh.apply(this,arguments)}function fh(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var xh="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function gh(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function vh(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var bh={box:"border-box"};function mh(e,t){var r=t.label,o=t.enabled,i=t.resizeSourceRef,a=n.useState(0),s=a[0],l=a[1];n.useDebugValue(r+": "+s);var c=n.useCallback((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return xh((function(){if(e.current&&o){var t=new ph(c);return t.observe(e.current,bh),function(){t.disconnect()}}}),[e,c,o]),o?s:0}function yh(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var wh={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Ch={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},jh=function(e,t,n){return void 0===n&&(n=e.context),new Ec(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:hh({},wh,Ch)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:hh({},wh,Ch)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:hh({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Rc({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(yh()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),kh=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],$h=["velocity"],Sh=["onRest","config"],Eh={tension:170,friction:26},Lh=Eh.tension,Rh=Eh.friction,Th=n.forwardRef((function(e,t){var r=e.children,o=e.sibling,i=e.className,a=e.footer,s=e.header,l=e.open,c=e.initialState,d=e.lastSnapRef,u=e.initialFocusRef,p=e.onDismiss,h=e.maxHeight,f=e.defaultSnap,x=void 0===f?Ph:f,g=e.snapPoints,v=void 0===g?Mh:g,b=e.blocking,m=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,C=e.style,j=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?m:S,L=e.expandOnContentDrag,R=void 0!==L&&L,T=fh(e,kh),O=function(){var e=n.useState(!1),t=e[0],r=e[1],o=n.useState({}),i=o[0],a=o[1],s=n.useCallback((function(e){return a((function(t){var n;return hh({},t,((n={})[e]=!1,n))})),function(){a((function(t){var n;return hh({},t,((n={})[e]=!0,n))}))}}),[]);return n.useEffect((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&r(!0)}),[i]),{ready:t,registerReady:s}}(),P=O.ready,M=O.registerReady,_=n.useRef(!1),I=n.useRef(j),D=n.useRef(k),A=n.useRef($);n.useEffect((function(){I.current=j,D.current=k,A.current=$}),[k,j,$]);var N,V,z=vd((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=z[0],H=z[1],F=n.useRef(null),q=n.useRef(null),Z=n.useRef(null),W=n.useRef(null),G=n.useRef(null),U=n.useRef(null),X=n.useRef(0),Y=n.useRef(),K=n.useRef(!1),J=(N=n.useMemo((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=n.useRef(null==N?void 0:N.matches),n.useDebugValue(V.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){V.current=e.matches};return null==N||N.addListener(e),function(){return null==N?void 0:N.removeListener(e)}}),[N]),V),Q=function(e){var t=e.targetRef,r=e.enabled,o=e.reserveScrollBarGap,i=n.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1;i.current={activate:function(){n||(n=!0,Sp(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,Ep(e))}}}),[r,t,o]),i}({targetRef:q,enabled:P&&w,reserveScrollBarGap:E}),ee=function(e){var t=e.targetRef,r=e.enabled,o=n.useRef({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1,i=[],a=[];o.current={activate:function(){if(!n){n=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){n&&(n=!1,a.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],a=[])}}}),[t,r]),o}({targetRef:F,enabled:P&&m}),te=function(e){var t=e.targetRef,r=e.fallbackRef,o=e.initialFocusRef,i=e.enabled,a=n.useRef({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return n.useDebugValue(i?"Enabled":"Disabled"),n.useEffect((function(){if(!i)return a.current.deactivate(),void(a.current={activate:function(){},deactivate:function(){}});var e=r.current,n=fp(t.current,{onActivate:void 0,initialFocus:o?function(){return(null==o?void 0:o.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),s=!1;a.current={activate:function(){try{return s?Promise.resolve():(s=!0,Promise.resolve(n.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){s&&(s=!1,n.deactivate())}}}),[i,r,o,t]),a}({targetRef:F,fallbackRef:U,initialFocusRef:u||void 0,enabled:P&&m&&!1!==u}),ne=function(e){var t=e.getSnapPoints,r=e.heightRef,o=e.lastSnapRef,i=e.ready,a=function(e){var t=e.contentRef,r=e.controlledMaxHeight,o=e.footerEnabled,i=e.footerRef,a=e.headerEnabled,s=e.headerRef,l=e.registerReady,c=e.resizeSourceRef,d=n.useMemo((function(){return l("contentHeight")}),[l]),u=function(e,t,r){var o=n.useMemo((function(){return t("maxHeight")}),[t]),i=n.useState((function(){return vh(e)||"undefined"!=typeof window?window.innerHeight:0})),a=i[0],s=i[1],l=a>0,c=n.useRef(0);return n.useDebugValue(e?"controlled":"auto"),n.useEffect((function(){l&&o()}),[l,o]),xh((function(){if(e)return s(vh(e)),void(r.current="maxheightprop");var t=function(){c.current||(c.current=requestAnimationFrame((function(){s(window.innerHeight),r.current="window",c.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),r.current="window",o(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(c.current)}}),[e,o,r]),a}(r,l,c),p=mh(s,{label:"headerHeight",enabled:a,resizeSourceRef:c}),h=mh(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=mh(i,{label:"footerHeight",enabled:o,resizeSourceRef:c}),x=Math.min(u-p-f,h)+p+f;n.useDebugValue("minHeight: "+x);var g=h>0;return n.useEffect((function(){g&&d()}),[g,d]),{maxHeight:u,minHeight:x,headerHeight:p,footerHeight:f}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=a.maxHeight,l=a.minHeight,c=a.headerHeight,d=a.footerHeight,u=function(e,t){var n=[].concat(e).map(vh).reduce((function(e,n){return e.add(gh(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(i?t({height:r.current,footerHeight:d,headerHeight:c,minHeight:l,maxHeight:s}):[0],s),p=u.snapPoints,h=u.minSnap,f=u.maxSnap;return n.useDebugValue("minSnap: "+h+", maxSnap:"+f),{minSnap:h,maxSnap:f,findSnap:function(e){var t=vh("function"==typeof e?e({footerHeight:d,headerHeight:c,height:r.current,minHeight:l,maxHeight:s,snapPoints:p,lastSnap:o.current}):e);return p.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:Z,controlledMaxHeight:h,footerEnabled:!!a,footerRef:G,getSnapPoints:v,headerEnabled:!1!==s,headerRef:W,heightRef:X,lastSnapRef:d,ready:P,registerReady:M,resizeSourceRef:Y}),re=ne.minSnap,oe=ne.maxSnap,ie=ne.maxHeight,ae=ne.findSnap,se=n.useRef(ie),le=n.useRef(re),ce=n.useRef(oe),de=n.useRef(ae),ue=n.useRef(0);xh((function(){se.current=ie,ce.current=oe,le.current=re,de.current=ae,ue.current=ae(x)}),[ae,x,ie,oe,re]);var pe=n.useCallback((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=fh(n,$h),a=fh(e,Sh);return new Promise((function(e){return H(hh({},a,{config:hh({velocity:o},i,{mass:1,tension:Lh,friction:Math.max(Rh,Rh+(Rh-Rh*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),he=Hc(jh,{devTools:!1,actions:{onOpenCancel:n.useCallback((function(){return null==D.current?void 0:D.current({type:"OPEN"})}),[]),onSnapCancel:n.useCallback((function(e){return null==D.current?void 0:D.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:n.useCallback((function(){return null==D.current?void 0:D.current({type:"CLOSE"})}),[]),onResizeCancel:n.useCallback((function(){return null==D.current?void 0:D.current({type:"RESIZE",source:Y.current})}),[]),onOpenEnd:n.useCallback((function(){return null==A.current?void 0:A.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==A.current?void 0:A.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==A.current?void 0:A.current({type:"RESIZE",source:Y.current})}),[])},context:{initialState:c},services:{onSnapStart:n.useCallback((function(e,t){try{return Promise.resolve(null==I.current?void 0:I.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:n.useCallback((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:n.useCallback((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:n.useCallback((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"RESIZE",source:Y.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:n.useCallback((function(e,t){try{return Promise.resolve(null==A.current?void 0:A.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==A.current?void 0:A.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==A.current?void 0:A.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==A.current?void 0:A.current({type:"RESIZE",source:Y.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:n.useCallback((function(e,t){try{return Promise.resolve(pe({y:ue.current,ready:0,maxHeight:se.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe]),activate:n.useCallback((function(e,t){try{return _.current=!0,Promise.resolve(Promise.all([Q.current.activate(),te.current.activate(),ee.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[ee,te,Q]),deactivate:n.useCallback((function(){try{return Q.current.deactivate(),te.current.deactivate(),ee.current.deactivate(),_.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[ee,te,Q]),openImmediately:n.useCallback((function(){try{return X.current=ue.current,Promise.resolve(pe({y:ue.current,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe]),openSmoothly:n.useCallback((function(){try{return Promise.resolve(pe({y:0,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){return X.current=ue.current,Promise.resolve(pe({y:ue.current,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:ue.current,immediate:J.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[pe,J]),snapSmoothly:n.useCallback((function(e,t){try{var n=de.current(e.y);return X.current=n,d.current=n,Promise.resolve(pe({y:n,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:J.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe,d,J]),resizeSmoothly:n.useCallback((function(){try{var e=de.current(X.current);return X.current=e,d.current=e,Promise.resolve(pe({y:e,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:"element"!==Y.current||J.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[pe,d,J]),closeSmoothly:n.useCallback((function(e,t){try{return pe({minSnap:X.current,immediate:!0}),X.current=0,Promise.resolve(pe({y:0,maxHeight:se.current,maxSnap:ce.current,immediate:J.current})).then((function(){return Promise.resolve(pe({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[pe,J])}}),fe=he[0],xe=he[1];n.useEffect((function(){P&&xe(l?"OPEN":"CLOSE")}),[l,xe,P]),xh((function(){(ie||oe||re)&&xe("RESIZE")}),[ie,oe,re,xe]),n.useEffect((function(){return function(){Q.current.deactivate(),te.current.deactivate(),ee.current.deactivate()}}),[ee,te,Q]),n.useImperativeHandle(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,a=void 0===i?"custom":i;xe("SNAP",{payload:{y:de.current(e),velocity:o,source:a}})},get height(){return X.current}}}),[xe]),n.useEffect((function(){var e=q.current,t=function(e){K.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return R&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[R,q]);var ge=Nu((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,a=void 0!==i&&i,s=e.cancel,l=e.direction[1],c=e.down,d=e.first,u=e.last,h=e.memo,f=void 0===h?B.y.getValue():h,x=e.tap,g=e.velocity,v=-1*e.movement[1];if(!_.current)return s(),f;if(p&&o&&x)return s(),setTimeout((function(){return p()}),0),f;if(x)return f;var b=f+v,m=v*g,y=Math.max(le.current,Math.min(ce.current,b+2*m));if(!c&&p&&l>0&&b+m<le.current/2)return s(),p(),f;var w=c?p||le.current!==ce.current?Qd(b,p?0:le.current,ce.current,.55):b<le.current?Qd(b,le.current,2*ce.current,.55):Qd(b,le.current/2,ce.current,.55):y;return R&&a?(w>=ce.current&&(w=ce.current),f===ce.current&&q.current.scrollTop>0&&(w=ce.current),K.current=w<ce.current):K.current=!1,d&&xe("DRAG"),u?(xe("SNAP",{payload:{y:w,velocity:g>.05?g:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:se.current,maxSnap:ce.current,minSnap:le.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ce.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(le.current))throw new TypeError("minSnapRef is NaN!!");var ve=function(e){var t,n=e.spring,r=ud([n.y,n.maxHeight],(function(e,t){return Math.round(gh(t-e,0,16))+"px"})),o=ud([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return gh(e,t,n)+"px"})),i=ud([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=ud([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),s=ud([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return gh((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=ud([n.y,n.minSnap],(function(e,t){return t?gh(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=s,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return n.createElement(Gd.div,hh({},T,{"data-rsbs-root":!0,"data-rsbs-state":Oh.find(fe.matches),"data-rsbs-is-blocking":m,"data-rsbs-is-dismissable":!!p,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!a,className:i,ref:F,style:hh({},ve,C,{opacity:B.ready})}),o,m&&n.createElement("div",hh({key:"backdrop","data-rsbs-backdrop":!0},ge({closeOnTap:!0}))),n.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:U,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),p&&p())}},!1!==s&&n.createElement("div",hh({key:"header","data-rsbs-header":!0,ref:W},ge()),s),n.createElement("div",hh({key:"scroll","data-rsbs-scroll":!0,ref:q},R?ge({isContentDragging:!0}):{}),n.createElement("div",{"data-rsbs-content":!0,ref:Z},r)),a&&n.createElement("div",hh({key:"footer",ref:G,"data-rsbs-footer":!0},ge()),a)))})),Oh=["closed","opening","open","closing","dragging","snapping","resizing"];function Ph(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Mh(e){return e.minHeight}var _h=["onSpringStart","onSpringEnd","skipInitialTransition"],Ih=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,a=fh(e,_h),s=n.useState(!1),l=s[0],c=s[1],d=n.useRef(),u=n.useRef(null),p=n.useRef(i&&a.open?"OPEN":"CLOSED");xh((function(){if(a.open)return cancelAnimationFrame(d.current),c(!0),function(){p.current="CLOSED"}}),[a.open]);var h=n.useCallback((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(d.current)}))}),[r]),f=n.useCallback((function(e){return Promise.resolve(null==o?void 0:o(e)).then((function(){"CLOSE"===e.type&&(d.current=requestAnimationFrame((function(){return c(!1)})))}))}),[o]);return l?n.createElement(Os,{"data-rsbs-portal":!0},n.createElement(Th,hh({},a,{lastSnapRef:u,ref:t,initialState:p.current,onSpringStart:h,onSpringEnd:f}))):null}));const Dh=o.css`
|
|
2455
2478
|
width: 40px;
|
|
2456
2479
|
border-radius: 4px;
|
|
2457
2480
|
background: transparent;
|
|
@@ -2465,7 +2488,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2465
2488
|
margin: 0px 0px;
|
|
2466
2489
|
background: ${h("neutral",300)};
|
|
2467
2490
|
}
|
|
2468
|
-
`,
|
|
2491
|
+
`,Ah=(e,t)=>o.css`
|
|
2469
2492
|
[data-rsbs-overlay] {
|
|
2470
2493
|
border-top-left-radius: 16px;
|
|
2471
2494
|
border-top-right-radius: 16px;
|
|
@@ -2491,7 +2514,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2491
2514
|
padding: 0px;
|
|
2492
2515
|
min-height: 64px;
|
|
2493
2516
|
}
|
|
2494
|
-
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("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))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const
|
|
2517
|
+
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("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))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const Nh=(e,t)=>{let n=0,r=1/0;return t.forEach(((t,o)=>{const i=Math.abs(t-e);i<r&&(r=i,n=o)})),n},Vh=e=>o.css`
|
|
2495
2518
|
a,
|
|
2496
2519
|
p {
|
|
2497
2520
|
font-size: ${"small"===e?"12px":"16px"};
|
|
@@ -2523,19 +2546,19 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2523
2546
|
a:hover {
|
|
2524
2547
|
text-decoration: underline;
|
|
2525
2548
|
}
|
|
2526
|
-
`,
|
|
2549
|
+
`,zh=e=>o.css`
|
|
2527
2550
|
svg {
|
|
2528
2551
|
height: ${"small"===e?"8px":"12px"};
|
|
2529
2552
|
width: ${"small"===e?"8px":"12px"};
|
|
2530
2553
|
color: ${h("neutral",600)};
|
|
2531
2554
|
}
|
|
2532
|
-
`,
|
|
2555
|
+
`,Bh=o.css`
|
|
2533
2556
|
cursor: pointer;
|
|
2534
2557
|
color: ${h("neutral",600)};
|
|
2535
2558
|
display: flex;
|
|
2536
2559
|
justify-content: center;
|
|
2537
2560
|
align-items: center;
|
|
2538
|
-
`,
|
|
2561
|
+
`,Hh=(e,t)=>o.css`
|
|
2539
2562
|
min-height: 56px;
|
|
2540
2563
|
width: 100vw;
|
|
2541
2564
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2544,7 +2567,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2544
2567
|
background-color: ${t?h("neutral",200):"transparent"};
|
|
2545
2568
|
border-top: 1px solid ${h("neutral",400)};
|
|
2546
2569
|
z-index: 101;
|
|
2547
|
-
`,
|
|
2570
|
+
`,Fh=e=>o.css`
|
|
2548
2571
|
height: 100%;
|
|
2549
2572
|
width: 100%;
|
|
2550
2573
|
max-width: ${e?`${e}px`:"100%"};
|
|
@@ -2559,7 +2582,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2559
2582
|
flex-direction: column;
|
|
2560
2583
|
align-items: flex-start;
|
|
2561
2584
|
}
|
|
2562
|
-
`,
|
|
2585
|
+
`,qh=o.css`
|
|
2563
2586
|
display: flex;
|
|
2564
2587
|
align-items: center;
|
|
2565
2588
|
flex-wrap: wrap;
|
|
@@ -2572,7 +2595,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2572
2595
|
color: ${h("neutral",700)};
|
|
2573
2596
|
text-decoration: underline;
|
|
2574
2597
|
}
|
|
2575
|
-
`,
|
|
2598
|
+
`,Zh=o.css`
|
|
2576
2599
|
width: 240px;
|
|
2577
2600
|
font-size: 14px;
|
|
2578
2601
|
line-height: 20px;
|
|
@@ -2583,17 +2606,17 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2583
2606
|
@media screen and (max-width: 768px) {
|
|
2584
2607
|
text-align: left;
|
|
2585
2608
|
}
|
|
2586
|
-
`,
|
|
2609
|
+
`,Wh=o.css`
|
|
2587
2610
|
display: flex;
|
|
2588
2611
|
align-items: center;
|
|
2589
2612
|
gap: 16px;
|
|
2590
|
-
`,
|
|
2613
|
+
`,Gh=o.css`
|
|
2591
2614
|
width: 100%;
|
|
2592
2615
|
display: flex;
|
|
2593
2616
|
align-items: center;
|
|
2594
2617
|
height: 56px;
|
|
2595
2618
|
background-color: ${h("neutral",200)};
|
|
2596
|
-
`,
|
|
2619
|
+
`,Uh=o.css`
|
|
2597
2620
|
height: 56px;
|
|
2598
2621
|
width: 99%;
|
|
2599
2622
|
background-color: ${h("neutral",200)};
|
|
@@ -2687,9 +2710,9 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2687
2710
|
opacity: 1;
|
|
2688
2711
|
}
|
|
2689
2712
|
}
|
|
2690
|
-
`,
|
|
2713
|
+
`,Xh=o.css`
|
|
2691
2714
|
position: relative;
|
|
2692
|
-
`,
|
|
2715
|
+
`,Yh=o.css`
|
|
2693
2716
|
position: absolute;
|
|
2694
2717
|
top: -5px;
|
|
2695
2718
|
right: -5px;
|
|
@@ -2704,7 +2727,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2704
2727
|
display: flex;
|
|
2705
2728
|
justify-content: center;
|
|
2706
2729
|
align-items: center;
|
|
2707
|
-
`,
|
|
2730
|
+
`,Kh=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),Jh=(e,t,n,r,i)=>{let a="48px";return e?a="96px":i&&(a="28px"),o.css`
|
|
2708
2731
|
max-height: ${a};
|
|
2709
2732
|
width: 100%;
|
|
2710
2733
|
background-color: ${n??h("neutral","dark"===r?800:100)};
|
|
@@ -2713,7 +2736,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2713
2736
|
left: 0;
|
|
2714
2737
|
z-index: 102;
|
|
2715
2738
|
border-bottom: 1px solid ${h("neutral",400)};
|
|
2716
|
-
`},
|
|
2739
|
+
`},Qh=(e,t)=>o.css`
|
|
2717
2740
|
height: ${t?"28px":"48px"};
|
|
2718
2741
|
width: 100%;
|
|
2719
2742
|
background-color: ${h("neutral","dark"===e?800:100)};
|
|
@@ -2724,7 +2747,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2724
2747
|
justify-content: flex-start;
|
|
2725
2748
|
gap: 0px;
|
|
2726
2749
|
padding: ${t?"0px":"8px 16px"};
|
|
2727
|
-
`,
|
|
2750
|
+
`,ef=(e,t,n)=>o.css`
|
|
2728
2751
|
height: ${n?"28px":"48px"};
|
|
2729
2752
|
width: 100%;
|
|
2730
2753
|
max-width: ${t?`${t}px`:"100%"};
|
|
@@ -2735,13 +2758,13 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2735
2758
|
justify-content: space-between;
|
|
2736
2759
|
margin: 0 auto;
|
|
2737
2760
|
padding: ${n?"0px":"8px 16px"};
|
|
2738
|
-
`,
|
|
2761
|
+
`,tf=(e,t)=>o.css`
|
|
2739
2762
|
display: flex;
|
|
2740
2763
|
margin: ${t?"-1px":"0px"};
|
|
2741
2764
|
justify-content: flex-start;
|
|
2742
2765
|
gap: 12px;
|
|
2743
2766
|
color: ${h("neutral",e?100:900)};
|
|
2744
|
-
`,
|
|
2767
|
+
`,nf=o.css`
|
|
2745
2768
|
outline: none;
|
|
2746
2769
|
|
|
2747
2770
|
a {
|
|
@@ -2753,13 +2776,13 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2753
2776
|
outline-width: 2px;
|
|
2754
2777
|
}
|
|
2755
2778
|
}
|
|
2756
|
-
`,
|
|
2779
|
+
`,rf=e=>o.css`
|
|
2757
2780
|
display: ${e?"none":"flex"};
|
|
2758
2781
|
align-items: center;
|
|
2759
2782
|
justify-content: flex-start;
|
|
2760
2783
|
gap: 0px;
|
|
2761
|
-
`,
|
|
2762
|
-
font-size: 16px;
|
|
2784
|
+
`,of=(e,t,n)=>o.css`
|
|
2785
|
+
font-size: ${n?"14px":"16px"};
|
|
2763
2786
|
line-height: 24px;
|
|
2764
2787
|
font-weight: 400;
|
|
2765
2788
|
color: ${h("neutral","dark"===t?200:900)};
|
|
@@ -2783,12 +2806,12 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2783
2806
|
font-weight: 700;
|
|
2784
2807
|
color: ${h("accessible","controls-on-neutral-lights")};
|
|
2785
2808
|
`:""}
|
|
2786
|
-
`,
|
|
2809
|
+
`,af=e=>o.css`
|
|
2787
2810
|
height: ${e?"28px":"48px"};
|
|
2788
2811
|
display: flex;
|
|
2789
2812
|
align-items: center;
|
|
2790
2813
|
justify-content: flex-end;
|
|
2791
|
-
`,
|
|
2814
|
+
`,sf=e=>o.css`
|
|
2792
2815
|
height: 100%;
|
|
2793
2816
|
font-size: 16px;
|
|
2794
2817
|
line-height: 24px;
|
|
@@ -2807,7 +2830,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2807
2830
|
}
|
|
2808
2831
|
}
|
|
2809
2832
|
`:""}
|
|
2810
|
-
`,
|
|
2833
|
+
`,lf=e=>o.css`
|
|
2811
2834
|
height: 100%;
|
|
2812
2835
|
display: flex;
|
|
2813
2836
|
align-items: center;
|
|
@@ -2815,11 +2838,12 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2815
2838
|
gap: 20px;
|
|
2816
2839
|
padding-left: 16px;
|
|
2817
2840
|
border-left: 1px solid ${h("neutral",e?700:300)};
|
|
2818
|
-
`,
|
|
2841
|
+
`,cf=(e="light",t)=>o.css`
|
|
2819
2842
|
background-color: none;
|
|
2820
2843
|
border: none;
|
|
2821
2844
|
cursor: pointer;
|
|
2822
2845
|
padding: 0px;
|
|
2846
|
+
font-size: ${"16px"};
|
|
2823
2847
|
color: ${h("neutral","dark"===e?100:800)};
|
|
2824
2848
|
display: flex;
|
|
2825
2849
|
justify-content: center;
|
|
@@ -2840,11 +2864,11 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2840
2864
|
outline-width: 2px;
|
|
2841
2865
|
background-color: ${h("neutral",200)};
|
|
2842
2866
|
}
|
|
2843
|
-
`,
|
|
2867
|
+
`,df=(e,t)=>o.css`
|
|
2844
2868
|
position: absolute;
|
|
2845
|
-
top: 48px;
|
|
2869
|
+
top: ${t?"28px":"48px"};
|
|
2846
2870
|
right: 0;
|
|
2847
|
-
height: calc(100vh - 48px);
|
|
2871
|
+
height: calc(100vh - ${t?"28px":"48px"});
|
|
2848
2872
|
width: ${e?"100%":"0px"};
|
|
2849
2873
|
background-color: ${h("neutral",100)};
|
|
2850
2874
|
display: flex;
|
|
@@ -2853,10 +2877,10 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2853
2877
|
justify-content: flex-start;
|
|
2854
2878
|
gap: 16px;
|
|
2855
2879
|
transition: width 0.5s ease-in-out;
|
|
2856
|
-
`,
|
|
2880
|
+
`,uf=o.css`
|
|
2857
2881
|
height: 100%;
|
|
2858
2882
|
width: 100%;
|
|
2859
|
-
`,
|
|
2883
|
+
`,pf=e=>o.css`
|
|
2860
2884
|
background-color: ${h("neutral","dark"===e?800:200)};
|
|
2861
2885
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2862
2886
|
|
|
@@ -2876,13 +2900,13 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2876
2900
|
margin-left: -12px;
|
|
2877
2901
|
}
|
|
2878
2902
|
}
|
|
2879
|
-
`,
|
|
2903
|
+
`,hf=o.css`
|
|
2880
2904
|
background-color: ${h("neutral",100)};
|
|
2881
|
-
`,
|
|
2905
|
+
`,ff=o.css`
|
|
2882
2906
|
min-height: 100vh;
|
|
2883
2907
|
width: 100%;
|
|
2884
2908
|
overflow-y: scroll;
|
|
2885
|
-
`;o.css``;const
|
|
2909
|
+
`;o.css``;const xf=e=>o.css`
|
|
2886
2910
|
display: inline-block;
|
|
2887
2911
|
width: 100%;
|
|
2888
2912
|
padding: 12px 16px;
|
|
@@ -2911,7 +2935,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2911
2935
|
outline-width: 2px;
|
|
2912
2936
|
background-color: ${h("neutral",200)};
|
|
2913
2937
|
}
|
|
2914
|
-
`,
|
|
2938
|
+
`,gf=o.css`
|
|
2915
2939
|
width: 100%;
|
|
2916
2940
|
padding: 12px 16px;
|
|
2917
2941
|
display: flex;
|
|
@@ -2935,7 +2959,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2935
2959
|
outline-width: 2px;
|
|
2936
2960
|
background-color: ${h("neutral",200)};
|
|
2937
2961
|
}
|
|
2938
|
-
`,
|
|
2962
|
+
`,vf=e=>o.css`
|
|
2939
2963
|
position: absolute;
|
|
2940
2964
|
top: 0px;
|
|
2941
2965
|
right: 0;
|
|
@@ -2947,7 +2971,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2947
2971
|
align-items: flex-start;
|
|
2948
2972
|
justify-content: flex-start;
|
|
2949
2973
|
transition: width 0.5s ease-in-out;
|
|
2950
|
-
`,
|
|
2974
|
+
`,bf=o.css`
|
|
2951
2975
|
height: 48px;
|
|
2952
2976
|
width: 100%;
|
|
2953
2977
|
display: flex;
|
|
@@ -2958,7 +2982,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2958
2982
|
position: relative;
|
|
2959
2983
|
top: 0;
|
|
2960
2984
|
left: 0;
|
|
2961
|
-
`,
|
|
2985
|
+
`,mf=o.css`
|
|
2962
2986
|
position: absolute;
|
|
2963
2987
|
bottom: 0;
|
|
2964
2988
|
left: 0;
|
|
@@ -2973,7 +2997,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2973
2997
|
button {
|
|
2974
2998
|
width: calc(48% - 24px);
|
|
2975
2999
|
}
|
|
2976
|
-
`,
|
|
3000
|
+
`,yf=({theme:e="light",variant:t,navigationSection:o,utilitySection:i,actionsSection:a,linkRouter:s,isOpen:l,setIsOpen:c,pathname:d,resolvedLabels:u})=>{const p="condensed"===t,[h,f]=n.useState(void 0),[x,g]=n.useState(-1),v=n.useRef(null),b=n.useRef([]),m=s;return r.jsxs(r.Fragment,{children:[r.jsx("div",{css:df(l,p),children:l&&r.jsxs("div",{css:uf,children:[r.jsxs("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[i?r.jsx("div",{css:pf(e),children:i?.map((e=>r.jsx("div",{className:"ds-utility-item",children:e})))}):null,o?r.jsx("div",{css:hf,children:o.map(((e,t)=>e.link?r.jsx(m,{to:e.link,href:e.link,onClick:()=>{f(void 0),g(-1),c(!1)},css:xf(d===e.link),children:e.label},e.label):r.jsxs("button",{css:gf,type:"button",ref:e=>{b.current[t]=e},onClick:()=>{e.items&&(f(e),g(t),setTimeout((()=>{v.current?.focus()}),100))},children:[e.label,e.items?r.jsx(L,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),a?r.jsx("div",{css:mf,children:a.map((e=>r.jsx(C,{...e,onClick:t=>{e?.onClick?.(t),f(void 0),g(-1),c(!1)}},e.ariaLabel)))}):null]})}),r.jsx("div",{css:vf(!!h?.items),children:h?.items?r.jsxs(r.Fragment,{children:[r.jsxs("div",{css:bf,children:[r.jsxs("button",{type:"button",onClick:()=>{f(void 0),g(-1),b.current[x]?.focus()},"aria-label":u.goBackLabel,css:cf(e),ref:v,children:[r.jsx(L,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),h?.label]}),r.jsxs("button",{type:"button",onClick:()=>{f(void 0),g(-1),c(!1)},"aria-label":u.closeMenuLabel,css:cf(e),children:[u.closeButtonText,r.jsx(T,{height:"16px",width:"16px"})]})]}),r.jsx("div",{css:ff,children:h?.items?.map((e=>r.jsx(m,{to:e.link,href:e.link,css:xf(),onClick:()=>{f(void 0),g(-1),c(!1)},children:e.label},e.label)))})]}):null})]})},wf=1023,Cf=o.css`
|
|
2977
3001
|
width: 64px;
|
|
2978
3002
|
height: 100%;
|
|
2979
3003
|
z-index: 100;
|
|
@@ -2982,7 +3006,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2982
3006
|
display: flex;
|
|
2983
3007
|
flex-direction: column;
|
|
2984
3008
|
justify-content: space-between;
|
|
2985
|
-
`,
|
|
3009
|
+
`,jf=o.css`
|
|
2986
3010
|
width: 64px;
|
|
2987
3011
|
height: 64px;
|
|
2988
3012
|
background-color: ${h("neutral",200)};
|
|
@@ -3072,7 +3096,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3072
3096
|
}
|
|
3073
3097
|
}
|
|
3074
3098
|
}
|
|
3075
|
-
`,
|
|
3099
|
+
`,kf=o.css`
|
|
3076
3100
|
display: flex;
|
|
3077
3101
|
justify-content: center;
|
|
3078
3102
|
align-items: center;
|
|
@@ -3085,7 +3109,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3085
3109
|
fill: ${h("neutral",600)};
|
|
3086
3110
|
}
|
|
3087
3111
|
}
|
|
3088
|
-
|
|
3112
|
+
`,$f=o.css`
|
|
3089
3113
|
width: 64px;
|
|
3090
3114
|
height: 64px;
|
|
3091
3115
|
background-color: ${h("neutral",200)};
|
|
@@ -3123,7 +3147,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3123
3147
|
text-align: center;
|
|
3124
3148
|
color: ${h("neutral",600)};
|
|
3125
3149
|
}
|
|
3126
|
-
`,
|
|
3150
|
+
`,Sf=o.css`
|
|
3127
3151
|
width: 320px;
|
|
3128
3152
|
height: 100%;
|
|
3129
3153
|
z-index: 100;
|
|
@@ -3132,7 +3156,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3132
3156
|
overflow-y: auto;
|
|
3133
3157
|
overflow-x: hidden;
|
|
3134
3158
|
border-right: 1px solid ${h("neutral",300)};
|
|
3135
|
-
`,
|
|
3159
|
+
`,Ef=e=>o.css`
|
|
3136
3160
|
width: 100%;
|
|
3137
3161
|
display: flex;
|
|
3138
3162
|
align-items: center;
|
|
@@ -3141,7 +3165,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3141
3165
|
${"view"===e&&`\n border: 1px solid ${h("neutral",400)};\n background-color: ${h("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
|
|
3142
3166
|
|
|
3143
3167
|
${"transparent"===e&&"\n border: none;\n background-color: transparent;\n border-radius: 4px;\n padding: 0px 16px;\n\n .chakra-tabs__list {\n gap: 32px;\n }\n "}
|
|
3144
|
-
`,
|
|
3168
|
+
`,Lf=o.css`
|
|
3145
3169
|
width: 99%;
|
|
3146
3170
|
height: 40px;
|
|
3147
3171
|
padding: 8px 16px;
|
|
@@ -3157,7 +3181,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3157
3181
|
&:focus-visible {
|
|
3158
3182
|
box-shadow: none;
|
|
3159
3183
|
}
|
|
3160
|
-
|
|
3184
|
+
`,Rf=o.css`
|
|
3161
3185
|
background-color: ${h("neutral",200)};
|
|
3162
3186
|
color: ${h("neutral",700)};
|
|
3163
3187
|
|
|
@@ -3214,11 +3238,11 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3214
3238
|
opacity: 1;
|
|
3215
3239
|
}
|
|
3216
3240
|
}
|
|
3217
|
-
`,
|
|
3241
|
+
`,Tf=o.css`
|
|
3218
3242
|
width: 4px;
|
|
3219
3243
|
height: 24px;
|
|
3220
3244
|
background-color: ${h("neutral",400)};
|
|
3221
|
-
`,
|
|
3245
|
+
`,Of=o.css`
|
|
3222
3246
|
height: 32px;
|
|
3223
3247
|
border-radius: 2px;
|
|
3224
3248
|
background-color: ${h("neutral",200)};
|
|
@@ -3291,7 +3315,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3291
3315
|
opacity: 1;
|
|
3292
3316
|
}
|
|
3293
3317
|
}
|
|
3294
|
-
`,
|
|
3318
|
+
`,Pf=o.css`
|
|
3295
3319
|
background-color: transparent;
|
|
3296
3320
|
color: ${h("neutral",600)};
|
|
3297
3321
|
width: auto;
|
|
@@ -3362,7 +3386,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3362
3386
|
}
|
|
3363
3387
|
}
|
|
3364
3388
|
}
|
|
3365
|
-
`,
|
|
3389
|
+
`,Mf=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),_f=e=>1===e?"none":2===e?"left":"right",If=({text:e,query:n})=>{if(!n)return e;const r=new RegExp(`(${n})`,"ig"),o=e.split(r);return t.jsx(t.Fragment,{children:o.map((e=>r.test(e)?t.jsx("strong",{children:e},e):t.jsx("span",{children:e},e)))})},Df=({items:r,query:o,onSelect:i,highlightedIndex:a})=>{const s=n.useRef(null);return n.useEffect((()=>{if(!s.current)return;const e=s.current.children[a];e&&e.scrollIntoView({block:"nearest"})}),[a]),t.jsx(e.Box,{padding:"8px",children:r.map(((n,r)=>t.jsx(e.Box,{ref:s,padding:"6px 8px",borderRadius:"md",cursor:"pointer",bg:r===a?"gray.100":void 0,_hover:{background:"gray.50"},onClick:()=>i(n.id||n.label),children:t.jsx(If,{text:n.label,query:o})},n.id)))})},Af={small:"16px",medium:"24px",large:"40px",default:"16px"};function Nf(e,t,n,r){const i=function(e,t){return"string"==typeof t&&""!==t.trim()?t:e&&Af[e]?Af[e]:Af.default}(e,t),a=n?h("neutral",200):h("primary",300),s=r??a,l=r&&n?"opacity: 0.7;":"",c=h("neutral",n?400:800);return o.css`
|
|
3366
3390
|
height: ${i};
|
|
3367
3391
|
width: ${i};
|
|
3368
3392
|
border-radius: 50%;
|
|
@@ -3396,17 +3420,17 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3396
3420
|
background-color: ${h("primary",500)};
|
|
3397
3421
|
}
|
|
3398
3422
|
}
|
|
3399
|
-
`}const
|
|
3423
|
+
`}const Vf=e=>o.css`
|
|
3400
3424
|
width: ${e||"16px"};
|
|
3401
3425
|
position: absolute;
|
|
3402
3426
|
top: -8px;
|
|
3403
3427
|
left: 15px;
|
|
3404
|
-
`,
|
|
3428
|
+
`,zf=o.css`
|
|
3405
3429
|
font-size: 12px;
|
|
3406
3430
|
line-height: 16px;
|
|
3407
3431
|
font-weight: 700;
|
|
3408
3432
|
color: ${h("primary",800)};
|
|
3409
|
-
`,
|
|
3433
|
+
`,Bf=n.forwardRef((({name:t,ariaLabel:n,size:i="medium",customSize:a="",src:s,srcSet:l,onClick:c,notificationCount:d,disabled:u=!0,customBackgroundColor:p=""},f)=>{const x=()=>{u||c?.()},g=(()=>{let e="";return d&&d>0&&(e=`${d>99?"99+":d}`),e})();let v="16px";d&&d>99?v="28px":d&&d>9&&(v="22px");const b=!!s||!!l,m=c&&!u;return r.jsxs(e.Avatar.Root,{"aria-label":n||t,ref:f,css:Nf(i,a,u,p),onClick:x,onKeyDown:e=>{u||"Enter"!==e.key||x()},role:m?"button":void 0,tabIndex:m?0:void 0,"aria-disabled":u,children:[b&&r.jsx(e.Avatar.Image,{src:s,srcSet:l}),!b&&t&&r.jsx(e.Avatar.Fallback,{name:t,css:zf}),!b&&!t&&r.jsx(ne,{size:"100%",style:{padding:"15%",color:u?h("neutral",400):void 0}}),g.length>0?r.jsx("div",{css:Vf(v),children:r.jsx("div",{css:o.css`
|
|
3410
3434
|
height: 16px;
|
|
3411
3435
|
width: auto;
|
|
3412
3436
|
background-color: ${h("error",500)};
|
|
@@ -3418,16 +3442,16 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3418
3442
|
font-size: 12px;
|
|
3419
3443
|
font-weight: 700;
|
|
3420
3444
|
color: ${h("error",100)};
|
|
3421
|
-
`,children:r.jsx("p",{"aria-label":`${
|
|
3445
|
+
`,children:r.jsx("p",{"aria-label":`${d} unread message`,children:g})})}):null]})})),Hf=o.css`
|
|
3422
3446
|
display: flex;
|
|
3423
3447
|
justify-content: flex-start;
|
|
3424
3448
|
align-items: center;
|
|
3425
3449
|
gap: 8px;
|
|
3426
|
-
`,
|
|
3450
|
+
`,Ff=e=>o.css`
|
|
3427
3451
|
width: ${e||"16px"};
|
|
3428
3452
|
position: relative;
|
|
3429
3453
|
display: flex;
|
|
3430
|
-
`,
|
|
3454
|
+
`,qf=o.css`
|
|
3431
3455
|
height: 4px;
|
|
3432
3456
|
width: 4px;
|
|
3433
3457
|
background-color: ${h("error",500)};
|
|
@@ -3435,7 +3459,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3435
3459
|
position: absolute;
|
|
3436
3460
|
top: 0px;
|
|
3437
3461
|
right: 0px;
|
|
3438
|
-
`,
|
|
3462
|
+
`,Zf=o.css`
|
|
3439
3463
|
height: 10px;
|
|
3440
3464
|
background-color: ${h("error",500)};
|
|
3441
3465
|
padding: 0 3px 1px 3px;
|
|
@@ -3446,11 +3470,11 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3446
3470
|
position: absolute;
|
|
3447
3471
|
top: -2px;
|
|
3448
3472
|
left: 9px;
|
|
3449
|
-
`,
|
|
3473
|
+
`,Wf=o.css`
|
|
3450
3474
|
font-size: 9px;
|
|
3451
3475
|
font-weight: 700;
|
|
3452
3476
|
color: ${h("error",100)};
|
|
3453
|
-
`,
|
|
3477
|
+
`,Gf=o.css`
|
|
3454
3478
|
height: 16px;
|
|
3455
3479
|
min-width: 16px;
|
|
3456
3480
|
background-color: ${h("error",500)};
|
|
@@ -3459,11 +3483,11 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3459
3483
|
justify-content: center;
|
|
3460
3484
|
align-items: center;
|
|
3461
3485
|
padding: 0px 4px 1px 4px;
|
|
3462
|
-
`,
|
|
3486
|
+
`,Uf=o.css`
|
|
3463
3487
|
font-size: 16px;
|
|
3464
3488
|
font-weight: 700;
|
|
3465
3489
|
color: ${h("error",100)};
|
|
3466
|
-
`,
|
|
3490
|
+
`,Xf=(e,t)=>{let n="234px";return"full-width"===e?n="100%":"large"===e&&(n="320px"),o.css`
|
|
3467
3491
|
width: 100%;
|
|
3468
3492
|
max-width: ${n};
|
|
3469
3493
|
border-radius: 4px;
|
|
@@ -3478,7 +3502,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3478
3502
|
button {
|
|
3479
3503
|
margin-left: ${t?0:"24px"};
|
|
3480
3504
|
}
|
|
3481
|
-
`},
|
|
3505
|
+
`},Yf=o.css`
|
|
3482
3506
|
display: flex;
|
|
3483
3507
|
align-items: flex-start;
|
|
3484
3508
|
gap: 8px;
|
|
@@ -3486,14 +3510,14 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3486
3510
|
svg {
|
|
3487
3511
|
margin-top: 6px;
|
|
3488
3512
|
}
|
|
3489
|
-
`,
|
|
3513
|
+
`,Kf=e=>o.css`
|
|
3490
3514
|
max-width: 720px;
|
|
3491
3515
|
color: ${h("neutral",800)};
|
|
3492
3516
|
font-size: ${"small"===e?"14px":"18px"};
|
|
3493
3517
|
line-height: ${"small"===e?"20px":"28px"};
|
|
3494
3518
|
font-weight: 400;
|
|
3495
3519
|
text-align: left;
|
|
3496
|
-
`,
|
|
3520
|
+
`,Jf=(e,t)=>o.css`
|
|
3497
3521
|
max-width: 720px;
|
|
3498
3522
|
color: ${h("neutral",700)};
|
|
3499
3523
|
font-size: ${"small"===e?"12px":"16px"};
|
|
@@ -3501,7 +3525,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3501
3525
|
font-weight: 400;
|
|
3502
3526
|
margin-left: ${t?"24px":"0"};
|
|
3503
3527
|
text-align: left;
|
|
3504
|
-
`,
|
|
3528
|
+
`,Qf=(e,t)=>o.css`
|
|
3505
3529
|
max-width: 720px;
|
|
3506
3530
|
color: ${h("neutral",700)};
|
|
3507
3531
|
font-size: ${"small"===e?"12px":"16px"};
|
|
@@ -3509,15 +3533,15 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3509
3533
|
font-weight: 400;
|
|
3510
3534
|
margin-left: ${t?"24px":"0"};
|
|
3511
3535
|
text-align: left;
|
|
3512
|
-
`,
|
|
3536
|
+
`,ex=o.css`
|
|
3513
3537
|
background-color: ${h("neutral",100)};
|
|
3514
3538
|
border: 1px solid ${h("neutral",300)};
|
|
3515
3539
|
color: ${h("neutral",700)};
|
|
3516
|
-
`,
|
|
3540
|
+
`,tx=o.css`
|
|
3517
3541
|
background-color: ${h("neutral",200)};
|
|
3518
3542
|
border: 1px solid ${h("neutral",300)};
|
|
3519
3543
|
color: ${h("neutral",700)};
|
|
3520
|
-
`,
|
|
3544
|
+
`,nx=o.css`
|
|
3521
3545
|
background-color: ${h("success",100)};
|
|
3522
3546
|
border: 1px solid ${h("success",300)};
|
|
3523
3547
|
color: ${h("success",500)};
|
|
@@ -3525,7 +3549,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3525
3549
|
p {
|
|
3526
3550
|
color: ${h("success",900)};
|
|
3527
3551
|
}
|
|
3528
|
-
`,
|
|
3552
|
+
`,rx=o.css`
|
|
3529
3553
|
background-color: ${h("warning",100)};
|
|
3530
3554
|
border: 1px solid ${h("warning",300)};
|
|
3531
3555
|
color: ${h("warning",500)};
|
|
@@ -3533,7 +3557,7 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3533
3557
|
p {
|
|
3534
3558
|
color: ${h("warning",900)};
|
|
3535
3559
|
}
|
|
3536
|
-
`,
|
|
3560
|
+
`,ox=o.css`
|
|
3537
3561
|
background-color: ${h("error",100)};
|
|
3538
3562
|
border: 1px solid ${h("error",300)};
|
|
3539
3563
|
color: ${h("error",500)};
|
|
@@ -3541,39 +3565,39 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3541
3565
|
p {
|
|
3542
3566
|
color: ${h("error",900)};
|
|
3543
3567
|
}
|
|
3544
|
-
`,
|
|
3568
|
+
`,ix=e=>{let t="",n="",r="";return"success"===e?(t=h("success",100),n=h("success",500),r=h("success",300)):"warning"===e?(t=h("warning",100),n=h("warning",500),r=h("warning",300)):"error"===e?(t=h("error",100),n=h("error",500),r=h("error",300)):"information"===e?(t=h("secondary",100),n=h("secondary",500),r=h("secondary",200)):"general-grey"===e?(t=h("neutral",200),n=h("neutral",700),r=h("neutral",300)):(t=h("neutral",100),n=h("neutral",700),r=h("neutral",300)),o.css`
|
|
3545
3569
|
display: flex;
|
|
3546
3570
|
color: ${n};
|
|
3547
3571
|
align-items: center;
|
|
3548
3572
|
background-color: ${t};
|
|
3549
3573
|
border-bottom: 1px solid ${r};
|
|
3550
3574
|
border-radius: 0;
|
|
3551
|
-
`},
|
|
3575
|
+
`},ax=l.forwardRef((({title:t,children:n,icon:o,variant:i,onClose:a})=>{const[s,c]=l.useState(!0),d="success"===i?r.jsx(I,{}):"warning"===i?r.jsx(D,{}):r.jsx(E,{});return s?r.jsxs(e.Alert.Root,{css:ix(i),children:[r.jsx(e.Alert.Indicator,{children:o||d}),n?r.jsx(e.Alert.Content,{children:r.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[r.jsx(e.Alert.Title,{children:t}),r.jsx(e.Alert.Description,{children:n})]})}):r.jsx(e.Alert.Title,{flex:"1",children:t}),r.jsx(e.CloseButton,{pos:"absolute",insetEnd:"2",_hover:{bg:"gray.200"},onClick:()=>{c(!1),a?.()}})]}):null})),sx=o.css`
|
|
3552
3576
|
height: 8px;
|
|
3553
3577
|
width: 100%;
|
|
3554
3578
|
background-color: ${h("neutral",300)};
|
|
3555
3579
|
display: flex;
|
|
3556
3580
|
align-items: center;
|
|
3557
3581
|
justify-content: flex-start;
|
|
3558
|
-
`,
|
|
3582
|
+
`,lx=e=>o.css`
|
|
3559
3583
|
height: 100%;
|
|
3560
3584
|
width: ${e}%;
|
|
3561
3585
|
background-color: ${h("primary",500)};
|
|
3562
3586
|
transition: width 0.5s ease-in-out;
|
|
3563
|
-
`,
|
|
3587
|
+
`,cx=o.css`
|
|
3564
3588
|
width: 100%;
|
|
3565
3589
|
display: flex;
|
|
3566
3590
|
align-items: center;
|
|
3567
3591
|
justify-content: space-between;
|
|
3568
3592
|
position: relative;
|
|
3569
|
-
`,
|
|
3593
|
+
`,dx=o.css`
|
|
3570
3594
|
height: 60px;
|
|
3571
3595
|
width: 80px;
|
|
3572
3596
|
display: flex;
|
|
3573
3597
|
flex-direction: column;
|
|
3574
3598
|
align-items: center;
|
|
3575
3599
|
justify-content: space-between;
|
|
3576
|
-
`,
|
|
3600
|
+
`,ux=(e,t)=>o.css`
|
|
3577
3601
|
height: 32px;
|
|
3578
3602
|
width: 32px;
|
|
3579
3603
|
display: flex;
|
|
@@ -3609,12 +3633,12 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3609
3633
|
}
|
|
3610
3634
|
|
|
3611
3635
|
${t?`\n background-color: ${h("neutral",300)};\n \n &:hover {\n background-color: ${h("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3612
|
-
`,
|
|
3636
|
+
`,px=e=>o.css`
|
|
3613
3637
|
color: ${h("neutral",e?800:600)};
|
|
3614
3638
|
font-size: 14px;
|
|
3615
3639
|
line-height: 20px;
|
|
3616
3640
|
font-weight: 400;
|
|
3617
|
-
`,
|
|
3641
|
+
`,hx=o.css`
|
|
3618
3642
|
height: 1px;
|
|
3619
3643
|
width: 100%;
|
|
3620
3644
|
padding: 0 30px;
|
|
@@ -3622,11 +3646,11 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3622
3646
|
top: 16px;
|
|
3623
3647
|
left: 0;
|
|
3624
3648
|
z-index: -1;
|
|
3625
|
-
`,
|
|
3649
|
+
`,fx=o.css`
|
|
3626
3650
|
height: 1px;
|
|
3627
3651
|
width: 100%;
|
|
3628
3652
|
background-color: ${h("neutral",400)};
|
|
3629
|
-
`,
|
|
3653
|
+
`,xx=o.css`
|
|
3630
3654
|
justify-content: space-between;
|
|
3631
3655
|
align-items: center;
|
|
3632
3656
|
gap: 8px;
|
|
@@ -3669,21 +3693,21 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3669
3693
|
color: ${h("error",900)};
|
|
3670
3694
|
}
|
|
3671
3695
|
}
|
|
3672
|
-
`,
|
|
3696
|
+
`,gx=o.css`
|
|
3673
3697
|
font-size: 18px;
|
|
3674
3698
|
line-height: 28px;
|
|
3675
3699
|
font-weight: 400;
|
|
3676
3700
|
color: ${h("neutral",800)};
|
|
3677
|
-
`,
|
|
3701
|
+
`,vx=o.css`
|
|
3678
3702
|
font-size: 16px;
|
|
3679
3703
|
line-height: 24px;
|
|
3680
3704
|
font-weight: 400;
|
|
3681
3705
|
color: ${h("neutral",700)};
|
|
3682
|
-
`,
|
|
3706
|
+
`,bx=o.css`
|
|
3683
3707
|
padding: 6px;
|
|
3684
|
-
`,
|
|
3708
|
+
`,mx=o.css`
|
|
3685
3709
|
padding: 6px;
|
|
3686
|
-
`,
|
|
3710
|
+
`,yx={pauseOnPageIdle:!0,offsets:"24px"},wx={"top-start":e.createToaster({placement:"top-start",...yx}),"top-end":e.createToaster({placement:"top-end",...yx}),"bottom-start":e.createToaster({placement:"bottom-start",...yx}),"bottom-end":e.createToaster({placement:"bottom-end",...yx})};exports.AlertBanner=ax,exports.AnalysisWidget=({children:t,header:o,footer:i,expanded:a=!0,collapsible:s=!0,actions:l,showFooterOnCollapsed:c=!1,labels:d})=>{const u=w("AnalysisWidget",d),p="analysis-widget-item",[h,f]=n.useState(a),x=`analysis-widget-header-${p}`;return r.jsx(e.Box,{as:"section","aria-labelledby":x,css:va,children:r.jsxs(e.Accordion.Root,{multiple:!0,value:s?void 0:[p],defaultValue:a?[p]:[],children:[r.jsxs(e.Accordion.Item,{css:ma,value:p,children:[o&&r.jsx(e.Accordion.ItemTrigger,{id:x,role:"button","aria-expanded":h,tabIndex:0,css:ba,pointerEvents:s?"auto":"none",onClick:s?()=>{f(!h)}:void 0,children:r.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[o,l&&l.map((e=>r.jsx(C,{variant:"secondary",size:"small",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},leftIcon:e?.icon},e.label))),s&&r.jsx(e.Accordion.ItemIndicator,{height:"16px",marginTop:"8px",display:"flex",children:r.jsx(L,{"aria-label":u.toggleSectionLabel,color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]})}),r.jsxs("div",{className:h?"item-content-open":"item-content-closed","aria-hidden":!h,children:[t,!c&&i&&r.jsx(e.Box,{css:ya,children:i})]})]}),c&&i&&r.jsx(e.Box,{css:ya,children:i})]})})},exports.Avatar=Bf,exports.Badge=({hasNotification:e,notificationCount:t,label:o})=>{const[i,a]=n.useState(!1);n.useEffect((()=>{const e=()=>{window.innerWidth<1024?a(!0):a(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const s=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let l="16px";return t&&t>99?l="28px":t&&t>9&&(l="22px"),i?r.jsxs("div",{css:Hf,role:"status","aria-live":"polite",children:[r.jsxs("div",{css:Ff(),children:[r.jsx(V,{color:"currentColor",height:"16px",width:"16px"}),!e||t||o?null:r.jsx("div",{css:qf,"aria-hidden":!0})]}),o?r.jsx("p",{children:o}):null,s.length>0?r.jsx("div",{css:Gf,children:r.jsx("p",{css:Uf,"aria-label":`${t} unread message`,children:s})}):null]}):r.jsxs("div",{css:Hf,role:"status","aria-live":"polite",children:[o?r.jsx("p",{children:o}):null,r.jsxs("div",{css:Ff(l),children:[s.length>0?r.jsx("div",{css:Zf,children:r.jsx("p",{css:Wf,"aria-label":`${t} unread message`,children:s})}):null,e&&!t?r.jsx("div",{css:qf,"aria-hidden":!0}):null,r.jsx(V,{color:"currentColor",height:"16px",width:"16px"})]})]})},exports.BaseMap=({title:e,caption:t,additionalSettings:i,options:a,onOptionSelected:s,maxHeight:l="400px",maxWidth:c="260px",labels:d})=>{const u=w("BaseMap",d),p=n.useRef(null),f=n.useRef(null);return n.useEffect((()=>{const e=p.current,t=f.current;if(!e||!t)return;const n=()=>{e.focus()};if("undefined"!=typeof IntersectionObserver){let e=!1;const r=new IntersectionObserver((([t])=>{t?.isIntersecting?(e||n(),e=!0):e=!1}),{threshold:.01});return r.observe(t),()=>r.disconnect()}const r=window.setTimeout(n,0);return()=>window.clearTimeout(r)}),[]),r.jsx("div",{ref:f,css:Rn(l,c),children:r.jsxs("div",{className:"ds-base-map-scroll-content",children:[r.jsxs("div",{css:Tn,children:[r.jsx("h2",{ref:p,className:"ds-base-map-header-title",tabIndex:-1,children:e}),r.jsx("p",{className:"ds-base-map-header-caption",children:t})]}),r.jsxs("div",{css:On,children:[i?r.jsx("div",{css:Pn,children:i.map((e=>r.jsxs("div",{children:[r.jsx(De,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?r.jsx("div",{css:Mn,children:e.children}):null]},e.label)))}):null,a?r.jsx("div",{css:_n,children:a.map((e=>{return r.jsxs("div",{css:In(e.active),role:"button",onClick:()=>s?.(e),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||s?.(e)},children:[r.jsx("div",{css:(t=e.imageUrl,o.css`
|
|
3687
3711
|
height: 32px;
|
|
3688
3712
|
width: 32px;
|
|
3689
3713
|
border: 1px solid ${h("neutral",300)};
|
|
@@ -3691,36 +3715,36 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3691
3715
|
background-image: url(${t});
|
|
3692
3716
|
background-size: cover;
|
|
3693
3717
|
background-position: center;
|
|
3694
|
-
`)}),r.jsxs("div",{css:
|
|
3695
|
-
margin-left: ${
|
|
3718
|
+
`)}),r.jsxs("div",{css:Dn,children:[r.jsxs("div",{className:"ds-base-map-title-container",children:[r.jsx("p",{className:"ds-base-map-title",children:e.label}),e.active?r.jsx(en,{label:u.activeLabel,variant:"warning",size:"small",icon:r.jsx($,{})}):null]}),r.jsx("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?r.jsx("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})})},exports.Breadcrumb=({links:t,separator:o,maxItems:i=99,linkRouter:a,size:s="default"})=>{const[l,c]=n.useState(t.length>i);n.useEffect((()=>{c(t.length>i)}),[t.length]);const d=a;return r.jsx(e.Breadcrumb.Root,{children:r.jsx(e.Breadcrumb.List,{gap:"small"===s?"6px":"10px",children:l?r.jsxs(r.Fragment,{children:[r.jsx(e.Breadcrumb.Item,{css:Vh(s),children:r.jsxs(d,{to:t[0].link,href:t[0].link,children:[t[0].icon,t[0].label]})}),r.jsx(e.Breadcrumb.Separator,{css:zh(s),children:o||r.jsx(L,{rotate:"270"})}),r.jsx("li",{className:"chakra-breadcrumb__item",children:r.jsx("button",{css:Bh,type:"button",onClick:()=>c(!1),children:"..."})}),r.jsx(e.Breadcrumb.Separator,{css:zh(s),children:o||r.jsx(L,{rotate:"270"})}),r.jsx(e.Breadcrumb.Item,{css:Vh(s),children:r.jsxs("p",{"aria-current":"page","aria-label":t[t.length-1].label,children:[t[t.length-1].icon,t[t.length-1].label]})})]}):t.map(((i,a)=>i?.label?r.jsxs(n.Fragment,{children:[r.jsx(e.Breadcrumb.Item,{css:Vh(s),children:a<t.length-1?r.jsxs(d,{to:i.link,href:i.link,children:[i.icon,i.label]}):r.jsxs("p",{"aria-current":"page","aria-label":i.label,children:[i.label&&i.icon?i.icon:"",i.label]})}),a<t.length-1?r.jsx(e.Breadcrumb.Separator,{css:zh(s),children:o||r.jsx(L,{rotate:"270"})}):null]},i.label):null))})})},exports.Button=C,exports.Checkbox=De,exports.CheckboxList=({label:t,caption:i,checkboxes:a,defaultValues:s,onCheckedChange:l,errorMessage:c,horizontal:d,required:u,hideCheckedCounter:p=!1,hideExpandToggle:h=!1,labels:f})=>{const x=w("CheckboxList",f),g=Array.isArray(s)?s:[],v=n.useMemo((()=>new Set(g)),[g]),[b,m]=n.useState((()=>a.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:v.has(n),e}),{}))),[y,C]=n.useState(!0);n.useEffect((()=>{m((e=>{const t=a.filter((e=>e.name)).reduce(((t,n)=>{const r=n.name;return t[r]="boolean"==typeof n.checked?n.checked:e[r]??v.has(r),t}),{});return Object.keys(e).length===Object.keys(t).length&&Object.entries(t).every((([t,n])=>e[t]===n))?e:t}))}),[a,v]);const j="string"!=typeof t,k=a.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:!!b[n],e}),{}),$=a.length>0&&a.every((e=>e.name&&k[e.name])),S=a.some((e=>e.name&&k[e.name]))&&!$,E=a.length,R=`${a.filter((e=>e?.name&&k[e.name])).length} / ${E}`,T=i?`${i}.`:"",O=u?x.requiredLabel:x.optionalLabel,P=c?`${x.errorPrefix} ${c}.`:"",M=`${j?t.label:t}. ${T} ${O} ${P} `;return r.jsxs(e.Group,{css:ut,"aria-label":M,children:[c?r.jsx("div",{css:xt}):null,r.jsxs("div",{css:(_=!!c,o.css`
|
|
3719
|
+
margin-left: ${_?"19px":"0px"};
|
|
3696
3720
|
width: 100%;
|
|
3697
|
-
`),children:[r.jsx("div",{css:
|
|
3721
|
+
`),children:[r.jsx("div",{css:pt,children:"string"==typeof t?r.jsxs(r.Fragment,{children:[u&&r.jsx("span",{id:"required-symbol","aria-label":x.requiredSymbolLabel,children:"*"}),t]}):r.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[r.jsxs(De,{checked:$,indeterminate:S,onCheckedChange:e=>(e=>{const t=a.filter((e=>void 0!==e.name)).reduce(((t,n)=>(t[n.name]=e,t)),{});m(t),l?.(t)})(!!e.checked),children:[t.label," ",!p&&r.jsx("span",{"aria-hidden":"true",css:vt,children:R})]}),!h&&r.jsxs("button",{type:"button",onClick:()=>C((e=>!e)),"aria-expanded":y,"aria-controls":"checkbox-list",css:bt,children:[y?x.hideLabel:x.expandLabel,r.jsx("span",{"aria-hidden":"true",children:y?r.jsx(L,{style:{transform:"rotate(180deg)"}}):r.jsx(L,{})})]})]})}),r.jsx("p",{css:ht,"aria-label":i,children:i}),c?r.jsx("p",{css:gt,"aria-label":c,children:c}):null,r.jsx("div",{id:"checkbox-list",css:ft(d,y),children:a.map((e=>{const{onCheckedChange:t,...n}=e;return r.jsx(De,{ms:j&&!d?"6":"",css:{},checked:!!e?.name&&!!k[e.name],onCheckedChange:({checked:n})=>{((e,t)=>{const n={...b};t&&(n[t]=e,m(n)),l&&l(n)})(n,e.name),t?.({checked:!!n})},...n},e.name)}))})]})]});var _},exports.CheckboxOptionCard=({defaultValue:t,items:n,onValueChange:i})=>r.jsx(e.CheckboxGroup,{defaultValue:t,onValueChange:i,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:n.map((n=>{return r.jsxs(e.CheckboxCard.Root,{css:Ae,defaultChecked:-1!==t?.indexOf(n.value),disabled:n.disabled,value:n.value,children:[r.jsx(e.CheckboxCard.HiddenInput,{}),r.jsxs(e.CheckboxCard.Control,{css:Ne,children:[r.jsxs(e.CheckboxCard.Content,{css:(a=n.variant,o.css`
|
|
3698
3722
|
width: 100%;
|
|
3699
3723
|
display: flex;
|
|
3700
3724
|
flex-direction: ${"centered"===a?"column":"row"};
|
|
3701
3725
|
align-items: center;
|
|
3702
3726
|
gap: 12px;
|
|
3703
|
-
`),children:[r.jsx("div",{css:
|
|
3727
|
+
`),children:[r.jsx("div",{css:Ve,children:n.icon}),r.jsxs("div",{style:{width:"100%"},children:[r.jsx(e.CheckboxCard.Label,{css:ze(n.variant,n.disabled),children:n.label}),n.caption?r.jsx(e.CheckboxCard.Description,{css:Be(n.variant,n.disabled),children:n.caption}):null]})]}),r.jsx(e.CheckboxCard.Indicator,{css:He(n.variant)})]}),n.children&&"expanded"===n.variant?r.jsx(e.CheckboxCard.Addon,{css:(i=n.disabled,o.css`
|
|
3704
3728
|
width: 100%;
|
|
3705
3729
|
border-color: ${h("neutral",300)};
|
|
3706
3730
|
margin-top: 12px;
|
|
3707
3731
|
padding: 0px;
|
|
3708
3732
|
padding-top: 8px;
|
|
3709
3733
|
color: ${i?h("neutral",500):"inherit"};
|
|
3710
|
-
`),children:n.children}):null]},`${n.label}-${n.value}`);var i,a}))})}),exports.CloseButton=ce,exports.ClusterPoint=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:a="cluster"})=>t.jsx(_n,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:a}),exports.DesignSystemLocaleProvider=({labels:e,children:n})=>t.jsx(f.Provider,{value:{labels:e},children:n}),exports.ExtendableCard=({children:t,header:n,footer:o})=>r.jsx(e.Box,{css:da,children:r.jsx(e.Accordion.Root,{multiple:!0,children:r.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[r.jsxs(e.Accordion.ItemTrigger,{css:pa,alignItems:"center",children:[r.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:n}),r.jsx(e.Accordion.ItemIndicator,{children:r.jsx(E,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsxs(e.Accordion.ItemContent,{children:[t,o]})]})})}),exports.Footer=({children:e,label:t="© World Resources Institute",fixed:n,filled:o,maxWidth:i,additionalLogos:a})=>{const s=(new Date).getFullYear();return r.jsx("footer",{css:Vh(n,o),children:r.jsxs("div",{css:Ah(i),children:[r.jsxs("div",{css:Hh,children:[r.jsx(N,{height:"32px",width:"91px"}),a&&a.map(((e,t)=>r.jsx("div",{children:e},t)))]}),r.jsx("div",{css:zh,children:e}),r.jsx("div",{children:r.jsxs("p",{css:Bh,children:[t," ",s]})})]})})},exports.IconButton=le,exports.InlineMessage=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(S,{height:"16px",width:"16px"}),onActionClick:a,actionLabel:s,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:u})=>{let d=Yf;return"info-grey"===n?d=Kf:"success"===n?d=Jf:"warning"===n?d=Qf:"error"===n&&(d=ex),r.jsxs("div",{css:[qf(o,l),d],"aria-roledescription":"Note",children:[r.jsxs("div",{children:[r.jsxs("div",{css:Wf,children:[i,r.jsx("p",{css:Gf(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:Uf(o,!!i),children:t}):t?r.jsx("div",{css:Xf(o,!!i),children:t}):null]}),s?r.jsx(w,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:a,leftIcon:c,rightIcon:u}):null]})},exports.InputWithUnits=({label:t,caption:o,errorMessage:i,units:a,unitsPosition:s="end",defaultUnit:l="",defaultValue:c="",onChange:u,required:d,disabled:p})=>{const[h,f]=n.useState(c),[x,g]=n.useState(l?[l]:[a[0].value]),v=(e,t)=>{u&&u("end"===s?""+(t?`${h} ${e}`:`${e} ${x}`):""+(t?`${e} ${h}`:`${x} ${e}`))};return r.jsxs("div",{css:xt,children:[i?r.jsx("div",{css:mt}):null,r.jsxs("div",{style:{marginLeft:i?"19px":"0px"},children:[r.jsxs("p",{css:gt(p),"aria-label":t,children:[d?r.jsx("span",{children:"*"}):null,t]}),r.jsx("p",{css:vt(p),"aria-label":o,children:o}),i?r.jsx("p",{css:bt,"aria-label":i,children:i}):null,r.jsxs(e.Group,{css:yt(!!i,s),attached:!0,children:["start"===s?r.jsx(Qt,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null,r.jsx(Et,{type:"number",value:h,disabled:p,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===s?r.jsx(Qt,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=Ai,exports.LayerGroup=({label:t,caption:o,value:i,layerItems:a,onChangeForRadioVariant:s})=>{const[l,c]=n.useState({}),[u]=n.useState((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(a));n.useEffect((()=>{let e={...l};a.forEach((n=>{n.isDefaultSelected&&(e={...e,["radio"===n.variant?t:n.name]:n.isDefaultSelected})})),c(e)}),[]);const d=(e,t,n,r)=>{const o={...l,[e]:t};c(o),n&&n(e,t,r)},p=Object.values(l).filter((e=>!0===e)).length,h=`${t}, ${p} Active layers on the map${o?`, ${o}`:""}`;return r.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[r.jsxs(e.Accordion.ItemTrigger,{css:Jo,alignItems:"flex-start","aria-label":h,children:[r.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[r.jsxs("span",{css:Qo,children:[t,r.jsx(Yt,{label:`${p} Active`,size:"small",variant:p>0?"success":"info-grey"})]}),r.jsx("div",{css:ei,children:o})]}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(E,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsx(e.Accordion.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:r.jsx(Ue,{name:t,value:u,customGap:"0px",onChange:(e,t)=>d(e,!!t,s,t),children:a.map((e=>r.jsx(ai,{...e,onChange:(t,n)=>d(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:t,defaultValue:n,...o})=>r.jsx("div",{css:Ko,style:{width:"100%"},children:r.jsx(e.Accordion.Root,{css:{},defaultValue:n,multiple:!0,...o,children:t})}),exports.LayerItem=ai,exports.LayerParameters=({label:t,children:o,openedByDefault:i})=>r.jsx("div",{children:r.jsx(e.Accordion.Root,{defaultValue:i?[t]:[],multiple:!0,children:r.jsxs(e.Accordion.Item,{css:si,value:t,children:[r.jsxs(e.Accordion.ItemTrigger,{css:li,children:[r.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:r.jsx("p",{css:ci,children:t})}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(E,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsx(e.Accordion.ItemContent,{css:ui,children:n.Children.map(o,(e=>r.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:t,onDrag:n,onUpClick:o,onDownClick:i,onRemoveClick:a,children:s,onInfoClick:l,onOpacityChanged:c})=>r.jsxs("div",{css:di,children:[r.jsxs("div",{css:pi,children:[r.jsx(le,{icon:r.jsx(P,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[r.jsx(le,{icon:r.jsx(E,{rotate:"180"}),"aria-label":"Up",onClick:o}),r.jsx(le,{icon:r.jsx(E,{}),"aria-label":"Down",onClick:i})]})]}),r.jsxs("div",{style:{width:"100%"},children:[r.jsxs("div",{css:hi,children:[r.jsxs("div",{children:[r.jsx("h3",{css:fi,children:e}),r.jsx("p",{css:xi,children:t})]}),r.jsx(w,{label:"Remove",size:"small",variant:"secondary",rightIcon:r.jsx(L,{}),onClick:a})]}),s,r.jsxs("div",{css:gi,children:[r.jsx(w,{label:"About data",size:"small",variant:"secondary",leftIcon:r.jsx(S,{}),onClick:l}),r.jsx(wi,{defaultValue:80,onOpacityChanged:c})]})]})]}),exports.List=Ui,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:n,onExpandClick:r,onShareClick:o,onPrintClick:i,onSettingsClick:a,onQuestionClick:s,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d})=>{const p=[{icon:t.jsx(A,{}),label:"Zoom in",ariaLabel:"zoom in",onClick:e},{icon:t.jsx(z,{}),label:"Zoom out",ariaLabel:"zoom out",onClick:n,gap:!0},{icon:t.jsx(B,{}),label:"Expand",ariaLabel:"expand",onClick:r,gap:!0},{icon:t.jsx(H,{}),label:"Share",ariaLabel:"share",onClick:o,gap:!0},{icon:t.jsx(F,{}),label:"Print",ariaLabel:"print",onClick:i,gap:!0},{icon:t.jsx(Z,{}),label:"Settings",ariaLabel:"settings",onClick:a,gap:!0},{icon:t.jsx(q,{}),label:"Help",ariaLabel:"question",onClick:s}];return t.jsx(ge,{items:p,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d||"Map controls toolbar"})},exports.MapMarker=_n,exports.MapMarkers=Dn,exports.MapPopUp=({open:e,onOpenChange:t,anchorRef:o,header:i,content:a,footer:s,placement:c="bottom",offset:u=30,closeOnEscape:d=!0,closeOnOutsideClick:p=!1})=>{const h=n.useRef(null),{refs:f,floatingStyles:x,context:g,middlewareData:v,placement:m}=Ho({open:e,onOpenChange:t,placement:c,whileElementsMounted:co,middleware:[Co(u),(b={fallbackAxisSideDirection:"start"},{...ho(b),options:[b,y]}),jo({padding:8}),ko({element:h})]});var b,y;n.useEffect((()=>{o?.current&&f.setReference(o.current)}),[o,f]);const w=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:x}=t,g=No(),v=Hr("function"==typeof c?c:()=>!1),m="function"==typeof c?v:c,b=l.useRef(!1),{escapeKey:y,outsidePress:w}=zo(f),{escapeKey:C,outsidePress:j}=zo(x),k=l.useRef(!1),$=Hr((e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=g?Ar(g.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=Hr((e=>{var t;const n=()=>{var t;$(e),null==(t=Ir(e))||t.removeEventListener("keydown",n)};null==(t=Ir(e))||t.addEventListener("keydown",n)})),E=Hr((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const a=b.current;if(b.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof m&&!m(e))return;const s=Ir(e),l="[data-floating-ui-inert]",c=Vr(o.floating).querySelectorAll(l);let d=Bn(s)?s:null;for(;d&&!nr(d);){const e=ir(d);if(nr(e)||!Bn(e))break;d=e}if(c.length&&Bn(s)&&!s.matches("html,body")&&!Dr(s,o.floating)&&Array.from(c).every((e=>!Dr(d,e))))return;if(Hn(s)&&O){const t=nr(s),n=rr(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),a=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,l=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,u=l&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=a&&e.offsetY>s.clientHeight;if(u||d)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=g&&Ar(g.nodesRef.current,p).some((t=>{var n;return Nr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Nr(e,o.floating)||Nr(e,o.domReference)||h)return;const f=g?Ar(g.nodesRef.current,p):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),R=Hr((e=>{var t;const n=()=>{var t;E(e),null==(t=Ir(e))||t.removeEventListener(u,n)};null==(t=Ir(e))||t.addEventListener(u,n)}));l.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),k.current=!0}function c(){e=window.setTimeout((()=>{k.current=!1}),er()?5:0)}const d=Vr(o.floating);s&&(d.addEventListener("keydown",C?S:$,C),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",c)),m&&d.addEventListener(u,j?R:E,j);let p=[];return h&&(Bn(o.domReference)&&(p=sr(o.domReference)),Bn(o.floating)&&(p=p.concat(sr(o.floating))),!Bn(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(sr(o.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",C?S:$,C),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",c)),m&&d.removeEventListener(u,j?R:E,j),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,m,u,n,r,h,a,y,w,$,C,S,E,j,R]),l.useEffect((()=>{i.current.insideReactTree=!1}),[i,m,u]);const L=l.useMemo((()=>({onKeyDown:$,...d&&{[Vo[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,d,p]),O=l.useMemo((()=>({onKeyDown:$,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Ao[u]]:()=>{i.current.insideReactTree=!0}})),[$,u,i]);return l.useMemo((()=>a?{reference:L,floating:O}:{}),[a,L,O])}(g,{escapeKey:d,outsidePress:p}),C=qo(g,{role:"dialog"}),{getFloatingProps:j}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=l.useCallback((t=>Fo(t,e,"reference")),t),i=l.useCallback((t=>Fo(t,e,"floating")),n),a=l.useCallback((t=>Fo(t,e,"item")),r);return l.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([w,C]),{x:k,y:$}=v.arrow??{x:null,y:null},S={top:"bottom",right:"left",bottom:"top",left:"right"}[m.split("-")[0]];if(!e)return null;let E=u-1,R=4;return"left"!==S&&"right"!==S||(E=4,R=u-1),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:f.setFloating,style:x,"aria-modal":!0,...j(),css:Wo,children:[r.jsxs("div",{css:Go,children:[i,r.jsx(ce,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":"Close"})]}),r.jsx("div",{css:Uo,children:a}),s?r.jsx("div",{css:Xo,children:s}):null,r.jsx("div",{ref:h,css:Yo(E,R,k,$,S,u)})]}),r.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>p&&t(!1)})]})},exports.Menu=ke,exports.MobileTabBar=({defaultValue:t,tabs:o,onTabClick:i,hideLabels:a,activationMode:s="manual"})=>{const l=o.length,[c,u]=n.useState((()=>Gh(o,t)));return r.jsx("div",{css:Fh,children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:t||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=Gh(o,e);u(t),i&&i(e)})(e),activationMode:s,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((t,n)=>{const{label:o,icon:i,bagdeCount:s,"aria-label":u,"aria-describedby":d,disabled:p,...h}=t,f=`${t.value}-str-status`,x=[`tab ${n+1} of ${l}`,c===n?"selected":"not selected"];p&&x.push("disabled");const g=[d,f].filter(Boolean).join(" ")||void 0;return r.jsxs(e.Tabs.Trigger,{css:Zh,"aria-label":u||o,"aria-disabled":!!p||void 0,"aria-describedby":g,disabled:p,...h,children:[r.jsxs("div",{css:qh,children:[i,s?r.jsx("div",{css:Wh,className:"ds-badge-count",children:s}):null]}),a?null:r.jsx("p",{children:o}),r.jsx(e.VisuallyHidden,{id:f,children:x.join(", ")})]},t.value)}))})})})},exports.Modal=({header:t,content:o,footer:i,size:a="medium",width:s,height:l,maxHeight:c,draggable:u,blocking:d,open:p,onClose:h})=>{const f=n.useRef(null);return p?r.jsx(e.Dialog.Root,{open:p,onOpenChange:h,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!u&&!d,preventScroll:!u&&!d,closeOnEscape:!d,defaultOpen:!0,children:r.jsxs(e.Portal,{children:[u?null:r.jsx(e.Dialog.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),r.jsx(ps,{disabled:!u,nodeRef:f,children:r.jsx(e.Dialog.Positioner,{ref:f,children:r.jsxs(e.Dialog.Content,{css:hs(a,s,l,c),children:[r.jsxs(e.Dialog.Header,{css:fs,children:[t,d?null:r.jsx(e.Dialog.CloseTrigger,{css:xs,asChild:!0,children:r.jsx(ce,{})})]}),r.jsx(e.Dialog.Body,{css:gs,children:o}),i?r.jsx(e.Dialog.Footer,{padding:"12px",children:i}):null]})})})]})}):null},exports.MultiActionButton=({variant:t="primary",size:o="default",mainActionLabel:i,mainActionOnClick:a=()=>{},otherActions:s=[],disabled:l,...c})=>{const[u,d]=n.useState(!1),p=l?`${i} action button with menu, disabled`:void 0;return r.jsxs(e.Group,{css:Re,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":p,role:"group",children:[r.jsx(w,{css:{},label:i,variant:t,size:o,onClick:a,disabled:l,...c}),r.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>d(e),positioning:{placement:"bottom-end"},children:[r.jsx(e.Menu.Trigger,{css:Se(t),"data-group-item":!0,"data-last":!0,asChild:!0,children:r.jsx(w,{variant:t,size:o,leftIcon:r.jsx(E,{rotate:u?"180":"0",color:h("accessible","text-on-primary-mids")||h("primary",900)}),disabled:l})}),r.jsx(Le,{children:s.map((({label:t,value:n,onClick:i})=>r.jsx(e.Menu.Item,{css:Ee(o),onClick:i,value:n,children:t},n)))})]})]})},exports.Navbar=({variant:e="default",theme:t="light",logo:o,linkRouter:i,pathname:a,navigationSection:s,utilitySection:l,actionsSection:c,maxWidth:u,fixed:d,onNavbarHeightChange:p,backgroundColor:h})=>{const f=n.useRef(null),x=n.useRef(null),g=n.useRef(null),[v,m]=n.useState(!1),[b,y]=n.useState(-1),[C,j]=n.useState("undefined"!=typeof window&&window?.innerWidth<=vf),[k,$]=n.useState(!1),S=i,E=n.useCallback((()=>{if(x.current&&f.current&&g.current){const e=f.current.getBoundingClientRect(),t=x.current.getBoundingClientRect(),n=g.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=vf||window.innerWidth<=b?(p?.(96),m(!0)):window.innerWidth>vf&&window.innerWidth<=1440?e.right>=t.left?(p?.(96),m(!0),y(window.innerWidth)):window.innerWidth>b&&(p?.(48),m(!1),y(-1)):(p?.(48),m(!1),y(-1)),v&&(window.innerWidth<=vf||n.right>=t.left?(j(!0),p?.(48)):(j(!1),p?.(96)))}}),[b,v]);n.useEffect((()=>(E(),window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E)})),[E]);const R="condensed"===e;return r.jsxs("nav",{css:Uh(v&&!C,d,h,t,R),children:[r.jsxs("div",{css:Yh(v&&!C,u,R),children:[r.jsxs("div",{css:Kh(v&&!C||"dark"===t,R),ref:f,children:[o?r.jsx("div",{ref:g,css:Jh,children:o}):null,r.jsx("div",{css:Qh(v),children:s?.map((e=>e.link?r.jsx(S,{to:e.link,href:e.link,css:ef(a===e.link,t),children:e.label},e.label):r.jsx(ke,{theme:t,label:e.label,items:e.items||[]},e.label)))})]}),r.jsx("div",{css:tf(R),ref:x,children:C?r.jsxs("button",{type:"button",onClick:()=>$(!k),"aria-label":"Open menu",css:of(t),children:[k?"Close":"Menu",k?r.jsx(L,{height:"16px",width:"16px"}):r.jsx(ee,{height:"16px",width:"16px"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{css:tf(R),children:l?.map(((e,t)=>r.jsx("div",{css:nf(v),children:e},t)))}),c?.length?r.jsx("div",{css:rf(v),children:c.map((e=>r.jsx(w,{...e},e.ariaLabel)))}):null]})})]}),v&&!C?r.jsx("div",{css:Xh(t,R),children:s?.map((e=>e.link?r.jsx(S,{to:e.link,href:e.link,css:ef(a===e.link,t),children:e.label},e.label):r.jsx(ke,{theme:t,label:e.label,items:e.items||[]},e.label)))}):null,C?r.jsx(gf,{theme:t,navigationSection:s,utilitySection:l,actionsSection:c,linkRouter:i,isOpen:k,setIsOpen:$,pathname:a}):null]})},exports.NavigationRail=({tabs:t=[],defaultValue:o,onTabClick:i,children:a,onOpenChange:s})=>{const[l,c]=n.useState(!1),[u,d]=n.useState(o||t?.[0]?.value),p=e=>{d(e),i&&i(e)},[f]=e.useMediaQuery(["(max-width: 768px)"]);return f?r.jsxs(e.Tabs.Root,{defaultValue:u,onValueChange:({value:e})=>p(e),children:[r.jsx(e.Tabs.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"8px",gap:"8px"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{value:t.value,css:{"--indicator-color":h("primary",500),flexShrink:0,padding:"10px 16px",color:h("neutral",600),"&[data-selected]":{color:h("neutral",800),fontWeight:600}},children:t.label},t.value)))}),t.map((t=>r.jsx(e.Tabs.Content,{value:t.value,children:a},t.value)))]}):r.jsxs("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[r.jsxs("div",{css:mf,children:[r.jsx(e.Tabs.Root,{defaultValue:o||t?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{p(e)},role:"tablist",children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{css:bf,"aria-label":t["aria-label"]||t.label,...t,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[t.icon?r.jsx("div",{css:yf,children:t.icon}):null,r.jsx("p",{children:t.label})]})},t.label)))})}),a?r.jsx(e.Collapsible.Root,{onOpenChange:({open:e})=>{c(e),s&&s(!e)},children:r.jsxs(e.Collapsible.Trigger,{css:wf,children:[r.jsx("div",{css:yf,children:l?r.jsx(j,{}):r.jsx(C,{})}),r.jsxs("div",{className:"ds-tab-label",children:[r.jsx("p",{children:l?"Show":"Hide"}),r.jsx("p",{children:"Sidebar"})]})]})}):null]}),a?r.jsx(e.Collapsible.Root,{defaultOpen:!0,open:!l,children:r.jsx(e.Collapsible.Content,{height:"100%",children:r.jsx("div",{css:Cf,role:"tabpanel","aria-labelledby":u,children:a})})}):null]})},exports.OptionCard=({defaultValue:t,items:n,onValueChange:i})=>r.jsx(e.RadioCard.Root,{defaultValue:t,onValueChange:i,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:n.map((t=>{return r.jsxs(e.RadioCard.Item,{css:Ve,value:t.value,disabled:t.disabled,children:[r.jsx(e.RadioCard.ItemHiddenInput,{}),r.jsxs(e.RadioCard.ItemControl,{css:Ae,children:[r.jsxs("div",{css:(i=t.variant,o.css`
|
|
3734
|
+
`),children:n.children}):null]},`${n.label}-${n.value}`);var i,a}))})}),exports.CloseButton=de,exports.ClusterPoint=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:a="cluster"})=>t.jsx(Nn,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:a}),exports.DesignSystemLocaleProvider=({labels:e,children:r})=>{const o=n.useMemo((()=>({labels:e})),[e]);return t.jsx(f.Provider,{value:o,children:r})},exports.ExtendableCard=({children:t,header:n,footer:o})=>r.jsx(e.Box,{css:xa,children:r.jsx(e.Accordion.Root,{multiple:!0,children:r.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[r.jsxs(e.Accordion.ItemTrigger,{css:ga,alignItems:"center",children:[r.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:n}),r.jsx(e.Accordion.ItemIndicator,{children:r.jsx(L,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsxs(e.Accordion.ItemContent,{children:[t,o]})]})})}),exports.Footer=({children:e,label:t="© World Resources Institute",fixed:n,filled:o,maxWidth:i,additionalLogos:a})=>{const s=(new Date).getFullYear();return r.jsx("footer",{css:Hh(n,o),children:r.jsxs("div",{css:Fh(i),children:[r.jsxs("div",{css:Wh,children:[r.jsx(N,{height:"32px",width:"91px"}),a&&a.map(((e,t)=>r.jsx("div",{children:e},t)))]}),r.jsx("div",{css:qh,children:e}),r.jsx("div",{children:r.jsxs("p",{css:Zh,children:[t," ",s]})})]})})},exports.FormContainer=({label:e,error:t,children:n})=>r.jsxs("div",{css:Oe,children:[t?r.jsx("div",{css:Me}):null,r.jsxs("div",{children:[e?r.jsx("p",{css:Pe,children:e}):null,t?r.jsx("p",{css:_e,"aria-label":t,children:t}):null,n]})]}),exports.IconButton=ce,exports.InlineMessage=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(E,{height:"16px",width:"16px"}),onActionClick:a,actionLabel:s,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const p=w("InlineMessage",u);let h=ex;return"info-grey"===n?h=tx:"success"===n?h=nx:"warning"===n?h=rx:"error"===n&&(h=ox),r.jsxs("div",{css:[Xf(o,l),h],"aria-roledescription":p.roleDescription,children:[r.jsxs("div",{children:[r.jsxs("div",{css:Yf,children:[i,r.jsx("p",{css:Kf(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:Jf(o,!!i),children:t}):t?r.jsx("div",{css:Qf(o,!!i),children:t}):null]}),s?r.jsx(C,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:a,leftIcon:c,rightIcon:d}):null]})},exports.InputWithUnits=({label:t,caption:o,errorMessage:i,units:a,unitsPosition:s="end",defaultUnit:l="",defaultValue:c="",onChange:d,required:u,disabled:p})=>{const[h,f]=n.useState(c),[x,g]=n.useState(l?[l]:[a[0].value]),v=(e,t)=>{d&&d("end"===s?""+(t?`${h} ${e}`:`${e} ${x}`):""+(t?`${e} ${h}`:`${x} ${e}`))};return r.jsxs("div",{css:mt,children:[i?r.jsx("div",{css:Ct}):null,r.jsxs("div",{style:{marginLeft:i?"19px":"0px"},children:[r.jsxs("p",{css:yt(p),"aria-label":t,children:[u?r.jsx("span",{children:"*"}):null,t]}),r.jsx("p",{css:wt(p),"aria-label":o,children:o}),i?r.jsx("p",{css:jt,"aria-label":i,children:i}):null,r.jsxs(e.Group,{css:kt(!!i,s),attached:!0,children:["start"===s?r.jsx(rn,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null,r.jsx(Ot,{type:"number",value:h,disabled:p,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===s?r.jsx(rn,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=Fi,exports.LayerGroup=({label:t,caption:o,value:i,layerItems:a,onChangeForRadioVariant:s,labels:l})=>{const c=w("LayerGroup",l),[d,u]=n.useState({}),[p]=n.useState((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(a));n.useEffect((()=>{let e={...d};a.forEach((n=>{n.isDefaultSelected&&(e={...e,["radio"===n.variant?t:n.name]:n.isDefaultSelected})})),u(e)}),[]);const h=(e,t,n,r)=>{const o={...d,[e]:t};u(o),n&&n(e,t,r)},f=Object.values(d).filter((e=>!0===e)).length,x=c.groupAriaLabel(t,f,o);return r.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[r.jsxs(e.Accordion.ItemTrigger,{css:ni,alignItems:"flex-start","aria-label":x,children:[r.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[r.jsxs("span",{css:ri,children:[t,r.jsx(en,{label:c.activeTagLabel(f),size:"small",variant:f>0?"success":"info-grey"})]}),r.jsx("div",{css:oi,children:o})]}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(L,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsx(e.Accordion.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:r.jsx(Qe,{name:t,value:p,customGap:"0px",onChange:(e,t)=>h(e,!!t,s,t),children:a.map((e=>r.jsx(di,{...e,onChange:(t,n)=>h(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:t,defaultValue:n,...o})=>r.jsx("div",{css:ti,style:{width:"100%"},children:r.jsx(e.Accordion.Root,{css:{},defaultValue:n,multiple:!0,...o,children:t})}),exports.LayerItem=di,exports.LayerParameters=({label:t,children:o,openedByDefault:i})=>r.jsx("div",{children:r.jsx(e.Accordion.Root,{defaultValue:i?[t]:[],multiple:!0,children:r.jsxs(e.Accordion.Item,{css:ui,value:t,children:[r.jsxs(e.Accordion.ItemTrigger,{css:pi,children:[r.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:r.jsx("p",{css:hi,children:t})}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(L,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),r.jsx(e.Accordion.ItemContent,{css:fi,children:n.Children.map(o,(e=>r.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:t,onDrag:n,onUpClick:o,onDownClick:i,onRemoveClick:a,children:s,onInfoClick:l,onOpacityChanged:c,labels:d})=>{const u=w("LegendItem",d);return r.jsxs("div",{css:xi,children:[r.jsxs("div",{css:gi,children:[r.jsx(ce,{icon:r.jsx(_,{}),"aria-label":u.dragAndDropLabel,"aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[r.jsx(ce,{icon:r.jsx(L,{rotate:"180"}),"aria-label":u.upLabel,onClick:o}),r.jsx(ce,{icon:r.jsx(L,{}),"aria-label":u.downLabel,onClick:i})]})]}),r.jsxs("div",{style:{width:"100%"},children:[r.jsxs("div",{css:vi,children:[r.jsxs("div",{children:[r.jsx("h3",{css:bi,children:e}),r.jsx("p",{css:mi,children:t})]}),r.jsx(C,{label:u.removeLabel,size:"small",variant:"secondary",rightIcon:r.jsx(T,{}),onClick:a})]}),s,r.jsxs("div",{css:yi,children:[r.jsx(C,{label:u.aboutDataLabel,size:"small",variant:"secondary",leftIcon:r.jsx(E,{}),onClick:l}),r.jsx($i,{defaultValue:80,onOpacityChanged:c})]})]})]})},exports.List=Ji,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:n,onExpandClick:r,onShareClick:o,onPrintClick:i,onSettingsClick:a,onQuestionClick:s,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u,labels:p})=>{const h=w("MapControlsToolbar",p),f=[{icon:t.jsx(z,{}),label:h.zoomInLabel,ariaLabel:h.zoomInAriaLabel,onClick:e},{icon:t.jsx(B,{}),label:h.zoomOutLabel,ariaLabel:h.zoomOutAriaLabel,onClick:n,gap:!0},{icon:t.jsx(H,{}),label:h.expandLabel,ariaLabel:h.expandAriaLabel,onClick:r,gap:!0},{icon:t.jsx(F,{}),label:h.shareLabel,ariaLabel:h.shareAriaLabel,onClick:o,gap:!0},{icon:t.jsx(q,{}),label:h.printLabel,ariaLabel:h.printAriaLabel,onClick:i,gap:!0},{icon:t.jsx(Z,{}),label:h.settingsLabel,ariaLabel:h.settingsAriaLabel,onClick:a,gap:!0},{icon:t.jsx(W,{}),label:h.helpLabel,ariaLabel:h.helpAriaLabel,onClick:s}];return t.jsx(ve,{items:f,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u||h.toolbarAriaLabel})},exports.MapMarker=Nn,exports.MapMarkers=Vn,exports.MapPopUp=({open:e,onOpenChange:t,anchorRef:o,header:i,content:a,footer:s,placement:c="bottom",offset:d=30,closeOnEscape:u=!0,closeOnOutsideClick:p=!1,labels:h})=>{const f=w("MapPopUp",h),x=n.useRef(null),{refs:g,floatingStyles:v,context:b,middlewareData:m,placement:y}=Wo({open:e,onOpenChange:t,placement:c,whileElementsMounted:fo,middleware:[So(d),(C={fallbackAxisSideDirection:"start"},{...vo(C),options:[C,j]}),Eo({padding:8}),Lo({element:x})]});var C,j;n.useEffect((()=>{o?.current&&g.setReference(o.current)}),[o,g]);const k=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:p="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:x}=t,g=Bo(),v=Wr("function"==typeof c?c:()=>!1),b="function"==typeof c?v:c,m=l.useRef(!1),{escapeKey:y,outsidePress:w}=qo(f),{escapeKey:C,outsidePress:j}=qo(x),k=l.useRef(!1),$=Wr((e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=g?Fr(g.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=Wr((e=>{var t;const n=()=>{var t;$(e),null==(t=zr(e))||t.removeEventListener("keydown",n)};null==(t=zr(e))||t.addEventListener("keydown",n)})),E=Wr((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const a=m.current;if(m.current=!1,"click"===d&&a)return;if(n)return;if("function"==typeof b&&!b(e))return;const s=zr(e),l="[data-floating-ui-inert]",c=Hr(o.floating).querySelectorAll(l);let u=Zn(s)?s:null;for(;u&&!ar(u);){const e=cr(u);if(ar(e)||!Zn(e))break;u=e}if(c.length&&Zn(s)&&!s.matches("html,body")&&!Vr(s,o.floating)&&Array.from(c).every((e=>!Vr(u,e))))return;if(Wn(s)&&T){const t=ar(s),n=sr(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),a=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,l=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),u=a&&e.offsetY>s.clientHeight;if(d||u)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=g&&Fr(g.nodesRef.current,p).some((t=>{var n;return Br(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Br(e,o.floating)||Br(e,o.domReference)||h)return;const f=g?Fr(g.nodesRef.current,p):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),L=Wr((e=>{var t;const n=()=>{var t;E(e),null==(t=zr(e))||t.removeEventListener(d,n)};null==(t=zr(e))||t.addEventListener(d,n)}));l.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),k.current=!0}function c(){e=window.setTimeout((()=>{k.current=!1}),or()?5:0)}const u=Hr(o.floating);s&&(u.addEventListener("keydown",C?S:$,C),u.addEventListener("compositionstart",l),u.addEventListener("compositionend",c)),b&&u.addEventListener(d,j?L:E,j);let p=[];return h&&(Zn(o.domReference)&&(p=ur(o.domReference)),Zn(o.floating)&&(p=p.concat(ur(o.floating))),!Zn(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(ur(o.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(u.removeEventListener("keydown",C?S:$,C),u.removeEventListener("compositionstart",l),u.removeEventListener("compositionend",c)),b&&u.removeEventListener(d,j?L:E,j),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,b,d,n,r,h,a,y,w,$,C,S,E,j,L]),l.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,d]);const R=l.useMemo((()=>({onKeyDown:$,...u&&{[Ho[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,u,p]),T=l.useMemo((()=>({onKeyDown:$,onMouseDown(){m.current=!0},onMouseUp(){m.current=!0},[Fo[d]]:()=>{i.current.insideReactTree=!0}})),[$,d,i]);return l.useMemo((()=>a?{reference:R,floating:T}:{}),[a,R,T])}(b,{escapeKey:u,outsidePress:p}),$=Xo(b,{role:"dialog"}),{getFloatingProps:S}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=l.useCallback((t=>Go(t,e,"reference")),t),i=l.useCallback((t=>Go(t,e,"floating")),n),a=l.useCallback((t=>Go(t,e,"item")),r);return l.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([k,$]),{x:E,y:L}=m.arrow??{x:null,y:null},R={top:"bottom",right:"left",bottom:"top",left:"right"}[y.split("-")[0]];if(!e)return null;let T=d-1,O=4;return"left"!==R&&"right"!==R||(T=4,O=d-1),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:g.setFloating,style:v,"aria-modal":!0,...S(),css:Yo,children:[r.jsxs("div",{css:Ko,children:[i,r.jsx(de,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":f.closeLabel})]}),r.jsx("div",{css:Jo,children:a}),s?r.jsx("div",{css:Qo,children:s}):null,r.jsx("div",{ref:x,css:ei(T,O,E,L,R,d)})]}),r.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>p&&t(!1)})]})},exports.Menu=$e,exports.MobileTabBar=({defaultValue:t,tabs:o,onTabClick:i,hideLabels:a,activationMode:s="manual"})=>{const l=o.length,[c,d]=n.useState((()=>Kh(o,t)));return r.jsx("div",{css:Gh,children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:t||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=Kh(o,e);d(t),i&&i(e)})(e),activationMode:s,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((t,n)=>{const{label:o,icon:i,bagdeCount:s,"aria-label":d,"aria-describedby":u,disabled:p,...h}=t,f=`${t.value}-str-status`,x=[`tab ${n+1} of ${l}`,c===n?"selected":"not selected"];p&&x.push("disabled");const g=[u,f].filter(Boolean).join(" ")||void 0;return r.jsxs(e.Tabs.Trigger,{css:Uh,"aria-label":d||o,"aria-disabled":!!p||void 0,"aria-describedby":g,disabled:p,...h,children:[r.jsxs("div",{css:Xh,children:[i,s?r.jsx("div",{css:Yh,className:"ds-badge-count",children:s}):null]}),a?null:r.jsx("p",{children:o}),r.jsx(e.VisuallyHidden,{id:f,children:x.join(", ")})]},t.value)}))})})})},exports.Modal=({header:t,content:o,footer:i,size:a="medium",width:s,height:l,maxHeight:c,draggable:d,blocking:u,open:p,onClose:h})=>{const f=n.useRef(null);return p?r.jsx(e.Dialog.Root,{open:p,onOpenChange:h,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!d&&!u,preventScroll:!d&&!u,closeOnEscape:!u,defaultOpen:!0,children:r.jsxs(e.Portal,{children:[d?null:r.jsx(e.Dialog.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),r.jsx(gs,{disabled:!d,nodeRef:f,children:r.jsx(e.Dialog.Positioner,{ref:f,children:r.jsxs(e.Dialog.Content,{css:vs(a,s,l,c),children:[r.jsxs(e.Dialog.Header,{css:bs,children:[t,u?null:r.jsx(e.Dialog.CloseTrigger,{css:ms,asChild:!0,children:r.jsx(de,{})})]}),r.jsx(e.Dialog.Body,{css:ys,children:o}),i?r.jsx(e.Dialog.Footer,{padding:"12px",children:i}):null]})})})]})}):null},exports.MultiActionButton=({variant:t="primary",size:o="default",mainActionLabel:i,mainActionOnClick:a=()=>{},otherActions:s=[],disabled:l,...c})=>{const[d,u]=n.useState(!1),p=l?`${i} action button with menu, disabled`:void 0;return r.jsxs(e.Group,{css:Re,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":p,role:"group",children:[r.jsx(C,{css:{},label:i,variant:t,size:o,onClick:a,disabled:l,...c}),r.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>u(e),positioning:{placement:"bottom-end"},children:[r.jsx(e.Menu.Trigger,{css:Ee(t),"data-group-item":!0,"data-last":!0,asChild:!0,children:r.jsx(C,{variant:t,size:o,leftIcon:r.jsx(L,{rotate:d?"180":"0",color:h("accessible","text-on-primary-mids")||h("primary",900)}),disabled:l})}),r.jsx(Te,{children:s.map((({label:t,value:n,onClick:i})=>r.jsx(e.Menu.Item,{css:Le(o),onClick:i,value:n,children:t},n)))})]})]})},exports.Navbar=({variant:e="default",theme:t="light",logo:o,linkRouter:i,pathname:a,navigationSection:s,utilitySection:l,actionsSection:c,maxWidth:d,fixed:u,onNavbarHeightChange:p,backgroundColor:h,labels:f})=>{const x=w("Navbar",f),g=n.useRef(null),v=n.useRef(null),b=n.useRef(null),[m,y]=n.useState(!1),[j,k]=n.useState(-1),[$,S]=n.useState("undefined"!=typeof window&&window?.innerWidth<=wf),[E,L]=n.useState(!1),R=i,O=n.useCallback((()=>{if(v.current&&g.current&&b.current){const e=g.current.getBoundingClientRect(),t=v.current.getBoundingClientRect(),n=b.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=wf||window.innerWidth<=j?(p?.(96),y(!0)):window.innerWidth>wf&&window.innerWidth<=1440?e.right>=t.left?(p?.(96),y(!0),k(window.innerWidth)):window.innerWidth>j&&(p?.(48),y(!1),k(-1)):(p?.(48),y(!1),k(-1)),m&&(window.innerWidth<=wf||n.right>=t.left?(S(!0),p?.(48)):(S(!1),p?.(96)))}}),[j,m]);n.useEffect((()=>(O(),window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)})),[O]);const P="condensed"===e;return r.jsxs("nav",{css:Jh(m&&!$,u,h,t,P),children:[r.jsxs("div",{css:ef(m&&!$,d,P),children:[r.jsxs("div",{css:tf(m&&!$||"dark"===t,P),ref:g,children:[o?r.jsx("div",{ref:b,css:nf,children:o}):null,r.jsx("div",{css:rf(m),children:s?.map((e=>e.link?r.jsx(R,{to:e.link,href:e.link,css:of(a===e.link,t,P),children:e.label},e.label):r.jsx($e,{theme:t,label:e.label,fontSize:P?"14px":"16px",items:e.items||[]},e.label)))})]}),r.jsx("div",{css:af(P),ref:v,children:$?r.jsxs("button",{type:"button",onClick:()=>L(!E),"aria-label":x.openMenuLabel,css:cf(t),children:[E?x.closeLabel:x.menuLabel,E?r.jsx(T,{height:P?"12px":"16px",width:P?"12px":"16px"}):r.jsx(te,{height:P?"12px":"16px",width:P?"12px":"16px"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{css:af(P),children:l?.map(((e,t)=>r.jsx("div",{css:sf(m),children:e},t)))}),c?.length?r.jsx("div",{css:lf(m),children:c.map((e=>r.jsx(C,{...e},e.ariaLabel)))}):null]})})]}),m&&!$?r.jsx("div",{css:Qh(t,P),children:s?.map((e=>e.link?r.jsx(R,{to:e.link,href:e.link,css:of(a===e.link,t,P),children:e.label},e.label):r.jsx($e,{theme:t,label:e.label,fontSize:P?"14px":"16px",items:e.items||[]},e.label)))}):null,$?r.jsx(yf,{theme:t,variant:e,navigationSection:s,utilitySection:l,actionsSection:c,linkRouter:i,isOpen:E,setIsOpen:L,pathname:a,resolvedLabels:x}):null]})},exports.NavigationRail=({tabs:t=[],defaultValue:o,onTabClick:i,children:a,onOpenChange:s,labels:l})=>{const c=w("NavigationRail",l),[d,u]=n.useState(!1),[p,f]=n.useState(o||t?.[0]?.value),x=e=>{f(e),i&&i(e)},[g]=e.useMediaQuery(["(max-width: 768px)"]);return g?r.jsxs(e.Tabs.Root,{defaultValue:p,onValueChange:({value:e})=>x(e),children:[r.jsx(e.Tabs.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"8px",gap:"8px"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{value:t.value,css:{"--indicator-color":h("primary",500),flexShrink:0,padding:"10px 16px",color:h("neutral",600),"&[data-selected]":{color:h("neutral",800),fontWeight:600}},children:t.label},t.value)))}),t.map((t=>r.jsx(e.Tabs.Content,{value:t.value,children:a},t.value)))]}):r.jsxs("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[r.jsxs("div",{css:Cf,children:[r.jsx(e.Tabs.Root,{defaultValue:o||t?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{x(e)},role:"tablist",children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{css:jf,"aria-label":t["aria-label"]||t.label,...t,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[t.icon?r.jsx("div",{css:kf,children:t.icon}):null,r.jsx("p",{children:t.label})]})},t.label)))})}),a?r.jsx(e.Collapsible.Root,{onOpenChange:({open:e})=>{u(e),s&&s(!e)},children:r.jsxs(e.Collapsible.Trigger,{css:$f,children:[r.jsx("div",{css:kf,children:d?r.jsx(k,{}):r.jsx(j,{})}),r.jsxs("div",{className:"ds-tab-label",children:[r.jsx("p",{children:d?c.showLabel:c.hideLabel}),r.jsx("p",{children:c.sidebarLabel})]})]})}):null]}),a?r.jsx(e.Collapsible.Root,{defaultOpen:!0,open:!d,children:r.jsx(e.Collapsible.Content,{height:"100%",children:r.jsx("div",{css:Sf,role:"tabpanel","aria-labelledby":p,children:a})})}):null]})},exports.OptionCard=({defaultValue:t,items:n,onValueChange:i})=>r.jsx(e.RadioCard.Root,{defaultValue:t,onValueChange:i,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:n.map((t=>{return r.jsxs(e.RadioCard.Item,{css:Fe,value:t.value,disabled:t.disabled,children:[r.jsx(e.RadioCard.ItemHiddenInput,{}),r.jsxs(e.RadioCard.ItemControl,{css:qe,children:[r.jsxs("div",{css:(i=t.variant,o.css`
|
|
3711
3735
|
width: 100%;
|
|
3712
3736
|
display: flex;
|
|
3713
3737
|
flex-direction: ${"centered"===i?"column":"row"};
|
|
3714
3738
|
align-items: center;
|
|
3715
3739
|
gap: 12px;
|
|
3716
|
-
`),children:[r.jsx("div",{css:
|
|
3740
|
+
`),children:[r.jsx("div",{css:Ze,children:t.icon}),r.jsxs("div",{style:{width:"100%"},children:[r.jsx("p",{css:We(t.variant,t.disabled),"aria-label":t.label,"aria-disabled":t.disabled,children:t.label}),r.jsx("p",{css:Ge(t.variant,t.disabled),"aria-label":t.caption,"aria-disabled":t.disabled,children:t.caption})]})]}),r.jsx(e.RadioCard.ItemIndicator,{css:Ue(t.variant)})]}),t.children&&"expanded"===t.variant?r.jsx(e.RadioCard.ItemAddon,{css:(n=t.disabled,o.css`
|
|
3717
3741
|
width: 100%;
|
|
3718
3742
|
border-top: 1px solid ${h("neutral",300)};
|
|
3719
3743
|
margin-top: 12px;
|
|
3720
3744
|
padding: 0px;
|
|
3721
3745
|
padding-top: 8px;
|
|
3722
3746
|
color: ${n?h("neutral",500):"inherit"};
|
|
3723
|
-
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,i}))})}),exports.Pagination=
|
|
3747
|
+
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,i}))})}),exports.Pagination=ra,exports.Panel=({header:e,content:t,footer:o,variant:i="fixed",width:a})=>{const[s,l]=n.useState(void 0),[c,d]=n.useState(void 0),u=n.useRef(null),p=n.useRef(null);n.useEffect((()=>{l(u?.current?.getBoundingClientRect()?.height),d(p?.current?.getBoundingClientRect()?.height)}),[e,o]);return r.jsxs("div",{css:[ws(a),"fixed"===i?Cs:js],children:[e?r.jsx("div",{css:ks,ref:u,children:e}):null,r.jsx("div",{css:$s(s,c),children:t}),o?r.jsx("div",{css:Ss,ref:p,children:o}):null]})},exports.Password=({label:e,caption:t,required:i,disabledRules:a,onChange:s,minLength:l=8,hideValidations:c,labels:d})=>{const u=w("Password",d),[p,f]=n.useState(!1),[x,g]=n.useState(""),[v,b]=n.useState({strength:"very-weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1}),m={"very-weak":u.strengthVeryWeak,weak:u.strengthWeak,medium:u.strengthMedium,strong:u.strengthStrong,"very-strong":u.strengthVeryStrong};return r.jsxs("div",{css:on,children:[r.jsxs("p",{css:an,"aria-label":e,children:[i?r.jsx("span",{children:"*"}):null,e]}),r.jsx("p",{css:sn,"aria-label":t,children:t}),r.jsxs("div",{css:ln,children:[r.jsx(Ot,{type:p?"text":"password",value:x,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...v};let n=0,r=!1;t.length=e.length>=l,n+=e.length>=l?1:0,r=/[A-Z]/.test(e),n+=r?1:0,t.uppercase=r,r=/[a-z]/.test(e),n+=r?1:0,t.lowercase=r,r=/[0-9]/.test(e),n+=r?1:0,t.numbers=r,r=/[-'/`~!¡#*$@_%+=.,^&(){}[\]|;:“‘"<>?\\]/.test(e),n+=r?1:0,t.specialCharacters=r,t.strength="very-weak",e.length>=4&&n>=2&&(t.strength="weak"),e.length>=6&&n>=3&&(t.strength="medium"),e.length>=l&&n>=4&&(t.strength="strong"),e.length>=l+2&&n>=5&&(t.strength="very-strong"),g(e),b(t),s&&s({...t,password:e})})(e.target.value)}),r.jsx(C,{label:p?u.hideLabel:u.showLabel,variant:"secondary",leftIcon:p?r.jsx(M,{}):r.jsx(P,{}),"aria-label":p?u.hidePasswordLabel:u.showPasswordLabel,onClick:()=>f(!p),type:"button"})]}),x&&!c?r.jsxs("div",{id:"password-guidelines",css:cn,"aria-live":"polite",children:[r.jsxs("p",{css:(y=v.strength,o.css`
|
|
3724
3748
|
font-size: 16px;
|
|
3725
3749
|
line-height: 24px;
|
|
3726
3750
|
font-weight: 400;
|
|
@@ -3731,13 +3755,13 @@ function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3731
3755
|
font-weight: 700;
|
|
3732
3756
|
color: ${h("medium"===y?"warning":"strong"===y||"very-strong"===y?"success":"error",900)};
|
|
3733
3757
|
}
|
|
3734
|
-
`),"aria-live":"polite",role:"status",children:[
|
|
3735
|
-
margin-left: ${
|
|
3736
|
-
`),children:[r.jsxs("p",{css:
|
|
3758
|
+
`),"aria-live":"polite",role:"status",children:[u.strengthPrefix," ",r.jsx("span",{children:m[v.strength]})]}),r.jsx("div",{css:dn(v.strength),children:r.jsx("div",{})}),r.jsxs("div",{css:un(v.length),"aria-label":`${u.minLengthRule(l)}. ${v.length?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:v.length?r.jsx($,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):r.jsx(T,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),r.jsx("p",{children:u.minLengthRule(l)})]}),a?.uppercase?null:r.jsxs("div",{css:un(v.uppercase),"aria-label":`${u.uppercaseRule}. ${v.uppercase?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:v.uppercase?r.jsx($,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):r.jsx(T,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),r.jsx("p",{children:u.uppercaseRule})]}),a?.lowercase?null:r.jsxs("div",{css:un(v.lowercase),"aria-label":`${u.lowercaseRule}. ${v.lowercase?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:v.lowercase?r.jsx($,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):r.jsx(T,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),r.jsx("p",{children:u.lowercaseRule})]}),a?.numbers?null:r.jsxs("div",{css:un(v.numbers),"aria-label":`${u.numberRule}. ${v.numbers?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:v.numbers?r.jsx($,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):r.jsx(T,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),r.jsx("p",{children:u.numberRule})]}),a?.specialCharacters?null:r.jsxs("div",{css:un(v.specialCharacters),"aria-label":`${u.specialCharRule}. ${v.specialCharacters?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:v.specialCharacters?r.jsx($,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):r.jsx(T,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),r.jsx("p",{children:u.specialCharRule})]})]}):null]});var y},exports.ProgressBar=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),r.jsx("div",{css:sx,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:r.jsx("div",{css:lx(t)})})},exports.QualitativeAttribute=({type:e,label:t,caption:o,color:i,onActionClick:a,showActionButton:s,pointIcon:l=r.jsx(G,{color:"#006D2C"}),ariaLabelType:c="",labels:d})=>{const u=w("QualitativeAttribute",d),[p,h]=n.useState(!0),f=n.useId(),x=n.useId(),g="raster"===e,v="line"===e,b="point"===e,m=n.useId(),y=n.useMemo((()=>{const e=p?u.visibleText:u.hiddenText;let n=c??`${c},`;return v&&(n=u.linePrefix),u.currentlyTemplate(String(t),o,n,e)}),[p,e,t,o,c,u]),j=p?u.hideLabel:u.showLabel;return r.jsxs("div",{css:Ri,children:[r.jsx("p",{id:m,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:y}),r.jsxs("div",{css:Ti,children:[r.jsxs("div",{children:[g&&r.jsx("div",{css:Si(i)}),v&&r.jsx("div",{css:Ei(i)}),b&&r.jsx("div",{css:Li(i),children:l})]}),r.jsxs("div",{children:[r.jsx("p",{id:f,css:Oi,children:t}),o?r.jsx("p",{id:x,css:Pi,children:o}):null]})]}),a&&s?r.jsx("div",{css:Mi,children:r.jsx(C,{type:"button",variant:"borderless",label:String(j),rightIcon:p?r.jsx(M,{}):r.jsx(P,{}),"aria-pressed":p,"aria-labelledby":`${m} ${f}`,onClick:()=>{h((e=>!e)),a?.()}})}):null]})},exports.Radio=Je,exports.RadioGroup=Qe,exports.RadioList=({label:t,caption:n,name:i,radios:a,defaultValue:s,onCheckedChange:l,errorMessage:c,horizontal:d,variant:u="default",required:p,labels:h})=>{const f=w("RadioList",h),x=`${t}. ${n?`${n}.`:""} ${p?f.requiredLabel:f.optionalLabel} ${c?`${f.errorPrefix} ${c}.`:""} `;return r.jsxs(e.Group,{css:pn,"aria-roledescription":"group","aria-label":x,children:[c?r.jsx("div",{css:gn}):null,r.jsxs("div",{css:(g=!!c,o.css`
|
|
3759
|
+
margin-left: ${g?"19px":"0px"};
|
|
3760
|
+
`),children:[r.jsxs("p",{css:hn,"aria-label":t,children:[p&&r.jsx("span",{"aria-label":f.requiredSymbolLabel,children:"*"}),t]}),r.jsx("p",{css:fn,"aria-label":n,children:n}),c?r.jsx("p",{css:vn,"aria-label":c,children:c}):null,r.jsx("div",{css:xn,children:r.jsx(Qe,{name:i,value:s,onChange:l,horizontal:d&&"card"!==u,children:a.map((e=>r.jsx(Je,{css:"card"===u?bn:{},...e},e.value)))})})]})]});var g},exports.SSOButtons=ae,exports.ScaleBar=({colors:e,values:t,subLabels:n,isGradient:i})=>{return r.jsxs("div",{css:_i,children:[i?r.jsx("div",{css:(a=Vi(e),o.css`
|
|
3737
3761
|
height: 20px;
|
|
3738
3762
|
width: 100%;
|
|
3739
3763
|
margin-bottom: 8px;
|
|
3740
3764
|
border: 1px solid ${h("neutral",300)};
|
|
3741
3765
|
border-radius: 4px;
|
|
3742
3766
|
${a?`background: ${a};`:""}
|
|
3743
|
-
`)}):r.jsx("div",{css:Ti,children:e?.map(((e,n)=>r.jsx("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),r.jsx("div",{css:Mi,children:t?.map((e=>r.jsx("div",{style:{width:i?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:Pi,children:e})},e)))}),n&&n.length?r.jsx("div",{css:Mi,children:n.map((e=>r.jsx("div",{style:{width:i?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:_i,style:{width:"100%"},children:e})},e)))}):null]});var a},exports.Search=({placeholder:t,disabled:o,size:i="default",options:a=[],resultsMaxHeight:s="200px",isLoading:l=!1,displayResults:c="text",onSelect:u,onQueryChange:d,onClear:p,renderResults:f})=>{const[x,g]=n.useState(""),{open:v,onOpen:m,onClose:b}=e.useDisclosure(),[y,w]=n.useState(a),[C,j]=n.useState(-1),[k,$]=n.useState(!1),S=n.useRef(null),E=`search-results-${n.useId()}`,R=e=>{const t=a.find((t=>t.id===e||t.label===e));t&&(u?.(t),g(""),b())};n.useEffect((()=>{if(d?.(x),!x)return void w(a);const e=a.filter((e=>e.id?.toLowerCase().includes(x.toLowerCase())||e.label.toLowerCase().includes(x.toLowerCase())||e.caption?.toLowerCase().includes(x.toLowerCase()))).map((e=>({id:e.id,label:e.label,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>R(e.id||e.label)})));w(e),m()}),[x]),n.useEffect((()=>{function e(e){v&&S.current&&!S.current.contains(e.target)&&b()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[v]);const L=x.length?r.jsx(ce,{style:{marginTop:"8px"},onClick:()=>{g(""),p?.()}}):null,O="none"!==c&&!!x.length&&y.length>0&&v;let T=h("neutral",500);o?T=h("neutral",500):k&&(T=h("primary",700));const M="small"===i?"16px":"20px";return r.jsxs("div",{ref:S,style:{position:"relative",width:"100%"},children:[r.jsx(e.InputGroup,{startElement:r.jsx(oe,{width:M,height:M,fill:T,style:{marginTop:"8px"}}),endElement:L,children:r.jsx(Et,{autoComplete:"off",placeholder:t||"Filter",onChange:e=>{const{value:t}=e.target;g(t)},onFocus:()=>$(!0),onBlur:()=>$(!1),value:x,label:"",style:{paddingLeft:"40px",borderColor:h("neutral",500)},type:"search","aria-label":t||"Search filter","aria-expanded":O,"aria-controls":E,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,noMarginBottom:!0,onKeyDown:e=>{if(O){if("ArrowDown"===e.key&&(e.preventDefault(),j((e=>Math.min(e+1,y.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),j((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),C>=0)){const e=y[C];R(e.id||e.label)}"Escape"===e.key&&b()}}})}),(O||l&&!!x.length)&&"custom"===c&&f&&!l&&f({items:y,highlightedIndex:C,query:x,onSelect:R}),(O||l&&!!x.length)&&r.jsx(e.Portal,{container:S,children:r.jsxs(e.Box,{position:"absolute",width:"100%",backgroundColor:"white",border:"custom"===c?"none":"1px solid",borderColor:"gray.200",borderRadius:"md",zIndex:1e3,overflowY:"auto",maxHeight:s,children:[l&&r.jsx(e.Box,{padding:"1rem",children:r.jsx(e.Spinner,{})}),"text"===c&&!l&&r.jsx(Mf,{highlightedIndex:C,items:y,query:x,onSelect:R}),"list"===c&&!l&&r.jsx(Ui,{items:y,highlightedIndex:C})]})})]})},exports.Select=Qt,exports.Sheet=({header:e,content:t,footer:o,open:i=!1,onClose:a,minimizedHeight:s,midHeight:l=200,maxFullHeight:c,defaultSnap:u="minimized",className:d,blocking:p,zIndex:h=1e3})=>{const f=n.useRef(null),x=n.useRef([]),[g,v]=n.useState(null),m=window.innerWidth>768,b=x.current;let y="Expand sheet";if(null!=g){const e=_h(g,b);e>0&&e<b.length-1?y="Make full screen":e===b.length-1&&(y="Expanded sheet")}const w=!(null==g||!b.length||_h(g,b)!==b.length-1);return r.jsx(Th,{ref:f,css:Ph(!!e,h),className:d,open:i,onDismiss:a,header:r.jsxs("div",{children:[r.jsx("button",{type:"button",disabled:w,"aria-label":y,css:Mh,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=b[b.length-1];if(m)return void f.current?.snapTo?.((()=>t));const n=g??b[0];let r=b.findIndex((e=>e>n));-1===r&&(r=b.length-1);const o=b[r];f.current?.snapTo?.((()=>o))},children:r.jsx("div",{})}),r.jsx("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:y}),e]}),footer:o,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:n})=>{const r=[20,s||e,l+(o?n:0),c||t-t/6];return x.current=r,r},onSpringEnd:()=>{const e=f.current?.height;e&&v(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:n})=>{let r=20;return"minimized"===u?r=s||e:"mid"===u?r=l+(o?n:0):"full"===u&&(r=c||t-t/6),r},blocking:p,children:i?t:null})},exports.SimpleMapPin=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:a="simple-pin"})=>t.jsx(_n,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:a}),exports.Slider=rt,exports.SliderInput=({label:e,caption:t,size:o="default",sliderItem:i,required:a,onChange:s})=>{const[l,c]=n.useState(i.value||[]),u=(e,t)=>{const n=e.target.value,r=[...l];let o=n?parseInt(n,10):n;const a=i.min||0,s=i.max||100;o=Number.isNaN(o)?a:o,o=o<a?a:o,o=o>s?s:o,r[t]=o,c(r)},d=(e,t)=>{const n=e.target.value||"0",r=[...l];let o=parseInt(n,10);const a=i.min||0,u=i.max||100;if(o=Number.isNaN(o)?a:o,o=o<a?a:o,o=o>u?u:o,2===l?.length){o=Number.isNaN(o)?a:o;const e=l[0],n=l[1];0===t?(o=o<a?a:o,o=o>n?n:o):1===t&&(o=o<e?e:o,o=o>u?u:o)}r[t]=o,c(r),s&&s(r)};return r.jsxs("div",{children:[r.jsxs("p",{css:xn(o),"aria-label":e,children:[a?r.jsx("span",{children:"*"}):null,e]}),t?r.jsx("p",{css:gn(o),"aria-label":t,children:t}):null,r.jsxs("div",{css:vn,children:[i.step&&i.marks?r.jsx(Qt,{items:i.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"90px"},value:[`${l?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));c(t),s&&s(t)}}):r.jsx(Et,{"aria-label":e,min:i.min,max:i.max,value:l?.[0],type:"number",onChange:e=>u(e,0),onBlur:e=>d(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx(rt,{css:{},...i,value:l,onValueChangeEnd:e=>{c(e.value),s&&s(e.value)}}),2===l?.length?r.jsx(Et,{"aria-label":e,min:i.min,max:i.max,value:l?.[1],type:"number",onChange:e=>u(e,1),onBlur:e=>d(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},exports.StepProgressIndicator=({steps:e,currentStep:t})=>r.jsxs("div",{css:ix,children:[e.map(((e,n)=>r.jsxs("div",{css:ax,children:[r.jsx("button",{css:sx(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?r.jsx(k,{height:"16px",width:"16px"}):n+1}),e.label?r.jsx("p",{css:lx(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),r.jsx("div",{css:cx,children:r.jsx("div",{css:ux})})]}),exports.Switch=it,exports.TabBar=({variant:t="panel",defaultValue:o,tabs:i,onTabClick:a,activationMode:s="manual"})=>{const[l,c]=n.useState(Lf(i,o)||0);return r.jsx("div",{css:jf(t),children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c(Lf(i,t=e)),void(a&&a(t));var t},activationMode:s,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((o,i)=>r.jsxs(n.Fragment,{children:["view"===t&&1===i&&"left"===Of(l)?r.jsx("div",{css:Sf}):null,r.jsx(e.Tabs.Trigger,{css:[kf,"view"===t&&Ef,"panel"===t&&$f,"transparent"===t&&Rf],"aria-label":o["aria-label"]||o.label,...o,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"5px",children:[o.icon,o.label]})},o.label),"view"===t&&1===i&&"right"===Of(l)?r.jsx("div",{css:Sf}):null]},o.label)))})})})},exports.Table=({columns:t,data:o=[],renderRow:i,striped:a,stickyHeader:s,pagination:l,selectable:c,selectedRows:u,variant:d="default",onSortColumn:p,onPageSizeChange:f,onPageChange:x,onAllItemsSelected:g,loading:v})=>{const[m,b]=n.useState({key:"",order:""}),{totalItems:y=o.length,currentPage:w=1,pageSize:C=10,showItemCount:j,showItemCountText:k}=l||{},$=(e,t)=>{b({key:e,order:t}),p&&p({key:e,order:t})},S=u?.length===o?.length,R=u&&u.length>0&&!S;return r.jsxs("div",{children:[r.jsxs(e.Table.Root,{css:ea(d),striped:a,stickyHeader:s,interactive:!0,children:[r.jsx(e.Table.Header,{css:ta(d),children:r.jsxs(e.Table.Row,{children:[c?r.jsx(e.Table.ColumnHeader,{children:r.jsx(Te,{name:"header-checkbox",checked:S,indeterminate:R,onCheckedChange:({checked:e})=>{g&&g(e)}})}):null,t.map((t=>r.jsx(e.Table.ColumnHeader,{role:t.sortable?"columnheader":void 0,"aria-sort":t.sortable&&"asc"===m.order?"ascending":t.sortable&&"desc"===m.order?"descending":void 0,children:r.jsxs("div",{css:na,children:[t.label,t.sortable?r.jsxs("div",{css:ra,children:[r.jsx(le,{css:oa(m.key===t.key&&"asc"===m.order),icon:r.jsx(E,{style:{transform:"rotate(180deg)"}}),onClick:()=>$(t.key,"asc"),"aria-label":"Ascending"}),r.jsx(le,{css:oa(m.key===t.key&&"desc"===m.order),icon:r.jsx(E,{}),onClick:()=>$(t.key,"desc"),"aria-label":"Descending"})]}):null]})},t.key)))]})}),r.jsx(e.Table.Body,{css:sa,children:o.map((e=>r.jsx(n.Fragment,{children:i(e)},e.id)))})]}),v?r.jsx("div",{css:la,children:r.jsx(e.Spinner,{size:"lg",color:h("primary",500)})}):null,r.jsxs("div",{css:ia,children:[r.jsx("div",{children:j?r.jsx(Ai,{pageSize:C,currentPage:w,totalItems:y,onPageSizeChange:f,showItemCountText:k}):null}),l?r.jsx("div",{css:aa,children:r.jsx(Qi,{totalItems:y,pageSize:C,currentPage:w,onPageChange:x})}):null]})]})},exports.TableCell=ua,exports.TableRow=ca,exports.Tag=Yt,exports.TextInput=Et,exports.Textarea=({label:t,caption:o,placeholder:i,errorMessage:a,required:s,disabled:l,size:c="default",defaultValue:u="",onChange:d,minLength:p,maxLength:h,...f})=>{const[x,g]=n.useState(u),[v,m]=n.useState(!1),[b,y]=n.useState(!1),[w,C]=n.useState(""),j=n.useId(),k=n.useId(),$=n.useId();n.useEffect((()=>{const{length:e}=u;p&&e<p&&e>0?(m(e<p),y(!1),C(`Enter at least ${p-e} characters`)):p&&0===e&&C(`Min ${p} characters`),h&&e>0?(m(!1),y(e>h),C(`You have ${h-e} characters remaining`)):h&&0===e&&C(`Max ${h} characters`)}),[]);const S=!!a||v||b,E=[o?j:null,S?k:null,w?$:null].filter(Boolean).join(" ")||void 0;return r.jsxs("div",{css:mn(c),children:[S?r.jsx("div",{css:bn}):null,r.jsxs(e.Field.Root,{required:s,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[t?r.jsxs(e.Field.Label,{css:yn(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":"required"}),t,s?"":r.jsx("span",{children:" (Optional)"})]}):null,o?r.jsx(e.Field.HelperText,{id:j,css:wn(c,l),children:o}):null,a?r.jsx(e.Field.ErrorText,{id:k,css:jn,"aria-label":`Error: ${a}`,"aria-live":"polite",children:a}):null,r.jsx(e.Textarea,{placeholder:i,disabled:l,css:kn(c,x,u),onChange:e=>{g(e.target.value);const{length:t}=e.target.value;p&&h?(m(t<p),y(t>h),C(`You have ${h-t} characters remaining`)):p?(m(t<p),y(!1),C(t<p?`Enter at least ${p-t} characters`:"")):h&&(y(t>h),m(!1),C(`You have ${h-t} characters remaining`)),d&&d(e)},value:x,"aria-describedby":E,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...f}),v&&p?r.jsxs(e.Field.ErrorText,{id:k,css:jn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",p-x.length," more characters"]}):null,b&&h?r.jsxs(e.Field.ErrorText,{id:k,css:jn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",x.length-h," characters too many"]}):null,!w||b||v?null:r.jsx(e.Field.HelperText,{id:$,css:Cn,"aria-live":"polite",children:w})]})]})},exports.Toast=()=>Object.keys(vx).map((t=>r.jsx(e.Portal,{children:r.jsx(e.Toaster,{toaster:vx[t],insetInline:{mdDown:"4"},children:n=>r.jsxs(e.Toast.Root,{css:dx,width:{md:"sm"},children:[r.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===n.type?n.meta?.icon?n.meta.icon:r.jsx(S,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===n.type?r.jsx(e.Spinner,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===n.type?n.meta?.icon?n.meta.icon:r.jsx(_,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:r.jsx(D,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:r.jsx(I,{color:"var(--chakra-colors-error-500)"}):null,r.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[r.jsx(e.Toast.Title,{css:px,"aria-label":`${n.title}`,children:n.title}),n.description?r.jsx(e.Toast.Title,{css:hx,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?r.jsxs(e.Stack,{flexDirection:"row",children:[n.action?r.jsx(w,{css:fx,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),vx[t].dismiss()}}):null,n.meta?.closable?r.jsx(w,{css:xx,label:n.meta.closableLabel,"aria-label":n.meta?.closableLabel||"Dismiss",leftIcon:r.jsx(L,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>vx[t].dismiss()}):null]}):null]})})},t))),exports.Toolbar=ge,exports.Tooltip=fe,exports.designSystemStyles=p,exports.designSystemStylesForTailwind=d,exports.getThemedColor=h,exports.showToast=e=>{vx[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})};
|
|
3767
|
+
`)}):r.jsx("div",{css:Ii,children:e?.map(((e,n)=>r.jsx("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),r.jsx("div",{css:Di,children:t?.map((e=>r.jsx("div",{style:{width:i?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:Ai,children:e})},e)))}),n&&n.length?r.jsx("div",{css:Di,children:n.map((e=>r.jsx("div",{style:{width:i?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:Ni,style:{width:"100%"},children:e})},e)))}):null]});var a},exports.Search=({placeholder:t,disabled:o,size:i="default",options:a=[],resultsMaxHeight:s="200px",isLoading:l=!1,displayResults:c="text",onSelect:d,onQueryChange:u,onClear:p,renderResults:f,labels:x})=>{const g=w("Search",x),[v,b]=n.useState(""),{open:m,onOpen:y,onClose:C}=e.useDisclosure(),[j,k]=n.useState(a),[$,S]=n.useState(-1),[E,L]=n.useState(!1),R=n.useRef(null),T=`search-results-${n.useId()}`,O=e=>{const t=a.find((t=>t.id===e||t.label===e));t&&(d?.(t),b(""),C())};n.useEffect((()=>{if(u?.(v),!v)return void k(a);const e=a.filter((e=>e.id?.toLowerCase().includes(v.toLowerCase())||e.label.toLowerCase().includes(v.toLowerCase())||e.caption?.toLowerCase().includes(v.toLowerCase()))).map((e=>({id:e.id,label:e.label,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>O(e.id||e.label)})));k(e),y()}),[v]),n.useEffect((()=>{function e(e){m&&R.current&&!R.current.contains(e.target)&&C()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[m]);const P=v.length?r.jsx(de,{style:{marginTop:"8px"},onClick:()=>{b(""),p?.()}}):null,M="none"!==c&&!!v.length&&j.length>0&&m;let _=h("neutral",500);o?_=h("neutral",500):E&&(_=h("primary",700));const I="small"===i?"16px":"20px";return r.jsxs("div",{ref:R,style:{position:"relative",width:"100%"},children:[r.jsx(e.InputGroup,{startElement:r.jsx(ie,{width:I,height:I,fill:_,style:{marginTop:"8px"}}),endElement:P,children:r.jsx(Ot,{autoComplete:"off",placeholder:t||g.filterPlaceholder,onChange:e=>{const{value:t}=e.target;b(t)},onFocus:()=>L(!0),onBlur:()=>L(!1),value:v,label:"",style:{paddingLeft:"40px",borderColor:h("neutral",500)},type:"search","aria-label":t||g.filterAriaLabel,"aria-expanded":M,"aria-controls":T,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,noMarginBottom:!0,onKeyDown:e=>{if(M){if("ArrowDown"===e.key&&(e.preventDefault(),S((e=>Math.min(e+1,j.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),S((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=j[$];O(e.id||e.label)}"Escape"===e.key&&C()}}})}),(M||l&&!!v.length)&&"custom"===c&&f&&!l&&f({items:j,highlightedIndex:$,query:v,onSelect:O}),(M||l&&!!v.length)&&r.jsx(e.Portal,{container:R,children:r.jsxs(e.Box,{position:"absolute",width:"100%",backgroundColor:"white",border:"custom"===c?"none":"1px solid",borderColor:"gray.200",borderRadius:"md",zIndex:1e3,overflowY:"auto",maxHeight:s,children:[l&&r.jsx(e.Box,{padding:"1rem",children:r.jsx(e.Spinner,{})}),"text"===c&&!l&&r.jsx(Df,{highlightedIndex:$,items:j,query:v,onSelect:O}),"list"===c&&!l&&r.jsx(Ji,{items:j,highlightedIndex:$})]})})]})},exports.Select=rn,exports.Sheet=({header:e,content:t,footer:o,open:i=!1,onClose:a,minimizedHeight:s,midHeight:l=200,maxFullHeight:c,defaultSnap:d="minimized",className:u,blocking:p,zIndex:h=1e3})=>{const f=n.useRef(null),x=n.useRef([]),[g,v]=n.useState(null),b=window.innerWidth>768,m=x.current;let y="Expand sheet";if(null!=g){const e=Nh(g,m);e>0&&e<m.length-1?y="Make full screen":e===m.length-1&&(y="Expanded sheet")}const w=!(null==g||!m.length||Nh(g,m)!==m.length-1);return r.jsx(Ih,{ref:f,css:Ah(!!e,h),className:u,open:i,onDismiss:a,header:r.jsxs("div",{children:[r.jsx("button",{type:"button",disabled:w,"aria-label":y,css:Dh,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=m[m.length-1];if(b)return void f.current?.snapTo?.((()=>t));const n=g??m[0];let r=m.findIndex((e=>e>n));-1===r&&(r=m.length-1);const o=m[r];f.current?.snapTo?.((()=>o))},children:r.jsx("div",{})}),r.jsx("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:y}),e]}),footer:o,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:n})=>{const r=[20,s||e,l+(o?n:0),c||t-t/6];return x.current=r,r},onSpringEnd:()=>{const e=f.current?.height;e&&v(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:n})=>{let r=20;return"minimized"===d?r=s||e:"mid"===d?r=l+(o?n:0):"full"===d&&(r=c||t-t/6),r},blocking:p,children:i?t:null})},exports.SimpleMapPin=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:a="simple-pin"})=>t.jsx(Nn,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:a}),exports.Slider=lt,exports.SliderInput=({label:e,caption:t,size:o="default",sliderItem:i,required:a,onChange:s})=>{const[l,c]=n.useState(i.value||[]),d=(e,t)=>{const n=e.target.value,r=[...l];let o=n?parseInt(n,10):n;const a=i.min||0,s=i.max||100;o=Number.isNaN(o)?a:o,o=o<a?a:o,o=o>s?s:o,r[t]=o,c(r)},u=(e,t)=>{const n=e.target.value||"0",r=[...l];let o=parseInt(n,10);const a=i.min||0,d=i.max||100;if(o=Number.isNaN(o)?a:o,o=o<a?a:o,o=o>d?d:o,2===l?.length){o=Number.isNaN(o)?a:o;const e=l[0],n=l[1];0===t?(o=o<a?a:o,o=o>n?n:o):1===t&&(o=o<e?e:o,o=o>d?d:o)}r[t]=o,c(r),s&&s(r)};return r.jsxs("div",{children:[r.jsxs("p",{css:mn(o),"aria-label":e,children:[a?r.jsx("span",{children:"*"}):null,e]}),t?r.jsx("p",{css:yn(o),"aria-label":t,children:t}):null,r.jsxs("div",{css:wn,children:[i.step&&i.marks?r.jsx(rn,{items:i.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"90px"},value:[`${l?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));c(t),s&&s(t)}}):r.jsx(Ot,{"aria-label":e,min:i.min,max:i.max,value:l?.[0],type:"number",onChange:e=>d(e,0),onBlur:e=>u(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx(lt,{css:{},...i,value:l,onValueChangeEnd:e=>{c(e.value),s&&s(e.value)}}),2===l?.length?r.jsx(Ot,{"aria-label":e,min:i.min,max:i.max,value:l?.[1],type:"number",onChange:e=>d(e,1),onBlur:e=>u(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},exports.StepProgressIndicator=({steps:e,currentStep:t,labels:n})=>{const o=w("StepProgressIndicator",n);return r.jsxs("div",{css:cx,children:[e.map(((e,n)=>r.jsxs("div",{css:dx,children:[r.jsx("button",{css:ux(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":o.currentStepLabel(n+1,e.label||"",t>n+1),"data-active":t>=n+1,children:t>n+1?r.jsx($,{height:"16px",width:"16px"}):n+1}),e.label?r.jsx("p",{css:px(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),r.jsx("div",{css:hx,children:r.jsx("div",{css:fx})})]})},exports.Switch=dt,exports.TabBar=({variant:t="panel",defaultValue:o,tabs:i,onTabClick:a,activationMode:s="manual"})=>{const[l,c]=n.useState(Mf(i,o)||0);return r.jsx("div",{css:Ef(t),children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c(Mf(i,t=e)),void(a&&a(t));var t},activationMode:s,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((o,i)=>r.jsxs(n.Fragment,{children:["view"===t&&1===i&&"left"===_f(l)?r.jsx("div",{css:Tf}):null,r.jsx(e.Tabs.Trigger,{css:[Lf,"view"===t&&Of,"panel"===t&&Rf,"transparent"===t&&Pf],"aria-label":o["aria-label"]||o.label,...o,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"5px",children:[o.icon,o.label]})},o.label),"view"===t&&1===i&&"right"===_f(l)?r.jsx("div",{css:Tf}):null]},o.label)))})})})},exports.Table=({columns:t,data:o=[],renderRow:i,striped:a,stickyHeader:s,pagination:l,selectable:c,selectedRows:d,variant:u="default",onSortColumn:p,onPageSizeChange:f,onPageChange:x,onAllItemsSelected:g,loading:v,labels:b})=>{const m=w("Table",b),[y,C]=n.useState({key:"",order:""}),{totalItems:j=o.length,currentPage:k=1,pageSize:$=10,showItemCount:S,showItemCountText:E}=l||{},R=(e,t)=>{C({key:e,order:t}),p&&p({key:e,order:t})},T=d?.length===o?.length,O=d&&d.length>0&&!T;return r.jsxs("div",{children:[r.jsxs(e.Table.Root,{css:oa(u),striped:a,stickyHeader:s,interactive:!0,children:[r.jsx(e.Table.Header,{css:ia(u),children:r.jsxs(e.Table.Row,{children:[c?r.jsx(e.Table.ColumnHeader,{children:r.jsx(De,{name:"header-checkbox",checked:T,indeterminate:O,onCheckedChange:({checked:e})=>{g&&g(e)}})}):null,t.map((t=>r.jsx(e.Table.ColumnHeader,{role:t.sortable?"columnheader":void 0,"aria-sort":t.sortable&&"asc"===y.order?"ascending":t.sortable&&"desc"===y.order?"descending":void 0,children:r.jsxs("div",{css:aa,children:[t.label,t.sortable?r.jsxs("div",{css:sa,children:[r.jsx(ce,{css:la(y.key===t.key&&"asc"===y.order),icon:r.jsx(L,{style:{transform:"rotate(180deg)"}}),onClick:()=>R(t.key,"asc"),"aria-label":m.ascendingLabel}),r.jsx(ce,{css:la(y.key===t.key&&"desc"===y.order),icon:r.jsx(L,{}),onClick:()=>R(t.key,"desc"),"aria-label":m.descendingLabel})]}):null]})},t.key)))]})}),r.jsx(e.Table.Body,{css:ua,children:o.map((e=>r.jsx(n.Fragment,{children:i(e)},e.id)))})]}),v?r.jsx("div",{css:pa,children:r.jsx(e.Spinner,{size:"lg",color:h("primary",500)})}):null,r.jsxs("div",{css:ca,children:[r.jsx("div",{children:S?r.jsx(Fi,{pageSize:$,currentPage:k,totalItems:j,onPageSizeChange:f,showItemCountText:E}):null}),l?r.jsx("div",{css:da,children:r.jsx(ra,{totalItems:j,pageSize:$,currentPage:k,onPageChange:x})}):null]})]})},exports.TableCell=fa,exports.TableRow=ha,exports.Tag=en,exports.TextInput=Ot,exports.Textarea=({label:t,caption:o,placeholder:i,errorMessage:a,required:s,disabled:l,size:c="default",defaultValue:d="",onChange:u,minLength:p,maxLength:h,labels:f,...x})=>{const g=w("Textarea",f),[v,b]=n.useState(d),[m,y]=n.useState(!1),[C,j]=n.useState(!1),[k,$]=n.useState(""),S=n.useId(),E=n.useId(),L=n.useId();n.useEffect((()=>{const{length:e}=d;p&&e<p&&e>0?(y(e<p),j(!1),$(g.enterAtLeastChars(p-e))):p&&0===e&&$(g.minChars(p)),h&&e>0?(y(!1),j(e>h),$(g.charsRemaining(h-e))):h&&0===e&&$(g.maxChars(h))}),[]);const R=!!a||m||C,T=[o?S:null,R?E:null,k?L:null].filter(Boolean).join(" ")||void 0;return r.jsxs("div",{css:Cn(c),children:[R?r.jsx("div",{css:jn}):null,r.jsxs(e.Field.Root,{required:s,invalid:R,gap:"0",style:{marginLeft:R?"19px":"0px"},children:[t?r.jsxs(e.Field.Label,{css:kn(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":g.requiredSymbolLabel}),t,s?"":r.jsx("span",{children:g.optionalSuffix})]}):null,o?r.jsx(e.Field.HelperText,{id:S,css:$n(c,l),children:o}):null,a?r.jsx(e.Field.ErrorText,{id:E,css:En,"aria-label":`${g.errorPrefix} ${a}`,"aria-live":"polite",children:a}):null,r.jsx(e.Textarea,{placeholder:i,disabled:l,css:Ln(c,v,d),onChange:e=>{b(e.target.value);const{length:t}=e.target.value;p&&h?(y(t<p),j(t>h),$(g.charsRemaining(h-t))):p?(y(t<p),j(!1),$(t<p?g.enterAtLeastChars(p-t):"")):h&&(j(t>h),y(!1),$(g.charsRemaining(h-t))),u&&u(e)},value:v,"aria-describedby":T,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...x}),m&&p?r.jsx(e.Field.ErrorText,{id:E,css:En,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:g.needMoreChars(p-v.length)}):null,C&&h?r.jsx(e.Field.ErrorText,{id:E,css:En,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:g.tooManyChars(v.length-h)}):null,!k||C||m?null:r.jsx(e.Field.HelperText,{id:L,css:Sn,"aria-live":"polite",children:k})]})]})},exports.Toast=({labels:t})=>{const n=w("Toast",t);return Object.keys(wx).map((t=>r.jsx(e.Portal,{children:r.jsx(e.Toaster,{toaster:wx[t],insetInline:{mdDown:"4"},children:o=>r.jsxs(e.Toast.Root,{css:xx,width:{md:"sm"},children:[r.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===o.type?o.meta?.icon?o.meta.icon:r.jsx(E,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===o.type?r.jsx(e.Spinner,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===o.type?o.meta?.icon?o.meta.icon:r.jsx(I,{color:"var(--chakra-colors-success-500)"}):null,"warning"===o.type?o.meta?.icon?o.meta.icon:r.jsx(D,{color:"var(--chakra-colors-warning-500)"}):null,"error"===o.type?o.meta?.icon?o.meta.icon:r.jsx(A,{color:"var(--chakra-colors-error-500)"}):null,r.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[r.jsx(e.Toast.Title,{css:gx,"aria-label":`${o.title}`,children:o.title}),o.description?r.jsx(e.Toast.Title,{css:vx,"aria-label":`${o.description}`,children:o.description}):null]})]}),o.action||o.meta?.closable?r.jsxs(e.Stack,{flexDirection:"row",children:[o.action?r.jsx(C,{css:bx,label:o.action.label,size:"small",variant:"info"===o.type?"primary":"secondary",onClick:()=>{o?.action?.onClick&&o.action.onClick(),wx[t].dismiss()}}):null,o.meta?.closable?r.jsx(C,{css:mx,label:o.meta.closableLabel,"aria-label":o.meta?.closableLabel||n.dismissLabel,leftIcon:r.jsx(T,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>wx[t].dismiss()}):null]}):null]})})},t)))},exports.Toolbar=ve,exports.Tooltip=xe,exports.designSystemStyles=p,exports.designSystemStylesForTailwind=u,exports.getThemedColor=h,exports.showToast=e=>{wx[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})};
|