@worldresources/wri-design-systems 2.167.0 → 2.169.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 +257 -234
- package/dist/index.d.ts +9 -2
- package/dist/index.esm.js +254 -231
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
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("secondary",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
|
`,m=e=>r.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
|
-
`,b=n.forwardRef((({label:n,loading:r,variant:o="primary",size:i="default",disabled:a,leftIcon:s,rightIcon:l,children:c,...u},d)=>{let p=x;"secondary"===o?p=g:"borderless"===o?p=v:"outline"===o&&(p=m);const h=n||c;return t.jsxs(e.Button,{"aria-label":(()=>{let e=u["aria-label"]||n;return r&&(e="Loading"),e})(),css:[f(i),p(a)],disabled:a||r,"aria-disabled":a||r,ref:d,...u,children:[s&&!r?t.jsx(e.Box,{marginRight:h?2:0,display:"flex",alignItems:"center",children:s}):null,!l&&r?t.jsx(e.Spinner,{size:"sm",marginRight:h?2:0}):null,c||n,l&&!r?t.jsx(e.Box,{marginLeft:h?2:0,display:"flex",alignItems:"center",children:l}):null,l&&r?t.jsx(e.Spinner,{size:"sm",marginLeft:h?2:0}):null]})})),y=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{viewBox:"0 0 16 17",children:[o.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[o.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"}),o.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"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1216_84",children:o.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),w=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{viewBox:"0 0 16 17",children:[o.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"}),o.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"})]})}),C=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:o.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"})})}),j=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:o.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),k=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),$=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),S=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),E=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),R=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),L=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),O=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_4626_1381",children:o.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),T=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),P=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_4916_54426",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),M=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),_=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),D=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),o.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[o.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"}),o.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"})]}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"})]})}),I=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]})}),V=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),N=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),A=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_8714_101)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_8714_101",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),z=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),B=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),H=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),F=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),Z=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),W=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),q=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),G=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),U=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"}),o.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"}),o.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"})]})}),X=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]})}),Y=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_703_2142)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_703_2142",children:o.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),K=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),o.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),o.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),o.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),J=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),Q=t=>{const{size:n="16px",...r}=t;return o.jsx(e.Icon,{boxSize:n,...r,children:o.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})})},ee=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),te=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),ne=t=>{const{fill:n}=t,r=n||"currentColor";return o.jsx(e.Icon,{...t,fill:r,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})})},re={Google:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Google",leftIcon:o.jsx(U,{}),"aria-label":e||"Google Login",variant:"secondary",size:t,onClick:n}),Facebook:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Facebook",leftIcon:o.jsx(X,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:t,onClick:n}),X:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"X",leftIcon:o.jsx(Y,{}),"aria-label":e||"X Login",variant:"secondary",size:t,onClick:n}),Microsoft:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Microsoft",leftIcon:o.jsx(K,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:t,onClick:n})},oe=r.css`
|
|
35
|
+
`,b=n.forwardRef((({label:n,loading:r,variant:o="primary",size:i="default",disabled:a,leftIcon:s,rightIcon:l,children:c,...u},d)=>{let p=x;"secondary"===o?p=g:"borderless"===o?p=v:"outline"===o&&(p=m);const h=n||c;return t.jsxs(e.Button,{"aria-label":(()=>{let e=u["aria-label"]||n;return r&&(e="Loading"),e})(),css:[f(i),p(a)],disabled:a||r,"aria-disabled":a||r,ref:d,...u,children:[s&&!r?t.jsx(e.Box,{marginRight:h?2:0,display:"flex",alignItems:"center",children:s}):null,!l&&r?t.jsx(e.Spinner,{size:"sm",marginRight:h?2:0}):null,c||n,l&&!r?t.jsx(e.Box,{marginLeft:h?2:0,display:"flex",alignItems:"center",children:l}):null,l&&r?t.jsx(e.Spinner,{size:"sm",marginLeft:h?2:0}):null]})})),y=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{viewBox:"0 0 16 17",children:[o.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[o.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"}),o.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"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1216_84",children:o.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),w=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{viewBox:"0 0 16 17",children:[o.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"}),o.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"})]})}),C=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:o.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"})})}),j=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:o.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),k=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),$=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),S=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),E=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),R=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),L=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),O=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_4626_1381",children:o.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),T=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),P=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_4916_54426",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),M=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),_=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),D=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),o.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[o.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"}),o.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"})]}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"})]})}),I=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]})}),V=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),N=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),A=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_8714_101)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_8714_101",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),z=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),B=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),H=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),F=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),Z=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),q=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),W=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),G=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),U=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"}),o.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"}),o.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"})]})}),X=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.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"})]})}),Y=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{clipPath:"url(#clip0_703_2142)",children:o.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"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_703_2142",children:o.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),K=t=>o.jsx(e.Icon,{...t,children:o.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),o.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),o.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),o.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),J=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),Q=t=>{const{size:n="16px",...r}=t;return o.jsx(e.Icon,{boxSize:n,...r,children:o.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})})},ee=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),te=t=>o.jsx(e.Icon,{...t,children:o.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})}),ne=t=>{const{fill:n}=t,r=n||"currentColor";return o.jsx(e.Icon,{...t,fill:r,children:o.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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"})})})},re={Google:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Google",leftIcon:o.jsx(U,{}),"aria-label":e||"Google Login",variant:"secondary",size:t,onClick:n}),Facebook:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Facebook",leftIcon:o.jsx(X,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:t,onClick:n}),X:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"X",leftIcon:o.jsx(Y,{}),"aria-label":e||"X Login",variant:"secondary",size:t,onClick:n}),Microsoft:({ariaLabel:e,size:t="default",onClick:n})=>o.jsx(b,{label:"Microsoft",leftIcon:o.jsx(K,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:t,onClick:n})},oe=r.css`
|
|
36
36
|
width: 20px !important;
|
|
37
37
|
padding: 0 !important;
|
|
38
38
|
min-width: 20px !important;
|
|
@@ -748,7 +748,7 @@
|
|
|
748
748
|
margin: 0 !important;
|
|
749
749
|
width: 20px !important;
|
|
750
750
|
height: 20px !important;
|
|
751
|
-
`,
|
|
751
|
+
`,qe=({children:n,value:r,disabled:o,...i})=>t.jsxs(e.RadioGroup.Item,{css:He,value:r,disabled:o,...i,children:[t.jsx(e.RadioGroup.ItemHiddenInput,{css:Ze}),t.jsx(e.RadioGroup.ItemIndicator,{className:"ds-radio-item-indicator"}),n?t.jsx(e.RadioGroup.ItemText,{css:Fe,children:n}):null]}),We=({children:t,horizontal:r=!1,name:i,defaultValue:a,onChange:s,customGap:l,...c})=>{const[u,d]=n.useState(a);let p=r?"20px":"8px";return p=l||p,o.jsx(e.RadioGroup.Root,{onValueChange:e=>{d(e.value||""),s&&s(i,e.value||"")},value:u,...c,children:o.jsx(e.HStack,{gap:p,flexDirection:r?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:t})})},Ge=r.css`
|
|
752
752
|
height: 60px;
|
|
753
753
|
padding: 40px 12px;
|
|
754
754
|
`,Ue=r.css`
|
|
@@ -966,6 +966,7 @@
|
|
|
966
966
|
`,rt=({name:n,defaultChecked:r=!1,onChange:o,disabled:i=!1,isLabelOnLeft:a=!1,children:s,...l})=>t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsxs(e.Switch.Root,{css:nt,id:n,name:n,"aria-label":l["aria-label"]||n,defaultChecked:r,onCheckedChange:({checked:e})=>{o&&o(n,e)},disabled:i,...l,children:[a&&null!=s?t.jsx(e.Switch.Label,{children:s}):null,t.jsx(e.Switch.HiddenInput,{style:{width:"42px",height:"26px"}}),t.jsx("div",{className:"chakra-switch__control-container",children:t.jsx(e.Switch.Control,{children:t.jsx(e.Switch.Thumb,{children:t.jsx(e.Switch.ThumbIndicator,{display:"flex",children:t.jsx(C,{})})})})}),a||null==s?null:t.jsx(e.Switch.Label,{children:s})]})}),ot=r.css`
|
|
967
967
|
position: relative;
|
|
968
968
|
height: 100%;
|
|
969
|
+
width: 100%;
|
|
969
970
|
&:focus-visible {
|
|
970
971
|
outline-color: ${h("primary",700)};
|
|
971
972
|
}
|
|
@@ -974,8 +975,8 @@
|
|
|
974
975
|
line-height: 24px;
|
|
975
976
|
color: ${h("neutral",900)};
|
|
976
977
|
text-align: left;
|
|
977
|
-
|
|
978
|
-
|
|
978
|
+
width: 100%;
|
|
979
|
+
#required-symbol {
|
|
979
980
|
color: ${h("error",500)};
|
|
980
981
|
margin-right: 3px;
|
|
981
982
|
}
|
|
@@ -984,12 +985,18 @@
|
|
|
984
985
|
line-height: 20px;
|
|
985
986
|
color: ${h("neutral",700)};
|
|
986
987
|
text-align: left;
|
|
987
|
-
`,st=e=>r.css`
|
|
988
|
+
`,st=(e,t)=>r.css`
|
|
988
989
|
margin-top: 12px;
|
|
989
990
|
display: flex;
|
|
990
991
|
flex-direction: ${e?"row":"column"};
|
|
991
992
|
flex-wrap: wrap;
|
|
992
993
|
gap: ${e?"20px":"12px"};
|
|
994
|
+
max-height: ${t?"1000px":"0"};
|
|
995
|
+
overflow: hidden;
|
|
996
|
+
opacity: ${t?1:0};
|
|
997
|
+
transition:
|
|
998
|
+
max-height 250ms ease,
|
|
999
|
+
opacity 200ms ease;
|
|
993
1000
|
`,lt=r.css`
|
|
994
1001
|
width: 3px;
|
|
995
1002
|
height: 100%;
|
|
@@ -1004,10 +1011,25 @@
|
|
|
1004
1011
|
color: ${h("error",900)};
|
|
1005
1012
|
text-align: left;
|
|
1006
1013
|
`,ut=r.css`
|
|
1014
|
+
color: ${h("neutral",700)};
|
|
1015
|
+
margin-left: 4px;
|
|
1016
|
+
`,dt=r.css`
|
|
1017
|
+
color: ${h("neutral",700)};
|
|
1018
|
+
display: flex;
|
|
1019
|
+
align-items: center;
|
|
1020
|
+
gap: 4;
|
|
1021
|
+
font-size: 14;
|
|
1022
|
+
background: none;
|
|
1023
|
+
border: none;
|
|
1024
|
+
cursor: pointer;
|
|
1025
|
+
> span {
|
|
1026
|
+
margin-left: 6px;
|
|
1027
|
+
}
|
|
1028
|
+
`,pt=r.css`
|
|
1007
1029
|
width: 100%;
|
|
1008
1030
|
max-width: 370px;
|
|
1009
1031
|
position: relative;
|
|
1010
|
-
`,
|
|
1032
|
+
`,ht=e=>r.css`
|
|
1011
1033
|
font-size: 16px;
|
|
1012
1034
|
line-height: 24px;
|
|
1013
1035
|
font-weight: 400;
|
|
@@ -1018,26 +1040,26 @@
|
|
|
1018
1040
|
color: ${e?h("neutral",600):h("error",500)};
|
|
1019
1041
|
margin-right: 3px;
|
|
1020
1042
|
}
|
|
1021
|
-
`,
|
|
1043
|
+
`,ft=e=>r.css`
|
|
1022
1044
|
font-size: 14px;
|
|
1023
1045
|
line-height: 20px;
|
|
1024
1046
|
font-weight: 400;
|
|
1025
1047
|
color: ${h("neutral",e?600:700)};
|
|
1026
1048
|
text-align: left;
|
|
1027
|
-
`,
|
|
1049
|
+
`,xt=r.css`
|
|
1028
1050
|
width: 3px;
|
|
1029
1051
|
height: 100%;
|
|
1030
1052
|
background-color: ${h("error",900)};
|
|
1031
1053
|
position: absolute;
|
|
1032
1054
|
top: 0;
|
|
1033
1055
|
left: 0;
|
|
1034
|
-
`,
|
|
1056
|
+
`,gt=r.css`
|
|
1035
1057
|
font-size: 14px;
|
|
1036
1058
|
line-height: 20px;
|
|
1037
1059
|
font-weight: 700;
|
|
1038
1060
|
color: ${h("error",900)};
|
|
1039
1061
|
text-align: left;
|
|
1040
|
-
`,
|
|
1062
|
+
`,vt=(e,t)=>r.css`
|
|
1041
1063
|
width: 100%;
|
|
1042
1064
|
margin-top: 8px;
|
|
1043
1065
|
|
|
@@ -1073,7 +1095,7 @@
|
|
|
1073
1095
|
padding: 0 4px;
|
|
1074
1096
|
}
|
|
1075
1097
|
}
|
|
1076
|
-
`,
|
|
1098
|
+
`,mt=e=>r.css`
|
|
1077
1099
|
position: relative;
|
|
1078
1100
|
height: 100%;
|
|
1079
1101
|
width: 100%;
|
|
@@ -1082,14 +1104,14 @@
|
|
|
1082
1104
|
align-items: flex-start;
|
|
1083
1105
|
gap: ${"small"===e?"12px":"16px"};
|
|
1084
1106
|
margin-bottom: 20px;
|
|
1085
|
-
`,
|
|
1107
|
+
`,bt=r.css`
|
|
1086
1108
|
width: 3px;
|
|
1087
1109
|
height: 100%;
|
|
1088
1110
|
background-color: ${h("error",900)};
|
|
1089
1111
|
position: absolute;
|
|
1090
1112
|
top: 0;
|
|
1091
1113
|
left: 0;
|
|
1092
|
-
`,
|
|
1114
|
+
`,yt=(e,t)=>r.css`
|
|
1093
1115
|
color: ${h("neutral",t?600:900)};
|
|
1094
1116
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1095
1117
|
font-weight: 400;
|
|
@@ -1111,7 +1133,7 @@
|
|
|
1111
1133
|
margin-top: 4px;
|
|
1112
1134
|
color: ${t?h("neutral",600):h("error",500)};
|
|
1113
1135
|
}
|
|
1114
|
-
`,
|
|
1136
|
+
`,wt=(e,t)=>r.css`
|
|
1115
1137
|
color: ${h("neutral",t?600:700)};
|
|
1116
1138
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1117
1139
|
font-weight: 400;
|
|
@@ -1120,13 +1142,13 @@
|
|
|
1120
1142
|
&:first-letter {
|
|
1121
1143
|
text-transform: uppercase;
|
|
1122
1144
|
}
|
|
1123
|
-
`,
|
|
1145
|
+
`,Ct=e=>r.css`
|
|
1124
1146
|
color: ${h("error",900)};
|
|
1125
1147
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1126
1148
|
font-weight: 700;
|
|
1127
1149
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1128
1150
|
margin-top: 2px;
|
|
1129
|
-
`,
|
|
1151
|
+
`,jt=(e,t,n)=>r.css`
|
|
1130
1152
|
height: ${"small"===e?"28px":"40px"};
|
|
1131
1153
|
width: 100%;
|
|
1132
1154
|
border-radius: 4px;
|
|
@@ -1164,7 +1186,7 @@
|
|
|
1164
1186
|
}
|
|
1165
1187
|
|
|
1166
1188
|
${t||n?`\n border: 1px solid ${h("neutral",700)};\n `:""}
|
|
1167
|
-
`,
|
|
1189
|
+
`,kt=({label:r,caption:o,placeholder:i,errorMessage:a,required:s,disabled:l,size:c="default",defaultValue:u="",onChange:d,...p})=>{const[h,f]=n.useState(u);return t.jsxs("div",{css:mt(c),className:"ds-text-input-container",children:[a?t.jsx("div",{css:bt}):null,t.jsxs(e.Field.Root,{required:s,invalid:!!a,gap:"0",style:{marginLeft:a?"19px":"0px"},children:[r?t.jsxs(e.Field.Label,{css:yt(c,l),"aria-label":r,children:[t.jsx(e.Field.RequiredIndicator,{"aria-label":"required"}),r,s?"":t.jsx("span",{children:" (Optional)"})]}):null,o?t.jsx(e.Field.HelperText,{css:wt(c,l),"aria-label":o,children:o}):null,a?t.jsx(e.Field.ErrorText,{css:Ct(c),"aria-label":a,children:a}):null,t.jsx(e.Input,{placeholder:i,disabled:l,css:jt(c,h,u),onChange:e=>{f(e.target.value),d&&d(e)},value:h,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...p})]})]})},$t=l.forwardRef(((t,n)=>{const{children:r,...i}=t;return o.jsxs(e.Select.Control,{...i,children:[o.jsx(e.Select.Trigger,{ref:n,children:r}),o.jsx(e.Select.IndicatorGroup,{children:o.jsx(e.Select.Indicator,{children:o.jsx($,{})})})]})})),St=l.forwardRef(((t,n)=>{const{...r}=t;return o.jsx(e.Portal,{children:o.jsx(e.Select.Positioner,{children:o.jsx(e.Select.Content,{...r,ref:n})})})})),Et=l.forwardRef(((t,n)=>{const{item:r,children:i,...a}=t;return o.jsx(e.Select.Item,{item:r,...a,ref:n,children:i},r.value)})),Rt=l.forwardRef(((t,n)=>{const{children:r,...i}=t;return o.jsx(e.Select.ValueText,{...i,ref:n,children:o.jsx(e.Select.Context,{children:e=>{const n=e.selectedItems;return 0===n.length?t.placeholder:r?r(n):1===n.length?e.collection.stringifyItem(n[0]):`${n.length} selected`}})})})),Lt=l.forwardRef(((t,n)=>o.jsx(e.Select.Root,{...t,ref:n,positioning:{sameWidth:!0,...t.positioning},children:t.asChild?t.children:o.jsxs(o.Fragment,{children:[o.jsx(e.Select.HiddenSelect,{}),t.children]})})));l.forwardRef(((t,n)=>{const{children:r,label:i,...a}=t;return o.jsxs(e.Select.ItemGroup,{...a,ref:n,children:[o.jsx(e.Select.ItemGroupLabel,{children:i}),r]})}));const Ot=e.Select.Label;e.Select.ItemText;const Tt=e=>r.css`
|
|
1168
1190
|
position: relative;
|
|
1169
1191
|
height: 100%;
|
|
1170
1192
|
width: 100%;
|
|
@@ -1176,14 +1198,14 @@
|
|
|
1176
1198
|
&:focus-visible {
|
|
1177
1199
|
outline-color: ${h("primary",700)};
|
|
1178
1200
|
}
|
|
1179
|
-
`,
|
|
1201
|
+
`,Pt=r.css`
|
|
1180
1202
|
width: 3px;
|
|
1181
1203
|
height: 100%;
|
|
1182
1204
|
background-color: ${h("error",900)};
|
|
1183
1205
|
position: absolute;
|
|
1184
1206
|
top: 0;
|
|
1185
1207
|
left: 0;
|
|
1186
|
-
`,
|
|
1208
|
+
`,Mt=e=>r.css`
|
|
1187
1209
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1188
1210
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1189
1211
|
font-weight: 400;
|
|
@@ -1202,7 +1224,7 @@
|
|
|
1202
1224
|
color: ${h("neutral",600)};
|
|
1203
1225
|
}
|
|
1204
1226
|
}
|
|
1205
|
-
`,
|
|
1227
|
+
`,_t=(e,t)=>r.css`
|
|
1206
1228
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1207
1229
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1208
1230
|
font-weight: 400;
|
|
@@ -1210,7 +1232,7 @@
|
|
|
1210
1232
|
text-align: left;
|
|
1211
1233
|
|
|
1212
1234
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1213
|
-
`,
|
|
1235
|
+
`,Dt=(e,t,n,o)=>r.css`
|
|
1214
1236
|
.chakra-select__trigger {
|
|
1215
1237
|
min-height: ${"small"===e?"32px":"40px"};
|
|
1216
1238
|
border-radius: 4px;
|
|
@@ -1265,40 +1287,40 @@
|
|
|
1265
1287
|
}
|
|
1266
1288
|
}
|
|
1267
1289
|
}
|
|
1268
|
-
`,
|
|
1290
|
+
`,It=r.css`
|
|
1269
1291
|
margin-top: -8px;
|
|
1270
1292
|
border-radius: 4px;
|
|
1271
1293
|
border: 1px solid ${h("neutral",400)};
|
|
1272
1294
|
border-top-left-radius: 0px;
|
|
1273
1295
|
border-top-right-radius: 0px;
|
|
1274
1296
|
border-top: none;
|
|
1275
|
-
`,
|
|
1297
|
+
`,Vt=r.css`
|
|
1276
1298
|
align-items: flex-start;
|
|
1277
1299
|
&[data-highlighted] {
|
|
1278
1300
|
background-color: ${h("neutral",200)};
|
|
1279
1301
|
cursor: pointer;
|
|
1280
1302
|
}
|
|
1281
|
-
`,
|
|
1303
|
+
`,Nt=(e,t)=>r.css`
|
|
1282
1304
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1283
1305
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1284
1306
|
color: ${h("neutral",800)};
|
|
1285
1307
|
text-align: left;
|
|
1286
1308
|
|
|
1287
1309
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1288
|
-
`,
|
|
1310
|
+
`,At=(e,t)=>r.css`
|
|
1289
1311
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1290
1312
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1291
1313
|
color: ${h("neutral",700)};
|
|
1292
1314
|
text-align: left;
|
|
1293
1315
|
|
|
1294
1316
|
${t?`color: ${h("neutral",600)} !important;`:""}
|
|
1295
|
-
`,
|
|
1317
|
+
`,zt=e=>r.css`
|
|
1296
1318
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1297
1319
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1298
1320
|
font-weight: 700;
|
|
1299
1321
|
color: ${h("error",900)};
|
|
1300
1322
|
text-align: left;
|
|
1301
|
-
`,
|
|
1323
|
+
`,Bt=e=>r.css`
|
|
1302
1324
|
max-width: 100%;
|
|
1303
1325
|
display: flex;
|
|
1304
1326
|
justify-content: center;
|
|
@@ -1370,28 +1392,28 @@
|
|
|
1370
1392
|
background-color: ${h("neutral",300)};
|
|
1371
1393
|
color: ${h("neutral",600)};
|
|
1372
1394
|
}
|
|
1373
|
-
`,
|
|
1395
|
+
`,Ht=r.css`
|
|
1374
1396
|
background-color: ${h("neutral",100)};
|
|
1375
1397
|
border: 1px solid ${h("neutral",300)};
|
|
1376
|
-
`,
|
|
1398
|
+
`,Ft=r.css`
|
|
1377
1399
|
background-color: ${h("neutral",200)};
|
|
1378
1400
|
border: 1px solid ${h("neutral",400)};
|
|
1379
|
-
`,
|
|
1401
|
+
`,Zt=r.css`
|
|
1380
1402
|
background-color: ${h("success",100)};
|
|
1381
1403
|
border: 1px solid ${h("success",300)};
|
|
1382
1404
|
color: ${h("success",900)};
|
|
1383
|
-
`,
|
|
1405
|
+
`,qt=r.css`
|
|
1384
1406
|
background-color: ${h("warning",100)};
|
|
1385
1407
|
border: 1px solid ${h("warning",300)};
|
|
1386
1408
|
color: ${h("warning",900)};
|
|
1387
|
-
`,
|
|
1409
|
+
`,Wt=r.css`
|
|
1388
1410
|
background-color: ${h("error",100)};
|
|
1389
1411
|
border: 1px solid ${h("error",300)};
|
|
1390
1412
|
color: ${h("error",900)};
|
|
1391
|
-
`,
|
|
1413
|
+
`,Gt=({label:n,size:r="default",variant:o,disabled:i,icon:a,onClose:s,closable:l,...c})=>{let u=Ht;return"info-grey"===o?u=Ft:"success"===o?u=Zt:"warning"===o?u=qt:"error"===o&&(u=Wt),t.jsxs(e.Tag.Root,{css:[Bt(r),u],"data-disabled":i,...c,children:[a?t.jsx(e.Tag.StartElement,{"aria-label":`${n} tag icon`,children:a}):null,t.jsx(e.Tag.Label,{"aria-label":n,children:n}),l&&!i&&"small"!==r?t.jsx(e.Tag.EndElement,{children:t.jsx("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:s,onKeyDown:e=>{!s||"Enter"!==e.key&&" "!==e.key||s()},"aria-label":`${n} tag close button`,children:t.jsx(E,{})})}):null]})},Ut=({placeholder:n,size:r,disabled:o})=>t.jsx(Rt,{placeholder:n,children:n=>{const{label:i,caption:a}=n[0];return t.jsxs(e.HStack,{flexDirection:"column",alignItems:"flex-start",children:[t.jsx("p",{css:Nt(r,o),children:i}),a?t.jsx("p",{css:At(r,o),children:a}):null]})}}),Xt=({placeholder:n,removeItem:r,disabled:o})=>t.jsx(Rt,{placeholder:n,children:n=>n.map((n=>t.jsx(e.HStack,{flexDirection:"row",alignItems:"flex-start",children:t.jsx(Gt,{label:n.label,variant:"info-grey",disabled:o,onClose:()=>r(n.value),closable:!0},n.value)},n.value)))}),Yt=({label:r,caption:o,placeholder:i="",items:a,size:s="default",required:l,disabled:c,onChange:u,errorMessage:d,multiple:p,...h})=>{const[f,x]=n.useState(h.defaultValue||[]),g=(t=>e.createListCollection({items:t}))(a),v=e=>{x(e),u&&u(e)},m=`${r||"Select input"}${l?" required.":""}${o?` ${o}.`:""}${c?" Disabled.":""}`.trim();return t.jsxs(e.Group,{css:Tt(s),style:h.style,className:"ds-select-input-container",tabIndex:c?0:void 0,"aria-disabled":c,"aria-label":c?m:void 0,children:[d?t.jsx("div",{css:Pt}):null,t.jsxs(Lt,{css:{},collection:g,disabled:c,required:l,multiple:p,"aria-label":h["aria-label"]||r,value:f,onValueChange:e=>v(e.value),style:{marginLeft:d?"19px":"0px"},...h,children:[r?t.jsxs(Ot,{css:Mt(s),children:[l?t.jsx("span",{children:"*"}):null,r]}):null,o?t.jsx("p",{css:_t(s,c),children:o}):null,d&&t.jsx("p",{css:zt(s),children:d}),t.jsx($t,{css:Dt(s,f.length>0,!!d,p),children:p?t.jsx(Xt,{placeholder:i,disabled:c,removeItem:e=>{const t=f.filter((t=>t!==e));v(t)}}):t.jsx(Ut,{placeholder:i,size:s,disabled:c})}),t.jsx(St,{css:It,children:g.items.map((n=>t.jsxs(Et,{css:Vt,item:n,children:[t.jsxs(e.Box,{children:[t.jsx("p",{css:Nt(s),children:n.label}),t.jsx("p",{css:At(s),children:n.caption})]}),p?t.jsx(Le,{checked:f.some((e=>e===n.value))}):null]},n.value)))})]})]})},Kt=r.css`
|
|
1392
1414
|
width: 100%;
|
|
1393
1415
|
max-width: 486px;
|
|
1394
|
-
`,
|
|
1416
|
+
`,Jt=r.css`
|
|
1395
1417
|
font-size: 16px;
|
|
1396
1418
|
line-height: 24px;
|
|
1397
1419
|
font-weight: 400;
|
|
@@ -1402,13 +1424,13 @@
|
|
|
1402
1424
|
color: ${h("error",500)};
|
|
1403
1425
|
margin-right: 3px;
|
|
1404
1426
|
}
|
|
1405
|
-
`,
|
|
1427
|
+
`,Qt=r.css`
|
|
1406
1428
|
font-size: 14px;
|
|
1407
1429
|
line-height: 20px;
|
|
1408
1430
|
font-weight: 400;
|
|
1409
1431
|
color: ${h("neutral",700)};
|
|
1410
1432
|
text-align: left;
|
|
1411
|
-
`,
|
|
1433
|
+
`,en=r.css`
|
|
1412
1434
|
display: flex;
|
|
1413
1435
|
align-items: center;
|
|
1414
1436
|
justify-content: space-between;
|
|
@@ -1426,9 +1448,9 @@
|
|
|
1426
1448
|
button {
|
|
1427
1449
|
width: 98px;
|
|
1428
1450
|
}
|
|
1429
|
-
`,
|
|
1451
|
+
`,tn=r.css`
|
|
1430
1452
|
margin-top: 12px;
|
|
1431
|
-
`,
|
|
1453
|
+
`,nn=e=>r.css`
|
|
1432
1454
|
height: 8px;
|
|
1433
1455
|
width: 100%;
|
|
1434
1456
|
background-color: ${h("neutral",300)};
|
|
@@ -1442,7 +1464,7 @@
|
|
|
1442
1464
|
background-color: ${h("Medium"===e?"warning":"Strong"===e||"Very Strong"===e?"success":"error",900)};
|
|
1443
1465
|
border-radius: 8px;
|
|
1444
1466
|
}
|
|
1445
|
-
`,
|
|
1467
|
+
`,rn=e=>r.css`
|
|
1446
1468
|
display: flex;
|
|
1447
1469
|
align-items: center;
|
|
1448
1470
|
gap: 4px;
|
|
@@ -1459,13 +1481,13 @@
|
|
|
1459
1481
|
justify-content: center;
|
|
1460
1482
|
align-items: center;
|
|
1461
1483
|
}
|
|
1462
|
-
`,
|
|
1484
|
+
`,on=r.css`
|
|
1463
1485
|
position: relative;
|
|
1464
1486
|
height: 100%;
|
|
1465
1487
|
&:focus-visible {
|
|
1466
1488
|
outline-color: ${h("primary",700)};
|
|
1467
1489
|
}
|
|
1468
|
-
`,
|
|
1490
|
+
`,an=r.css`
|
|
1469
1491
|
font-size: 16px;
|
|
1470
1492
|
line-height: 24px;
|
|
1471
1493
|
color: ${h("neutral",900)};
|
|
@@ -1475,27 +1497,27 @@
|
|
|
1475
1497
|
color: ${h("error",500)};
|
|
1476
1498
|
margin-right: 3px;
|
|
1477
1499
|
}
|
|
1478
|
-
`,
|
|
1500
|
+
`,sn=r.css`
|
|
1479
1501
|
font-size: 14px;
|
|
1480
1502
|
line-height: 20px;
|
|
1481
1503
|
color: ${h("neutral",700)};
|
|
1482
1504
|
text-align: left;
|
|
1483
|
-
`,
|
|
1505
|
+
`,ln=r.css`
|
|
1484
1506
|
margin-top: 12px;
|
|
1485
|
-
`,
|
|
1507
|
+
`,cn=r.css`
|
|
1486
1508
|
width: 3px;
|
|
1487
1509
|
height: 100%;
|
|
1488
1510
|
background-color: ${h("error",900)};
|
|
1489
1511
|
position: absolute;
|
|
1490
1512
|
top: 0;
|
|
1491
1513
|
left: 0;
|
|
1492
|
-
`,
|
|
1514
|
+
`,un=r.css`
|
|
1493
1515
|
font-size: 14px;
|
|
1494
1516
|
line-height: 20px;
|
|
1495
1517
|
font-weight: 700;
|
|
1496
1518
|
color: ${h("error",900)};
|
|
1497
1519
|
text-align: left;
|
|
1498
|
-
`,
|
|
1520
|
+
`,dn=r.css`
|
|
1499
1521
|
height: 100%;
|
|
1500
1522
|
min-height: 48px;
|
|
1501
1523
|
width: 100%;
|
|
@@ -1504,7 +1526,7 @@
|
|
|
1504
1526
|
border-radius: 4px;
|
|
1505
1527
|
background-color: ${h("neutral",100)};
|
|
1506
1528
|
padding: 12px;
|
|
1507
|
-
`,
|
|
1529
|
+
`,pn=e=>r.css`
|
|
1508
1530
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1509
1531
|
line-height: ${"small"===e?"20px":"24px"};
|
|
1510
1532
|
font-weight: 400;
|
|
@@ -1515,13 +1537,13 @@
|
|
|
1515
1537
|
color: ${h("error",500)};
|
|
1516
1538
|
margin-right: 3px;
|
|
1517
1539
|
}
|
|
1518
|
-
`,
|
|
1540
|
+
`,hn=e=>r.css`
|
|
1519
1541
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1520
1542
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1521
1543
|
font-weight: 400;
|
|
1522
1544
|
color: ${h("neutral",700)};
|
|
1523
1545
|
text-align: left;
|
|
1524
|
-
`,
|
|
1546
|
+
`,fn=r.css`
|
|
1525
1547
|
display: flex;
|
|
1526
1548
|
align-items: center;
|
|
1527
1549
|
gap: 12px;
|
|
@@ -1542,7 +1564,7 @@
|
|
|
1542
1564
|
margin-top: 18px;
|
|
1543
1565
|
width: 100%;
|
|
1544
1566
|
}
|
|
1545
|
-
`,
|
|
1567
|
+
`,xn=e=>r.css`
|
|
1546
1568
|
position: relative;
|
|
1547
1569
|
height: 100%;
|
|
1548
1570
|
width: 100%;
|
|
@@ -1551,14 +1573,14 @@
|
|
|
1551
1573
|
align-items: flex-start;
|
|
1552
1574
|
gap: ${"small"===e?"12px":"16px"};
|
|
1553
1575
|
margin-bottom: 16px;
|
|
1554
|
-
`,
|
|
1576
|
+
`,gn=r.css`
|
|
1555
1577
|
width: 3px;
|
|
1556
1578
|
height: 100%;
|
|
1557
1579
|
background-color: ${h("error",900)};
|
|
1558
1580
|
position: absolute;
|
|
1559
1581
|
top: 0;
|
|
1560
1582
|
left: 0;
|
|
1561
|
-
`,
|
|
1583
|
+
`,vn=(e,t)=>r.css`
|
|
1562
1584
|
color: ${h("neutral",t?600:900)};
|
|
1563
1585
|
font-size: ${"small"===e?"14px":"16px"};
|
|
1564
1586
|
font-weight: 400;
|
|
@@ -1572,24 +1594,24 @@
|
|
|
1572
1594
|
.chakra-field__requiredIndicator {
|
|
1573
1595
|
color: ${t?h("neutral",600):h("error",500)};
|
|
1574
1596
|
}
|
|
1575
|
-
`,
|
|
1597
|
+
`,mn=(e,t)=>r.css`
|
|
1576
1598
|
color: ${h("neutral",t?600:700)};
|
|
1577
1599
|
font-size: ${"small"===e?"12px":"14px"};
|
|
1578
1600
|
font-weight: 400;
|
|
1579
1601
|
line-height: ${"small"===e?"16px":"20px"};
|
|
1580
|
-
`,
|
|
1602
|
+
`,bn=r.css`
|
|
1581
1603
|
color: ${h("neutral",600)};
|
|
1582
1604
|
font-size: 12px;
|
|
1583
1605
|
font-weight: 400;
|
|
1584
1606
|
line-height: 16px;
|
|
1585
1607
|
margin-top: 8px;
|
|
1586
|
-
`,
|
|
1608
|
+
`,yn=r.css`
|
|
1587
1609
|
color: ${h("error",900)};
|
|
1588
1610
|
font-size: 14px;
|
|
1589
1611
|
font-weight: 700;
|
|
1590
1612
|
line-height: 20px;
|
|
1591
1613
|
margin-top: 2px;
|
|
1592
|
-
`,
|
|
1614
|
+
`,wn=(e,t,n)=>r.css`
|
|
1593
1615
|
height: 104px;
|
|
1594
1616
|
width: 100%;
|
|
1595
1617
|
border-radius: 4px;
|
|
@@ -1626,7 +1648,7 @@
|
|
|
1626
1648
|
}
|
|
1627
1649
|
|
|
1628
1650
|
${t||n?`\n border: 1px solid ${h("neutral",700)};\n `:""}
|
|
1629
|
-
`,
|
|
1651
|
+
`,Cn=(e,t)=>r.css`
|
|
1630
1652
|
height: ${e};
|
|
1631
1653
|
width: ${t};
|
|
1632
1654
|
border: 1px solid ${h("neutral",300)};
|
|
@@ -1640,7 +1662,7 @@
|
|
|
1640
1662
|
height: 100%;
|
|
1641
1663
|
overflow-y: scroll;
|
|
1642
1664
|
}
|
|
1643
|
-
`,
|
|
1665
|
+
`,jn=r.css`
|
|
1644
1666
|
padding: 16px 12px;
|
|
1645
1667
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1646
1668
|
|
|
@@ -1663,16 +1685,16 @@
|
|
|
1663
1685
|
color: ${h("neutral",700)};
|
|
1664
1686
|
text-align: left;
|
|
1665
1687
|
}
|
|
1666
|
-
`,
|
|
1688
|
+
`,kn=r.css``,$n=r.css`
|
|
1667
1689
|
display: flex;
|
|
1668
1690
|
flex-direction: column;
|
|
1669
1691
|
gap: 12px;
|
|
1670
1692
|
padding: 12px;
|
|
1671
1693
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1672
|
-
`,
|
|
1694
|
+
`,Sn=r.css`
|
|
1673
1695
|
padding-top: 12px;
|
|
1674
1696
|
padding-left: 8px;
|
|
1675
|
-
|
|
1697
|
+
`,En=r.css``,Rn=e=>r.css`
|
|
1676
1698
|
display: flex;
|
|
1677
1699
|
gap: 12px;
|
|
1678
1700
|
padding: 12px 8px;
|
|
@@ -1696,7 +1718,7 @@
|
|
|
1696
1718
|
background-color: ${h("primary",100)};
|
|
1697
1719
|
width: 99.8%;
|
|
1698
1720
|
}
|
|
1699
|
-
`,
|
|
1721
|
+
`,Ln=r.css`
|
|
1700
1722
|
width: 100%;
|
|
1701
1723
|
max-width: calc(100% - 44px);
|
|
1702
1724
|
|
|
@@ -1727,7 +1749,7 @@
|
|
|
1727
1749
|
.ds-base-map-children {
|
|
1728
1750
|
margin-top: 10px;
|
|
1729
1751
|
}
|
|
1730
|
-
`,
|
|
1752
|
+
`,On=(e,t,n,o,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 r.css`
|
|
1731
1753
|
text-overflow: ellipsis;
|
|
1732
1754
|
height: ${s};
|
|
1733
1755
|
width: ${s};
|
|
@@ -1767,14 +1789,14 @@
|
|
|
1767
1789
|
height: 14px;
|
|
1768
1790
|
width: 14px;
|
|
1769
1791
|
}
|
|
1770
|
-
`},
|
|
1792
|
+
`},Tn=n.forwardRef((({ariaLabel:e,icon:n,backgroundColor:o,onClick:i,showFocusState:a,count:s,mode:l,variant:c="icon"},u)=>{const d=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 t.jsx("div",{css:a?r.css`
|
|
1771
1793
|
outline: 2px solid ${h("primary",700)};
|
|
1772
1794
|
outline-offset: 2px;
|
|
1773
1795
|
border-radius: 50%;
|
|
1774
1796
|
box-shadow:
|
|
1775
1797
|
0 0 0 2px ${h("neutral",100)},
|
|
1776
1798
|
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1777
|
-
`:"",children:t.jsxs("button",{type:"button",css:Rn(o,!!i,!!n,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&&n]})})})),On={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Ln,{ariaLabel:e||"paper icon",icon:o.jsx(W,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Ln,{ariaLabel:e||"drop icon",icon:o.jsx(q,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Ln,{ariaLabel:e||"plant icon",icon:o.jsx(G,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Ln,{ariaLabel:e||"point icon",backgroundColor:h("primary",500),onClick:t,ref:n,showFocusState:r})};function Tn(){return"undefined"!=typeof window}function Pn(e){return Dn(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _n(e){var t;return null==(t=(Dn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dn(e){return!!Tn()&&(e instanceof Node||e instanceof Mn(e).Node)}function In(e){return!!Tn()&&(e instanceof Element||e instanceof Mn(e).Element)}function Vn(e){return!!Tn()&&(e instanceof HTMLElement||e instanceof Mn(e).HTMLElement)}function Nn(e){return!(!Tn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot)}const An=new Set(["inline","contents"]);function zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!An.has(o)}const Bn=new Set(["table","td","th"]);function Hn(e){return Bn.has(Pn(e))}const Fn=[":popover-open",":modal"];function Zn(e){return Fn.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Wn=["transform","translate","scale","rotate","perspective"],qn=["transform","translate","scale","rotate","perspective","filter"],Gn=["paint","layout","strict","content"];function Un(e){const t=Xn(),n=In(e)?Jn(e):e;return Wn.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||qn.some((e=>(n.willChange||"").includes(e)))||Gn.some((e=>(n.contain||"").includes(e)))}function Xn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Yn=new Set(["html","body","#document"]);function Kn(e){return Yn.has(Pn(e))}function Jn(e){return Mn(e).getComputedStyle(e)}function Qn(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===Pn(e))return e;const t=e.assignedSlot||e.parentNode||Nn(e)&&e.host||_n(e);return Nn(t)?t.host:t}function tr(e){const t=er(e);return Kn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vn(t)&&zn(t)?t:tr(t)}function nr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=tr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Mn(o);if(i){const e=rr(a);return t.concat(a,a.visualViewport||[],zn(o)?o:[],e&&n?nr(e):[])}return t.concat(o,nr(o,[],n))}function rr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const or=Math.min,ir=Math.max,ar=Math.round,sr=Math.floor,lr=e=>({x:e,y:e}),cr={left:"right",right:"left",bottom:"top",top:"bottom"},ur={start:"end",end:"start"};function dr(e,t,n){return ir(e,or(t,n))}function pr(e,t){return"function"==typeof e?e(t):e}function hr(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function xr(e){return"x"===e?"y":"x"}function gr(e){return"y"===e?"height":"width"}const vr=new Set(["top","bottom"]);function mr(e){return vr.has(hr(e))?"y":"x"}function br(e){return xr(mr(e))}function yr(e){return e.replace(/start|end/g,(e=>ur[e]))}const wr=["left","right"],Cr=["right","left"],jr=["top","bottom"],kr=["bottom","top"];function $r(e,t,n,r){const o=fr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Cr:wr:t?wr:Cr;case"left":case"right":return t?jr:kr;default:return[]}}(hr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(yr)))),i}function Sr(e){return e.replace(/left|right|bottom|top/g,(e=>cr[e]))}function Er(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 Rr(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 Lr="data-floating-ui-focusable";function Or(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Nn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Tr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Pr(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 Mr(e){return(null==e?void 0:e.ownerDocument)||document}function _r(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,..._r(e,t.id,n)]))}var Dr="undefined"!=typeof document?n.useLayoutEffect:function(){};const Ir={...l}.useInsertionEffect||(e=>e());function Vr(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Ir((()=>{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 Nr(e,t,n){let{reference:r,floating:o}=e;const i=mr(t),a=br(t),s=gr(a),l=hr(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(fr(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Ar(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}=pr(t,e),f=Er(h),x=s[p?"floating"===d?"reference":"floating":d],g=Rr(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=Rr(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 zr=new Set(["left","top"]);function Br(e){const t=Jn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ar(n)!==i||ar(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hr(e){return In(e)?e:e.contextElement}function Fr(e){const t=Hr(e);if(!Vn(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Br(t);let a=(i?ar(n.width):n.width)/r,s=(i?ar(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Zr=lr(0);function Wr(e){const t=Mn(e);return Xn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Zr}function qr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hr(e);let a=lr(1);t&&(r?In(r)&&(a=Fr(r)):a=Fr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mn(e))&&t}(i,n,r)?Wr(i):lr(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=Mn(i),t=r&&In(r)?Mn(r):r;let n=e,o=rr(n);for(;o&&r&&t!==n;){const e=Fr(o),t=o.getBoundingClientRect(),r=Jn(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=Mn(o),o=rr(n)}}return Rr({width:u,height:d,x:l,y:c})}function Gr(e,t){const n=Qn(e).scrollLeft;return t?t.left+n:qr(_n(e)).left+n}function Ur(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Gr(e,n),y:n.top+t.scrollTop}}const Xr=new Set(["absolute","fixed"]);function Yr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Mn(e),r=_n(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=Xn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Gr(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=_n(e),n=Qn(e),r=e.ownerDocument.body,o=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gr(e);const s=-n.scrollTop;return"rtl"===Jn(r).direction&&(a+=ir(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(_n(e));else if(In(t))r=function(e,t){const n=qr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Vn(e)?Fr(e):lr(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=Wr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Rr(r)}function Kr(e,t){const n=er(e);return!(n===t||!In(n)||Kn(n))&&("fixed"===Jn(n).position||Kr(n,t))}function Jr(e,t,n){const r=Vn(t),o=_n(t),i="fixed"===n,a=qr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=lr(0);function c(){l.x=Gr(o)}if(r||!r&&!i)if(("body"!==Pn(t)||zn(o))&&(s=Qn(t)),r){const e=qr(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?lr(0):Ur(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 Qr(e){return"static"===Jn(e).position}function eo(e,t){if(!Vn(e)||"fixed"===Jn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function to(e,t){const n=Mn(e);if(Zn(e))return n;if(!Vn(e)){let t=er(e);for(;t&&!Kn(t);){if(In(t)&&!Qr(t))return t;t=er(t)}return n}let r=eo(e,t);for(;r&&Hn(r)&&Qr(r);)r=eo(r,t);return r&&Kn(r)&&Qr(r)&&!Un(r)?n:r||function(e){let t=er(e);for(;Vn(t)&&!Kn(t);){if(Un(t))return t;if(Zn(t))return null;t=er(t)}return null}(e)||n}const no={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=_n(r),s=!!t&&Zn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lr(1);const u=lr(0),d=Vn(r);if((d||!d&&!i)&&(("body"!==Pn(r)||zn(a))&&(l=Qn(r)),Vn(r))){const e=qr(r);c=Fr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?lr(0):Ur(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:_n,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Zn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=nr(e,[],!1).filter((e=>In(e)&&"body"!==Pn(e))),o=null;const i="fixed"===Jn(e).position;let a=i?er(e):e;for(;In(a)&&!Kn(a);){const t=Jn(a),n=Un(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Xr.has(o.position)||zn(a)&&!n&&Kr(e,a))?r=r.filter((e=>e!==a)):o=t,a=er(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=Yr(t,n,o);return e.top=ir(r.top,e.top),e.right=or(r.right,e.right),e.bottom=or(r.bottom,e.bottom),e.left=ir(r.left,e.left),e}),Yr(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:to,getElementRects:async function(e){const t=this.getOffsetParent||to,n=this.getDimensions,r=await n(e.floating);return{reference:Jr(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}=Br(e);return{width:t,height:n}},getScale:Fr,isElement:In,isRTL:function(e){return"rtl"===Jn(e).direction}};function ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oo(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=Hr(e),u=o||i?[...c?nr(c):[],...nr(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=_n(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:-sr(d)+"px "+-sr(o.clientWidth-(u+p))+"px "+-sr(o.clientHeight-(d+h))+"px "+-sr(u)+"px",threshold:ir(0,or(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||ro(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?qr(e):null;return l&&function t(){const r=qr(e);x&&!ro(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 io=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=hr(n),s=fr(n),l="y"===mr(n),c=zr.has(a)?-1:1,u=i&&l?-1:1,d=pr(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}}}}},ao=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}=pr(e,t),c={x:n,y:r},u=await Ar(t,l),d=mr(hr(o)),p=xr(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=dr(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=dr(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}}}}}},so=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}=pr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=hr(o),m=mr(s),b=hr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!x?[Sr(s)]:function(e){const t=Sr(e);return[yr(e),t,yr(t)]}(s)),C="none"!==f;!p&&C&&w.push(...$r(s,x,f,y));const j=[s,...w],k=await Ar(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=fr(e),o=br(e),i=gr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Sr(a)),[a,Sr(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!==mr(t))||S.every((e=>mr(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=mr(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{}}}},lo=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}=pr(e,t)||{};if(null==c)return{};const d=Er(u),p={x:n,y:r},h=br(o),f=gr(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=or(d[v],$),E=or(d[m],$),R=S,L=j-x[f]-E,O=j/2-x[f]/2+k,T=dr(R,O,L),P=!l.arrow&&null!=fr(o)&&O!==T&&i.reference[f]/2-(O<R?S:E)-x[f]/2<0,M=P?O<R?O-R:O-L:0;return{[h]:p[h]+M,data:{[h]:T,centerOffset:O-T-M,...P&&{alignmentOffset:M}},reset:P}}}),co=(e,t,n)=>{const r=new Map,o={platform:no,...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}=Nr(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}=Nr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var uo="undefined"!=typeof document?n.useLayoutEffect:function(){};function po(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(!po(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)&&!po(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ho(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fo(e,t){const n=ho(e);return Math.round(t*n)/n}function xo(e){const t=l.useRef(e);return uo((()=>{t.current=e})),t}const go=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?lo({element:n.current,padding:r}).fn(t):{}:n?lo({element:n,padding:r}).fn(t):{};var o}}),vo=(e,t)=>({...io(e),options:[e,t]}),mo=(e,t)=>({...ao(e),options:[e,t]}),bo=(e,t)=>({...go(e),options:[e,t]}),yo="data-floating-ui-focusable",wo="active",Co="selected",jo={...l};let ko=!1,$o=0;const So=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+$o++;const Eo=jo.useId||function(){const[e,t]=l.useState((()=>ko?So():void 0));return Dr((()=>{null==e&&t(So())}),[]),l.useEffect((()=>{ko=!0}),[]),e};let Ro;"production"!==process.env.NODE_ENV&&(Ro=new Set);const Lo=l.createContext(null),Oo=l.createContext(null),To=()=>{var e;return(null==(e=l.useContext(Lo))?void 0:e.id)||null},Po=()=>l.useContext(Oo);const Mo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},_o={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Do=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 Io(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Eo(),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!=To();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!In(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=Ro)&&e.has(o)||(null==(i=Ro)||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=Vr(((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 Vo(e){void 0===e&&(e={});const{nodeId:t}=e,n=Io({...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=Po();Dr((()=>{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);po(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=xo(u),L=xo(o),O=xo(d),T=l.useCallback((()=>{if(!k.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};L.current&&(e.platform=L.current),co(k.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};P.current&&!po(S.current,t)&&(S.current=t,c.flushSync((()=>{h(t)})))}))}),[f,t,n,L,O]);uo((()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const P=l.useRef(!1);uo((()=>(P.current=!0,()=>{P.current=!1})),[]),uo((()=>{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 M=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=fo(_.floating,p.x),r=fo(_.floating,p.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ho(_.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:M,elements:_,floatingStyles:D})),[p,T,M,_,D])}({...e,elements:{...o,...s&&{reference:s}}}),x=l.useCallback((e=>{const t=In(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(In(e)||null===e)&&(p.current=e,a(e)),(In(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!In(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 Dr((()=>{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 No(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[wo]:t,[Co]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[yo]:""},...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&&[wo,Co].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 Ao=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zo(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=Eo(),d=(null==(n=i.domReference)?void 0:n.id)||u,p=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(Lr)?t:t.querySelector("["+Lr+"]")||t:null)?void 0:e.id)||a}),[i.floating,a]),h=null!=(r=Ao.get(c))?r:c,f=null!=To(),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 Bo=r.css`
|
|
1799
|
+
`:"",children:t.jsxs("button",{type:"button",css:On(o,!!i,!!n,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&&n]})})})),Pn={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Tn,{ariaLabel:e||"paper icon",icon:o.jsx(q,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Tn,{ariaLabel:e||"drop icon",icon:o.jsx(W,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Tn,{ariaLabel:e||"plant icon",icon:o.jsx(G,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>o.jsx(Tn,{ariaLabel:e||"point icon",backgroundColor:h("primary",500),onClick:t,ref:n,showFocusState:r})};function Mn(){return"undefined"!=typeof window}function _n(e){return Vn(e)?(e.nodeName||"").toLowerCase():"#document"}function Dn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function In(e){var t;return null==(t=(Vn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vn(e){return!!Mn()&&(e instanceof Node||e instanceof Dn(e).Node)}function Nn(e){return!!Mn()&&(e instanceof Element||e instanceof Dn(e).Element)}function An(e){return!!Mn()&&(e instanceof HTMLElement||e instanceof Dn(e).HTMLElement)}function zn(e){return!(!Mn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Dn(e).ShadowRoot)}const Bn=new Set(["inline","contents"]);function Hn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Bn.has(o)}const Fn=new Set(["table","td","th"]);function Zn(e){return Fn.has(_n(e))}const qn=[":popover-open",":modal"];function Wn(e){return qn.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Gn=["transform","translate","scale","rotate","perspective"],Un=["transform","translate","scale","rotate","perspective","filter"],Xn=["paint","layout","strict","content"];function Yn(e){const t=Kn(),n=Nn(e)?er(e):e;return Gn.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Un.some((e=>(n.willChange||"").includes(e)))||Xn.some((e=>(n.contain||"").includes(e)))}function Kn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Jn=new Set(["html","body","#document"]);function Qn(e){return Jn.has(_n(e))}function er(e){return Dn(e).getComputedStyle(e)}function tr(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nr(e){if("html"===_n(e))return e;const t=e.assignedSlot||e.parentNode||zn(e)&&e.host||In(e);return zn(t)?t.host:t}function rr(e){const t=nr(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&Hn(t)?t:rr(t)}function or(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=rr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Dn(o);if(i){const e=ir(a);return t.concat(a,a.visualViewport||[],Hn(o)?o:[],e&&n?or(e):[])}return t.concat(o,or(o,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ar=Math.min,sr=Math.max,lr=Math.round,cr=Math.floor,ur=e=>({x:e,y:e}),dr={left:"right",right:"left",bottom:"top",top:"bottom"},pr={start:"end",end:"start"};function hr(e,t,n){return sr(e,ar(t,n))}function fr(e,t){return"function"==typeof e?e(t):e}function xr(e){return e.split("-")[0]}function gr(e){return e.split("-")[1]}function vr(e){return"x"===e?"y":"x"}function mr(e){return"y"===e?"height":"width"}const br=new Set(["top","bottom"]);function yr(e){return br.has(xr(e))?"y":"x"}function wr(e){return vr(yr(e))}function Cr(e){return e.replace(/start|end/g,(e=>pr[e]))}const jr=["left","right"],kr=["right","left"],$r=["top","bottom"],Sr=["bottom","top"];function Er(e,t,n,r){const o=gr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?kr:jr:t?jr:kr;case"left":case"right":return t?$r:Sr;default:return[]}}(xr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Cr)))),i}function Rr(e){return e.replace(/left|right|bottom|top/g,(e=>dr[e]))}function Lr(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 Or(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 Tr="data-floating-ui-focusable";function Pr(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&zn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Mr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _r(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 Dr(e){return(null==e?void 0:e.ownerDocument)||document}function Ir(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,...Ir(e,t.id,n)]))}var Vr="undefined"!=typeof document?n.useLayoutEffect:function(){};const Nr={...l}.useInsertionEffect||(e=>e());function Ar(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Nr((()=>{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 zr(e,t,n){let{reference:r,floating:o}=e;const i=yr(t),a=wr(t),s=mr(a),l=xr(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(gr(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Br(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}=fr(t,e),f=Lr(h),x=s[p?"floating"===d?"reference":"floating":d],g=Or(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=Or(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 Hr=new Set(["left","top"]);function Fr(e){const t=er(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=lr(n)!==i||lr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Zr(e){return Nn(e)?e:e.contextElement}function qr(e){const t=Zr(e);if(!An(t))return ur(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fr(t);let a=(i?lr(n.width):n.width)/r,s=(i?lr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Wr=ur(0);function Gr(e){const t=Dn(e);return Kn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Wr}function Ur(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Zr(e);let a=ur(1);t&&(r?Nn(r)&&(a=qr(r)):a=qr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Dn(e))&&t}(i,n,r)?Gr(i):ur(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=Dn(i),t=r&&Nn(r)?Dn(r):r;let n=e,o=ir(n);for(;o&&r&&t!==n;){const e=qr(o),t=o.getBoundingClientRect(),r=er(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=Dn(o),o=ir(n)}}return Or({width:u,height:d,x:l,y:c})}function Xr(e,t){const n=tr(e).scrollLeft;return t?t.left+n:Ur(In(e)).left+n}function Yr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xr(e,n),y:n.top+t.scrollTop}}const Kr=new Set(["absolute","fixed"]);function Jr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Dn(e),r=In(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=Kn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Xr(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=In(e),n=tr(e),r=e.ownerDocument.body,o=sr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=sr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xr(e);const s=-n.scrollTop;return"rtl"===er(r).direction&&(a+=sr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(In(e));else if(Nn(t))r=function(e,t){const n=Ur(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=An(e)?qr(e):ur(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=Gr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Or(r)}function Qr(e,t){const n=nr(e);return!(n===t||!Nn(n)||Qn(n))&&("fixed"===er(n).position||Qr(n,t))}function eo(e,t,n){const r=An(t),o=In(t),i="fixed"===n,a=Ur(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ur(0);function c(){l.x=Xr(o)}if(r||!r&&!i)if(("body"!==_n(t)||Hn(o))&&(s=tr(t)),r){const e=Ur(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?ur(0):Yr(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 to(e){return"static"===er(e).position}function no(e,t){if(!An(e)||"fixed"===er(e).position)return null;if(t)return t(e);let n=e.offsetParent;return In(e)===n&&(n=n.ownerDocument.body),n}function ro(e,t){const n=Dn(e);if(Wn(e))return n;if(!An(e)){let t=nr(e);for(;t&&!Qn(t);){if(Nn(t)&&!to(t))return t;t=nr(t)}return n}let r=no(e,t);for(;r&&Zn(r)&&to(r);)r=no(r,t);return r&&Qn(r)&&to(r)&&!Yn(r)?n:r||function(e){let t=nr(e);for(;An(t)&&!Qn(t);){if(Yn(t))return t;if(Wn(t))return null;t=nr(t)}return null}(e)||n}const oo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=In(r),s=!!t&&Wn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ur(1);const u=ur(0),d=An(r);if((d||!d&&!i)&&(("body"!==_n(r)||Hn(a))&&(l=tr(r)),An(r))){const e=Ur(r);c=qr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?ur(0):Yr(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:In,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Wn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=or(e,[],!1).filter((e=>Nn(e)&&"body"!==_n(e))),o=null;const i="fixed"===er(e).position;let a=i?nr(e):e;for(;Nn(a)&&!Qn(a);){const t=er(a),n=Yn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Kr.has(o.position)||Hn(a)&&!n&&Qr(e,a))?r=r.filter((e=>e!==a)):o=t,a=nr(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=Jr(t,n,o);return e.top=sr(r.top,e.top),e.right=ar(r.right,e.right),e.bottom=ar(r.bottom,e.bottom),e.left=sr(r.left,e.left),e}),Jr(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ro,getElementRects:async function(e){const t=this.getOffsetParent||ro,n=this.getDimensions,r=await n(e.floating);return{reference:eo(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}=Fr(e);return{width:t,height:n}},getScale:qr,isElement:Nn,isRTL:function(e){return"rtl"===er(e).direction}};function io(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ao(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=Zr(e),u=o||i?[...c?or(c):[],...or(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=In(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:-cr(d)+"px "+-cr(o.clientWidth-(u+p))+"px "+-cr(o.clientHeight-(d+h))+"px "+-cr(u)+"px",threshold:sr(0,ar(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||io(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?Ur(e):null;return l&&function t(){const r=Ur(e);x&&!io(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 so=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=xr(n),s=gr(n),l="y"===yr(n),c=Hr.has(a)?-1:1,u=i&&l?-1:1,d=fr(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}}}}},lo=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}=fr(e,t),c={x:n,y:r},u=await Br(t,l),d=yr(xr(o)),p=vr(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=hr(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=hr(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}}}}}},co=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}=fr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=xr(o),m=yr(s),b=xr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!x?[Rr(s)]:function(e){const t=Rr(e);return[Cr(e),t,Cr(t)]}(s)),C="none"!==f;!p&&C&&w.push(...Er(s,x,f,y));const j=[s,...w],k=await Br(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=gr(e),o=wr(e),i=mr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Rr(a)),[a,Rr(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!==yr(t))||S.every((e=>yr(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=yr(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{}}}},uo=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}=fr(e,t)||{};if(null==c)return{};const d=Lr(u),p={x:n,y:r},h=wr(o),f=mr(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=ar(d[v],$),E=ar(d[m],$),R=S,L=j-x[f]-E,O=j/2-x[f]/2+k,T=hr(R,O,L),P=!l.arrow&&null!=gr(o)&&O!==T&&i.reference[f]/2-(O<R?S:E)-x[f]/2<0,M=P?O<R?O-R:O-L:0;return{[h]:p[h]+M,data:{[h]:T,centerOffset:O-T-M,...P&&{alignmentOffset:M}},reset:P}}}),po=(e,t,n)=>{const r=new Map,o={platform:oo,...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}=zr(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}=zr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var ho="undefined"!=typeof document?n.useLayoutEffect:function(){};function fo(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(!fo(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)&&!fo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function xo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function go(e,t){const n=xo(e);return Math.round(t*n)/n}function vo(e){const t=l.useRef(e);return ho((()=>{t.current=e})),t}const mo=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?uo({element:n.current,padding:r}).fn(t):{}:n?uo({element:n,padding:r}).fn(t):{};var o}}),bo=(e,t)=>({...so(e),options:[e,t]}),yo=(e,t)=>({...lo(e),options:[e,t]}),wo=(e,t)=>({...mo(e),options:[e,t]}),Co="data-floating-ui-focusable",jo="active",ko="selected",$o={...l};let So=!1,Eo=0;const Ro=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Eo++;const Lo=$o.useId||function(){const[e,t]=l.useState((()=>So?Ro():void 0));return Vr((()=>{null==e&&t(Ro())}),[]),l.useEffect((()=>{So=!0}),[]),e};let Oo;"production"!==process.env.NODE_ENV&&(Oo=new Set);const To=l.createContext(null),Po=l.createContext(null),Mo=()=>{var e;return(null==(e=l.useContext(To))?void 0:e.id)||null},_o=()=>l.useContext(Po);const Do={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Io={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Vo=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 No(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Lo(),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!=Mo();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Nn(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=Oo)&&e.has(o)||(null==(i=Oo)||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=Ar(((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 Ao(e){void 0===e&&(e={});const{nodeId:t}=e,n=No({...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=_o();Vr((()=>{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);fo(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=vo(u),L=vo(o),O=vo(d),T=l.useCallback((()=>{if(!k.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};L.current&&(e.platform=L.current),po(k.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};P.current&&!fo(S.current,t)&&(S.current=t,c.flushSync((()=>{h(t)})))}))}),[f,t,n,L,O]);ho((()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const P=l.useRef(!1);ho((()=>(P.current=!0,()=>{P.current=!1})),[]),ho((()=>{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 M=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=go(_.floating,p.x),r=go(_.floating,p.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...xo(_.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:M,elements:_,floatingStyles:D})),[p,T,M,_,D])}({...e,elements:{...o,...s&&{reference:s}}}),x=l.useCallback((e=>{const t=Nn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(Nn(e)||null===e)&&(p.current=e,a(e)),(Nn(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Nn(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 Vr((()=>{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 zo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[jo]:t,[ko]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Co]:""},...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&&[jo,ko].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 Bo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ho(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=Lo(),d=(null==(n=i.domReference)?void 0:n.id)||u,p=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(Tr)?t:t.querySelector("["+Tr+"]")||t:null)?void 0:e.id)||a}),[i.floating,a]),h=null!=(r=Bo.get(c))?r:c,f=null!=Mo(),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 Fo=r.css`
|
|
1778
1800
|
height: auto;
|
|
1779
1801
|
max-height: 512px;
|
|
1780
1802
|
width: 100%;
|
|
@@ -1788,7 +1810,7 @@
|
|
|
1788
1810
|
0px 4px 6px -4px #0000001a,
|
|
1789
1811
|
0px 10px 15px -3px #0000001a;
|
|
1790
1812
|
outline: 0;
|
|
1791
|
-
`,
|
|
1813
|
+
`,Zo=r.css`
|
|
1792
1814
|
display: flex;
|
|
1793
1815
|
align-items: flex-start;
|
|
1794
1816
|
justify-content: space-between;
|
|
@@ -1800,7 +1822,7 @@
|
|
|
1800
1822
|
.ds-map-pop-up-close-button {
|
|
1801
1823
|
margin-top: 4px;
|
|
1802
1824
|
}
|
|
1803
|
-
`,
|
|
1825
|
+
`,qo=r.css`
|
|
1804
1826
|
height: 100%;
|
|
1805
1827
|
max-height: 400px;
|
|
1806
1828
|
overflow-y: auto;
|
|
@@ -1808,11 +1830,11 @@
|
|
|
1808
1830
|
&:focus-visible {
|
|
1809
1831
|
outline-color: ${h("primary",700)};
|
|
1810
1832
|
}
|
|
1811
|
-
`,
|
|
1833
|
+
`,Wo=r.css`
|
|
1812
1834
|
padding: 8px 12px;
|
|
1813
1835
|
border-top: 1px solid ${h("neutral",300)};
|
|
1814
1836
|
min-height: 44px;
|
|
1815
|
-
`,
|
|
1837
|
+
`,Go=(e,t,n,o,i,a)=>r.css`
|
|
1816
1838
|
height: ${e}px;
|
|
1817
1839
|
width: ${t}px;
|
|
1818
1840
|
position: absolute;
|
|
@@ -1821,14 +1843,14 @@
|
|
|
1821
1843
|
${`${i}: -${a-1}px`};
|
|
1822
1844
|
background-color: ${h("neutral",100)};
|
|
1823
1845
|
border: 1px solid ${h("neutral",300)};
|
|
1824
|
-
`,
|
|
1846
|
+
`,Uo=r.css`
|
|
1825
1847
|
background-color: ${h("neutral",100)};
|
|
1826
|
-
`,
|
|
1848
|
+
`,Xo=r.css`
|
|
1827
1849
|
padding: 16px 16px 0px 16px;
|
|
1828
1850
|
&:focus-visible {
|
|
1829
1851
|
outline-color: ${h("primary",700)};
|
|
1830
1852
|
}
|
|
1831
|
-
`,
|
|
1853
|
+
`,Yo=r.css`
|
|
1832
1854
|
font-size: 16px;
|
|
1833
1855
|
font-weight: 700;
|
|
1834
1856
|
line-height: 24px;
|
|
@@ -1838,14 +1860,14 @@
|
|
|
1838
1860
|
align-items: center;
|
|
1839
1861
|
text-align: left;
|
|
1840
1862
|
gap: 10px;
|
|
1841
|
-
`,
|
|
1863
|
+
`,Ko=r.css`
|
|
1842
1864
|
font-size: 12px;
|
|
1843
1865
|
font-weight: 400;
|
|
1844
1866
|
line-height: 16px;
|
|
1845
1867
|
text-align: left;
|
|
1846
1868
|
color: ${h("neutral",700)};
|
|
1847
1869
|
margin-bottom: 8px;
|
|
1848
|
-
`,
|
|
1870
|
+
`,Jo=r.css`
|
|
1849
1871
|
width: 100%;
|
|
1850
1872
|
padding: 16px 0;
|
|
1851
1873
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
@@ -1853,32 +1875,32 @@
|
|
|
1853
1875
|
&:last-of-type {
|
|
1854
1876
|
border-bottom: none;
|
|
1855
1877
|
}
|
|
1856
|
-
`,
|
|
1878
|
+
`,Qo=r.css`
|
|
1857
1879
|
display: flex;
|
|
1858
1880
|
align-items: flex-start;
|
|
1859
1881
|
justify-content: space-between;
|
|
1860
|
-
`,
|
|
1882
|
+
`,ei=r.css`
|
|
1861
1883
|
display: flex;
|
|
1862
1884
|
flex-direction: column;
|
|
1863
|
-
`,
|
|
1885
|
+
`,ti=e=>r.css`
|
|
1864
1886
|
font-size: 16px;
|
|
1865
1887
|
font-weight: 400;
|
|
1866
1888
|
line-height: 24px;
|
|
1867
1889
|
text-align: left;
|
|
1868
1890
|
color: ${h("neutral",e?500:800)};
|
|
1869
|
-
`,
|
|
1891
|
+
`,ni=e=>r.css`
|
|
1870
1892
|
font-size: 14px;
|
|
1871
1893
|
font-weight: 400;
|
|
1872
1894
|
line-height: 20px;
|
|
1873
1895
|
text-align: left;
|
|
1874
1896
|
color: ${h("neutral",e?500:700)};
|
|
1875
|
-
`,
|
|
1897
|
+
`,ri=({name:n,label:r,caption:o,showInfoButton:i=!0,infoButtonLabel:a="About data",variant:s="switch",disabled:l,onInfoClick:c,isDefaultSelected:u=!1,onChange:d})=>{const p="switch"===s;return t.jsxs("div",{css:Jo,children:[p?t.jsxs("div",{css:Qo,children:[t.jsxs("div",{css:ei,children:[t.jsx("p",{css:ti(l),"aria-label":r,"aria-disabled":l,children:r}),t.jsx("p",{"aria-label":o,css:ni(l),children:o})]}),t.jsx(rt,{"aria-label":`${r}, ${o}`,name:n,disabled:l,defaultChecked:u,onChange:d,role:"switch"})]}):t.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[t.jsx(qe,{value:n,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:r}),t.jsx("p",{style:{marginLeft:"28px"},css:ni(l),children:o})]}),i?t.jsx(e.Box,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:p?0:"28px",children:t.jsx(b,{variant:"secondary",label:a,rightIcon:t.jsx(k,{}),size:"small",onClick:c,disabled:l})}):null]})},oi=r.css`
|
|
1876
1898
|
margin-bottom: 16px;
|
|
1877
1899
|
border: 1px solid ${h("neutral",300)};
|
|
1878
1900
|
border-radius: 4px;
|
|
1879
1901
|
box-shadow: 0px 1px 2px 0px #0000000d;
|
|
1880
1902
|
background-color: ${h("neutral",100)};
|
|
1881
|
-
`,
|
|
1903
|
+
`,ii=r.css`
|
|
1882
1904
|
padding: 6px 8px;
|
|
1883
1905
|
align-items: center;
|
|
1884
1906
|
background-color: ${h("neutral",100)};
|
|
@@ -1901,12 +1923,12 @@
|
|
|
1901
1923
|
0 0 0 2px ${h("neutral",100)},
|
|
1902
1924
|
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1903
1925
|
}
|
|
1904
|
-
`,
|
|
1926
|
+
`,ai=r.css`
|
|
1905
1927
|
font-size: 12px;
|
|
1906
1928
|
font-weight: 700;
|
|
1907
1929
|
line-height: 16px;
|
|
1908
1930
|
color: ${h("neutral",800)};
|
|
1909
|
-
`,
|
|
1931
|
+
`,si=r.css`
|
|
1910
1932
|
padding: 12px 8px;
|
|
1911
1933
|
display: flex;
|
|
1912
1934
|
flex-direction: column;
|
|
@@ -1922,14 +1944,14 @@
|
|
|
1922
1944
|
margin-bottom: 0px;
|
|
1923
1945
|
}
|
|
1924
1946
|
}
|
|
1925
|
-
`,
|
|
1947
|
+
`,li=r.css`
|
|
1926
1948
|
padding: 12px;
|
|
1927
1949
|
padding-bottom: 20px;
|
|
1928
1950
|
display: flex;
|
|
1929
1951
|
gap: 12px;
|
|
1930
1952
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
1931
1953
|
background-color: ${h("neutral",100)};
|
|
1932
|
-
`,
|
|
1954
|
+
`,ci=r.css`
|
|
1933
1955
|
display: flex;
|
|
1934
1956
|
flex-direction: column;
|
|
1935
1957
|
|
|
@@ -1938,44 +1960,44 @@
|
|
|
1938
1960
|
fill: ${h("neutral",700)} !important;
|
|
1939
1961
|
}
|
|
1940
1962
|
}
|
|
1941
|
-
`,
|
|
1963
|
+
`,ui=r.css`
|
|
1942
1964
|
display: flex;
|
|
1943
1965
|
align-items: flex-start;
|
|
1944
1966
|
justify-content: space-between;
|
|
1945
1967
|
gap: 12px;
|
|
1946
1968
|
margin-bottom: 16px;
|
|
1947
|
-
`,
|
|
1969
|
+
`,di=r.css`
|
|
1948
1970
|
font-size: 16px;
|
|
1949
1971
|
line-height: 24px;
|
|
1950
1972
|
font-weight: 400;
|
|
1951
1973
|
text-align: left;
|
|
1952
1974
|
color: ${h("neutral",900)};
|
|
1953
|
-
`,
|
|
1975
|
+
`,pi=r.css`
|
|
1954
1976
|
font-size: 14px;
|
|
1955
1977
|
line-height: 20px;
|
|
1956
1978
|
font-weight: 400;
|
|
1957
1979
|
text-align: left;
|
|
1958
1980
|
color: ${h("neutral",700)};
|
|
1959
|
-
`,
|
|
1981
|
+
`,hi=r.css`
|
|
1960
1982
|
display: flex;
|
|
1961
1983
|
justify-content: space-between;
|
|
1962
1984
|
|
|
1963
1985
|
button {
|
|
1964
1986
|
width: 46%;
|
|
1965
1987
|
}
|
|
1966
|
-
`,
|
|
1988
|
+
`,fi=r.css`
|
|
1967
1989
|
width: 234px;
|
|
1968
1990
|
border: 1px solid ${h("neutral",600)};
|
|
1969
1991
|
border-radius: 4px;
|
|
1970
|
-
`,
|
|
1992
|
+
`,xi=r.css`
|
|
1971
1993
|
padding: 12px;
|
|
1972
|
-
`,
|
|
1994
|
+
`,gi=r.css`
|
|
1973
1995
|
font-size: 14px;
|
|
1974
1996
|
line-height: 20px;
|
|
1975
1997
|
font-weight: 400;
|
|
1976
1998
|
text-align: left;
|
|
1977
1999
|
color: ${h("neutral",900)};
|
|
1978
|
-
`,
|
|
2000
|
+
`,vi=r.css`
|
|
1979
2001
|
display: flex;
|
|
1980
2002
|
align-items: center;
|
|
1981
2003
|
gap: 12px;
|
|
@@ -1996,20 +2018,20 @@
|
|
|
1996
2018
|
margin-top: 18px;
|
|
1997
2019
|
width: 100%;
|
|
1998
2020
|
}
|
|
1999
|
-
`,
|
|
2021
|
+
`,mi=({defaultValue:r,onOpacityChanged:o})=>{const[i,a]=n.useState(r);return t.jsxs(e.Popover.Root,{positioning:{placement:"bottom-end"},children:[t.jsx(e.Popover.Trigger,{asChild:!0,children:t.jsx(b,{label:"Opacity",size:"small",variant:"secondary",leftIcon:t.jsx(k,{})})}),t.jsx(e.Popover.Positioner,{children:t.jsx(e.Popover.Content,{css:fi,children:t.jsxs(e.Popover.Body,{css:xi,children:[t.jsx("p",{css:gi,children:"Opacity"}),t.jsxs("div",{css:vi,children:[t.jsxs("div",{style:{position:"relative"},children:[t.jsx(kt,{"aria-label":"Opacity",min:"0",max:"100",value:i,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,a(n),o&&o(n)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),t.jsx("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),t.jsx(tt,{min:0,max:100,value:[i],onValueChangeEnd:({value:e})=>{a(e[0]),o&&o(e[0])}})]})]})})})]})},bi=e=>r.css`
|
|
2000
2022
|
width: 20px;
|
|
2001
2023
|
height: 20px;
|
|
2002
2024
|
border-radius: 50%;
|
|
2003
2025
|
background-color: ${e};
|
|
2004
2026
|
border: 1px solid ${h("neutral",400)};
|
|
2005
|
-
`,
|
|
2027
|
+
`,yi=e=>r.css`
|
|
2006
2028
|
width: 20px;
|
|
2007
2029
|
height: 8px;
|
|
2008
2030
|
border-radius: 2px;
|
|
2009
2031
|
background-color: ${e};
|
|
2010
2032
|
border: 1px solid ${h("neutral",400)};
|
|
2011
2033
|
margin-top: 6px;
|
|
2012
|
-
`,
|
|
2034
|
+
`,wi=e=>r.css`
|
|
2013
2035
|
width: 20px;
|
|
2014
2036
|
height: 20px;
|
|
2015
2037
|
border-radius: 50%;
|
|
@@ -2022,26 +2044,26 @@
|
|
|
2022
2044
|
width: 10px;
|
|
2023
2045
|
height: 10px;
|
|
2024
2046
|
}
|
|
2025
|
-
`,
|
|
2047
|
+
`,Ci=r.css`
|
|
2026
2048
|
width: 100%;
|
|
2027
2049
|
display: flex;
|
|
2028
2050
|
justify-content: space-between;
|
|
2029
2051
|
gap: 8px;
|
|
2030
2052
|
margin-bottom: 16px;
|
|
2031
|
-
`,
|
|
2053
|
+
`,ji=r.css`
|
|
2032
2054
|
display: flex;
|
|
2033
2055
|
gap: 8px;
|
|
2034
|
-
`,
|
|
2056
|
+
`,ki=r.css`
|
|
2035
2057
|
font-size: 14px;
|
|
2036
2058
|
line-height: 20px;
|
|
2037
2059
|
font-weight: 400;
|
|
2038
2060
|
color: ${h("neutral",800)};
|
|
2039
|
-
|
|
2061
|
+
`,$i=r.css`
|
|
2040
2062
|
font-size: 12px;
|
|
2041
2063
|
line-height: 16px;
|
|
2042
2064
|
font-weight: 400;
|
|
2043
2065
|
color: ${h("neutral",700)};
|
|
2044
|
-
`,
|
|
2066
|
+
`,Si=r.css`
|
|
2045
2067
|
button {
|
|
2046
2068
|
height: 25px;
|
|
2047
2069
|
font-size: 12px;
|
|
@@ -2050,12 +2072,12 @@
|
|
|
2050
2072
|
color: ${h("neutral",600)};
|
|
2051
2073
|
padding: 0 10px;
|
|
2052
2074
|
}
|
|
2053
|
-
|
|
2075
|
+
`,Ei=r.css`
|
|
2054
2076
|
width: 100%;
|
|
2055
2077
|
display: flex;
|
|
2056
2078
|
flex-direction: column;
|
|
2057
2079
|
margin-bottom: 16px;
|
|
2058
|
-
`,
|
|
2080
|
+
`,Ri=r.css`
|
|
2059
2081
|
height: 20px;
|
|
2060
2082
|
width: 100%;
|
|
2061
2083
|
margin-bottom: 8px;
|
|
@@ -2073,27 +2095,27 @@
|
|
|
2073
2095
|
border-top-right-radius: 3px;
|
|
2074
2096
|
border-bottom-right-radius: 3px;
|
|
2075
2097
|
}
|
|
2076
|
-
`,
|
|
2098
|
+
`,Li=r.css`
|
|
2077
2099
|
display: flex;
|
|
2078
2100
|
justify-content: space-between;
|
|
2079
2101
|
align-items: flex-start;
|
|
2080
|
-
`,
|
|
2102
|
+
`,Oi=r.css`
|
|
2081
2103
|
width: 100%;
|
|
2082
2104
|
font-size: 12px;
|
|
2083
2105
|
line-height: 16px;
|
|
2084
2106
|
font-weight: 400;
|
|
2085
2107
|
color: ${h("neutral",800)};
|
|
2086
2108
|
text-align: center;
|
|
2087
|
-
`,
|
|
2109
|
+
`,Ti=r.css`
|
|
2088
2110
|
font-size: 12px;
|
|
2089
2111
|
line-height: 16px;
|
|
2090
2112
|
font-weight: 400;
|
|
2091
2113
|
color: ${h("neutral",700)};
|
|
2092
2114
|
text-align: center;
|
|
2093
|
-
`,
|
|
2115
|
+
`,Pi=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(", ")})`},Mi=r.css`
|
|
2094
2116
|
display: flex;
|
|
2095
2117
|
flex-direction: column;
|
|
2096
|
-
`,
|
|
2118
|
+
`,_i=r.css`
|
|
2097
2119
|
display: flex;
|
|
2098
2120
|
gap: 16px;
|
|
2099
2121
|
align-items: center;
|
|
@@ -2102,41 +2124,41 @@
|
|
|
2102
2124
|
.ds-select-input-container {
|
|
2103
2125
|
margin-bottom: 0px;
|
|
2104
2126
|
}
|
|
2105
|
-
`,
|
|
2127
|
+
`,Di=r.css`
|
|
2106
2128
|
font-size: 18px;
|
|
2107
2129
|
line-height: 28px;
|
|
2108
2130
|
font-weight: 400;
|
|
2109
2131
|
color: ${h("neutral",700)};
|
|
2110
|
-
`,
|
|
2132
|
+
`,Ii=({pageSize:e,currentPage:n,totalItems:r,onPageSizeChange:o,showItemCountText:i})=>t.jsxs("div",{css:Mi,children:[t.jsxs("div",{css:_i,children:[t.jsx("div",{style:{width:"80px"},children:t.jsx(Yt,{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})}),t.jsx("p",{css:Di,children:"Per Page"})]}),i?t.jsx("p",{css:Di,children:(()=>{const t=e,o=(n-1)*t+1;return`Showing ${o}-${Math.min(o+t-1,r)} of ${r}`})()}):null]}),Vi=e=>r.css`
|
|
2111
2133
|
border: 1px solid ${h("neutral",300)};
|
|
2112
2134
|
${e?"border: none;":""}
|
|
2113
|
-
`,
|
|
2135
|
+
`,Ni=e=>r.css`
|
|
2114
2136
|
color: ${h("neutral",e?400:700)};
|
|
2115
2137
|
line-height: 20px;
|
|
2116
2138
|
white-space: nowrap;
|
|
2117
2139
|
overflow: hidden;
|
|
2118
2140
|
text-overflow: ellipsis;
|
|
2119
|
-
`,
|
|
2141
|
+
`,Ai=r.css`
|
|
2120
2142
|
font-weight: 400;
|
|
2121
2143
|
color: ${h("neutral",700)};
|
|
2122
2144
|
white-space: nowrap;
|
|
2123
2145
|
overflow: hidden;
|
|
2124
2146
|
text-overflow: ellipsis;
|
|
2125
|
-
`,
|
|
2147
|
+
`,zi=r.css`
|
|
2126
2148
|
color: ${h("neutral",700)};
|
|
2127
2149
|
text-align: right;
|
|
2128
2150
|
font-weight: 700;
|
|
2129
2151
|
white-space: nowrap;
|
|
2130
2152
|
overflow: hidden;
|
|
2131
2153
|
text-overflow: ellipsis;
|
|
2132
|
-
`,
|
|
2154
|
+
`,Bi=e=>r.css`
|
|
2133
2155
|
width: 16px;
|
|
2134
2156
|
height: 16px;
|
|
2135
2157
|
|
|
2136
2158
|
path {
|
|
2137
2159
|
fill: ${h("neutral",e?400:700)};
|
|
2138
2160
|
}
|
|
2139
|
-
`,
|
|
2161
|
+
`,Hi=r.css`
|
|
2140
2162
|
display: flex;
|
|
2141
2163
|
align-items: center;
|
|
2142
2164
|
justify-content: space-between;
|
|
@@ -2145,7 +2167,7 @@
|
|
|
2145
2167
|
border-bottom: 1px solid ${h("neutral",200)};
|
|
2146
2168
|
width: 100%;
|
|
2147
2169
|
text-align: left;
|
|
2148
|
-
`,
|
|
2170
|
+
`,Fi=r.css`
|
|
2149
2171
|
display: flex;
|
|
2150
2172
|
align-items: center;
|
|
2151
2173
|
justify-content: space-between;
|
|
@@ -2178,18 +2200,18 @@
|
|
|
2178
2200
|
&:disabled {
|
|
2179
2201
|
background-color: ${h("neutral",200)};
|
|
2180
2202
|
}
|
|
2181
|
-
`,
|
|
2203
|
+
`,Zi=({id:n,label:r,caption:o,icon:i,value:a,variant:s="data",onItemClick:l,isExpanded:c=!1,ariaLabel:u,disabled:d=!1,isHighlighted:p=!1})=>{const f=("navigation"===s||"select"===s)&&!!l,x=f?e.chakra.button:e.chakra.div,g=u||("data"===s&&a?`${r}, ${a}`:r);return t.jsxs(x,{id:n,css:["data"===s?Hi:Fi,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:d,"aria-selected":p,children:[t.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",children:[i,t.jsxs(e.Box,{flex:"1",minWidth:0,children:[t.jsx(e.Text,{fontWeight:"data"===s?"400":"700",css:Ni(d),children:r}),o&&t.jsx(e.Text,{css:Ai,children:o})]})]}),"data"===s&&a&&t.jsx(e.Text,{css:zi,children:a}),"navigation"===s&&t.jsx(e.Icon,{as:S,boxSize:4,"aria-hidden":"true",css:Bi(d)})]})},qi=({items:n,noBorder:r,highlightedIndex:o})=>t.jsx(e.Box,{css:Vi(r),children:n.map(((e,n)=>t.jsx(Zi,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick,isHighlighted:n===o},e.id??e.label)))}),Wi=r.css`
|
|
2182
2204
|
svg {
|
|
2183
2205
|
path {
|
|
2184
2206
|
fill: ${h("primary",500)};
|
|
2185
2207
|
}
|
|
2186
2208
|
}
|
|
2187
|
-
`,
|
|
2209
|
+
`,Gi=r.css`
|
|
2188
2210
|
font-size: 16px;
|
|
2189
2211
|
line-height: 24px;
|
|
2190
2212
|
font-weight: 700;
|
|
2191
2213
|
color: ${h("neutral",900)};
|
|
2192
|
-
`,
|
|
2214
|
+
`,Ui=r.css`
|
|
2193
2215
|
span {
|
|
2194
2216
|
height: 20px;
|
|
2195
2217
|
width: 20px;
|
|
@@ -2199,7 +2221,7 @@
|
|
|
2199
2221
|
background-color: transparent;
|
|
2200
2222
|
}
|
|
2201
2223
|
}
|
|
2202
|
-
`,
|
|
2224
|
+
`,Xi=r.css`
|
|
2203
2225
|
font-size: 16px;
|
|
2204
2226
|
line-height: 24px;
|
|
2205
2227
|
font-weight: 400;
|
|
@@ -2209,11 +2231,11 @@
|
|
|
2209
2231
|
color: ${h("neutral",900)};
|
|
2210
2232
|
font-weight: 700;
|
|
2211
2233
|
}
|
|
2212
|
-
`,
|
|
2234
|
+
`,Yi=({totalItems:n,pageSize:r,currentPage:o,variant:i="default",onPageChange:a})=>{const s="compact"===i||"compact-with-buttons"===i,l="compact-with-buttons"===i;return t.jsx("div",{"aria-label":"Pagination",children:t.jsx(e.Pagination.Root,{count:n,pageSize:r,defaultPage:o,onPageChange:e=>a&&a(e.page),siblingCount:1,children:t.jsxs(e.ButtonGroup,{gap:"2",size:"sm",variant:"ghost",css:Ui,children:[t.jsx(e.Pagination.PrevTrigger,{asChild:!0,children:l?t.jsx(b,{variant:"secondary",label:"Previous",size:"small",leftIcon:t.jsx($,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):t.jsx(ae,{css:Wi,style:{rotate:"90deg"},icon:t.jsx($,{}),"aria-label":"Previous page"})}),s?t.jsx(e.Pagination.PageText,{css:Gi}):t.jsx(e.Pagination.Items,{render:e=>t.jsx(ae,{css:Xi,"aria-label":`Page ${e.value}`,icon:t.jsx("p",{children:e.value})})}),t.jsx(e.Pagination.NextTrigger,{asChild:!0,children:l?t.jsx(b,{variant:"secondary",label:"Next",size:"small",rightIcon:t.jsx($,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):t.jsx(ae,{css:Wi,style:{rotate:"270deg"},icon:t.jsx($,{}),"aria-label":"Next page"})})]})})})},Ki=e=>r.css`
|
|
2213
2235
|
border: ${"full-width"===e?"none":`1px solid ${h("neutral",300)}`};
|
|
2214
2236
|
border-radius: 2px;
|
|
2215
2237
|
box-shadow: ${"full-width"===e?"none":`0 0 0 1px ${h("neutral",300)}`};
|
|
2216
|
-
`,
|
|
2238
|
+
`,Ji=e=>r.css`
|
|
2217
2239
|
tr {
|
|
2218
2240
|
background-color: ${h("neutral","full-width"===e?100:200)};
|
|
2219
2241
|
|
|
@@ -2221,14 +2243,14 @@
|
|
|
2221
2243
|
border-color: ${h("neutral",300)};
|
|
2222
2244
|
}
|
|
2223
2245
|
}
|
|
2224
|
-
`,
|
|
2246
|
+
`,Qi=r.css`
|
|
2225
2247
|
font-size: 16px;
|
|
2226
2248
|
line-height: 24px;
|
|
2227
2249
|
font-weight: 700;
|
|
2228
2250
|
color: ${h("neutral",800)};
|
|
2229
2251
|
display: flex;
|
|
2230
2252
|
align-items: center;
|
|
2231
|
-
`,
|
|
2253
|
+
`,ea=r.css`
|
|
2232
2254
|
height: 24px;
|
|
2233
2255
|
width: 10px;
|
|
2234
2256
|
display: flex;
|
|
@@ -2250,19 +2272,19 @@
|
|
|
2250
2272
|
}
|
|
2251
2273
|
}
|
|
2252
2274
|
}
|
|
2253
|
-
`,
|
|
2275
|
+
`,ta=e=>r.css`
|
|
2254
2276
|
svg {
|
|
2255
2277
|
path {
|
|
2256
2278
|
fill: ${e?h("primary",600):h("accessible","controls-on-neutral-lights")} !important;
|
|
2257
2279
|
}
|
|
2258
2280
|
}
|
|
2259
|
-
`,
|
|
2281
|
+
`,na=r.css`
|
|
2260
2282
|
margin-top: 12px;
|
|
2261
2283
|
display: flex;
|
|
2262
2284
|
justify-content: space-between;
|
|
2263
|
-
`,
|
|
2285
|
+
`,ra=r.css`
|
|
2264
2286
|
margin-top: 9px;
|
|
2265
|
-
`,
|
|
2287
|
+
`,oa=r.css`
|
|
2266
2288
|
tr {
|
|
2267
2289
|
height: 48px;
|
|
2268
2290
|
|
|
@@ -2274,14 +2296,14 @@
|
|
|
2274
2296
|
background-color: ${h("neutral",200)};
|
|
2275
2297
|
}
|
|
2276
2298
|
}
|
|
2277
|
-
`,
|
|
2299
|
+
`,ia=r.css`
|
|
2278
2300
|
height: 480px;
|
|
2279
2301
|
display: flex;
|
|
2280
2302
|
align-items: center;
|
|
2281
2303
|
justify-content: center;
|
|
2282
|
-
`,
|
|
2304
|
+
`,aa=e.Table.Row,sa=e.Table.Cell,la=r.css`
|
|
2283
2305
|
border: 1px solid ${h("neutral",300)};
|
|
2284
|
-
`,
|
|
2306
|
+
`,ca=r.css`
|
|
2285
2307
|
padding: 16px;
|
|
2286
2308
|
cursor: pointer;
|
|
2287
2309
|
&:focus-visible {
|
|
@@ -2296,9 +2318,9 @@
|
|
|
2296
2318
|
transparent
|
|
2297
2319
|
);
|
|
2298
2320
|
}
|
|
2299
|
-
`,
|
|
2321
|
+
`,ua=r.css`
|
|
2300
2322
|
border: 1px solid ${h("neutral",300)};
|
|
2301
|
-
`,
|
|
2323
|
+
`,da=r.css`
|
|
2302
2324
|
padding: 16px;
|
|
2303
2325
|
cursor: pointer;
|
|
2304
2326
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
@@ -2318,7 +2340,7 @@
|
|
|
2318
2340
|
transparent
|
|
2319
2341
|
);
|
|
2320
2342
|
}
|
|
2321
|
-
`,
|
|
2343
|
+
`,pa=r.css`
|
|
2322
2344
|
.item-content-open > * {
|
|
2323
2345
|
max-height: auto;
|
|
2324
2346
|
|
|
@@ -2339,9 +2361,9 @@
|
|
|
2339
2361
|
padding-bottom 0.2s ease,
|
|
2340
2362
|
padding-top 0.2s ease;
|
|
2341
2363
|
}
|
|
2342
|
-
`,
|
|
2364
|
+
`,ha=r.css`
|
|
2343
2365
|
border-top: 1px solid ${h("neutral",300)};
|
|
2344
|
-
`;function
|
|
2366
|
+
`;function fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xa(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ga,va={exports:{}},ma={},ba={exports:{}},ya={exports:{}},wa={};var Ca,ja,ka,$a,Sa,Ea,Ra,La,Oa,Ta,Pa,Ma,_a,Da={};
|
|
2345
2367
|
/** @license React v16.13.1
|
|
2346
2368
|
* react-is.development.js
|
|
2347
2369
|
*
|
|
@@ -2349,7 +2371,7 @@
|
|
|
2349
2371
|
*
|
|
2350
2372
|
* This source code is licensed under the MIT license found in the
|
|
2351
2373
|
* LICENSE file in the root directory of this source tree.
|
|
2352
|
-
*/function _a(){return wa||(wa=1,"production"===process.env.NODE_ENV?ma.exports=function(){if(fa)return ba;fa=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 ba.AsyncMode=l,ba.ConcurrentMode=c,ba.ContextConsumer=s,ba.ContextProvider=a,ba.Element=t,ba.ForwardRef=u,ba.Fragment=r,ba.Lazy=f,ba.Memo=h,ba.Portal=n,ba.Profiler=i,ba.StrictMode=o,ba.Suspense=d,ba.isAsyncMode=function(e){return y(e)||b(e)===l},ba.isConcurrentMode=y,ba.isContextConsumer=function(e){return b(e)===s},ba.isContextProvider=function(e){return b(e)===a},ba.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ba.isForwardRef=function(e){return b(e)===u},ba.isFragment=function(e){return b(e)===r},ba.isLazy=function(e){return b(e)===f},ba.isMemo=function(e){return b(e)===h},ba.isPortal=function(e){return b(e)===n},ba.isProfiler=function(e){return b(e)===i},ba.isStrictMode=function(e){return b(e)===o},ba.isSuspense=function(e){return b(e)===d},ba.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)},ba.typeOf=b,ba}():ma.exports=(ya||(ya=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,P=d,M=!1;function _(e){return b(e)===c}Ma.AsyncMode=y,Ma.ConcurrentMode=w,Ma.ContextConsumer=C,Ma.ContextProvider=j,Ma.Element=k,Ma.ForwardRef=$,Ma.Fragment=S,Ma.Lazy=E,Ma.Memo=R,Ma.Portal=L,Ma.Profiler=O,Ma.StrictMode=T,Ma.Suspense=P,Ma.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)||b(e)===l},Ma.isConcurrentMode=_,Ma.isContextConsumer=function(e){return b(e)===s},Ma.isContextProvider=function(e){return b(e)===a},Ma.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ma.isForwardRef=function(e){return b(e)===u},Ma.isFragment=function(e){return b(e)===r},Ma.isLazy=function(e){return b(e)===f},Ma.isMemo=function(e){return b(e)===h},Ma.isPortal=function(e){return b(e)===n},Ma.isProfiler=function(e){return b(e)===i},Ma.isStrictMode=function(e){return b(e)===o},Ma.isSuspense=function(e){return b(e)===d},Ma.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)},Ma.typeOf=b}()),Ma)),ma.exports}function Da(){if(ja)return Ca;ja=1;return Ca="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ia(){return $a?ka:($a=1,ka=Function.call.bind(Object.prototype.hasOwnProperty))}function Va(){if(La)return Ra;La=1;var e=_a(),t=a,n=Da(),r=Ia(),o=function(){if(Ea)return Sa;Ea=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Da(),n={},r=Ia();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={})},Sa=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){}}),Ra=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},Ra}function Na(){if(Pa)return va.exports;if(Pa=1,"production"!==process.env.NODE_ENV){var e=_a();va.exports=Va()(e.isElement,!0)}else va.exports=function(){if(Ta)return Oa;Ta=1;var e=Da();function t(){}function n(){}return n.resetWarningCache=t,Oa=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 va.exports}function Aa(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Aa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function za(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}var Ba,Ha=ha(Object.freeze({__proto__:null,clsx:za,default:za})),Fa={},Za={};function Wa(){if(Ba)return Za;return Ba=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},Za.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]},Za.int=function(e){return parseInt(e,10)},Za.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Za.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Za}var qa,Ga,Ua={};function Xa(){if(Ga)return Fa;Ga=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.addClassName=a,Fa.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},Fa.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")},Fa.createCSSTransform=function(e,n){const r=i(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Fa.createSVGTransform=function(e,t){return i(e,t,"")},Fa.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))},Fa.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},Fa.getTranslation=i,Fa.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},Fa.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},Fa.matchesSelector=o,Fa.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},Fa.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}},Fa.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},Fa.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},Fa.removeClassName=s,Fa.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},Fa.removeUserSelectStyles=function(e){if(!e)return;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){}};var e=Wa(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(function(){if(qa)return Ua;qa=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.browserPrefixToKey=n,Ua.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Ua.default=void 0,Ua.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(r in o)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in o)return e[t];return""}function n(e,t){return t?"".concat(t).concat(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 Ua.default=t(),Ua}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function o(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function i(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return Fa}var Ya,Ka={};function Ja(){if(Ya)return Ka;Ya=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Ka.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Ka.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}},Ka.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}},Ka.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(o="parent"===a?s.parentNode:n.querySelector(a),!(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]},Ka.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)},Ka.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=Wa(),t=Xa();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Ka}var Qa,es,ts,ns,rs={},os={};function is(){if(Qa)return os;return Qa=1,Object.defineProperty(os,"__esModule",{value:!0}),os.default=function(){},os}function as(){if(es)return rs;es=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n),t=c(Na()),r=c(i),o=Xa(),a=Ja(),s=Wa(),l=c(is());function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=h,x=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&&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,f.move,this.handleDrag),(0,o.addEvent)(n,f.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.removeUserSelectStyles)(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,f.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,f.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(f=h,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(f=h,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(f=p,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(f=p,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,h.move,this.handleDrag),(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,h.stop,this.handleDragStop),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.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 rs.default=x,d(x,"displayName","DraggableCore"),d(x,"propTypes",{allowAnyClick: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(x,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),rs}function ss(){return ts||(ts=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(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n),r=p(Na()),o=p(i),a=p(Ha),s=Xa(),l=Ja(),c=Wa(),u=p(as()),d=p(is());function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():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},f.apply(this,arguments)}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g 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),x(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})})),x(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)})),x(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.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:h,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,h):v=(0,s.createCSSTransform)(w,h);const C=(0,a.default)(r.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return t.createElement(u.default,f({},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=g,x(g,"displayName","Draggable"),x(g,"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}),x(g,"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})}(ga)),ga}var ls=function(){if(ns)return xa.exports;ns=1;const{default:e,DraggableCore:t}=ss();return xa.exports=e,xa.exports.default=e,xa.exports.DraggableCore=t,xa.exports}(),cs=pa(ls);const us=e=>r.css`
|
|
2374
|
+
*/function Ia(){return ja||(ja=1,"production"===process.env.NODE_ENV?ya.exports=function(){if(ga)return wa;ga=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 wa.AsyncMode=l,wa.ConcurrentMode=c,wa.ContextConsumer=s,wa.ContextProvider=a,wa.Element=t,wa.ForwardRef=u,wa.Fragment=r,wa.Lazy=f,wa.Memo=h,wa.Portal=n,wa.Profiler=i,wa.StrictMode=o,wa.Suspense=d,wa.isAsyncMode=function(e){return y(e)||b(e)===l},wa.isConcurrentMode=y,wa.isContextConsumer=function(e){return b(e)===s},wa.isContextProvider=function(e){return b(e)===a},wa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wa.isForwardRef=function(e){return b(e)===u},wa.isFragment=function(e){return b(e)===r},wa.isLazy=function(e){return b(e)===f},wa.isMemo=function(e){return b(e)===h},wa.isPortal=function(e){return b(e)===n},wa.isProfiler=function(e){return b(e)===i},wa.isStrictMode=function(e){return b(e)===o},wa.isSuspense=function(e){return b(e)===d},wa.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)},wa.typeOf=b,wa}():ya.exports=(Ca||(Ca=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,P=d,M=!1;function _(e){return b(e)===c}Da.AsyncMode=y,Da.ConcurrentMode=w,Da.ContextConsumer=C,Da.ContextProvider=j,Da.Element=k,Da.ForwardRef=$,Da.Fragment=S,Da.Lazy=E,Da.Memo=R,Da.Portal=L,Da.Profiler=O,Da.StrictMode=T,Da.Suspense=P,Da.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)||b(e)===l},Da.isConcurrentMode=_,Da.isContextConsumer=function(e){return b(e)===s},Da.isContextProvider=function(e){return b(e)===a},Da.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Da.isForwardRef=function(e){return b(e)===u},Da.isFragment=function(e){return b(e)===r},Da.isLazy=function(e){return b(e)===f},Da.isMemo=function(e){return b(e)===h},Da.isPortal=function(e){return b(e)===n},Da.isProfiler=function(e){return b(e)===i},Da.isStrictMode=function(e){return b(e)===o},Da.isSuspense=function(e){return b(e)===d},Da.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)},Da.typeOf=b}()),Da)),ya.exports}function Va(){if($a)return ka;$a=1;return ka="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Na(){return Ea?Sa:(Ea=1,Sa=Function.call.bind(Object.prototype.hasOwnProperty))}function Aa(){if(Ta)return Oa;Ta=1;var e=Ia(),t=a,n=Va(),r=Na(),o=function(){if(La)return Ra;La=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Va(),n={},r=Na();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={})},Ra=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){}}),Oa=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},Oa}function za(){if(_a)return ba.exports;if(_a=1,"production"!==process.env.NODE_ENV){var e=Ia();ba.exports=Aa()(e.isElement,!0)}else ba.exports=function(){if(Ma)return Pa;Ma=1;var e=Va();function t(){}function n(){}return n.resetWarningCache=t,Pa=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 ba.exports}function Ba(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ba(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ha(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ba(e))&&(r&&(r+=" "),r+=t);return r}var Fa,Za=xa(Object.freeze({__proto__:null,clsx:Ha,default:Ha})),qa={},Wa={};function Ga(){if(Fa)return Wa;return Fa=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},Wa.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]},Wa.int=function(e){return parseInt(e,10)},Wa.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Wa.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Wa}var Ua,Xa,Ya={};function Ka(){if(Xa)return qa;Xa=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.addClassName=a,qa.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},qa.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")},qa.createCSSTransform=function(e,n){const r=i(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},qa.createSVGTransform=function(e,t){return i(e,t,"")},qa.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))},qa.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},qa.getTranslation=i,qa.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},qa.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},qa.matchesSelector=o,qa.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},qa.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}},qa.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},qa.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},qa.removeClassName=s,qa.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},qa.removeUserSelectStyles=function(e){if(!e)return;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){}};var e=Ga(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(function(){if(Ua)return Ya;Ua=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.browserPrefixToKey=n,Ya.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Ya.default=void 0,Ya.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(r in o)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in o)return e[t];return""}function n(e,t){return t?"".concat(t).concat(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 Ya.default=t(),Ya}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function o(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function i(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return qa}var Ja,Qa={};function es(){if(Ja)return Qa;Ja=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Qa.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Qa.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}},Qa.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}},Qa.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(o="parent"===a?s.parentNode:n.querySelector(a),!(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]},Qa.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)},Qa.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=Ga(),t=Ka();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Qa}var ts,ns,rs,os,is={},as={};function ss(){if(ts)return as;return ts=1,Object.defineProperty(as,"__esModule",{value:!0}),as.default=function(){},as}function ls(){if(ns)return is;ns=1,Object.defineProperty(is,"__esModule",{value:!0}),is.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n),t=c(za()),r=c(i),o=Ka(),a=es(),s=Ga(),l=c(ss());function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=h,x=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&&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,f.move,this.handleDrag),(0,o.addEvent)(n,f.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.removeUserSelectStyles)(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,f.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,f.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(f=h,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(f=h,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(f=p,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(f=p,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,h.move,this.handleDrag),(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,h.stop,this.handleDragStop),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.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 is.default=x,d(x,"displayName","DraggableCore"),d(x,"propTypes",{allowAnyClick: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(x,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),is}function cs(){return rs||(rs=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(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n),r=p(za()),o=p(i),a=p(Za),s=Ka(),l=es(),c=Ga(),u=p(ls()),d=p(ss());function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():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},f.apply(this,arguments)}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g 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),x(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})})),x(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)})),x(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.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:h,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,h):v=(0,s.createCSSTransform)(w,h);const C=(0,a.default)(r.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return t.createElement(u.default,f({},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=g,x(g,"displayName","Draggable"),x(g,"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}),x(g,"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})}(ma)),ma}var us=function(){if(os)return va.exports;os=1;const{default:e,DraggableCore:t}=cs();return va.exports=e,va.exports.default=e,va.exports.DraggableCore=t,va.exports}(),ds=fa(us);const ps=e=>r.css`
|
|
2353
2375
|
width: 240px;
|
|
2354
2376
|
${"medium"===e&&"width: 320px;"}
|
|
2355
2377
|
${"large"===e&&"width: 440px;"}
|
|
@@ -2360,7 +2382,7 @@
|
|
|
2360
2382
|
border-radius: 4px;
|
|
2361
2383
|
box-shadow: 0px 4px 6px -4px #0000001a;
|
|
2362
2384
|
box-shadow: 0px 10px 15px -3px #0000001a;
|
|
2363
|
-
`,
|
|
2385
|
+
`,hs=r.css`
|
|
2364
2386
|
height: 100%;
|
|
2365
2387
|
min-height: 40px;
|
|
2366
2388
|
display: flex;
|
|
@@ -2368,27 +2390,27 @@
|
|
|
2368
2390
|
justify-content: space-between;
|
|
2369
2391
|
padding: 8px;
|
|
2370
2392
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2371
|
-
`,
|
|
2393
|
+
`,fs=r.css`
|
|
2372
2394
|
top: 10px;
|
|
2373
|
-
`,
|
|
2395
|
+
`,xs=r.css`
|
|
2374
2396
|
padding: 12px;
|
|
2375
|
-
`,
|
|
2397
|
+
`,gs=e=>r.css`
|
|
2376
2398
|
height: 100%;
|
|
2377
2399
|
width: ${e||"320px"};
|
|
2378
2400
|
background-color: ${h("neutral",100)};
|
|
2379
2401
|
box-shadow: 0px 1px 2px -1px #0000001a;
|
|
2380
2402
|
box-shadow: 0px 1px 3px 0px #0000001a;
|
|
2381
2403
|
position: relative;
|
|
2382
|
-
`,
|
|
2404
|
+
`,vs=r.css`
|
|
2383
2405
|
border-right: 1px solid ${h("neutral",300)};
|
|
2384
|
-
`,
|
|
2406
|
+
`,ms=r.css`
|
|
2385
2407
|
border: 1px solid ${h("neutral",300)};
|
|
2386
2408
|
border-radius: 4px;
|
|
2387
|
-
`,
|
|
2409
|
+
`,bs=r.css`
|
|
2388
2410
|
min-height: 48px;
|
|
2389
2411
|
width: 100%;
|
|
2390
2412
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2391
|
-
`,
|
|
2413
|
+
`,ys=(e,t)=>r.css`
|
|
2392
2414
|
height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
|
|
2393
2415
|
width: 100%;
|
|
2394
2416
|
overflow-y: auto;
|
|
@@ -2396,7 +2418,7 @@
|
|
|
2396
2418
|
&:focus-visible {
|
|
2397
2419
|
outline-color: ${h("primary",700)};
|
|
2398
2420
|
}
|
|
2399
|
-
`,
|
|
2421
|
+
`,ws=r.css`
|
|
2400
2422
|
min-height: 64px;
|
|
2401
2423
|
width: 100%;
|
|
2402
2424
|
display: flex;
|
|
@@ -2406,7 +2428,7 @@
|
|
|
2406
2428
|
bottom: 0;
|
|
2407
2429
|
left: 0;
|
|
2408
2430
|
border-top: 1px solid ${h("neutral",300)};
|
|
2409
|
-
`;var
|
|
2431
|
+
`;var Cs,js;!function(){if(js)return Cs;js=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))}}Cs=e}();var ks=$s()?n.useLayoutEffect:n.useEffect;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function $s(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Ss=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 ks((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&&(Ss.displayName="Portal");
|
|
2410
2432
|
/*! *****************************************************************************
|
|
2411
2433
|
Copyright (c) Microsoft Corporation.
|
|
2412
2434
|
|
|
@@ -2420,16 +2442,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
2420
2442
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2421
2443
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2422
2444
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2423
|
-
***************************************************************************** */var $s,Ss,Es=function(){return Es=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},Es.apply(this,arguments)};function Rs(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 Ls(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 Os(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 Ts(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"}($s||($s={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Ss||(Ss={}));var Ps=$s.Start,Ms=$s.Stop,_s=$s.Raise,Ds=$s.Send,Is=$s.Cancel,Vs=$s.NullEvent,Ns=$s.Assign;$s.After,$s.DoneState;var As=$s.Log,zs=$s.Init,Bs=$s.Invoke;$s.ErrorExecution;var Hs,Fs=$s.ErrorPlatform,Zs=$s.ErrorCustom,Ws=$s.Update,qs=$s.Choose,Gs=$s.Pure,Us={},Xs="xstate.guard",Ys="production"===process.env.NODE_ENV;function Ks(e,t,n){void 0===n&&(n=".");var r=el(e,n),o=el(t,n);return gl(o)?!!gl(r)&&o===r:gl(r)?r in o:Object.keys(r).every((function(e){return e in o&&Ks(r[e],o[e])}))}function Js(e){try{return gl(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 Qs(e,t){try{return fl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function el(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:fl(e)?tl(e):"string"!=typeof e?e:tl(Qs(e,t));var n}function tl(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 nl(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 rl(e,t,n){var r,o,i={};try{for(var a=Ls(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 ol=function(e){return function(t){var n,r,o=t;try{for(var i=Ls(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 il(e){return e?gl(e)?[[e]]:al(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?il(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function al(e){var t;return(t=[]).concat.apply(t,Ts([],Os(e),!1))}function sl(e){return fl(e)?e:[e]}function ll(e){return void 0===e?[]:sl(e)}function cl(e,t,n){var r,o;if(xl(e))return e(t,n.data);var i={};try{for(var a=Ls(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];xl(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 ul(e){return e instanceof Promise||!(null===e||!xl(e)&&"object"!=typeof e||!xl(e.then))}function dl(e,t){return nl(e.states,(function(e,n){if(e){var r=(gl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:dl(e,r)}}}))}function pl(e,t,n,r){Ys||hl(!!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(xl(a))l=a(e,t.data,s);else try{for(var c=Ls(Object.keys(a)),u=c.next();!u.done;u=c.next()){var d=u.value,p=a[d];l[d]=xl(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 hl=function(){};function fl(e){return Array.isArray(e)}function xl(e){return"function"==typeof e}function gl(e){return"string"==typeof e}function vl(e,t){if(e)return gl(e)?{type:Xs,name:e,predicate:t?t[e]:void 0}:xl(e)?{type:Xs,name:e.name,predicate:e}:e}Ys||(hl=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 ml=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function bl(e){return!!e&&"__xstatenode"in e}function yl(e,t){return gl(e)||"number"==typeof e?Es({type:e},t):e}function wl(e,t){if(!gl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=yl(e);return Es({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Cl(e,t){return sl(t).map((function(t){return void 0===t||"string"==typeof t||bl(t)?{target:t,event:e}:Es(Es({},t),{event:e})}))}function jl(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===Xs)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 kl(e){return"string"==typeof e?{type:e}:e}function $l(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 Sl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function El(e){return(e.type===_s||e.type===Ds&&e.to===Ss.Internal)&&"number"!=typeof e.delay}(Hs={})[ml]=function(){return this},Hs[Symbol.observable]=function(){return this};var Rl=wl({type:zs});function Ll(e,t){return t&&t[e]||void 0}function Ol(e,t){var n;if(gl(e)||"number"==typeof e)n=xl(r=Ll(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(xl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(xl(r=Ll(e.type,t)))n=Es(Es({},e),{exec:r});else if(r){var o=r.type||e.type;n=Es(Es(Es({},r),e),{type:o})}else n=e}return n}var Tl=function(e,t){return e?(fl(e)?e:[e]).map((function(e){return Ol(e,t)})):[]};function Pl(e){var t=Ol(e);return Es(Es({id:gl(e)?e:t.id},t),{type:t.type})}function Ml(e,t){var n="".concat($s.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _l(e,t){var n="".concat($s.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Dl(e,t){var n="".concat($s.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Il(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=Ls(e),i=o.next();!i.done;i=o.next())for(var a=i.value,s=0;s<a.actions.length;)a.actions[s].type!==Ns?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?pl(n,r,s,t):n,c=a?[n]:void 0,u=[];function d(o,s){var d;switch(s.type){case _s:var p=function(e,t,n,r){var o,i={_event:n},a=wl(xl(e.event)?e.event(t,n.data,i):e.event);if(gl(e.delay)){var s=r&&r[e.delay];o=xl(s)?s(t,n.data,i):s}else o=xl(e.delay)?e.delay(t,n.data,i):e.delay;return Es(Es({},e),{type:_s,_event:a,delay:o})}(s,l,r,e.options.delays);return i&&"number"==typeof p.delay&&i(p,l,r),p;case Ds:var h=function(e,t,n,r){var o,i={_event:n},a=wl(xl(e.event)?e.event(t,n.data,i):e.event);if(gl(e.delay)){var s=r&&r[e.delay];o=xl(s)?s(t,n.data,i):s}else o=xl(e.delay)?e.delay(t,n.data,i):e.delay;var l=xl(e.to)?e.to(t,n.data,i):e.to;return Es(Es({},e),{to:l,_event:a,event:a.data,delay:o})}(s,l,r,e.options.delays);if(!Ys){var f=s.delay;hl(!gl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&h.to!==Ss.Internal&&("entry"===o?u.push(h):i(h,l,r)),h;case As:var x=function(e,t,n){return Es(Es({},e),{value:gl(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(!(b=null===(d=s.conds.find((function(n){var o=vl(n.cond,e.options.guards);return!o||jl(e,o,l,r,i?void 0:t)})))||void 0===d?void 0:d.actions))return[];var g=Os(Il(e,t,l,r,[{type:o,actions:Tl(ll(b),e.options.actions)}],i,a),2),v=g[0],m=g[1];return l=m,null==c||c.push(l),v;case Gs:var b;if(!(b=s.get(l,r.data)))return[];var y=Os(Il(e,t,l,r,[{type:o,actions:Tl(ll(b),e.options.actions)}],i,a),2),w=y[0],C=y[1];return l=C,null==c||c.push(l),w;case Ms:x=function(e,t,n){var r=xl(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:$s.Stop,activity:o}}(s,l,r);return null==i||i(x,n,r),x;case Ns:l=pl(l,r,[s],i?void 0:t),null==c||c.push(l);break;default:var j=Ol(s,e.options.actions),k=j.exec;if(i)i(j,l,r);else if(k&&c){var $=c.length-1,S=Es(Es({},j),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ts([c[$]],Os(t),!1))}});j=S}return j}}var p=al(o.map((function(e){var t,n,o=[];try{for(var a=Ls(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 Vl=function(e,t){return t(e)};function Nl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ml]=function(){return this},t}function Al(e,t,n){var r=Nl(t);if(r.deferred=!0,bl(e)){var o=r.state=Vl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var zl=function(e){return"atomic"===e.type||"final"===e.type};function Bl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Hl(e){return Bl(e).filter((function(e){return"history"!==e.type}))}function Fl(e){var t=[e];return zl(e)?t:t.concat(al(Hl(e).map(Fl)))}function Zl(e,t){var n,r,o,i,a,s,l,c,u=ql(new Set(e)),d=new Set(t);try{for(var p=Ls(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=ql(d);try{for(var g=Ls(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,Ls(Hl(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=Ls(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 Wl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(zl(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=Wl(e,t)})),o}function ql(e){var t,n,r=new Map;try{for(var o=Ls(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 Gl(e,t){return Wl(e,ql(Zl([e],t)))}function Ul(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Xl(e,t){return"compound"===t.type?Hl(t).some((function(t){return"final"===t.type&&Ul(e,t)})):"parallel"===t.type&&Hl(t).every((function(t){return Xl(e,t)}))}function Yl(e){return new Set(al(e.map((function(e){return e.tags}))))}function Kl(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(gl(e)||gl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Kl(e[n],t[n])}))}var Jl=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Us,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||Us,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 Ts([],Os(new Set(al(Ts([],Os(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:Rl,_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=Rl;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="."),gl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ts([],Os(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=Rs(e,["configuration","transitions","tags","machine"]);return Es(Es({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Ks(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Ys&&hl(!!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}(),Ql={deferEvents:!1},ec=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Es(Es({},Ql),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}(),tc=new Map,nc=0,rc=function(){return"x:".concat(nc++)},oc=function(e,t){return tc.set(e,t),e},ic=function(e){return tc.get(e)},ac=function(e){tc.delete(e)};function sc(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Ys||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 lc(e){if(sc()){var t=function(){var e=sc();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function cc(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(e){var t;return Es(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ml]=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=$l(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 uc,dc={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(uc||(uc={}));var pc=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=uc.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(fl(e))return r.batch(e),r.state;var n=wl(yl(e,t));if(r.status===uc.Stopped)return Ys||hl(!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!==uc.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===Ss.Parent||r.parent.id===t),a=i?r.parent:gl(t)?t===Ss.Internal?r:r.children.get(t)||ic(t):(o=t)&&"function"==typeof o.send?t:void 0;if(a)if("machine"in a){if(r.status!==uc.Stopped||r.parent!==a||r.state.done){var s=Es(Es({},e),{name:e.name===Zs?"".concat(Dl(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,"'."));Ys||hl(!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||Ll(e.type,o),a=xl(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 _s:var s=e;r.defer(s);break;case Ds:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===Rl):r.send(l._event);break;case Is:r.cancel(e.sendId);break;case Ps:if(r.status!==uc.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===$s.Invoke){var u=kl(c.src),d=r.machine.options.services?r.machine.options.services[u.type]:void 0,p=c.id,h=c.data;Ys||hl(!("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(Ys||hl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var x=h?cl(h,t,n):void 0;if("string"==typeof d)return;var g=xl(d)?d(t,n.data,{data:x,src:u,meta:c.meta}):d;if(!g)return;var v=void 0;bl(g)&&(g=x?g.withContext(x):g,v={autoForward:f}),r.spawn(g,p,v)}else r.spawnActivity(c);break;case Ms:r.stopChild(e.activity.id);break;case As:var m=e,b=m.label,y=m.value;b?r.logger(b,y):r.logger(y);break;default:Ys||hl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=Es(Es({},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 ec({deferEvents:this.options.deferEvents}),this.sessionId=rc()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Vl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Ys||hl(this.status!==uc.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=Ls(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!==Rl||!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=Ls(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=Ls(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=Ls(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?cl(m.doneData,e.context,t):void 0;this._doneEvent=_l(this.id,b);try{for(var y=Ls(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(),ac(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===uc.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=$l(e,t,n);this.listeners.add(o.next),this.status!==uc.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===uc.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===uc.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===uc.Running)return this;this.machine._init(),oc(this.sessionId,this),this.initialized=!0,this.status=uc.Running;var n=void 0===e?this.initialState:Vl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(Jl.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Rl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){xl(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=Ls(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=Ls(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=Ls(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=Ls(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=uc.Stopped,this._initialState=void 0;try{for(var b=Ls(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 ec({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=wl({type:"xstate.stop"}),r=Vl(e,(function(){var t=al(Ts([],Os(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Tl(t.onExit,e.machine.options.actions)}))),r=Os(Il(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 Jl({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!El(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(),ac(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===uc.NotStarted&&this.options.deferEvents)Ys||hl(!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!==uc.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=wl(e);t.forward(r),i=Vl(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),s.push.apply(s,Ts([],Os(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return Es(Es({},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=Ls(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,wl(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=wl(e);if(0===r.name.indexOf(Fs)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Fs)})))throw r.data.data;return Vl(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=Ls(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),xl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==uc.Running)return Al(e,t);if(ul(e))return this.spawnPromise(Promise.resolve(e),t);if(xl(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&&xl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(bl(e))return this.spawnMachine(e,Es(Es({},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,Es(Es({},this.options),{parent:this,id:n.id||t.id})),i=Es(Es({},dc),n);i.sync&&o.onTransition((function(e){r.send(Ws,{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(wl(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=cc(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(wl(_l(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=Dl(t,e);try{o.send(wl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Ys){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=$l(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}})[ml]=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(wl(e,{origin:t}))}),(function(e){s.add(e)}))}catch(e){this.send(Dl(t,e))}if(ul(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=$l(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,xl(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[ml]=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(wl(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(wl(Dl(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(wl(_l(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}}})[ml]=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 Ys||hl(!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}}})[ml]=function(){return this},n))},e.prototype.attachDev=function(){var e=sc();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(Es(Es({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Es({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}lc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ml]=function(){return this},e.prototype.getSnapshot=function(){return this.status===uc.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=hc,e}();function hc(e,t){return new pc(e,t)}function fc(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function xc(e){return Es(Es({type:Bs},e),{toJSON:function(){e.onDone,e.onError;var t=Rs(e,["onDone","onError"]);return Es(Es({},t),{type:Bs,src:fc(e.src)})}})}var gc="",vc="*",mc={},bc=function(e){return"#"===e[0]},yc=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||Ts([this.machine.key],Os(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,Ys||hl(!("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?nl(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Es(((r={})[o.id]=o,r),o.idMap)),o})):mc;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=Ls(Bl(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===gc})):gc in this.config.on),this.strict=!!this.config.strict,this.onEntry=ll(this.config.entry||this.config.onEntry).map((function(e){return Ol(e)})),this.onExit=ll(this.config.exit||this.config.onExit).map((function(e){return Ol(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=ll(this.config.invoke).map((function(e,t){var n,r;if(bl(e)){var o=Sl(a.id,t);return a.machine.options.services=Es(((n={})[o]=e,n),a.machine.options.services),xc({src:o,id:o})}if(gl(e.src)){o=e.id||Sl(a.id,t);return xc(Es(Es({},e),{id:o,src:e.src}))}if(bl(e.src)||xl(e.src)){o=e.id||Sl(a.id,t);return a.machine.options.services=Es(((r={})[o]=e.src,r),a.machine.options.services),xc(Es(Es({id:o},e),{src:o}))}var i=e.src;return xc(Es(Es({id:Sl(a.id,t)},e),{src:i}))})),this.activities=ll(this.config.activities).concat(this.invoke).map((function(e){return Pl(e)})),this.transition=this.transition.bind(this),this.tags=ll(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Fl(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:Es(Es({},o),t.actions),activities:Es(Es({},i),t.activities),guards:Es(Es({},a),t.guards),services:Es(Es({},s),t.services),delays:Es(Es({},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 xl(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:nl(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===gc,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===vc}));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($s.After,"(").concat(e,")").concat(n)}(xl(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:Ds,event:xl(e)?e:yl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:xl(e)?e.name:Js(e)}}(r,{delay:t})),e.onExit.push({type:Is,sendId:r}),r},r=fl(t)?t.map((function(e,t){var r=n(e.delay,t);return Es(Es({},e),{event:r})})):al(Object.keys(t).map((function(e,r){var o=t[e],i=gl(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return ll(i).map((function(e){return Es(Es({},e),{event:s,delay:a})}))})));return r.map((function(t){var n=t.delay;return Es(Es({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Jl?e.value:el(e,this.delimiter);if(gl(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,Ts([],Os(al(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Js(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Jl?e:Jl.create(e),n=Array.from(Zl([],this.getStateNodes(t.value)));return new Jl(Es(Es({},t),{value:this.resolve(t.value),configuration:n,done:Xl(n,this),tags:Yl(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=Ls(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=al(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=al(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:p,exitSet:al(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:al(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return gl(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,wl(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],l=[];try{for(var c=Ls(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||(gl(h)&&bc(h)?e.matches(el(this.getStateNodeById(h).path,this.delimiter)):Ks(el(h,this.delimiter),ol(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||jl(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,Ts([],Os(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=al(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:al(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?Zl([],this.getStateNodes(i.value)):[],h=new Set;try{for(var f=Ls(Array.from(e).sort((function(e,t){return e.order-t.order}))),x=f.next();!x.done;x=f.next()){(!Ul(p,m=x.value)||Ul(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=Ls(p),v=g.next();!v.done;v=g.next()){var m;Ul(e,m=v.value)&&!Ul(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=al(b.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(Ml(e.id,e.doneData),Ml(i.id,e.doneData?cl(e.doneData,r,o):void 0));var a=i.parent;return"parallel"===a.type&&Hl(a).every((function(e){return Xl(n.configuration,e)}))&&t.push(Ml(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Pl(e);return{type:$s.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Tl(a?Ts(Ts([],Os(t),!1),Os(n),!1):Ts(Ts([],Os(n),!1),Os(t),!1),d.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:_s,event:"function"==typeof e?e:yl(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:Tl(Ts(Ts([],Os(e.onExit),!1),Os(e.activities.map((function(e){return function(e){var t=xl(e)?e:Pl(e);return{type:$s.Stop,activity:t,exec:void 0}}(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:Tl(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Tl(al(Ts([],Os(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!El(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=wl(t);if(e instanceof Jl)o=void 0===n?e:this.resolveState(Jl.from(e,n));else{var s=gl(e)?this.resolve(tl(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(Jl.from(s,l))}if(!Ys&&a.name===vc)throw new Error("An event cannot have the wildcard type ('".concat(vc,"')"));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=Zl([],this.getStateNodes(o.value)),d=c.configuration.length?Zl(u,c.configuration):u;return c.configuration=Ts([],Os(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,Ts([],Os(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,a,s,l,c=this;void 0===o&&(o=Rl);var u=e.configuration,d=!t||e.transitions.length>0,p=d?e.configuration:t?t.configuration:[],h=Xl(p,this),f=d?Gl(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?Es({},t.activities):{};try{for(var m=Ls(g),b=m.next();!b.done;b=m.next()){var y=b.value;try{for(var w=(s=void 0,Ls(y.actions)),C=w.next();!C.done;C=w.next()){var j=C.value;j.type===Ps?v[j.activity.id||j.activity.type]=j:j.type===Ms&&(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=Os(Il(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=S[0],R=S[1],L=Os(function(e,t){var n,r,o=Os([[],[]],2),i=o[0],a=o[1];try{for(var s=Ls(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,El),2),O=L[0],T=L[1],P=E.filter((function(e){var t;return e.type===Ps&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Bs})),M=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=kl(e.src),a=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],s=e.data?cl(e.data,n,r):void 0,l=a?Al(a,e.id,s):Nl(e.id);return l.meta=e,l}(t.activity,c.machine,R,o),e}),t?Es({},t.children):{}),_=new Jl({value:f||t.value,context:R,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?x?(k=x,$=f,{current:$,states:dl(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:M,done:h,tags:Yl(p),machine:this}),D=n!==R;_.changed=o.name===Ws||D;var I=_.history;I&&delete I.history;var V=!h&&(this._transient||u.some((function(e){return e._transient})));if(!(d||V&&o.name!==gc))return _;var N=_;if(!h)for(V&&(N=this.resolveRaisedTransition(N,{type:Vs},o,r));O.length;){var A=O.shift();N=this.resolveRaisedTransition(N,A._event,o,r)}var z=N.changed||(I?!!N.actions.length||D||typeof I.value!=typeof N.value||!Kl(N.value,I.value):void 0);return N.changed=z,N.history=I,N},e.prototype.getStateNode=function(e){if(bc(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=bc(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&&bc(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Qs(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||mc;switch(this.type){case"parallel":return nl(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):mc}));case"compound":if(gl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?nl(e,(function(e,t){return e?n.getStateNode(t).resolve(e):mc})):this.initialStateValue||{};default:return e||mc}},e.prototype.getResolvedPath=function(e){if(bc(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 Qs(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=rl(this.states,(function(e){return e.initialStateValue||mc}),(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=zl(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=gl(t.target)&&bc(t.target)?tl(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 zl(this)?[this]:"compound"!==this.type||this.initial?al(il(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Ys||hl(!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=Os(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:rl(this.states,(function(t,n){if(!e)return t.historyValue();var r=gl(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?al(il(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=Ls(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 gl(a)?[n.getStateNode(a)]:al(il(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=al(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=Ls(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,Ls(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(!gl(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 ll(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return gl(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=Es(Es({},e),{actions:Tl(ll(e.actions)),cond:vl(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return Es(Es({},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=vc,a=o[i],s=void 0===a?[]:a,l=Rs(o,["*"]);n=al(Object.keys(l).map((function(e){Ys||e!==gc||hl(!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=Cl(e,l[e]);return Ys||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(gl(e.target)||bl(e.target))})),o=t===gc?"the transient event":"event '".concat(t,"'");hl(!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(Cl(vc,s)))}else n=[];var c=this.config.always?Cl("",this.config.always):[],u=this.config.onDone?Cl(String(Ml(this.id)),this.config.onDone):[];Ys||hl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=al(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ts([],Os(Cl(String(_l(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ts([],Os(Cl(String(Dl(e.id)),e.onError)),!1)),t}))),p=this.after,h=al(Ts(Ts(Ts(Ts([],Os(u),!1),Os(d),!1),Os(n),!1),Os(c),!1).map((function(e){return ll(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ls(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 wc,Cc=function(e){return{type:Ns,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(wc||(wc={}));var jc="undefined"!=typeof document?n.useLayoutEffect:function(){};function kc(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}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},Sc=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 Ec=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},Rc=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 Lc(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Oc(e){var t=n.useRef([]),r=n.useRef([]);jc((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=Ec(function(e,t){var n,r,o=$c([[],[]],2),i=o[0],a=o[1];try{for(var s=Sc(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===wc.Effect})),2),s=a[0],l=a[1];(n=t.current).push.apply(n,Rc([],Ec(s.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,Rc([],Ec(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),jc((function(){for(;r.current.length;){var e=Ec(r.current.shift(),2);Lc(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=Ec(t.current.shift(),2);Lc(e[0],e[1])}}))}var Tc=function(){return Tc=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},Tc.apply(this,arguments)},Pc=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},Mc=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 _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};function Dc(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=kc((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Mc(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=Pc(t,["context","guards","actions","activities","services","delays","state"]),f=kc((function(){var e={context:a,guards:s,actions:l,activities:c,services:u,delays:d};return hc(o.withConfig(e,(function(){return Tc(Tc({},o.context),a)})),Tc({deferEvents:!0},h))}));return jc((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]),jc((function(){return f.start(p?Jl.create(p):void 0),function(){f.stop()}}),[]),jc((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]),Oc(f),f}(e,t,r),i=_c(n.useState((function(){var e=o.machine.initialState;return t.state?Jl.create(t.state):e})),2),a=i[0],s=i[1];return[a,o.send,o]}function Ic(){return Ic=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},Ic.apply(null,arguments)}function Vc(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 Nc={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(Nc.str(e)||Nc.num(e))return e===t;if(Nc.obj(e)&&Nc.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!Nc.und(n)||e===t}};function Ac(e,t){return Nc.und(e)||Nc.nul(e)?t:e}function zc(e){return Nc.und(e)?[]:Nc.arr(e)?e:[e]}function Bc(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 Nc.fun(e)?e(...n):e}function Hc(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,Vc(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Nc.und(t))return Ic({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Nc.und(t[r])?Ic({},n,{[r]:e[r]}):n),{});return Ic({to:t},n)}class Fc{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 Zc extends Fc{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Fc&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Fc&&e.removeChild(this)))}}class Wc extends Fc{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Fc&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Fc&&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 Fc)&&(t[n]=r instanceof Fc?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let qc,Gc;let Uc,Xc=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Yc,Kc=()=>Date.now();class Jc extends Wc{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ic({},e,{style:Yc(e.style)}):e,this.update=t,this.attach()}}let Qc=!1;const eu=new Set,tu=()=>{if(!Qc)return!1;let e=Kc();for(let t of eu){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 Fc,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||(eu.delete(t),t.stop(!0))}return eu.size?Xc(tu):Qc=!1,Qc};function nu(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return nu({range:e,output:t,extrapolate:n});if(Uc&&"string"==typeof e.output[0])return Uc(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 ru extends Zc{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Zc&&!(e instanceof ru)?e.getPayload():Array.isArray(e)?e:[e],this.calc=nu(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=nu(e,t,n)}interpolate(e,t,n){return new ru(this,e,t,n)}}const ou=(e,t,n)=>e&&new ru(e,t,n);function iu(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>iu(e,t)))}class au extends Fc{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&&iu(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new ru(this,e,t,n)}}class su extends Zc{constructor(e){super(),this.payload=e.map((e=>new au(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 ru(this,e,t)}}let lu=0,cu=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=lu++}update(e){if(!e)return this;const t=Hc(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=Vc(t,["delay","to"]);if(Nc.arr(o)||Nc.fun(o))this.queue.push(Ic({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const a=Ic({to:{[n]:o},delay:Bc(r,n)},i),s=e[a.delay]&&e[a.delay].to;e[a.delay]=Ic({},e[a.delay],a,{to:Ic({},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;Nc.obj(n)&&(this.merged=Ic({},n,this.merged)),Nc.obj(o)&&(this.merged=Ic({},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=Vc(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=Nc.arr(a.to)||Nc.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 Nc.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,eu.has(t)||eu.add(t),Qc||(Qc=!0,Xc(tu));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,eu.has(t)&&eu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Vc(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(Nc.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ic({},r,Hc(r.to[t]));Nc.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(Nc.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=Ic({},r,Hc(n));if(Nc.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=Ic({},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=Ic({},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=Nc.num(o),l=Nc.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!Gc[o],c=Nc.arr(o),p=!a&&!c&&!l;let f=Nc.und(r[n])?o:r[n],x=a||c||l?o:1,g=Bc(s,n);h&&(x=h.animations[n].parent);let v,m=i.parent,b=i.interpolation,y=zc(h?x.getPayload():x),w=o;p&&(w=Uc({range:[0,1],output:[o,o]})(1));let C=b&&b.getValue();const j=!Nc.und(m)&&i.animatedValues.some((e=>!e.done)),k=!Nc.equ(w,C),$=!Nc.equ(w,i.previous),S=!Nc.equ(g,i.config);if(u||$&&k||S){if(a||l)m=b=i.parent||new au(f);else if(c)m=b=i.parent||new su(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 au(0);const t={output:[e,o]};i.interpolation?(b=i.interpolation,i.interpolation.updateConfig(t)):b=m.interpolate(t)}return y=zc(h?x.getPayload():x),v=zc(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=Kc(),e.done=!1,e.animatedStyles.clear()})),Bc(d,n)&&m.setValue(p?x:o,!1),Ic({},e,{[n]:Ic({},i,{name:n,parent:m,interpolation:b,animatedValues:v,toValues:y,previous:w,config:g,fromValues:zc(m.getValue()),immediate:Bc(d,n),initialVelocity:Ac(g.velocity,0),clamp:Ac(g.clamp,!1),precision:Ac(g.precision,.01),tension:Ac(g.tension,170),friction:Ac(g.friction,26),mass:Ac(g.mass,1),duration:g.duration,easing:Ac(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,Ic({},e,{[n]:Ic({},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 uu=e=>{const t=Nc.fun(e),r=((e,t)=>{const r=n.useRef(!1),o=n.useRef(),i=Nc.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 cu,a=i?Bc(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?Bc(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 du extends Wc{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Fc||(e=qc.transform(e)),this.payload=e}}const pu={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},hu="[-+]?\\d*\\.?\\d+",fu=hu+"%";function xu(){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 gu=new RegExp("rgb"+xu(hu,hu,hu)),vu=new RegExp("rgba"+xu(hu,hu,hu,hu)),mu=new RegExp("hsl"+xu(hu,fu,fu)),bu=new RegExp("hsla"+xu(hu,fu,fu,hu)),yu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cu=/^#([0-9a-fA-F]{6})$/,ju=/^#([0-9a-fA-F]{8})$/;function ku(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 $u(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ku(o,r,e+1/3),a=ku(o,r,e),s=ku(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Su(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Eu(e){return(parseFloat(e)%360+360)%360/360}function Ru(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Lu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ou(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Cu.exec(e))?parseInt(t[1]+"ff",16)>>>0:pu.hasOwnProperty(e)?pu[e]:(t=gu.exec(e))?(Su(t[1])<<24|Su(t[2])<<16|Su(t[3])<<8|255)>>>0:(t=vu.exec(e))?(Su(t[1])<<24|Su(t[2])<<16|Su(t[3])<<8|Ru(t[4]))>>>0:(t=yu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ju.exec(e))?parseInt(t[1],16)>>>0:(t=wu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=mu.exec(e))?(255|$u(Eu(t[1]),Lu(t[2]),Lu(t[3])))>>>0:(t=bu.exec(e))?($u(Eu(t[1]),Lu(t[2]),Lu(t[3]))|Ru(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 Tu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Pu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Mu=new RegExp(`(${Object.keys(pu).join("|")})`,"g");let _u={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 Du=["Webkit","Ms","Moz","O"];function Iu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_u.hasOwnProperty(e)&&_u[e]?(""+t).trim():t+"px"}_u=Object.keys(_u).reduce(((e,t)=>(Du.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),_u);const Vu={};var Nu;Yc=e=>new du(e),Nu=e=>{const t=e.output.map((e=>e.replace(Pu,Ou))).map((e=>e.replace(Mu,Ou))),n=t[0].match(Tu).map((()=>[]));t.forEach((e=>{e.match(Tu).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Tu).map(((t,r)=>nu(Ic({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Tu,(()=>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})`))}},Uc=Nu,Gc=pu,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=Vc(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=Iu(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:Vu[t]||(Vu[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var Au;const zu=(Au=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 Jc(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 u=Vc(c,["scrollTop","scrollLeft"]),d=(p=e,!Nc.fun(p)||p.prototype instanceof n.Component?e=>s.current=function(e,t){return t&&(Nc.fun(t)?t(e):Nc.obj(t)&&(t.current=e)),e}(e,r):void 0);var p;return n.createElement(e,Ic({},u,{ref:d}))})),e=>(Nc.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Au(n),e}),Au))(["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 Bu(e,t){return e.map((function(e,n){return e+t[n]}))}function Hu(e,t){return e.map((function(e,n){return e-t[n]}))}function Fu(e){return Math.hypot.apply(Math,e)}function Zu(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Wu(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 qu(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?-Wu(t-e,n-t,r)+t:e>n?+Wu(e-n,n-t,r)+n:e}function Gu(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 Uu(){return Uu=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},Uu.apply(this,arguments)}function Xu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(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 Ju(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 Ku(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)?Ku(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 Qu(){}function ed(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Qu:1===t.length?t[0]:function(){for(var e,n,r=Ju(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function td(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 nd(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 rd(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]=rd(e[a],s);break;case"boolean":s&&(n[a]=e[a])}}return n}var od=Uu({},{threshold:function(e){return void 0===e&&(e=0),td(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return td(.15);case!1:return td(0);default:return td(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:td(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 od.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]]}}),id="undefined"!=typeof window&&window.document&&window.document.createElement,ad={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=id?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}}},sd=Uu({},od,{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=td(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),td(e)},swipeDistance:function(e){return void 0===e&&(e=60),td(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function ld(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={}),rd(e,ad)}({domTarget:t,eventOptions:n,window:r,enabled:o});return a.drag=function(e){return void 0===e&&(e={}),rd(e,sd)}(i),a}function cd(e){return Uu({_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:Qu,canceled:!1,memo:void 0,args:void 0},e)}function ud(){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:cd({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:cd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:cd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:cd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:cd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var dd=new Map,pd=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=Uu({},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]?hd(h[0],i[0]):u[0],x=!1===u[1]?hd(h[1],i[1]):u[1],g=this.checkIntentionality([f,x],h);if(g._blocked)return Uu({},g,{_movement:h,delta:[0,0]});var v,m,b,y,w=g._intentional,C=h;(!1!==w[0]&&!1===u[0]&&(m=nd(n,this.state),v=nd(r,this.state),l[0]=m[0],s[0]=v[0]),!1!==w[1]&&!1===u[1])&&(m=null!=(b=m)?b:nd(n,this.state),v=null!=(y=v)?y:nd(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=Bu(j,d),$=c?o:[0,0];return j=fd(s,Bu(j,l),$),Uu({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:j,values:e,offset:fd(s,k,$),delta:Hu(j,p)})},t.clean=function(){this.clearTimeout()},Gu(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 hd(e,t){return Math.abs(e)>=t&&Zu(e)*t}function fd(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[qu(r,l,c,i),qu(o,d,p,a)]}function xd(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 gd(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,Uu({},t,{event:n})].concat(o))}}var vd=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=Ju(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];yd(e,c[0],gd(c[1],Uu({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=bd(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;Cd(o,md(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,ed.apply(void 0,u)])}wd(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]=ed.apply(void 0,u)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=bd(t.config),n=t.config.eventOptions;e&&Cd(e,md(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){Cd(n,o[i],r)}e.windowListeners={}}(t)},this.state=ud(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function md(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function bd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function yd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function wd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Ju(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.addEventListener(a,s,n)}}function Cd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Ju(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.removeEventListener(a,s,n)}}function jd(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(dd.get("drag"));e.wheel&&t.add(dd.get("wheel"));e.scroll&&t.add(dd.get("scroll"));e.move&&t.add(dd.get("move"));e.pinch&&t.add(dd.get("pinch"));e.hover&&t.add(dd.get("hover"));return t}(e),i=n.useMemo((function(){return new vd(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?kd:i.bind}function kd(){"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 $d(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Sd(e){var t="buttons"in e?e.buttons:0,n=$d(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 Ed(e){var t=$d(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Rd=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&&(Cd(r.window,o[t],r.eventOptions),wd(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(Yu(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=Sd(e);if(n.down){t.updateSharedState(n);var r=Ed(e),o=t.getKinematics(r,e),i=xd(Yu(t),e),a=t.state._isTap,s=Fu(o._movement);a&&s>=3&&(a=!1),t.updateGestureState(Uu({},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=Uu({},xd(Yu(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]=Zu(o)),!1!==d&&Math.abs(i)>f&&Math.abs(l)>v&&(b[1]=Zu(i))),t.updateGestureState(Uu({},m,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Yu(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Cd(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}Xu(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Ed(e);this.updateSharedState(Sd(e)),this.updateGestureState(Uu({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return Uu({},ud()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),xd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(yd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&yd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Xu(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Hu(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=Fu(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:Fu(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(pd));function Ld(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(!Ld(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(!Ld(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||Ld(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Od(e,t){try{return Ld(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 Td(e,t){void 0===t&&(t={}),dd.set("drag",Rd);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}}(ld,Od)),jd({drag:e},r.current(t))}
|
|
2445
|
+
***************************************************************************** */var Es,Rs,Ls=function(){return Ls=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},Ls.apply(this,arguments)};function Os(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 Ts(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 Ms(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"}(Es||(Es={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Rs||(Rs={}));var _s=Es.Start,Ds=Es.Stop,Is=Es.Raise,Vs=Es.Send,Ns=Es.Cancel,As=Es.NullEvent,zs=Es.Assign;Es.After,Es.DoneState;var Bs=Es.Log,Hs=Es.Init,Fs=Es.Invoke;Es.ErrorExecution;var Zs,qs=Es.ErrorPlatform,Ws=Es.ErrorCustom,Gs=Es.Update,Us=Es.Choose,Xs=Es.Pure,Ys={},Ks="xstate.guard",Js="production"===process.env.NODE_ENV;function Qs(e,t,n){void 0===n&&(n=".");var r=nl(e,n),o=nl(t,n);return ml(o)?!!ml(r)&&o===r:ml(r)?r in o:Object.keys(r).every((function(e){return e in o&&Qs(r[e],o[e])}))}function el(e){try{return ml(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 tl(e,t){try{return gl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function nl(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:gl(e)?rl(e):"string"!=typeof e?e:rl(tl(e,t));var n}function rl(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 ol(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 il(e,t,n){var r,o,i={};try{for(var a=Ts(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 al=function(e){return function(t){var n,r,o=t;try{for(var i=Ts(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 sl(e){return e?ml(e)?[[e]]:ll(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?sl(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function ll(e){var t;return(t=[]).concat.apply(t,Ms([],Ps(e),!1))}function cl(e){return gl(e)?e:[e]}function ul(e){return void 0===e?[]:cl(e)}function dl(e,t,n){var r,o;if(vl(e))return e(t,n.data);var i={};try{for(var a=Ts(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];vl(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 pl(e){return e instanceof Promise||!(null===e||!vl(e)&&"object"!=typeof e||!vl(e.then))}function hl(e,t){return ol(e.states,(function(e,n){if(e){var r=(ml(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:hl(e,r)}}}))}function fl(e,t,n,r){Js||xl(!!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(vl(a))l=a(e,t.data,s);else try{for(var c=Ts(Object.keys(a)),u=c.next();!u.done;u=c.next()){var d=u.value,p=a[d];l[d]=vl(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 xl=function(){};function gl(e){return Array.isArray(e)}function vl(e){return"function"==typeof e}function ml(e){return"string"==typeof e}function bl(e,t){if(e)return ml(e)?{type:Ks,name:e,predicate:t?t[e]:void 0}:vl(e)?{type:Ks,name:e.name,predicate:e}:e}Js||(xl=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 yl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function wl(e){return!!e&&"__xstatenode"in e}function Cl(e,t){return ml(e)||"number"==typeof e?Ls({type:e},t):e}function jl(e,t){if(!ml(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Cl(e);return Ls({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function kl(e,t){return cl(t).map((function(t){return void 0===t||"string"==typeof t||wl(t)?{target:t,event:e}:Ls(Ls({},t),{event:e})}))}function $l(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===Ks)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 Sl(e){return"string"==typeof e?{type:e}:e}function El(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 Rl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Ll(e){return(e.type===Is||e.type===Vs&&e.to===Rs.Internal)&&"number"!=typeof e.delay}(Zs={})[yl]=function(){return this},Zs[Symbol.observable]=function(){return this};var Ol=jl({type:Hs});function Tl(e,t){return t&&t[e]||void 0}function Pl(e,t){var n;if(ml(e)||"number"==typeof e)n=vl(r=Tl(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(vl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(vl(r=Tl(e.type,t)))n=Ls(Ls({},e),{exec:r});else if(r){var o=r.type||e.type;n=Ls(Ls(Ls({},r),e),{type:o})}else n=e}return n}var Ml=function(e,t){return e?(gl(e)?e:[e]).map((function(e){return Pl(e,t)})):[]};function _l(e){var t=Pl(e);return Ls(Ls({id:ml(e)?e:t.id},t),{type:t.type})}function Dl(e,t){var n="".concat(Es.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Il(e,t){var n="".concat(Es.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Vl(e,t){var n="".concat(Es.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Nl(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=Ts(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?fl(n,r,s,t):n,c=a?[n]:void 0,u=[];function d(o,s){var d;switch(s.type){case Is:var p=function(e,t,n,r){var o,i={_event:n},a=jl(vl(e.event)?e.event(t,n.data,i):e.event);if(ml(e.delay)){var s=r&&r[e.delay];o=vl(s)?s(t,n.data,i):s}else o=vl(e.delay)?e.delay(t,n.data,i):e.delay;return Ls(Ls({},e),{type:Is,_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=jl(vl(e.event)?e.event(t,n.data,i):e.event);if(ml(e.delay)){var s=r&&r[e.delay];o=vl(s)?s(t,n.data,i):s}else o=vl(e.delay)?e.delay(t,n.data,i):e.delay;var l=vl(e.to)?e.to(t,n.data,i):e.to;return Ls(Ls({},e),{to:l,_event:a,event:a.data,delay:o})}(s,l,r,e.options.delays);if(!Js){var f=s.delay;xl(!ml(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&h.to!==Rs.Internal&&("entry"===o?u.push(h):i(h,l,r)),h;case Bs:var x=function(e,t,n){return Ls(Ls({},e),{value:ml(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(s,l,r);return null==i||i(x,l,r),x;case Us:if(!(b=null===(d=s.conds.find((function(n){var o=bl(n.cond,e.options.guards);return!o||$l(e,o,l,r,i?void 0:t)})))||void 0===d?void 0:d.actions))return[];var g=Ps(Nl(e,t,l,r,[{type:o,actions:Ml(ul(b),e.options.actions)}],i,a),2),v=g[0],m=g[1];return l=m,null==c||c.push(l),v;case Xs:var b;if(!(b=s.get(l,r.data)))return[];var y=Ps(Nl(e,t,l,r,[{type:o,actions:Ml(ul(b),e.options.actions)}],i,a),2),w=y[0],C=y[1];return l=C,null==c||c.push(l),w;case Ds:x=function(e,t,n){var r=vl(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:Es.Stop,activity:o}}(s,l,r);return null==i||i(x,n,r),x;case zs:l=fl(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=Ls(Ls({},j),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ms([c[$]],Ps(t),!1))}});j=S}return j}}var p=ll(o.map((function(e){var t,n,o=[];try{for(var a=Ts(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 Al=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}}})[yl]=function(){return this},t}function Bl(e,t,n){var r=zl(t);if(r.deferred=!0,wl(e)){var o=r.state=Al(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var Hl=function(e){return"atomic"===e.type||"final"===e.type};function Fl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Zl(e){return Fl(e).filter((function(e){return"history"!==e.type}))}function ql(e){var t=[e];return Hl(e)?t:t.concat(ll(Zl(e).map(ql)))}function Wl(e,t){var n,r,o,i,a,s,l,c,u=Ul(new Set(e)),d=new Set(t);try{for(var p=Ts(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=Ul(d);try{for(var g=Ts(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,Ts(Zl(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=Ts(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 Gl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Hl(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=Gl(e,t)})),o}function Ul(e){var t,n,r=new Map;try{for(var o=Ts(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 Xl(e,t){return Gl(e,Ul(Wl([e],t)))}function Yl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Kl(e,t){return"compound"===t.type?Zl(t).some((function(t){return"final"===t.type&&Yl(e,t)})):"parallel"===t.type&&Zl(t).every((function(t){return Kl(e,t)}))}function Jl(e){return new Set(ll(e.map((function(e){return e.tags}))))}function Ql(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(ml(e)||ml(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Ql(e[n],t[n])}))}var ec=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ys,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||Ys,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 Ms([],Ps(new Set(ll(Ms([],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:Ol,_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=Ol;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="."),ml(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ms([],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=Os(e,["configuration","transitions","tags","machine"]);return Ls(Ls({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Qs(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Js&&xl(!!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}(),tc={deferEvents:!1},nc=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Ls(Ls({},tc),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}(),rc=new Map,oc=0,ic=function(){return"x:".concat(oc++)},ac=function(e,t){return rc.set(e,t),e},sc=function(e){return rc.get(e)},lc=function(e){rc.delete(e)};function cc(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Js||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 uc(e){if(cc()){var t=function(){var e=cc();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function dc(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(e){var t;return Ls(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[yl]=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=El(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 pc,hc={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(pc||(pc={}));var fc=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=pc.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(gl(e))return r.batch(e),r.state;var n=jl(Cl(e,t));if(r.status===pc.Stopped)return Js||xl(!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!==pc.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===Rs.Parent||r.parent.id===t),a=i?r.parent:ml(t)?t===Rs.Internal?r:r.children.get(t)||sc(t):(o=t)&&"function"==typeof o.send?t:void 0;if(a)if("machine"in a){if(r.status!==pc.Stopped||r.parent!==a||r.state.done){var s=Ls(Ls({},e),{name:e.name===Ws?"".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,"'."));Js||xl(!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||Tl(e.type,o),a=vl(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 Is: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===Ol):r.send(l._event);break;case Ns:r.cancel(e.sendId);break;case _s:if(r.status!==pc.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Es.Invoke){var u=Sl(c.src),d=r.machine.options.services?r.machine.options.services[u.type]:void 0,p=c.id,h=c.data;Js||xl(!("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(Js||xl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var x=h?dl(h,t,n):void 0;if("string"==typeof d)return;var g=vl(d)?d(t,n.data,{data:x,src:u,meta:c.meta}):d;if(!g)return;var v=void 0;wl(g)&&(g=x?g.withContext(x):g,v={autoForward:f}),r.spawn(g,p,v)}else r.spawnActivity(c);break;case Ds:r.stopChild(e.activity.id);break;case Bs:var m=e,b=m.label,y=m.value;b?r.logger(b,y):r.logger(y);break;default:Js||xl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=Ls(Ls({},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 nc({deferEvents:this.options.deferEvents}),this.sessionId=ic()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Al(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Js||xl(this.status!==pc.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=Ts(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!==Ol||!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=Ts(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=Ts(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=Ts(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?dl(m.doneData,e.context,t):void 0;this._doneEvent=Il(this.id,b);try{for(var y=Ts(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(),lc(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===pc.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=El(e,t,n);this.listeners.add(o.next),this.status!==pc.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===pc.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===pc.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===pc.Running)return this;this.machine._init(),ac(this.sessionId,this),this.initialized=!0,this.status=pc.Running;var n=void 0===e?this.initialState:Al(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(ec.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Ol)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){vl(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=Ts(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=Ts(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=Ts(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=Ts(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=pc.Stopped,this._initialState=void 0;try{for(var b=Ts(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 nc({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=jl({type:"xstate.stop"}),r=Al(e,(function(){var t=ll(Ms([],Ps(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Ml(t.onExit,e.machine.options.actions)}))),r=Ps(Nl(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 ec({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!Ll(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(),lc(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===pc.NotStarted&&this.options.deferEvents)Js||xl(!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!==pc.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=jl(e);t.forward(r),i=Al(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),s.push.apply(s,Ms([],Ps(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return Ls(Ls({},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=Ts(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,jl(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=jl(e);if(0===r.name.indexOf(qs)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(qs)})))throw r.data.data;return Al(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=Ts(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),vl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==pc.Running)return Bl(e,t);if(pl(e))return this.spawnPromise(Promise.resolve(e),t);if(vl(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&&vl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(wl(e))return this.spawnMachine(e,Ls(Ls({},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,Ls(Ls({},this.options),{parent:this,id:n.id||t.id})),i=Ls(Ls({},hc),n);i.sync&&o.onTransition((function(e){r.send(Gs,{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(jl(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=dc(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(jl(Il(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=Vl(t,e);try{o.send(jl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Js){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=El(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}})[yl]=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(jl(e,{origin:t}))}),(function(e){s.add(e)}))}catch(e){this.send(Vl(t,e))}if(pl(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=El(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,vl(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[yl]=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(jl(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(jl(Vl(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(jl(Il(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}}})[yl]=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 Js||xl(!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}}})[yl]=function(){return this},n))},e.prototype.attachDev=function(){var e=cc();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(Ls(Ls({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Ls({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}uc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[yl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===pc.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=xc,e}();function xc(e,t){return new fc(e,t)}function gc(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function vc(e){return Ls(Ls({type:Fs},e),{toJSON:function(){e.onDone,e.onError;var t=Os(e,["onDone","onError"]);return Ls(Ls({},t),{type:Fs,src:gc(e.src)})}})}var mc="",bc="*",yc={},wc=function(e){return"#"===e[0]},Cc=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||Ms([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,Js||xl(!("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?ol(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Ls(((r={})[o.id]=o,r),o.idMap)),o})):yc;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=Ts(Fl(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===mc})):mc in this.config.on),this.strict=!!this.config.strict,this.onEntry=ul(this.config.entry||this.config.onEntry).map((function(e){return Pl(e)})),this.onExit=ul(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=ul(this.config.invoke).map((function(e,t){var n,r;if(wl(e)){var o=Rl(a.id,t);return a.machine.options.services=Ls(((n={})[o]=e,n),a.machine.options.services),vc({src:o,id:o})}if(ml(e.src)){o=e.id||Rl(a.id,t);return vc(Ls(Ls({},e),{id:o,src:e.src}))}if(wl(e.src)||vl(e.src)){o=e.id||Rl(a.id,t);return a.machine.options.services=Ls(((r={})[o]=e.src,r),a.machine.options.services),vc(Ls(Ls({id:o},e),{src:o}))}var i=e.src;return vc(Ls(Ls({id:Rl(a.id,t)},e),{src:i}))})),this.activities=ul(this.config.activities).concat(this.invoke).map((function(e){return _l(e)})),this.transition=this.transition.bind(this),this.tags=ul(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ql(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:Ls(Ls({},o),t.actions),activities:Ls(Ls({},i),t.activities),guards:Ls(Ls({},a),t.guards),services:Ls(Ls({},s),t.services),delays:Ls(Ls({},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 vl(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:ol(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===mc,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===bc}));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(Es.After,"(").concat(e,")").concat(n)}(vl(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:vl(e)?e:Cl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:vl(e)?e.name:el(e)}}(r,{delay:t})),e.onExit.push({type:Ns,sendId:r}),r},r=gl(t)?t.map((function(e,t){var r=n(e.delay,t);return Ls(Ls({},e),{event:r})})):ll(Object.keys(t).map((function(e,r){var o=t[e],i=ml(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return ul(i).map((function(e){return Ls(Ls({},e),{event:s,delay:a})}))})));return r.map((function(t){var n=t.delay;return Ls(Ls({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof ec?e.value:nl(e,this.delimiter);if(ml(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,Ms([],Ps(ll(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=el(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ec?e:ec.create(e),n=Array.from(Wl([],this.getStateNodes(t.value)));return new ec(Ls(Ls({},t),{value:this.resolve(t.value),configuration:n,done:Kl(n,this),tags:Jl(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=Ts(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=ll(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=ll(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:p,exitSet:ll(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:ll(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return ml(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,jl(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],l=[];try{for(var c=Ts(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||(ml(h)&&wc(h)?e.matches(nl(this.getStateNodeById(h).path,this.delimiter)):Qs(nl(h,this.delimiter),al(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||$l(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,Ms([],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=ll(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:ll(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?Wl([],this.getStateNodes(i.value)):[],h=new Set;try{for(var f=Ts(Array.from(e).sort((function(e,t){return e.order-t.order}))),x=f.next();!x.done;x=f.next()){(!Yl(p,m=x.value)||Yl(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=Ts(p),v=g.next();!v.done;v=g.next()){var m;Yl(e,m=v.value)&&!Yl(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=ll(b.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(Dl(e.id,e.doneData),Dl(i.id,e.doneData?dl(e.doneData,r,o):void 0));var a=i.parent;return"parallel"===a.type&&Zl(a).every((function(e){return Kl(n.configuration,e)}))&&t.push(Dl(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=_l(e);return{type:Es.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Ml(a?Ms(Ms([],Ps(t),!1),Ps(n),!1):Ms(Ms([],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:Is,event:"function"==typeof e?e:Cl(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:Ml(Ms(Ms([],Ps(e.onExit),!1),Ps(e.activities.map((function(e){return function(e){var t=vl(e)?e:_l(e);return{type:Es.Stop,activity:t,exec:void 0}}(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:Ml(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Ml(ll(Ms([],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!Ll(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=jl(t);if(e instanceof ec)o=void 0===n?e:this.resolveState(ec.from(e,n));else{var s=ml(e)?this.resolve(rl(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(ec.from(s,l))}if(!Js&&a.name===bc)throw new Error("An event cannot have the wildcard type ('".concat(bc,"')"));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=Wl([],this.getStateNodes(o.value)),d=c.configuration.length?Wl(u,c.configuration):u;return c.configuration=Ms([],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,Ms([],Ps(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,a,s,l,c=this;void 0===o&&(o=Ol);var u=e.configuration,d=!t||e.transitions.length>0,p=d?e.configuration:t?t.configuration:[],h=Kl(p,this),f=d?Xl(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?Ls({},t.activities):{};try{for(var m=Ts(g),b=m.next();!b.done;b=m.next()){var y=b.value;try{for(var w=(s=void 0,Ts(y.actions)),C=w.next();!C.done;C=w.next()){var j=C.value;j.type===_s?v[j.activity.id||j.activity.type]=j:j.type===Ds&&(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(Nl(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=Ts(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,Ll),2),O=L[0],T=L[1],P=E.filter((function(e){var t;return e.type===_s&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Fs})),M=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=Sl(e.src),a=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],s=e.data?dl(e.data,n,r):void 0,l=a?Bl(a,e.id,s):zl(e.id);return l.meta=e,l}(t.activity,c.machine,R,o),e}),t?Ls({},t.children):{}),_=new ec({value:f||t.value,context:R,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?x?(k=x,$=f,{current:$,states:hl(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:M,done:h,tags:Jl(p),machine:this}),D=n!==R;_.changed=o.name===Gs||D;var I=_.history;I&&delete I.history;var V=!h&&(this._transient||u.some((function(e){return e._transient})));if(!(d||V&&o.name!==mc))return _;var N=_;if(!h)for(V&&(N=this.resolveRaisedTransition(N,{type:As},o,r));O.length;){var A=O.shift();N=this.resolveRaisedTransition(N,A._event,o,r)}var z=N.changed||(I?!!N.actions.length||D||typeof I.value!=typeof N.value||!Ql(N.value,I.value):void 0);return N.changed=z,N.history=I,N},e.prototype.getStateNode=function(e){if(wc(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=wc(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&&wc(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=tl(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||yc;switch(this.type){case"parallel":return ol(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):yc}));case"compound":if(ml(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?ol(e,(function(e,t){return e?n.getStateNode(t).resolve(e):yc})):this.initialStateValue||{};default:return e||yc}},e.prototype.getResolvedPath=function(e){if(wc(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 tl(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=il(this.states,(function(e){return e.initialStateValue||yc}),(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=Hl(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=ml(t.target)&&wc(t.target)?rl(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 Hl(this)?[this]:"compound"!==this.type||this.initial?ll(sl(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Js||xl(!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:il(this.states,(function(t,n){if(!e)return t.historyValue();var r=ml(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?ll(sl(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=Ts(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 ml(a)?[n.getStateNode(a)]:ll(sl(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=ll(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=Ts(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,Ts(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(!ml(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 ul(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return ml(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=Ls(Ls({},e),{actions:Ml(ul(e.actions)),cond:bl(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return Ls(Ls({},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=bc,a=o[i],s=void 0===a?[]:a,l=Os(o,["*"]);n=ll(Object.keys(l).map((function(e){Js||e!==mc||xl(!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=kl(e,l[e]);return Js||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(ml(e.target)||wl(e.target))})),o=t===mc?"the transient event":"event '".concat(t,"'");xl(!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(kl(bc,s)))}else n=[];var c=this.config.always?kl("",this.config.always):[],u=this.config.onDone?kl(String(Dl(this.id)),this.config.onDone):[];Js||xl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=ll(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ms([],Ps(kl(String(Il(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ms([],Ps(kl(String(Vl(e.id)),e.onError)),!1)),t}))),p=this.after,h=ll(Ms(Ms(Ms(Ms([],Ps(u),!1),Ps(d),!1),Ps(n),!1),Ps(c),!1).map((function(e){return ul(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ts(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 jc,kc=function(e){return{type:zs,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(jc||(jc={}));var $c="undefined"!=typeof document?n.useLayoutEffect:function(){};function Sc(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}var Ec=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},Rc=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 Lc=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},Oc=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 Tc(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([]);$c((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=Lc(function(e,t){var n,r,o=Ec([[],[]],2),i=o[0],a=o[1];try{for(var s=Rc(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===jc.Effect})),2),s=a[0],l=a[1];(n=t.current).push.apply(n,Oc([],Lc(s.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,Oc([],Lc(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),$c((function(){for(;r.current.length;){var e=Lc(r.current.shift(),2);Tc(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=Lc(t.current.shift(),2);Tc(e[0],e[1])}}))}var Mc=function(){return Mc=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},Mc.apply(this,arguments)},_c=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},Dc=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 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};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=Sc((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Dc(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=_c(t,["context","guards","actions","activities","services","delays","state"]),f=Sc((function(){var e={context:a,guards:s,actions:l,activities:c,services:u,delays:d};return xc(o.withConfig(e,(function(){return Mc(Mc({},o.context),a)})),Mc({deferEvents:!0},h))}));return $c((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]),$c((function(){return f.start(p?ec.create(p):void 0),function(){f.stop()}}),[]),$c((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=Ic(n.useState((function(){var e=o.machine.initialState;return t.state?ec.create(t.state):e})),2),a=i[0],s=i[1];return[a,o.send,o]}function Nc(){return Nc=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},Nc.apply(null,arguments)}function Ac(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 Bc(e,t){return zc.und(e)||zc.nul(e)?t:e}function Hc(e){return zc.und(e)?[]:zc.arr(e)?e:[e]}function Fc(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 Zc(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,Ac(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(zc.und(t))return Nc({to:t},e);const n=Object.keys(e).reduce(((n,r)=>zc.und(t[r])?Nc({},n,{[r]:e[r]}):n),{});return Nc({to:t},n)}class qc{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 Wc extends qc{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof qc&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof qc&&e.removeChild(this)))}}class Gc extends qc{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof qc&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof qc&&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 qc)&&(t[n]=r instanceof qc?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let Uc,Xc;let Yc,Kc=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Jc,Qc=()=>Date.now();class eu extends Gc{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Nc({},e,{style:Jc(e.style)}):e,this.update=t,this.attach()}}let tu=!1;const nu=new Set,ru=()=>{if(!tu)return!1;let e=Qc();for(let t of nu){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 qc,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||(nu.delete(t),t.stop(!0))}return nu.size?Kc(ru):tu=!1,tu};function ou(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return ou({range:e,output:t,extrapolate:n});if(Yc&&"string"==typeof e.output[0])return Yc(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 iu extends Wc{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Wc&&!(e instanceof iu)?e.getPayload():Array.isArray(e)?e:[e],this.calc=ou(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=ou(e,t,n)}interpolate(e,t,n){return new iu(this,e,t,n)}}const au=(e,t,n)=>e&&new iu(e,t,n);function su(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>su(e,t)))}class lu extends qc{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&&su(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new iu(this,e,t,n)}}class cu extends Wc{constructor(e){super(),this.payload=e.map((e=>new lu(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 iu(this,e,t)}}let uu=0,du=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=uu++}update(e){if(!e)return this;const t=Zc(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=Ac(t,["delay","to"]);if(zc.arr(o)||zc.fun(o))this.queue.push(Nc({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const a=Nc({to:{[n]:o},delay:Fc(r,n)},i),s=e[a.delay]&&e[a.delay].to;e[a.delay]=Nc({},e[a.delay],a,{to:Nc({},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=Nc({},n,this.merged)),zc.obj(o)&&(this.merged=Nc({},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=Ac(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,nu.has(t)||nu.add(t),tu||(tu=!0,Kc(ru));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,nu.has(t)&&nu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Ac(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=Nc({},r,Zc(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=Nc({},r,Zc(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=Nc({},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=Nc({},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)&&!Xc[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=Fc(s,n);h&&(x=h.animations[n].parent);let v,m=i.parent,b=i.interpolation,y=Hc(h?x.getPayload():x),w=o;p&&(w=Yc({range:[0,1],output:[o,o]})(1));let C=b&&b.getValue();const j=!zc.und(m)&&i.animatedValues.some((e=>!e.done)),k=!zc.equ(w,C),$=!zc.equ(w,i.previous),S=!zc.equ(g,i.config);if(u||$&&k||S){if(a||l)m=b=i.parent||new lu(f);else if(c)m=b=i.parent||new cu(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 lu(0);const t={output:[e,o]};i.interpolation?(b=i.interpolation,i.interpolation.updateConfig(t)):b=m.interpolate(t)}return y=Hc(h?x.getPayload():x),v=Hc(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=Qc(),e.done=!1,e.animatedStyles.clear()})),Fc(d,n)&&m.setValue(p?x:o,!1),Nc({},e,{[n]:Nc({},i,{name:n,parent:m,interpolation:b,animatedValues:v,toValues:y,previous:w,config:g,fromValues:Hc(m.getValue()),immediate:Fc(d,n),initialVelocity:Bc(g.velocity,0),clamp:Bc(g.clamp,!1),precision:Bc(g.precision,.01),tension:Bc(g.tension,170),friction:Bc(g.friction,26),mass:Bc(g.mass,1),duration:g.duration,easing:Bc(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,Nc({},e,{[n]:Nc({},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 pu=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 du,a=i?Fc(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?Fc(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 hu extends Gc{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof qc||(e=Uc.transform(e)),this.payload=e}}const fu={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},xu="[-+]?\\d*\\.?\\d+",gu=xu+"%";function vu(){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 mu=new RegExp("rgb"+vu(xu,xu,xu)),bu=new RegExp("rgba"+vu(xu,xu,xu,xu)),yu=new RegExp("hsl"+vu(xu,gu,gu)),wu=new RegExp("hsla"+vu(xu,gu,gu,xu)),Cu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ju=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ku=/^#([0-9a-fA-F]{6})$/,$u=/^#([0-9a-fA-F]{8})$/;function Su(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 Eu(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Su(o,r,e+1/3),a=Su(o,r,e),s=Su(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Ru(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lu(e){return(parseFloat(e)%360+360)%360/360}function Ou(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Tu(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=ku.exec(e))?parseInt(t[1]+"ff",16)>>>0:fu.hasOwnProperty(e)?fu[e]:(t=mu.exec(e))?(Ru(t[1])<<24|Ru(t[2])<<16|Ru(t[3])<<8|255)>>>0:(t=bu.exec(e))?(Ru(t[1])<<24|Ru(t[2])<<16|Ru(t[3])<<8|Ou(t[4]))>>>0:(t=Cu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=$u.exec(e))?parseInt(t[1],16)>>>0:(t=ju.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yu.exec(e))?(255|Eu(Lu(t[1]),Tu(t[2]),Tu(t[3])))>>>0:(t=wu.exec(e))?(Eu(Lu(t[1]),Tu(t[2]),Tu(t[3]))|Ou(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 Mu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_u=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Du=new RegExp(`(${Object.keys(fu).join("|")})`,"g");let Iu={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 Nu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Iu.hasOwnProperty(e)&&Iu[e]?(""+t).trim():t+"px"}Iu=Object.keys(Iu).reduce(((e,t)=>(Vu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Iu);const Au={};var zu;Jc=e=>new hu(e),zu=e=>{const t=e.output.map((e=>e.replace(_u,Pu))).map((e=>e.replace(Du,Pu))),n=t[0].match(Mu).map((()=>[]));t.forEach((e=>{e.match(Mu).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Mu).map(((t,r)=>ou(Nc({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Mu,(()=>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})`))}},Yc=zu,Xc=fu,function(e,t){Uc={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=Ac(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=Nu(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:Au[t]||(Au[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var Bu;const Hu=(Bu=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 eu(e,(()=>{let e=!1;s.current&&(e=Uc.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=Ac(c,["scrollTop","scrollLeft"]),d=(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,Nc({},u,{ref:d}))})),e=>(zc.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Bu(n),e}),Bu))(["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 Fu(e,t){return e.map((function(e,n){return e+t[n]}))}function Zu(e,t){return e.map((function(e,n){return e-t[n]}))}function qu(e){return Math.hypot.apply(Math,e)}function Wu(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Gu(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 Uu(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?-Gu(t-e,n-t,r)+t:e>n?+Gu(e-n,n-t,r)+n:e}function Xu(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 Yu(){return Yu=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},Yu.apply(this,arguments)}function Ku(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(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 ed(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 Qu(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)?Qu(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 td(){}function nd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?td:1===t.length?t[0]:function(){for(var e,n,r=ed(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function rd(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 od(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 id(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]=id(e[a],s);break;case"boolean":s&&(n[a]=e[a])}}return n}var ad=Yu({},{threshold:function(e){return void 0===e&&(e=0),rd(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return rd(.15);case!1:return rd(0);default:return rd(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:rd(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 ad.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]]}}),sd="undefined"!=typeof window&&window.document&&window.document.createElement,ld={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=sd?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}}},cd=Yu({},ad,{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=rd(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),rd(e)},swipeDistance:function(e){return void 0===e&&(e=60),rd(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function ud(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={}),id(e,ld)}({domTarget:t,eventOptions:n,window:r,enabled:o});return a.drag=function(e){return void 0===e&&(e={}),id(e,cd)}(i),a}function dd(e){return Yu({_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:td,canceled:!1,memo:void 0,args:void 0},e)}function pd(){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:dd({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:dd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:dd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:dd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:dd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var hd=new Map,fd=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=Yu({},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]?xd(h[0],i[0]):u[0],x=!1===u[1]?xd(h[1],i[1]):u[1],g=this.checkIntentionality([f,x],h);if(g._blocked)return Yu({},g,{_movement:h,delta:[0,0]});var v,m,b,y,w=g._intentional,C=h;(!1!==w[0]&&!1===u[0]&&(m=od(n,this.state),v=od(r,this.state),l[0]=m[0],s[0]=v[0]),!1!==w[1]&&!1===u[1])&&(m=null!=(b=m)?b:od(n,this.state),v=null!=(y=v)?y:od(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=Fu(j,d),$=c?o:[0,0];return j=gd(s,Fu(j,l),$),Yu({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:j,values:e,offset:gd(s,k,$),delta:Zu(j,p)})},t.clean=function(){this.clearTimeout()},Xu(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 xd(e,t){return Math.abs(e)>=t&&Wu(e)*t}function gd(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[Uu(r,l,c,i),Uu(o,d,p,a)]}function vd(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 md(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,Yu({},t,{event:n})].concat(o))}}var bd=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=ed(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];Cd(e,c[0],md(c[1],Yu({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=wd(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;kd(o,yd(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,nd.apply(void 0,u)])}jd(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]=nd.apply(void 0,u)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=wd(t.config),n=t.config.eventOptions;e&&kd(e,yd(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){kd(n,o[i],r)}e.windowListeners={}}(t)},this.state=pd(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function yd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function wd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Cd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function jd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=ed(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.addEventListener(a,s,n)}}function kd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=ed(t);!(r=o()).done;){var i=r.value,a=i[0],s=i[1];e.removeEventListener(a,s,n)}}function $d(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(hd.get("drag"));e.wheel&&t.add(hd.get("wheel"));e.scroll&&t.add(hd.get("scroll"));e.move&&t.add(hd.get("move"));e.pinch&&t.add(hd.get("pinch"));e.hover&&t.add(hd.get("hover"));return t}(e),i=n.useMemo((function(){return new bd(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?Sd:i.bind}function Sd(){"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 Ed(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Rd(e){var t="buttons"in e?e.buttons:0,n=Ed(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 Ld(e){var t=Ed(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Od=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&&(kd(r.window,o[t],r.eventOptions),jd(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(Ju(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=Rd(e);if(n.down){t.updateSharedState(n);var r=Ld(e),o=t.getKinematics(r,e),i=vd(Ju(t),e),a=t.state._isTap,s=qu(o._movement);a&&s>=3&&(a=!1),t.updateGestureState(Yu({},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=Yu({},vd(Ju(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]=Wu(o)),!1!==d&&Math.abs(i)>f&&Math.abs(l)>v&&(b[1]=Wu(i))),t.updateGestureState(Yu({},m,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Ju(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(kd(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}Ku(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Ld(e);this.updateSharedState(Rd(e)),this.updateGestureState(Yu({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return Yu({},pd()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),vd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Cd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Cd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Ku(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Zu(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=qu(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:qu(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(fd));function Td(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(!Td(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(!Td(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||Td(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function Pd(e,t){try{return Td(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 Md(e,t){void 0===t&&(t={}),hd.set("drag",Od);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}}(ud,Pd)),$d({drag:e},r.current(t))}
|
|
2424
2446
|
/*!
|
|
2425
2447
|
* tabbable 5.3.3
|
|
2426
2448
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2427
|
-
*/var
|
|
2449
|
+
*/var _d=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Dd=_d.join(","),Id="undefined"==typeof Element,Vd=Id?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Nd=!Id&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Ad=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Dd));return t&&Vd.call(e,Dd)&&r.unshift(e),r=r.filter(n)},zd=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{Vd.call(a,Dd)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scope:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},Bd=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},Hd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Fd=function(e){return"INPUT"===e.tagName},Zd=function(e){return function(e){return Fd(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Nd(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)},qd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Wd=function(e,t){return!(t.disabled||function(e){return Fd(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Vd.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Vd.call(o,"details:not([open]) *"))return!0;var i=Nd(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 qd(e)}else{if("function"==typeof r){for(var s=e;e;){var l=e.parentElement,c=Nd(e);if(l&&!l.shadowRoot&&!0===r(l))return qd(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!!Vd.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Gd=function(e,t){return!(Zd(t)||Bd(t)<0||!Wd(e,t))},Ud=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Xd=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,a=i?t.scope:t,s=Bd(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(Hd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Yd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?zd([e],t.includeContainer,{filter:Gd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ud}):Ad(e,t.includeContainer,Gd.bind(null,t)),Xd(n)},Kd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Vd.call(e,Dd)&&Gd(t,e)},Jd=_d.concat("iframe").join(","),Qd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Vd.call(e,Jd)&&Wd(t,e)};
|
|
2428
2450
|
/*!
|
|
2429
2451
|
* focus-trap 6.9.4
|
|
2430
2452
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2431
2453
|
*/
|
|
2432
|
-
function Jd(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 Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach((function(t){ep(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ep(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tp,np=(tp=[],{activateTrap:function(e){if(tp.length>0){var t=tp[tp.length-1];t!==e&&t.pause()}var n=tp.indexOf(e);-1===n||tp.splice(n,1),tp.push(e)},deactivateTrap:function(e){var t=tp.indexOf(e);-1!==t&&tp.splice(t,1),tp.length>0&&tp[tp.length-1].unpause()}}),rp=function(e){return setTimeout(e,0)},op=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},ip=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},ap=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},sp=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=Qd({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=Ud(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?Nd([t],n.includeContainer,{filter:Zd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Vd(t,n.includeContainer,Zd.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 Xd(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return Xd(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=ap(e);s(t)>=0||(ip(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Kd(t,o.tabbableOptions)}):ip(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=ap(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!==ip(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=ap(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=op(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Kd(t,o.tabbableOptions)&&!Xd(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=op(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Kd(t,o.tabbableOptions)&&!Xd(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=ap(e);s(t)>=0||ip(o.clickOutsideDeactivates,e)||ip(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return np.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?rp((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=Qd({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,np.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(){rp((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 lp=!1;if("undefined"!=typeof window){var cp={get passive(){lp=!0}};window.addEventListener("testPassive",null,cp),window.removeEventListener("testPassive",null,cp)}var up,dp="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),pp=[],hp=!1,fp=-1,xp=void 0,gp=void 0,vp=function(e){return pp.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},mp=function(e){var t=e||window.event;return!!vp(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},bp=function(e,t){if(e){if(!pp.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};pp=[].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)}(pp),[n]),dp?(e.ontouchstart=function(e){1===e.targetTouches.length&&(fp=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-fp;!vp(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?mp(e):e.stopPropagation())}(t,e)},hp||(document.addEventListener("touchmove",mp,lp?{passive:!1}:void 0),hp=!0)):function(e){if(void 0===gp){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(gp=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===xp&&(xp=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.")},yp=function(e){e?(pp=pp.filter((function(t){return t.targetElement!==e})),dp?(e.ontouchstart=null,e.ontouchmove=null,hp&&0===pp.length&&(document.removeEventListener("touchmove",mp,lp?{passive:!1}:void 0),hp=!1)):pp.length||(void 0!==gp&&(document.body.style.paddingRight=gp,gp=void 0),void 0!==xp&&(document.body.style.overflow=xp,xp=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},wp=[],Cp="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"}(up||(up={}));var jp,kp=function(e){return Object.freeze(e)},$p=function(e,t){this.inlineSize=e,this.blockSize=t,kp(this)},Sp=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,kp(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}(),Ep=function(e){return e instanceof SVGElement&&"getBBox"in e},Rp=function(e){if(Ep(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)},Lp=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)},Op="undefined"!=typeof window?window:{},Tp=new WeakMap,Pp=/auto|scroll/,Mp=/^tb|vertical/,_p=/msie|trident/i.test(Op.navigator&&Op.navigator.userAgent),Dp=function(e){return parseFloat(e||"0")},Ip=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new $p((n?t:e)||0,(n?e:t)||0)},Vp=kp({devicePixelContentBoxSize:Ip(),borderBoxSize:Ip(),contentBoxSize:Ip(),contentRect:new Sp(0,0,0,0)}),Np=function(e,t){if(void 0===t&&(t=!1),Tp.has(e)&&!t)return Tp.get(e);if(Rp(e))return Tp.set(e,Vp),Vp;var n=getComputedStyle(e),r=Ep(e)&&e.ownerSVGElement&&e.getBBox(),o=!_p&&"border-box"===n.boxSizing,i=Mp.test(n.writingMode||""),a=!r&&Pp.test(n.overflowY||""),s=!r&&Pp.test(n.overflowX||""),l=r?0:Dp(n.paddingTop),c=r?0:Dp(n.paddingRight),u=r?0:Dp(n.paddingBottom),d=r?0:Dp(n.paddingLeft),p=r?0:Dp(n.borderTopWidth),h=r?0:Dp(n.borderRightWidth),f=r?0:Dp(n.borderBottomWidth),x=d+c,g=l+u,v=(r?0:Dp(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:Dp(n.width)-w-y,k=r?r.height:Dp(n.height)-C-b,$=j+x+y+v,S=k+g+b+m,E=kp({devicePixelContentBoxSize:Ip(Math.round(j*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:Ip($,S,i),contentBoxSize:Ip(j,k,i),contentRect:new Sp(d,l,j,k)});return Tp.set(e,E),E},Ap=function(e,t,n){var r=Np(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case up.DEVICE_PIXEL_CONTENT_BOX:return a;case up.BORDER_BOX:return o;default:return i}},zp=function(e){var t=Np(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=kp([t.borderBoxSize]),this.contentBoxSize=kp([t.contentBoxSize]),this.devicePixelContentBoxSize=kp([t.devicePixelContentBoxSize])},Bp=function(e){if(Rp(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Hp=function(){var e=1/0,t=[];wp.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new zp(t.target),o=Bp(t.target);r.push(n),t.lastReportedSize=Ap(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},Fp=function(e){wp.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Bp(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Zp=function(){var e=0;for(Fp(e);wp.some((function(e){return e.activeTargets.length>0}));)e=Hp(),Fp(e);return wp.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Cp}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Cp),window.dispatchEvent(e)}(),e>0},Wp=[],qp=function(e){if(!jp){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Wp.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),jp=function(){n.textContent="".concat(t?t--:t++)}}Wp.push(e),jp()},Gp=0,Up={attributes:!0,characterData:!0,childList:!0,subtree:!0},Xp=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Yp=function(e){return void 0===e&&(e=0),Date.now()+e},Kp=!1,Jp=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),!Kp){Kp=!0;var n,r=Yp(e);n=function(){var n=!1;try{n=Zp()}finally{if(Kp=!1,e=r-Yp(),!Gp)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,Up)};document.body?t():Op.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Xp.forEach((function(t){return Op.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Xp.forEach((function(t){return Op.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Qp=function(e){!Gp&&e>0&&Jp.start(),!(Gp+=e)&&Jp.stop()},eh=function(){function e(e,t){this.target=e,this.observedBox=t||up.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Ap(this.target,this.observedBox,!0);return function(e){return!Ep(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}(),th=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},nh=new WeakMap,rh=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},oh=function(){function e(){}return e.connect=function(e,t){var n=new th(e,t);nh.set(e,n)},e.observe=function(e,t,n){var r=nh.get(e),o=0===r.observationTargets.length;rh(r.observationTargets,t)<0&&(o&&wp.push(r),r.observationTargets.push(new eh(t,n&&n.box)),Qp(1),Jp.schedule())},e.unobserve=function(e,t){var n=nh.get(e),r=rh(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&wp.splice(wp.indexOf(n),1),n.observationTargets.splice(r,1),Qp(-1))},e.disconnect=function(e){var t=this,n=nh.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ih=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.");oh.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(!Lp(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");oh.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(!Lp(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");oh.unobserve(this,e)},e.prototype.disconnect=function(){oh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ah(){return ah=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},ah.apply(this,arguments)}function sh(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 lh="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function ch(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 uh(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var dh={box:"border-box"};function ph(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 lh((function(){if(e.current&&o){var t=new ih(c);return t.observe(e.current,dh),function(){t.disconnect()}}}),[e,c,o]),o?s:0}function hh(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var fh={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},xh={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},gh=function(e,t,n){return void 0===n&&(n=e.context),new yc(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:ah({},fh,xh)}}},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:ah({},fh,xh)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:ah({},{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:[Cc({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(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(hh()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),vh=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],mh=["velocity"],bh=["onRest","config"],yh={tension:170,friction:26},wh=yh.tension,Ch=yh.friction,jh=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?$h:f,g=e.snapPoints,v=void 0===g?Sh: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=sh(e,vh),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 ah({},t,((n={})[e]=!1,n))})),function(){a((function(t){var n;return ah({},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=T.ready,M=T.registerReady,_=n.useRef(!1),D=n.useRef(j),I=n.useRef(k),V=n.useRef($);n.useEffect((function(){D.current=j,I.current=k,V.current=$}),[k,j,$]);var N,A,z=uu((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),W=n.useRef(null),q=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}),[]),A=n.useRef(null==N?void 0:N.matches),n.useDebugValue(A.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){A.current=e.matches};return null==N||N.addListener(e),function(){return null==N?void 0:N.removeListener(e)}}),[N]),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,bp(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,yp(e))}}}),[r,t,o]),i}({targetRef:Z,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&&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=sp(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:P&&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 uh(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]),lh((function(){if(e)return s(uh(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=ph(s,{label:"headerHeight",enabled:a,resizeSourceRef:c}),h=ph(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=ph(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(uh).reduce((function(e,n){return e.add(ch(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=uh("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:W,controlledMaxHeight:h,footerEnabled:!!a,footerRef:G,getSnapPoints:v,headerEnabled:!1!==s,headerRef:q,heightRef:X,lastSnapRef:u,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),ue=n.useRef(ae),de=n.useRef(0);lh((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=sh(n,mh),a=sh(e,bh);return new Promise((function(e){return H(ah({},a,{config:ah({velocity:o},i,{mass:1,tension:wh,friction:Math.max(Ch,Ch+(Ch-Ch*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),he=Dc(gh,{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==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==V.current?void 0:V.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==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.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(){P&&xe(l?"OPEN":"CLOSE")}),[l,xe,P]),lh((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=Td((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?qu(m,p?0:le.current,ce.current,.55):m<le.current?qu(m,le.current,2*ce.current,.55):qu(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=ou([n.y,n.maxHeight],(function(e,t){return Math.round(ch(t-e,0,16))+"px"})),o=ou([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return ch(e,t,n)+"px"})),i=ou([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=ou([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),s=ou([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return ch((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=ou([n.y,n.minSnap],(function(e,t){return t?ch(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(zu.div,ah({},O,{"data-rsbs-root":!0,"data-rsbs-state":kh.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:ah({},ve,C,{opacity:B.ready})}),o,b&&n.createElement("div",ah({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",ah({key:"header","data-rsbs-header":!0,ref:q},ge()),s),n.createElement("div",ah({key:"scroll","data-rsbs-scroll":!0,ref:Z},L?ge({isContentDragging:!0}):{}),n.createElement("div",{"data-rsbs-content":!0,ref:W},r)),a&&n.createElement("div",ah({key:"footer",ref:G,"data-rsbs-footer":!0},ge()),a)))})),kh=["closed","opening","open","closing","dragging","snapping","resizing"];function $h(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Sh(e){return e.minHeight}var Eh=["onSpringStart","onSpringEnd","skipInitialTransition"],Rh=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,a=sh(e,Eh),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");lh((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(ks,{"data-rsbs-portal":!0},n.createElement(jh,ah({},a,{lastSnapRef:d,ref:t,initialState:p.current,onSpringStart:h,onSpringEnd:f}))):null}));const Lh=r.css`
|
|
2454
|
+
function ep(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 tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach((function(t){np(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rp,op=(rp=[],{activateTrap:function(e){if(rp.length>0){var t=rp[rp.length-1];t!==e&&t.pause()}var n=rp.indexOf(e);-1===n||rp.splice(n,1),rp.push(e)},deactivateTrap:function(e){var t=rp.indexOf(e);-1!==t&&rp.splice(t,1),rp.length>0&&rp[rp.length-1].unpause()}}),ip=function(e){return setTimeout(e,0)},ap=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},sp=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},lp=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},cp=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=tp({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=Yd(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?zd([t],n.includeContainer,{filter:Wd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Ad(t,n.includeContainer,Wd.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 Kd(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return Kd(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=lp(e);s(t)>=0||(sp(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Qd(t,o.tabbableOptions)}):sp(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=lp(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!==sp(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=lp(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=ap(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Qd(t,o.tabbableOptions)&&!Kd(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=ap(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Qd(t,o.tabbableOptions)&&!Kd(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=lp(e);s(t)>=0||sp(o.clickOutsideDeactivates,e)||sp(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return op.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?ip((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=tp({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,op.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(){ip((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 up=!1;if("undefined"!=typeof window){var dp={get passive(){up=!0}};window.addEventListener("testPassive",null,dp),window.removeEventListener("testPassive",null,dp)}var pp,hp="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),fp=[],xp=!1,gp=-1,vp=void 0,mp=void 0,bp=function(e){return fp.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},yp=function(e){var t=e||window.event;return!!bp(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},wp=function(e,t){if(e){if(!fp.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};fp=[].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)}(fp),[n]),hp?(e.ontouchstart=function(e){1===e.targetTouches.length&&(gp=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-gp;!bp(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?yp(e):e.stopPropagation())}(t,e)},xp||(document.addEventListener("touchmove",yp,up?{passive:!1}:void 0),xp=!0)):function(e){if(void 0===mp){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(mp=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===vp&&(vp=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.")},Cp=function(e){e?(fp=fp.filter((function(t){return t.targetElement!==e})),hp?(e.ontouchstart=null,e.ontouchmove=null,xp&&0===fp.length&&(document.removeEventListener("touchmove",yp,up?{passive:!1}:void 0),xp=!1)):fp.length||(void 0!==mp&&(document.body.style.paddingRight=mp,mp=void 0),void 0!==vp&&(document.body.style.overflow=vp,vp=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},jp=[],kp="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"}(pp||(pp={}));var $p,Sp=function(e){return Object.freeze(e)},Ep=function(e,t){this.inlineSize=e,this.blockSize=t,Sp(this)},Rp=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,Sp(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}(),Lp=function(e){return e instanceof SVGElement&&"getBBox"in e},Op=function(e){if(Lp(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)},Tp=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:{},Mp=new WeakMap,_p=/auto|scroll/,Dp=/^tb|vertical/,Ip=/msie|trident/i.test(Pp.navigator&&Pp.navigator.userAgent),Vp=function(e){return parseFloat(e||"0")},Np=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Ep((n?t:e)||0,(n?e:t)||0)},Ap=Sp({devicePixelContentBoxSize:Np(),borderBoxSize:Np(),contentBoxSize:Np(),contentRect:new Rp(0,0,0,0)}),zp=function(e,t){if(void 0===t&&(t=!1),Mp.has(e)&&!t)return Mp.get(e);if(Op(e))return Mp.set(e,Ap),Ap;var n=getComputedStyle(e),r=Lp(e)&&e.ownerSVGElement&&e.getBBox(),o=!Ip&&"border-box"===n.boxSizing,i=Dp.test(n.writingMode||""),a=!r&&_p.test(n.overflowY||""),s=!r&&_p.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=Sp({devicePixelContentBoxSize:Np(Math.round(j*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:Np($,S,i),contentBoxSize:Np(j,k,i),contentRect:new Rp(d,l,j,k)});return Mp.set(e,E),E},Bp=function(e,t,n){var r=zp(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case pp.DEVICE_PIXEL_CONTENT_BOX:return a;case pp.BORDER_BOX:return o;default:return i}},Hp=function(e){var t=zp(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Sp([t.borderBoxSize]),this.contentBoxSize=Sp([t.contentBoxSize]),this.devicePixelContentBoxSize=Sp([t.devicePixelContentBoxSize])},Fp=function(e){if(Op(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Zp=function(){var e=1/0,t=[];jp.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Hp(t.target),o=Fp(t.target);r.push(n),t.lastReportedSize=Bp(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},qp=function(e){jp.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Fp(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Wp=function(){var e=0;for(qp(e);jp.some((function(e){return e.activeTargets.length>0}));)e=Zp(),qp(e);return jp.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:kp}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=kp),window.dispatchEvent(e)}(),e>0},Gp=[],Up=function(e){if(!$p){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Gp.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),$p=function(){n.textContent="".concat(t?t--:t++)}}Gp.push(e),$p()},Xp=0,Yp={attributes:!0,characterData:!0,childList:!0,subtree:!0},Kp=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jp=function(e){return void 0===e&&(e=0),Date.now()+e},Qp=!1,eh=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),!Qp){Qp=!0;var n,r=Jp(e);n=function(){var n=!1;try{n=Wp()}finally{if(Qp=!1,e=r-Jp(),!Xp)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Up((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,Yp)};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(),Kp.forEach((function(t){return Pp.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Kp.forEach((function(t){return Pp.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),th=function(e){!Xp&&e>0&&eh.start(),!(Xp+=e)&&eh.stop()},nh=function(){function e(e,t){this.target=e,this.observedBox=t||pp.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Bp(this.target,this.observedBox,!0);return function(e){return!Lp(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}(),rh=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},oh=new WeakMap,ih=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ah=function(){function e(){}return e.connect=function(e,t){var n=new rh(e,t);oh.set(e,n)},e.observe=function(e,t,n){var r=oh.get(e),o=0===r.observationTargets.length;ih(r.observationTargets,t)<0&&(o&&jp.push(r),r.observationTargets.push(new nh(t,n&&n.box)),th(1),eh.schedule())},e.unobserve=function(e,t){var n=oh.get(e),r=ih(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&jp.splice(jp.indexOf(n),1),n.observationTargets.splice(r,1),th(-1))},e.disconnect=function(e){var t=this,n=oh.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),sh=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.");ah.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(!Tp(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ah.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(!Tp(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ah.unobserve(this,e)},e.prototype.disconnect=function(){ah.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function lh(){return lh=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},lh.apply(this,arguments)}function ch(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 uh="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function dh(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 ph(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var hh={box:"border-box"};function fh(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 uh((function(){if(e.current&&o){var t=new sh(c);return t.observe(e.current,hh),function(){t.disconnect()}}}),[e,c,o]),o?s:0}function xh(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var gh={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},vh={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},mh=function(e,t,n){return void 0===n&&(n=e.context),new Cc(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:lh({},gh,vh)}}},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:lh({},gh,vh)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:lh({},{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:[kc({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(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(xh()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),bh=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],yh=["velocity"],wh=["onRest","config"],Ch={tension:170,friction:26},jh=Ch.tension,kh=Ch.friction,$h=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?Eh:f,g=e.snapPoints,v=void 0===g?Rh: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=ch(e,bh),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 lh({},t,((n={})[e]=!1,n))})),function(){a((function(t){var n;return lh({},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=T.ready,M=T.registerReady,_=n.useRef(!1),D=n.useRef(j),I=n.useRef(k),V=n.useRef($);n.useEffect((function(){D.current=j,I.current=k,V.current=$}),[k,j,$]);var N,A,z=pu((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=(N=n.useMemo((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),A=n.useRef(null==N?void 0:N.matches),n.useDebugValue(A.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){A.current=e.matches};return null==N||N.addListener(e),function(){return null==N?void 0:N.removeListener(e)}}),[N]),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,wp(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,Cp(e))}}}),[r,t,o]),i}({targetRef:Z,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&&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=cp(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:P&&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 ph(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]),uh((function(){if(e)return s(ph(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=fh(s,{label:"headerHeight",enabled:a,resizeSourceRef:c}),h=fh(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=fh(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(ph).reduce((function(e,n){return e.add(dh(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=ph("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: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),ue=n.useRef(ae),de=n.useRef(0);uh((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=ch(n,yh),a=ch(e,wh);return new Promise((function(e){return H(lh({},a,{config:lh({velocity:o},i,{mass:1,tension:jh,friction:Math.max(kh,kh+(kh-kh*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),he=Vc(mh,{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==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==V.current?void 0:V.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==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==V.current?void 0:V.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(){P&&xe(l?"OPEN":"CLOSE")}),[l,xe,P]),uh((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=Md((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?Uu(m,p?0:le.current,ce.current,.55):m<le.current?Uu(m,le.current,2*ce.current,.55):Uu(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=au([n.y,n.maxHeight],(function(e,t){return Math.round(dh(t-e,0,16))+"px"})),o=au([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return dh(e,t,n)+"px"})),i=au([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=au([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),s=au([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return dh((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=au([n.y,n.minSnap],(function(e,t){return t?dh(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(Hu.div,lh({},O,{"data-rsbs-root":!0,"data-rsbs-state":Sh.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:lh({},ve,C,{opacity:B.ready})}),o,b&&n.createElement("div",lh({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",lh({key:"header","data-rsbs-header":!0,ref:W},ge()),s),n.createElement("div",lh({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",lh({key:"footer",ref:G,"data-rsbs-footer":!0},ge()),a)))})),Sh=["closed","opening","open","closing","dragging","snapping","resizing"];function Eh(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Rh(e){return e.minHeight}var Lh=["onSpringStart","onSpringEnd","skipInitialTransition"],Oh=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,a=ch(e,Lh),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");uh((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(Ss,{"data-rsbs-portal":!0},n.createElement($h,lh({},a,{lastSnapRef:d,ref:t,initialState:p.current,onSpringStart:h,onSpringEnd:f}))):null}));const Th=r.css`
|
|
2433
2455
|
width: 40px;
|
|
2434
2456
|
border-radius: 4px;
|
|
2435
2457
|
background: transparent;
|
|
@@ -2443,7 +2465,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2443
2465
|
margin: 0px 0px;
|
|
2444
2466
|
background: ${h("neutral",300)};
|
|
2445
2467
|
}
|
|
2446
|
-
`,
|
|
2468
|
+
`,Ph=(e,t)=>r.css`
|
|
2447
2469
|
[data-rsbs-overlay] {
|
|
2448
2470
|
border-top-left-radius: 16px;
|
|
2449
2471
|
border-top-right-radius: 16px;
|
|
@@ -2469,7 +2491,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2469
2491
|
padding: 0px;
|
|
2470
2492
|
min-height: 64px;
|
|
2471
2493
|
}
|
|
2472
|
-
`;!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
|
|
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 Mh=(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},_h=r.css`
|
|
2473
2495
|
a,
|
|
2474
2496
|
p {
|
|
2475
2497
|
font-size: 16px;
|
|
@@ -2501,19 +2523,19 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2501
2523
|
a:hover {
|
|
2502
2524
|
text-decoration: underline;
|
|
2503
2525
|
}
|
|
2504
|
-
`,
|
|
2526
|
+
`,Dh=r.css`
|
|
2505
2527
|
svg {
|
|
2506
2528
|
height: 12px;
|
|
2507
2529
|
width: 12px;
|
|
2508
2530
|
color: ${h("neutral",600)};
|
|
2509
2531
|
}
|
|
2510
|
-
`,
|
|
2532
|
+
`,Ih=r.css`
|
|
2511
2533
|
cursor: pointer;
|
|
2512
2534
|
color: ${h("neutral",600)};
|
|
2513
2535
|
display: flex;
|
|
2514
2536
|
justify-content: center;
|
|
2515
2537
|
align-items: center;
|
|
2516
|
-
`,
|
|
2538
|
+
`,Vh=(e,t)=>r.css`
|
|
2517
2539
|
min-height: 56px;
|
|
2518
2540
|
width: 100vw;
|
|
2519
2541
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2523,7 +2545,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2523
2545
|
background-color: ${h("neutral",t?200:100)};
|
|
2524
2546
|
border-top: 1px solid ${h("neutral",400)};
|
|
2525
2547
|
z-index: 101;
|
|
2526
|
-
`,
|
|
2548
|
+
`,Nh=e=>r.css`
|
|
2527
2549
|
height: 100%;
|
|
2528
2550
|
width: 100%;
|
|
2529
2551
|
max-width: ${e?`${e}px`:"100%"};
|
|
@@ -2538,7 +2560,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2538
2560
|
flex-direction: column;
|
|
2539
2561
|
align-items: flex-start;
|
|
2540
2562
|
}
|
|
2541
|
-
`,
|
|
2563
|
+
`,Ah=r.css`
|
|
2542
2564
|
display: flex;
|
|
2543
2565
|
align-items: center;
|
|
2544
2566
|
flex-wrap: wrap;
|
|
@@ -2551,7 +2573,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2551
2573
|
color: ${h("neutral",700)};
|
|
2552
2574
|
text-decoration: underline;
|
|
2553
2575
|
}
|
|
2554
|
-
`,
|
|
2576
|
+
`,zh=r.css`
|
|
2555
2577
|
width: 240px;
|
|
2556
2578
|
font-size: 14px;
|
|
2557
2579
|
line-height: 20px;
|
|
@@ -2562,13 +2584,13 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2562
2584
|
@media screen and (max-width: 768px) {
|
|
2563
2585
|
text-align: left;
|
|
2564
2586
|
}
|
|
2565
|
-
`,
|
|
2587
|
+
`,Bh=r.css`
|
|
2566
2588
|
width: 100%;
|
|
2567
2589
|
display: flex;
|
|
2568
2590
|
align-items: center;
|
|
2569
2591
|
height: 56px;
|
|
2570
2592
|
background-color: ${h("neutral",200)};
|
|
2571
|
-
`,
|
|
2593
|
+
`,Hh=r.css`
|
|
2572
2594
|
height: 56px;
|
|
2573
2595
|
width: 99%;
|
|
2574
2596
|
background-color: ${h("neutral",200)};
|
|
@@ -2662,9 +2684,9 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2662
2684
|
opacity: 1;
|
|
2663
2685
|
}
|
|
2664
2686
|
}
|
|
2665
|
-
`,
|
|
2687
|
+
`,Fh=r.css`
|
|
2666
2688
|
position: relative;
|
|
2667
|
-
`,
|
|
2689
|
+
`,Zh=r.css`
|
|
2668
2690
|
position: absolute;
|
|
2669
2691
|
top: -5px;
|
|
2670
2692
|
right: -5px;
|
|
@@ -2679,7 +2701,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2679
2701
|
display: flex;
|
|
2680
2702
|
justify-content: center;
|
|
2681
2703
|
align-items: center;
|
|
2682
|
-
`,
|
|
2704
|
+
`,qh=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),Wh=(e,t,n)=>r.css`
|
|
2683
2705
|
height: ${e?"96px":"48px"};
|
|
2684
2706
|
width: 100%;
|
|
2685
2707
|
background-color: ${n||h("neutral",100)};
|
|
@@ -2688,7 +2710,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2688
2710
|
left: 0;
|
|
2689
2711
|
z-index: 102;
|
|
2690
2712
|
border-bottom: 1px solid ${h("neutral",400)};
|
|
2691
|
-
`,
|
|
2713
|
+
`,Gh=r.css`
|
|
2692
2714
|
height: 48px;
|
|
2693
2715
|
width: 100%;
|
|
2694
2716
|
background-color: ${h("neutral",100)};
|
|
@@ -2698,7 +2720,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2698
2720
|
justify-content: flex-start;
|
|
2699
2721
|
gap: 0px;
|
|
2700
2722
|
padding: 8px 16px;
|
|
2701
|
-
`,
|
|
2723
|
+
`,Uh=(e,t)=>r.css`
|
|
2702
2724
|
height: 48px;
|
|
2703
2725
|
width: 100%;
|
|
2704
2726
|
max-width: ${t?`${t}px`:"100%"};
|
|
@@ -2708,7 +2730,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2708
2730
|
justify-content: space-between;
|
|
2709
2731
|
margin: 0 auto;
|
|
2710
2732
|
padding: 8px 16px;
|
|
2711
|
-
`,
|
|
2733
|
+
`,Xh=r.css`
|
|
2712
2734
|
outline: none;
|
|
2713
2735
|
a {
|
|
2714
2736
|
&:focus-visible {
|
|
@@ -2719,12 +2741,12 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2719
2741
|
outline-width: 2px;
|
|
2720
2742
|
}
|
|
2721
2743
|
}
|
|
2722
|
-
`,
|
|
2744
|
+
`,Yh=e=>r.css`
|
|
2723
2745
|
display: ${e?"none":"flex"};
|
|
2724
2746
|
align-items: center;
|
|
2725
2747
|
justify-content: flex-start;
|
|
2726
2748
|
gap: 0px;
|
|
2727
|
-
`,
|
|
2749
|
+
`,Kh=e=>r.css`
|
|
2728
2750
|
font-size: 16px;
|
|
2729
2751
|
line-height: 24px;
|
|
2730
2752
|
font-weight: 400;
|
|
@@ -2749,12 +2771,12 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2749
2771
|
font-weight: 700;
|
|
2750
2772
|
color: ${h("accessible","controls-on-neutral-lights")};
|
|
2751
2773
|
`:""}
|
|
2752
|
-
`,
|
|
2774
|
+
`,Jh=r.css`
|
|
2753
2775
|
height: 48px;
|
|
2754
2776
|
display: flex;
|
|
2755
2777
|
align-items: center;
|
|
2756
2778
|
justify-content: flex-end;
|
|
2757
|
-
`,
|
|
2779
|
+
`,Qh=e=>r.css`
|
|
2758
2780
|
height: 100%;
|
|
2759
2781
|
font-size: 16px;
|
|
2760
2782
|
line-height: 24px;
|
|
@@ -2773,7 +2795,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2773
2795
|
}
|
|
2774
2796
|
}
|
|
2775
2797
|
`:""}
|
|
2776
|
-
`,
|
|
2798
|
+
`,ef=e=>r.css`
|
|
2777
2799
|
height: 100%;
|
|
2778
2800
|
display: flex;
|
|
2779
2801
|
align-items: center;
|
|
@@ -2781,7 +2803,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2781
2803
|
gap: 20px;
|
|
2782
2804
|
padding-left: 16px;
|
|
2783
2805
|
border-left: 1px solid ${h("neutral",e?700:300)};
|
|
2784
|
-
`,
|
|
2806
|
+
`,tf=r.css`
|
|
2785
2807
|
background-color: none;
|
|
2786
2808
|
border: none;
|
|
2787
2809
|
cursor: pointer;
|
|
@@ -2806,7 +2828,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2806
2828
|
outline-width: 2px;
|
|
2807
2829
|
background-color: ${h("neutral",200)};
|
|
2808
2830
|
}
|
|
2809
|
-
`,
|
|
2831
|
+
`,nf=e=>r.css`
|
|
2810
2832
|
position: absolute;
|
|
2811
2833
|
top: 48px;
|
|
2812
2834
|
right: 0;
|
|
@@ -2819,10 +2841,10 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2819
2841
|
justify-content: flex-start;
|
|
2820
2842
|
gap: 16px;
|
|
2821
2843
|
transition: width 0.5s ease-in-out;
|
|
2822
|
-
`,
|
|
2844
|
+
`,rf=r.css`
|
|
2823
2845
|
height: 100%;
|
|
2824
2846
|
width: 100%;
|
|
2825
|
-
`,
|
|
2847
|
+
`,of=r.css`
|
|
2826
2848
|
background-color: ${h("neutral",200)};
|
|
2827
2849
|
border-bottom: 1px solid ${h("neutral",300)};
|
|
2828
2850
|
|
|
@@ -2842,13 +2864,13 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2842
2864
|
margin-left: -12px;
|
|
2843
2865
|
}
|
|
2844
2866
|
}
|
|
2845
|
-
`,
|
|
2867
|
+
`,af=r.css`
|
|
2846
2868
|
background-color: ${h("neutral",100)};
|
|
2847
|
-
`,
|
|
2869
|
+
`,sf=r.css`
|
|
2848
2870
|
min-height: 100vh;
|
|
2849
2871
|
width: 100%;
|
|
2850
2872
|
overflow-y: scroll;
|
|
2851
|
-
`;r.css``;const
|
|
2873
|
+
`;r.css``;const lf=e=>r.css`
|
|
2852
2874
|
display: inline-block;
|
|
2853
2875
|
width: 100%;
|
|
2854
2876
|
padding: 12px 16px;
|
|
@@ -2877,7 +2899,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2877
2899
|
outline-width: 2px;
|
|
2878
2900
|
background-color: ${h("neutral",200)};
|
|
2879
2901
|
}
|
|
2880
|
-
`,
|
|
2902
|
+
`,cf=r.css`
|
|
2881
2903
|
width: 100%;
|
|
2882
2904
|
padding: 12px 16px;
|
|
2883
2905
|
display: flex;
|
|
@@ -2901,7 +2923,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2901
2923
|
outline-width: 2px;
|
|
2902
2924
|
background-color: ${h("neutral",200)};
|
|
2903
2925
|
}
|
|
2904
|
-
`,
|
|
2926
|
+
`,uf=e=>r.css`
|
|
2905
2927
|
position: absolute;
|
|
2906
2928
|
top: 0px;
|
|
2907
2929
|
right: 0;
|
|
@@ -2913,7 +2935,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2913
2935
|
align-items: flex-start;
|
|
2914
2936
|
justify-content: flex-start;
|
|
2915
2937
|
transition: width 0.5s ease-in-out;
|
|
2916
|
-
`,
|
|
2938
|
+
`,df=r.css`
|
|
2917
2939
|
height: 48px;
|
|
2918
2940
|
width: 100%;
|
|
2919
2941
|
display: flex;
|
|
@@ -2924,7 +2946,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2924
2946
|
position: relative;
|
|
2925
2947
|
top: 0;
|
|
2926
2948
|
left: 0;
|
|
2927
|
-
`,
|
|
2949
|
+
`,pf=r.css`
|
|
2928
2950
|
position: absolute;
|
|
2929
2951
|
bottom: 0;
|
|
2930
2952
|
left: 0;
|
|
@@ -2939,7 +2961,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2939
2961
|
button {
|
|
2940
2962
|
width: calc(48% - 24px);
|
|
2941
2963
|
}
|
|
2942
|
-
`,
|
|
2964
|
+
`,hf=({navigationSection:e,utilitySection:r,actionsSection:o,linkRouter:i,isOpen:a,setIsOpen:s,pathname:l})=>{const[c,u]=n.useState(void 0),[d,p]=n.useState(-1),h=n.useRef(null),f=n.useRef([]),x=i;return t.jsxs(t.Fragment,{children:[t.jsx("div",{css:nf(a),children:a&&t.jsxs("div",{css:rf,children:[t.jsxs("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[r?t.jsx("div",{css:of,children:r?.map((e=>t.jsx("div",{className:"ds-utility-item",children:e})))}):null,e?t.jsx("div",{css:af,children:e.map(((e,n)=>e.link?t.jsx(x,{to:e.link,href:e.link,onClick:()=>{u(void 0),p(-1),s(!1)},css:lf(l===e.link),children:e.label},e.label):t.jsxs("button",{css:cf,type:"button",ref:e=>f.current[n]=e,onClick:()=>{e.items&&(u(e),p(n),setTimeout((()=>{h.current?.focus()}),100))},children:[e.label,e.items?t.jsx($,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),o?t.jsx("div",{css:pf,children:o.map((e=>t.jsx(b,{...e,onClick:t=>{e?.onClick?.(t),u(void 0),p(-1),s(!1)}},e.ariaLabel)))}):null]})}),t.jsx("div",{css:uf(!!c?.items),children:c?.items?t.jsxs(t.Fragment,{children:[t.jsxs("div",{css:df,children:[t.jsxs("button",{type:"button",onClick:()=>{u(void 0),p(-1),f.current[d]?.focus()},"aria-label":"Go back",css:tf,ref:h,children:[t.jsx($,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),c?.label]}),t.jsxs("button",{type:"button",onClick:()=>{u(void 0),p(-1),s(!1)},"aria-label":"Close menu",css:tf,children:["Close",t.jsx(E,{height:"16px",width:"16px"})]})]}),t.jsx("div",{css:sf,children:c?.items?.map((e=>t.jsx(x,{to:e.link,href:e.link,css:lf(),onClick:()=>{u(void 0),p(-1),s(!1)},children:e.label},e.label)))})]}):null})]})},ff=1023,xf=r.css`
|
|
2943
2965
|
width: 64px;
|
|
2944
2966
|
height: 100%;
|
|
2945
2967
|
z-index: 100;
|
|
@@ -2948,7 +2970,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2948
2970
|
display: flex;
|
|
2949
2971
|
flex-direction: column;
|
|
2950
2972
|
justify-content: space-between;
|
|
2951
|
-
`,
|
|
2973
|
+
`,gf=r.css`
|
|
2952
2974
|
width: 64px;
|
|
2953
2975
|
height: 64px;
|
|
2954
2976
|
background-color: ${h("neutral",200)};
|
|
@@ -3038,7 +3060,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3038
3060
|
}
|
|
3039
3061
|
}
|
|
3040
3062
|
}
|
|
3041
|
-
`,
|
|
3063
|
+
`,vf=r.css`
|
|
3042
3064
|
display: flex;
|
|
3043
3065
|
justify-content: center;
|
|
3044
3066
|
align-items: center;
|
|
@@ -3051,7 +3073,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3051
3073
|
fill: ${h("neutral",600)};
|
|
3052
3074
|
}
|
|
3053
3075
|
}
|
|
3054
|
-
`,
|
|
3076
|
+
`,mf=r.css`
|
|
3055
3077
|
width: 64px;
|
|
3056
3078
|
height: 64px;
|
|
3057
3079
|
background-color: ${h("neutral",200)};
|
|
@@ -3089,7 +3111,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3089
3111
|
text-align: center;
|
|
3090
3112
|
color: ${h("neutral",600)};
|
|
3091
3113
|
}
|
|
3092
|
-
`,
|
|
3114
|
+
`,bf=r.css`
|
|
3093
3115
|
width: 320px;
|
|
3094
3116
|
height: 100%;
|
|
3095
3117
|
z-index: 100;
|
|
@@ -3098,14 +3120,14 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3098
3120
|
overflow-y: auto;
|
|
3099
3121
|
overflow-x: hidden;
|
|
3100
3122
|
border-right: 1px solid ${h("neutral",300)};
|
|
3101
|
-
`,
|
|
3123
|
+
`,yf=e=>r.css`
|
|
3102
3124
|
width: 100%;
|
|
3103
3125
|
display: flex;
|
|
3104
3126
|
align-items: center;
|
|
3105
3127
|
height: 40px;
|
|
3106
3128
|
|
|
3107
3129
|
${"view"===e&&`\n border: 1px solid ${h("neutral",400)};\n background-color: ${h("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
|
|
3108
|
-
`,
|
|
3130
|
+
`,wf=r.css`
|
|
3109
3131
|
width: 99%;
|
|
3110
3132
|
height: 40px;
|
|
3111
3133
|
padding: 8px 16px;
|
|
@@ -3121,7 +3143,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3121
3143
|
&:focus-visible {
|
|
3122
3144
|
box-shadow: none;
|
|
3123
3145
|
}
|
|
3124
|
-
`,
|
|
3146
|
+
`,Cf=r.css`
|
|
3125
3147
|
background-color: ${h("neutral",200)};
|
|
3126
3148
|
color: ${h("neutral",700)};
|
|
3127
3149
|
|
|
@@ -3178,11 +3200,11 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3178
3200
|
opacity: 1;
|
|
3179
3201
|
}
|
|
3180
3202
|
}
|
|
3181
|
-
`,
|
|
3203
|
+
`,jf=r.css`
|
|
3182
3204
|
width: 4px;
|
|
3183
3205
|
height: 24px;
|
|
3184
3206
|
background-color: ${h("neutral",400)};
|
|
3185
|
-
`,
|
|
3207
|
+
`,kf=r.css`
|
|
3186
3208
|
height: 32px;
|
|
3187
3209
|
border-radius: 2px;
|
|
3188
3210
|
background-color: ${h("neutral",200)};
|
|
@@ -3255,7 +3277,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3255
3277
|
opacity: 1;
|
|
3256
3278
|
}
|
|
3257
3279
|
}
|
|
3258
|
-
|
|
3280
|
+
`,$f=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),Sf=e=>1===e?"none":2===e?"left":"right",Ef=({text:e,query:t})=>{if(!t)return e;const n=new RegExp(`(${t})`,"ig"),r=e.split(n);return o.jsx(o.Fragment,{children:r.map((e=>n.test(e)?o.jsx("strong",{children:e},e):o.jsx("span",{children:e},e)))})},Rf=({items:t,query:r,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]),o.jsx(e.Box,{padding:"8px",children:t.map(((t,n)=>o.jsx(e.Box,{ref:s,padding:"6px 8px",borderRadius:"md",cursor:"pointer",bg:n===a?"gray.100":void 0,_hover:{background:"gray.50"},onClick:()=>i(t.id||t.label),children:o.jsx(Ef,{text:t.label,query:r})},t.id)))})},Lf={small:"16px",medium:"24px",large:"40px",default:"16px"};function Of(e,t,n,o){const i=function(e,t){return"string"==typeof t&&""!==t.trim()?t:e&&Lf[e]?Lf[e]:Lf.default}(e,t),a=n?h("neutral",200):h("primary",300),s=o??a,l=o&&n?"opacity: 0.7;":"",c=h("neutral",n?400:800);return r.css`
|
|
3259
3281
|
height: ${i};
|
|
3260
3282
|
width: ${i};
|
|
3261
3283
|
border-radius: 50%;
|
|
@@ -3289,17 +3311,17 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3289
3311
|
background-color: ${h("primary",500)};
|
|
3290
3312
|
}
|
|
3291
3313
|
}
|
|
3292
|
-
`}const
|
|
3314
|
+
`}const Tf=e=>r.css`
|
|
3293
3315
|
width: ${e||"16px"};
|
|
3294
3316
|
position: absolute;
|
|
3295
3317
|
top: -8px;
|
|
3296
3318
|
left: 15px;
|
|
3297
|
-
`,
|
|
3319
|
+
`,Pf=r.css`
|
|
3298
3320
|
font-size: 12px;
|
|
3299
3321
|
line-height: 16px;
|
|
3300
3322
|
font-weight: 700;
|
|
3301
3323
|
color: ${h("primary",800)};
|
|
3302
|
-
`,
|
|
3324
|
+
`,Mf=n.forwardRef((({name:n,ariaLabel:o,size:i="medium",customSize:a="",src:s,srcSet:l,onClick:c,notificationCount:u,disabled:d=!0,customBackgroundColor:p=""},f)=>{const x=()=>{d||c?.()},g=(()=>{let e="";return u&&u>0&&(e=`${u>99?"99+":u}`),e})();let v="16px";u&&u>99?v="28px":u&&u>9&&(v="22px");const m=!!s||!!l,b=c&&!d;return t.jsxs(e.Avatar.Root,{"aria-label":o||n,ref:f,css:Of(i,a,d,p),onClick:x,onKeyDown:e=>{d||"Enter"!==e.key||x()},role:b?"button":void 0,tabIndex:b?0:void 0,"aria-disabled":d,children:[m&&t.jsx(e.Avatar.Image,{src:s,srcSet:l}),!m&&n&&t.jsx(e.Avatar.Fallback,{name:n,css:Pf}),!m&&!n&&t.jsx(Q,{size:"100%",style:{padding:"15%",color:d?h("neutral",400):void 0}}),g.length>0?t.jsx("div",{css:Tf(v),children:t.jsx("div",{css:r.css`
|
|
3303
3325
|
height: 16px;
|
|
3304
3326
|
width: auto;
|
|
3305
3327
|
background-color: ${h("error",500)};
|
|
@@ -3311,16 +3333,16 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3311
3333
|
font-size: 12px;
|
|
3312
3334
|
font-weight: 700;
|
|
3313
3335
|
color: ${h("error",100)};
|
|
3314
|
-
`,children:t.jsx("p",{"aria-label":`${u} unread message`,children:g})})}):null]})})),
|
|
3336
|
+
`,children:t.jsx("p",{"aria-label":`${u} unread message`,children:g})})}):null]})})),_f=r.css`
|
|
3315
3337
|
display: flex;
|
|
3316
3338
|
justify-content: flex-start;
|
|
3317
3339
|
align-items: center;
|
|
3318
3340
|
gap: 8px;
|
|
3319
|
-
`,
|
|
3341
|
+
`,Df=e=>r.css`
|
|
3320
3342
|
width: ${e||"16px"};
|
|
3321
3343
|
position: relative;
|
|
3322
3344
|
display: flex;
|
|
3323
|
-
`,
|
|
3345
|
+
`,If=r.css`
|
|
3324
3346
|
height: 4px;
|
|
3325
3347
|
width: 4px;
|
|
3326
3348
|
background-color: ${h("error",500)};
|
|
@@ -3328,7 +3350,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3328
3350
|
position: absolute;
|
|
3329
3351
|
top: 0px;
|
|
3330
3352
|
right: 0px;
|
|
3331
|
-
`,
|
|
3353
|
+
`,Vf=r.css`
|
|
3332
3354
|
height: 10px;
|
|
3333
3355
|
background-color: ${h("error",500)};
|
|
3334
3356
|
padding: 0 3px 1px 3px;
|
|
@@ -3339,11 +3361,11 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3339
3361
|
position: absolute;
|
|
3340
3362
|
top: -2px;
|
|
3341
3363
|
left: 9px;
|
|
3342
|
-
`,
|
|
3364
|
+
`,Nf=r.css`
|
|
3343
3365
|
font-size: 9px;
|
|
3344
3366
|
font-weight: 700;
|
|
3345
3367
|
color: ${h("error",100)};
|
|
3346
|
-
`,
|
|
3368
|
+
`,Af=r.css`
|
|
3347
3369
|
height: 16px;
|
|
3348
3370
|
min-width: 16px;
|
|
3349
3371
|
background-color: ${h("error",500)};
|
|
@@ -3352,11 +3374,11 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3352
3374
|
justify-content: center;
|
|
3353
3375
|
align-items: center;
|
|
3354
3376
|
padding: 0px 4px 1px 4px;
|
|
3355
|
-
`,
|
|
3377
|
+
`,zf=r.css`
|
|
3356
3378
|
font-size: 16px;
|
|
3357
3379
|
font-weight: 700;
|
|
3358
3380
|
color: ${h("error",100)};
|
|
3359
|
-
`,
|
|
3381
|
+
`,Bf=(e,t)=>r.css`
|
|
3360
3382
|
width: 100%;
|
|
3361
3383
|
max-width: ${"small"===e?"234px":"320px"};
|
|
3362
3384
|
border-radius: 4px;
|
|
@@ -3371,7 +3393,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3371
3393
|
button {
|
|
3372
3394
|
margin-left: ${t?0:"24px"};
|
|
3373
3395
|
}
|
|
3374
|
-
`,
|
|
3396
|
+
`,Hf=r.css`
|
|
3375
3397
|
display: flex;
|
|
3376
3398
|
align-items: flex-start;
|
|
3377
3399
|
gap: 8px;
|
|
@@ -3379,28 +3401,28 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3379
3401
|
svg {
|
|
3380
3402
|
margin-top: 6px;
|
|
3381
3403
|
}
|
|
3382
|
-
`,
|
|
3404
|
+
`,Ff=e=>r.css`
|
|
3383
3405
|
color: ${h("neutral",800)};
|
|
3384
3406
|
font-size: ${"small"===e?"14px":"18px"};
|
|
3385
3407
|
line-height: ${"small"===e?"20px":"28px"};
|
|
3386
3408
|
font-weight: 400;
|
|
3387
3409
|
text-align: left;
|
|
3388
|
-
`,
|
|
3410
|
+
`,Zf=e=>r.css`
|
|
3389
3411
|
color: ${h("neutral",700)};
|
|
3390
3412
|
font-size: ${"small"===e?"12px":"16px"};
|
|
3391
3413
|
line-height: ${"small"===e?"16px":"24px"};
|
|
3392
3414
|
font-weight: 400;
|
|
3393
3415
|
margin-left: 24px;
|
|
3394
3416
|
text-align: left;
|
|
3395
|
-
`,
|
|
3417
|
+
`,qf=r.css`
|
|
3396
3418
|
background-color: ${h("neutral",100)};
|
|
3397
3419
|
border: 1px solid ${h("neutral",300)};
|
|
3398
3420
|
color: ${h("neutral",700)};
|
|
3399
|
-
`,
|
|
3421
|
+
`,Wf=r.css`
|
|
3400
3422
|
background-color: ${h("neutral",200)};
|
|
3401
3423
|
border: 1px solid ${h("neutral",300)};
|
|
3402
3424
|
color: ${h("neutral",700)};
|
|
3403
|
-
`,
|
|
3425
|
+
`,Gf=r.css`
|
|
3404
3426
|
background-color: ${h("success",100)};
|
|
3405
3427
|
border: 1px solid ${h("success",300)};
|
|
3406
3428
|
color: ${h("success",500)};
|
|
@@ -3408,7 +3430,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3408
3430
|
p {
|
|
3409
3431
|
color: ${h("success",900)};
|
|
3410
3432
|
}
|
|
3411
|
-
`,
|
|
3433
|
+
`,Uf=r.css`
|
|
3412
3434
|
background-color: ${h("warning",100)};
|
|
3413
3435
|
border: 1px solid ${h("warning",300)};
|
|
3414
3436
|
color: ${h("warning",500)};
|
|
@@ -3416,7 +3438,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3416
3438
|
p {
|
|
3417
3439
|
color: ${h("warning",900)};
|
|
3418
3440
|
}
|
|
3419
|
-
`,
|
|
3441
|
+
`,Xf=r.css`
|
|
3420
3442
|
background-color: ${h("error",100)};
|
|
3421
3443
|
border: 1px solid ${h("error",300)};
|
|
3422
3444
|
color: ${h("error",500)};
|
|
@@ -3424,32 +3446,32 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3424
3446
|
p {
|
|
3425
3447
|
color: ${h("error",900)};
|
|
3426
3448
|
}
|
|
3427
|
-
`,
|
|
3449
|
+
`,Yf=r.css`
|
|
3428
3450
|
height: 8px;
|
|
3429
3451
|
width: 100%;
|
|
3430
3452
|
background-color: ${h("neutral",300)};
|
|
3431
3453
|
display: flex;
|
|
3432
3454
|
align-items: center;
|
|
3433
3455
|
justify-content: flex-start;
|
|
3434
|
-
`,
|
|
3456
|
+
`,Kf=e=>r.css`
|
|
3435
3457
|
height: 100%;
|
|
3436
3458
|
width: ${e}%;
|
|
3437
3459
|
background-color: ${h("primary",500)};
|
|
3438
3460
|
transition: width 0.5s ease-in-out;
|
|
3439
|
-
`,
|
|
3461
|
+
`,Jf=r.css`
|
|
3440
3462
|
width: 100%;
|
|
3441
3463
|
display: flex;
|
|
3442
3464
|
align-items: center;
|
|
3443
3465
|
justify-content: space-between;
|
|
3444
3466
|
position: relative;
|
|
3445
|
-
`,
|
|
3467
|
+
`,Qf=r.css`
|
|
3446
3468
|
height: 60px;
|
|
3447
3469
|
width: 80px;
|
|
3448
3470
|
display: flex;
|
|
3449
3471
|
flex-direction: column;
|
|
3450
3472
|
align-items: center;
|
|
3451
3473
|
justify-content: space-between;
|
|
3452
|
-
`,
|
|
3474
|
+
`,ex=(e,t)=>r.css`
|
|
3453
3475
|
height: 32px;
|
|
3454
3476
|
width: 32px;
|
|
3455
3477
|
display: flex;
|
|
@@ -3485,12 +3507,12 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3485
3507
|
}
|
|
3486
3508
|
|
|
3487
3509
|
${t?`\n background-color: ${h("neutral",300)};\n \n &:hover {\n background-color: ${h("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3488
|
-
`,
|
|
3510
|
+
`,tx=e=>r.css`
|
|
3489
3511
|
color: ${h("neutral",e?800:600)};
|
|
3490
3512
|
font-size: 14px;
|
|
3491
3513
|
line-height: 20px;
|
|
3492
3514
|
font-weight: 400;
|
|
3493
|
-
`,
|
|
3515
|
+
`,nx=r.css`
|
|
3494
3516
|
height: 1px;
|
|
3495
3517
|
width: 100%;
|
|
3496
3518
|
padding: 0 30px;
|
|
@@ -3498,11 +3520,11 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3498
3520
|
top: 16px;
|
|
3499
3521
|
left: 0;
|
|
3500
3522
|
z-index: -1;
|
|
3501
|
-
`,
|
|
3523
|
+
`,rx=r.css`
|
|
3502
3524
|
height: 1px;
|
|
3503
3525
|
width: 100%;
|
|
3504
3526
|
background-color: ${h("neutral",400)};
|
|
3505
|
-
`,
|
|
3527
|
+
`,ox=r.css`
|
|
3506
3528
|
justify-content: space-between;
|
|
3507
3529
|
align-items: center;
|
|
3508
3530
|
gap: 8px;
|
|
@@ -3545,21 +3567,21 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3545
3567
|
color: ${h("error",900)};
|
|
3546
3568
|
}
|
|
3547
3569
|
}
|
|
3548
|
-
`,
|
|
3570
|
+
`,ix=r.css`
|
|
3549
3571
|
font-size: 18px;
|
|
3550
3572
|
line-height: 28px;
|
|
3551
3573
|
font-weight: 400;
|
|
3552
3574
|
color: ${h("neutral",800)};
|
|
3553
|
-
`,
|
|
3575
|
+
`,ax=r.css`
|
|
3554
3576
|
font-size: 16px;
|
|
3555
3577
|
line-height: 24px;
|
|
3556
3578
|
font-weight: 400;
|
|
3557
3579
|
color: ${h("neutral",700)};
|
|
3558
|
-
`,
|
|
3580
|
+
`,sx=r.css`
|
|
3559
3581
|
padding: 6px;
|
|
3560
|
-
`,
|
|
3582
|
+
`,lx=r.css`
|
|
3561
3583
|
padding: 6px;
|
|
3562
|
-
`,
|
|
3584
|
+
`,cx={pauseOnPageIdle:!0,offsets:"24px"},ux={"top-start":e.createToaster({placement:"top-start",...cx}),"top-end":e.createToaster({placement:"top-end",...cx}),"bottom-start":e.createToaster({placement:"bottom-start",...cx}),"bottom-end":e.createToaster({placement:"bottom-end",...cx})};exports.AnalysisWidget=({children:r,header:o,footer:i,expanded:a=!0,collapsible:s=!0,actions:l,showFooterOnCollapsed:c=!1})=>{const u="analysis-widget-item",[d,p]=n.useState(a),h=`analysis-widget-header-${u}`;return t.jsx(e.Box,{as:"section","aria-labelledby":h,css:ua,children:t.jsxs(e.Accordion.Root,{multiple:!0,value:s?void 0:[u],defaultValue:a?[u]:[],children:[t.jsxs(e.Accordion.Item,{css:pa,value:u,children:[o&&t.jsx(e.Accordion.ItemTrigger,{id:h,role:"button","aria-expanded":d,tabIndex:0,css:da,pointerEvents:s?"auto":"none",onClick:s?()=>{p(!d)}:void 0,children:t.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[o,l&&l.map((e=>t.jsx(b,{variant:"secondary",size:"small",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},leftIcon:e?.icon},e.label))),s&&t.jsx(e.Accordion.ItemIndicator,{height:"16px",marginTop:"8px",display:"flex",children:t.jsx($,{"aria-label":"Toggle section",color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]})}),t.jsxs("div",{className:d?"item-content-open":"item-content-closed","aria-hidden":!d,children:[r,!c&&i&&t.jsx(e.Box,{css:ha,children:i})]})]}),c&&i&&t.jsx(e.Box,{css:ha,children:i})]})})},exports.Avatar=Mf,exports.Badge=({hasNotification:e,notificationCount:r,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 r&&r>0&&(e=`${r>99?"99+":r}`),e})();let l="16px";return r&&r>99?l="28px":r&&r>9&&(l="22px"),i?t.jsxs("div",{css:_f,role:"status","aria-live":"polite",children:[t.jsxs("div",{css:Df(),children:[t.jsx(I,{color:"currentColor",height:"16px",width:"16px"}),!e||r||o?null:t.jsx("div",{css:If,"aria-hidden":!0})]}),o?t.jsx("p",{children:o}):null,s.length>0?t.jsx("div",{css:Af,children:t.jsx("p",{css:zf,"aria-label":`${r} unread message`,children:s})}):null]}):t.jsxs("div",{css:_f,role:"status","aria-live":"polite",children:[o?t.jsx("p",{children:o}):null,t.jsxs("div",{css:Df(l),children:[s.length>0?t.jsx("div",{css:Vf,children:t.jsx("p",{css:Nf,"aria-label":`${r} unread message`,children:s})}):null,e&&!r?t.jsx("div",{css:If,"aria-hidden":!0}):null,t.jsx(I,{color:"currentColor",height:"16px",width:"16px"})]})]})},exports.BaseMap=({title:e,caption:o,additionalSettings:i,options:a,onOptionSelected:s,maxHeight:l="400px",maxWidth:c="260px"})=>{const u=n.useRef(null),d=n.useRef(null);return n.useEffect((()=>{const e=u.current,t=d.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)}),[]),t.jsx("div",{ref:d,css:Cn(l,c),children:t.jsxs("div",{className:"ds-base-map-scroll-content",children:[t.jsxs("div",{css:jn,children:[t.jsx("h2",{ref:u,className:"ds-base-map-header-title",tabIndex:-1,children:e}),t.jsx("p",{className:"ds-base-map-header-caption",children:o})]}),t.jsxs("div",{css:kn,children:[i?t.jsx("div",{css:$n,children:i.map((e=>t.jsxs("div",{children:[t.jsx(Le,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?t.jsx("div",{css:Sn,children:e.children}):null]},e.label)))}):null,a?t.jsx("div",{css:En,children:a.map((e=>{return t.jsxs("div",{css:Rn(e.active),role:"button",onClick:()=>s?.(e),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||s?.(e)},children:[t.jsx("div",{css:(n=e.imageUrl,r.css`
|
|
3563
3585
|
height: 32px;
|
|
3564
3586
|
width: 32px;
|
|
3565
3587
|
border: 1px solid ${h("neutral",300)};
|
|
@@ -3567,9 +3589,10 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3567
3589
|
background-image: url(${n});
|
|
3568
3590
|
background-size: cover;
|
|
3569
3591
|
background-position: center;
|
|
3570
|
-
`)}),t.jsxs("div",{css:
|
|
3571
|
-
margin-left: ${
|
|
3572
|
-
|
|
3592
|
+
`)}),t.jsxs("div",{css:Ln,children:[t.jsxs("div",{className:"ds-base-map-title-container",children:[t.jsx("p",{className:"ds-base-map-title",children:e.label}),e.active?t.jsx(Gt,{label:"Active",variant:"warning",size:"small",icon:t.jsx(C,{})}):null]}),t.jsx("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?t.jsx("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var n}))}):null]})]})})},exports.Breadcrumb=({links:r,separator:o,maxItems:i=99,linkRouter:a})=>{const[s,l]=n.useState(r.length>i);n.useEffect((()=>{l(r.length>i)}),[r.length]);const c=a;return t.jsx(e.Breadcrumb.Root,{children:t.jsx(e.Breadcrumb.List,{gap:"16px",children:s?t.jsxs(t.Fragment,{children:[t.jsx(e.Breadcrumb.Item,{css:_h,children:t.jsxs(c,{to:r[0].link,href:r[0].link,children:[r[0].icon,r[0].label]})}),t.jsx(e.Breadcrumb.Separator,{css:Dh,children:o||t.jsx($,{rotate:"270"})}),t.jsx("li",{className:"chakra-breadcrumb__item",children:t.jsx("button",{css:Ih,type:"button",onClick:()=>l(!1),children:"..."})}),t.jsx(e.Breadcrumb.Separator,{css:Dh,children:o||t.jsx($,{rotate:"270"})}),t.jsx(e.Breadcrumb.Item,{css:_h,children:t.jsxs("p",{"aria-current":"page","aria-label":r[r.length-1].label,children:[r[r.length-1].icon,r[r.length-1].label]})})]}):r.map(((i,a)=>i?.label?t.jsxs(n.Fragment,{children:[t.jsx(e.Breadcrumb.Item,{css:_h,children:a<r.length-1?t.jsxs(c,{to:i.link,href:i.link,children:[i.icon,i.label]}):t.jsxs("p",{"aria-current":"page","aria-label":i.label,children:[i.label&&i.icon?i.icon:"",i.label]})}),a<r.length-1?t.jsx(e.Breadcrumb.Separator,{css:Dh,children:o||t.jsx($,{rotate:"270"})}):null]},i.label):null))})})},exports.Button=b,exports.Checkbox=Le,exports.CheckboxList=({label:o,caption:i,checkboxes:a,defaultValue:s,onCheckedChange:l,errorMessage:c,horizontal:u,required:d,hideCheckedCounter:p=!1,hideExpandToggle:h=!1})=>{const[f,x]=n.useState(s?{[s]:!0}:{}),[g,v]=n.useState(!0),m="string"!=typeof o,b=a.length>0&&a.every((e=>e.name&&f[e.name])),y=a.some((e=>e.name&&f[e.name]))&&!b,w=a.length,C=`${a.filter((e=>e?.name&&f[e.name])).length} / ${w}`,j=i?`${i}.`:"",k=d?"Required.":"Optional",S=c?`Error: ${c}.`:"",E=`${m?o.label:o}. ${j} ${k} ${S} `;return t.jsxs(e.Group,{css:ot,"aria-label":E,children:[c?t.jsx("div",{css:lt}):null,t.jsxs("div",{css:(R=!!c,r.css`
|
|
3593
|
+
margin-left: ${R?"19px":"0px"};
|
|
3594
|
+
width: 100%;
|
|
3595
|
+
`),children:[t.jsx("div",{css:it,children:"string"==typeof o?t.jsxs(t.Fragment,{children:[d&&t.jsx("span",{id:"required-symbol","aria-label":"required",children:"*"}),o]}):t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[t.jsxs(Le,{checked:b,indeterminate:y,onCheckedChange:e=>(e=>{const t=a.filter((e=>void 0!==e.name)).reduce(((t,n)=>(t[n.name]=e,t)),{});x(t),l?.(t)})(!!e.checked),children:[o.label," ",!p&&t.jsx("span",{"aria-hidden":"true",css:ut,children:C})]}),!h&&t.jsxs("button",{type:"button",onClick:()=>v((e=>!e)),"aria-expanded":g,"aria-controls":"checkbox-list",css:dt,children:[g?"Hide":"Expand",t.jsx("span",{"aria-hidden":"true",children:g?t.jsx($,{style:{transform:"rotate(180deg)"}}):t.jsx($,{})})]})]})}),t.jsx("p",{css:at,"aria-label":i,children:i}),c?t.jsx("p",{css:ct,"aria-label":c,children:c}):null,t.jsx("div",{id:"checkbox-list",css:st(u,g),children:a.map((e=>t.jsx(Le,{ms:m&&!u?"6":"",css:{},checked:!!e?.name&&!!f[e.name],onCheckedChange:({checked:t})=>((e,t)=>{const n={...f};t&&(n[t]=e,x(n)),l&&l(n)})(t,e.name),...e},e.name)))})]})]});var R},exports.CheckboxOptionCard=({defaultValue:n,items:o,onValueChange:i})=>t.jsx(e.CheckboxGroup,{defaultValue:n,onValueChange:i,children:t.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:o.map((o=>{return t.jsxs(e.CheckboxCard.Root,{css:Oe,defaultChecked:-1!==n?.indexOf(o.value),disabled:o.disabled,value:o.value,children:[t.jsx(e.CheckboxCard.HiddenInput,{}),t.jsxs(e.CheckboxCard.Control,{css:Te,children:[t.jsxs(e.CheckboxCard.Content,{css:(a=o.variant,r.css`
|
|
3573
3596
|
width: 100%;
|
|
3574
3597
|
display: flex;
|
|
3575
3598
|
flex-direction: ${"centered"===a?"column":"row"};
|
|
@@ -3582,13 +3605,13 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3582
3605
|
padding: 0px;
|
|
3583
3606
|
padding-top: 8px;
|
|
3584
3607
|
color: ${i?h("neutral",500):"inherit"};
|
|
3585
|
-
`),children:o.children}):null]},`${o.label}-${o.value}`);var i,a}))})}),exports.CloseButton=se,exports.ClusterPoint=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:a="cluster"})=>o.jsx(Ln,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:a}),exports.ExtendableCard=({children:n,header:r,footer:o})=>t.jsx(e.Box,{css:aa,children:t.jsx(e.Accordion.Root,{multiple:!0,children:t.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[t.jsxs(e.Accordion.ItemTrigger,{css:sa,alignItems:"center",children:[t.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:r}),t.jsx(e.Accordion.ItemIndicator,{children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsxs(e.Accordion.ItemContent,{children:[n,o]})]})})}),exports.Footer=({children:e,label:n="© World Resources Institute",fixed:r,filled:o,maxWidth:i})=>{const a=(new Date).getFullYear();return t.jsx("footer",{css:Dh(r,o),children:t.jsxs("div",{css:Ih(i),children:[t.jsx("div",{children:t.jsx(D,{height:"32px",width:"91px"})}),t.jsx("div",{css:Vh,children:e}),t.jsx("div",{children:t.jsxs("p",{css:Nh,children:[n," ",a]})})]})})},exports.IconButton=ae,exports.InlineMessage=({label:e,caption:n,variant:r,size:o="large",icon:i=t.jsx(k,{height:"16px",width:"16px"}),onActionClick:a,actionLabel:s,isButtonRight:l})=>{let c=Ff;return"info-grey"===r?c=Zf:"success"===r?c=Wf:"warning"===r?c=qf:"error"===r&&(c=Gf),t.jsxs("div",{css:[Af(o,l),c],"aria-roledescription":"Note",children:[t.jsxs("div",{children:[t.jsxs("div",{css:zf,children:[i,t.jsx("p",{css:Bf(o),children:e})]}),t.jsx("p",{css:Hf(o),children:n})]}),s?t.jsx(b,{label:s,variant:"info-white"===r||"info-grey"===r?"primary":"secondary",size:"large"===o?"default":"small",onClick:a}):null]})},exports.InputWithUnits=({label:r,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 t.jsxs("div",{css:ut,children:[i?t.jsx("div",{css:ht}):null,t.jsxs("div",{style:{marginLeft:i?"19px":"0px"},children:[t.jsxs("p",{css:dt(p),"aria-label":r,children:[d?t.jsx("span",{children:"*"}):null,r]}),t.jsx("p",{css:pt(p),"aria-label":o,children:o}),i?t.jsx("p",{css:ft,"aria-label":i,children:i}):null,t.jsxs(e.Group,{css:xt(!!i,s),attached:!0,children:["start"===s?t.jsx(Ut,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null,t.jsx(Ct,{type:"number",value:h,disabled:p,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===s?t.jsx(Ut,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=_i,exports.LayerGroup=({label:r,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((t=>{t.isDefaultSelected&&(e={...e,["radio"===t.variant?r:t.name]:t.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=`${r}, ${p} Active layers on the map${o?`, ${o}`:""}`;return t.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[t.jsxs(e.Accordion.ItemTrigger,{css:Go,alignItems:"flex-start","aria-label":h,children:[t.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[t.jsxs("span",{css:Uo,children:[r,t.jsx(Wt,{label:`${p} Active`,size:"small",variant:p>0?"success":"info-grey"})]}),t.jsx("div",{css:Xo,children:o})]}),t.jsx(e.Accordion.ItemIndicator,{display:"flex",children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsx(e.Accordion.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:t.jsx(qe,{name:r,defaultValue:u,customGap:"0px",onChange:(e,t)=>d(e,!!t,s,t),children:a.map((e=>t.jsx(ti,{...e,onChange:(t,n)=>d(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:n,defaultValue:r,...o})=>t.jsx("div",{css:qo,style:{width:"100%"},children:t.jsx(e.Accordion.Root,{css:{},defaultValue:r,multiple:!0,...o,children:n})}),exports.LayerItem=ti,exports.LayerParameters=({label:r,children:o,openedByDefault:i})=>t.jsx("div",{children:t.jsx(e.Accordion.Root,{defaultValue:i?[r]:[],multiple:!0,children:t.jsxs(e.Accordion.Item,{css:ni,value:r,children:[t.jsxs(e.Accordion.ItemTrigger,{css:ri,children:[t.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:t.jsx("p",{css:oi,children:r})}),t.jsx(e.Accordion.ItemIndicator,{display:"flex",children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsx(e.Accordion.ItemContent,{css:ii,children:n.Children.map(o,(e=>t.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:n,onDrag:r,onUpClick:o,onDownClick:i,onRemoveClick:a,children:s,onInfoClick:l,onOpacityChanged:c})=>t.jsxs("div",{css:ai,children:[t.jsxs("div",{css:si,children:[t.jsx(ae,{icon:t.jsx(T,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:r,style:{display:"none",marginBottom:"12px"}}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[t.jsx(ae,{icon:t.jsx($,{rotate:"180"}),"aria-label":"Up",onClick:o}),t.jsx(ae,{icon:t.jsx($,{}),"aria-label":"Down",onClick:i})]})]}),t.jsxs("div",{style:{width:"100%"},children:[t.jsxs("div",{css:li,children:[t.jsxs("div",{children:[t.jsx("h3",{css:ci,children:e}),t.jsx("p",{css:ui,children:n})]}),t.jsx(b,{label:"Remove",size:"small",variant:"secondary",rightIcon:t.jsx(E,{}),onClick:a})]}),s,t.jsxs("div",{css:di,children:[t.jsx(b,{label:"About data",size:"small",variant:"secondary",leftIcon:t.jsx(k,{}),onClick:l}),t.jsx(gi,{defaultValue:80,onOpacityChanged:c})]})]})]}),exports.List=Fi,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:t,onExpandClick:n,onShareClick:r,onPrintClick:i,onSettingsClick:a,onQuestionClick:s,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d})=>{const p=[{icon:o.jsx(V,{}),label:"Zoom in",ariaLabel:"zoom in",onClick:e},{icon:o.jsx(N,{}),label:"Zoom out",ariaLabel:"zoom out",onClick:t,gap:!0},{icon:o.jsx(A,{}),label:"Expand",ariaLabel:"expand",onClick:n,gap:!0},{icon:o.jsx(z,{}),label:"Share",ariaLabel:"share",onClick:r,gap:!0},{icon:o.jsx(B,{}),label:"Print",ariaLabel:"print",onClick:i,gap:!0},{icon:o.jsx(H,{}),label:"Settings",ariaLabel:"settings",onClick:a,gap:!0},{icon:o.jsx(F,{}),label:"Help",ariaLabel:"question",onClick:s}];return o.jsx(fe,{items:p,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d||"Map controls toolbar"})},exports.MapMarker=Ln,exports.MapMarkers=On,exports.MapPopUp=({open:e,onOpenChange:r,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}=Vo({open:e,onOpenChange:r,placement:c,whileElementsMounted:oo,middleware:[vo(u),(b={fallbackAxisSideDirection:"start"},{...so(b),options:[b,y]}),mo({padding:8}),bo({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=Po(),v=Vr("function"==typeof c?c:()=>!1),m="function"==typeof c?v:c,b=l.useRef(!1),{escapeKey:y,outsidePress:w}=Do(f),{escapeKey:C,outsidePress:j}=Do(x),k=l.useRef(!1),$=Vr((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?_r(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=Vr((e=>{var t;const n=()=>{var t;$(e),null==(t=Tr(e))||t.removeEventListener("keydown",n)};null==(t=Tr(e))||t.addEventListener("keydown",n)})),E=Vr((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=Tr(e),l="[data-floating-ui-inert]",c=Mr(o.floating).querySelectorAll(l);let d=In(s)?s:null;for(;d&&!Kn(d);){const e=er(d);if(Kn(e)||!In(e))break;d=e}if(c.length&&In(s)&&!s.matches("html,body")&&!Or(s,o.floating)&&Array.from(c).every((e=>!Or(d,e))))return;if(Vn(s)&&O){const t=Kn(s),n=Jn(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&&_r(g.nodesRef.current,p).some((t=>{var n;return Pr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Pr(e,o.floating)||Pr(e,o.domReference)||h)return;const f=g?_r(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=Vr((e=>{var t;const n=()=>{var t;E(e),null==(t=Tr(e))||t.removeEventListener(u,n)};null==(t=Tr(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}),Xn()?5:0)}const d=Mr(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&&(In(o.domReference)&&(p=nr(o.domReference)),In(o.floating)&&(p=p.concat(nr(o.floating))),!In(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(nr(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&&{[Mo[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},[_o[u]]:()=>{i.current.insideReactTree=!0}})),[$,u,i]);return l.useMemo((()=>a?{reference:L,floating:O}:{}),[a,L,O])}(g,{escapeKey:d,outsidePress:p}),C=zo(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=>No(t,e,"reference")),t),i=l.useCallback((t=>No(t,e,"floating")),n),a=l.useCallback((t=>No(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),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:f.setFloating,style:x,"aria-modal":!0,...j(),css:Bo,children:[t.jsxs("div",{css:Ho,children:[i,t.jsx(se,{onClick:()=>r(!1),className:"ds-map-pop-up-close-button","aria-label":"Close"})]}),t.jsx("div",{css:Fo,children:a}),s?t.jsx("div",{css:Zo,children:s}):null,t.jsx("div",{ref:h,css:Wo(E,R,k,$,S,u)})]}),t.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>p&&r(!1)})]})},exports.Menu=Ce,exports.MobileTabBar=({defaultValue:r,tabs:o,onTabClick:i,hideLabels:a,activationMode:s="manual"})=>{const l=o.length,[c,u]=n.useState((()=>Fh(o,r)));return t.jsx("div",{css:Ah,children:t.jsx(e.Tabs.Root,{width:"full",defaultValue:r||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=Fh(o,e);u(t),i&&i(e)})(e),activationMode:s,children:t.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((n,r)=>{const{label:o,icon:i,bagdeCount:s,"aria-label":u,"aria-describedby":d,disabled:p,...h}=n,f=`${n.value}-str-status`,x=[`tab ${r+1} of ${l}`,c===r?"selected":"not selected"];p&&x.push("disabled");const g=[d,f].filter(Boolean).join(" ")||void 0;return t.jsxs(e.Tabs.Trigger,{css:zh,"aria-label":u||o,"aria-disabled":!!p||void 0,"aria-describedby":g,disabled:p,...h,children:[t.jsxs("div",{css:Bh,children:[i,s?t.jsx("div",{css:Hh,className:"ds-badge-count",children:s}):null]}),a?null:t.jsx("p",{children:o}),t.jsx(e.VisuallyHidden,{id:f,children:x.join(", ")})]},n.value)}))})})})},exports.Modal=({header:n,content:r,footer:o,size:i="medium",draggable:a,blocking:s,open:l,onClose:c})=>l?t.jsx(e.Dialog.Root,{open:l,onOpenChange:c,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!a&&!s,preventScroll:!a&&!s,closeOnEscape:!s,defaultOpen:!0,children:t.jsxs(e.Portal,{children:[a?null:t.jsx(e.Dialog.Backdrop,{}),t.jsx(cs,{disabled:!a,children:t.jsx(e.Dialog.Positioner,{children:t.jsxs(e.Dialog.Content,{css:us(i),children:[t.jsxs(e.Dialog.Header,{css:ds,children:[n,s?null:t.jsx(e.Dialog.CloseTrigger,{css:ps,asChild:!0,children:t.jsx(se,{})})]}),t.jsx(e.Dialog.Body,{css:hs,children:r}),o?t.jsx(e.Dialog.Footer,{padding:"12px",children:o}):null]})})})]})}):null,exports.MultiActionButton=({variant:r="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 t.jsxs(e.Group,{css:Se,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":p,role:"group",children:[t.jsx(b,{css:{},label:i,variant:r,size:o,onClick:a,disabled:l,...c}),t.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>d(e),positioning:{placement:"bottom-end"},children:[t.jsx(e.Menu.Trigger,{css:ke(r),"data-group-item":!0,"data-last":!0,asChild:!0,children:t.jsx(b,{variant:r,size:o,leftIcon:t.jsx($,{rotate:u?"180":"0",color:h("accessible","text-on-primary-mids")||h("primary",900)}),disabled:l})}),t.jsx(Ee,{children:s.map((({label:n,value:r,onClick:i})=>t.jsx(e.Menu.Item,{css:$e(o),onClick:i,value:r,children:n},r)))})]})]})},exports.Navbar=({logo:e,linkRouter:o,pathname:i,navigationSection:a,utilitySection:s,actionsSection:l,maxWidth:c,fixed:u,onNavbarHeightChange:d,backgroundColor:p})=>{const f=n.useRef(null),x=n.useRef(null),g=n.useRef(null),[v,m]=n.useState(!1),[y,w]=n.useState(-1),[C,j]=n.useState("undefined"!=typeof window&&window?.innerWidth<=pf),[k,$]=n.useState(!1),S=o,R=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<=pf||window.innerWidth<=y?(d?.(96),m(!0)):window.innerWidth>pf&&window.innerWidth<=1440?e.right>=t.left?(d?.(96),m(!0),w(window.innerWidth)):window.innerWidth>y&&(d?.(48),m(!1),w(-1)):(d?.(48),m(!1),w(-1)),v&&(window.innerWidth<=pf||n.right>=t.left?(j(!0),d?.(48)):(j(!1),d?.(96)))}}),[y,v]);return n.useEffect((()=>(R(),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)})),[R]),t.jsxs("nav",{css:Zh(v&&!C,u,p),children:[t.jsxs("div",{css:qh(v&&!C,c),children:[t.jsxs("div",{css:(L=v&&!C,r.css`
|
|
3608
|
+
`),children:o.children}):null]},`${o.label}-${o.value}`);var i,a}))})}),exports.CloseButton=se,exports.ClusterPoint=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:a="cluster"})=>o.jsx(Tn,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:a}),exports.ExtendableCard=({children:n,header:r,footer:o})=>t.jsx(e.Box,{css:la,children:t.jsx(e.Accordion.Root,{multiple:!0,children:t.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[t.jsxs(e.Accordion.ItemTrigger,{css:ca,alignItems:"center",children:[t.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:r}),t.jsx(e.Accordion.ItemIndicator,{children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsxs(e.Accordion.ItemContent,{children:[n,o]})]})})}),exports.Footer=({children:e,label:n="© World Resources Institute",fixed:r,filled:o,maxWidth:i})=>{const a=(new Date).getFullYear();return t.jsx("footer",{css:Vh(r,o),children:t.jsxs("div",{css:Nh(i),children:[t.jsx("div",{children:t.jsx(D,{height:"32px",width:"91px"})}),t.jsx("div",{css:Ah,children:e}),t.jsx("div",{children:t.jsxs("p",{css:zh,children:[n," ",a]})})]})})},exports.IconButton=ae,exports.InlineMessage=({label:e,caption:n,variant:r,size:o="large",icon:i=t.jsx(k,{height:"16px",width:"16px"}),onActionClick:a,actionLabel:s,isButtonRight:l})=>{let c=qf;return"info-grey"===r?c=Wf:"success"===r?c=Gf:"warning"===r?c=Uf:"error"===r&&(c=Xf),t.jsxs("div",{css:[Bf(o,l),c],"aria-roledescription":"Note",children:[t.jsxs("div",{children:[t.jsxs("div",{css:Hf,children:[i,t.jsx("p",{css:Ff(o),children:e})]}),t.jsx("p",{css:Zf(o),children:n})]}),s?t.jsx(b,{label:s,variant:"info-white"===r||"info-grey"===r?"primary":"secondary",size:"large"===o?"default":"small",onClick:a}):null]})},exports.InputWithUnits=({label:r,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 t.jsxs("div",{css:pt,children:[i?t.jsx("div",{css:xt}):null,t.jsxs("div",{style:{marginLeft:i?"19px":"0px"},children:[t.jsxs("p",{css:ht(p),"aria-label":r,children:[d?t.jsx("span",{children:"*"}):null,r]}),t.jsx("p",{css:ft(p),"aria-label":o,children:o}),i?t.jsx("p",{css:gt,"aria-label":i,children:i}):null,t.jsxs(e.Group,{css:vt(!!i,s),attached:!0,children:["start"===s?t.jsx(Yt,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null,t.jsx(kt,{type:"number",value:h,disabled:p,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===s?t.jsx(Yt,{placeholder:"",value:x,items:a,disabled:p,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=Ii,exports.LayerGroup=({label:r,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((t=>{t.isDefaultSelected&&(e={...e,["radio"===t.variant?r:t.name]:t.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=`${r}, ${p} Active layers on the map${o?`, ${o}`:""}`;return t.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[t.jsxs(e.Accordion.ItemTrigger,{css:Xo,alignItems:"flex-start","aria-label":h,children:[t.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[t.jsxs("span",{css:Yo,children:[r,t.jsx(Gt,{label:`${p} Active`,size:"small",variant:p>0?"success":"info-grey"})]}),t.jsx("div",{css:Ko,children:o})]}),t.jsx(e.Accordion.ItemIndicator,{display:"flex",children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsx(e.Accordion.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:t.jsx(We,{name:r,defaultValue:u,customGap:"0px",onChange:(e,t)=>d(e,!!t,s,t),children:a.map((e=>t.jsx(ri,{...e,onChange:(t,n)=>d(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:n,defaultValue:r,...o})=>t.jsx("div",{css:Uo,style:{width:"100%"},children:t.jsx(e.Accordion.Root,{css:{},defaultValue:r,multiple:!0,...o,children:n})}),exports.LayerItem=ri,exports.LayerParameters=({label:r,children:o,openedByDefault:i})=>t.jsx("div",{children:t.jsx(e.Accordion.Root,{defaultValue:i?[r]:[],multiple:!0,children:t.jsxs(e.Accordion.Item,{css:oi,value:r,children:[t.jsxs(e.Accordion.ItemTrigger,{css:ii,children:[t.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:t.jsx("p",{css:ai,children:r})}),t.jsx(e.Accordion.ItemIndicator,{display:"flex",children:t.jsx($,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),t.jsx(e.Accordion.ItemContent,{css:si,children:n.Children.map(o,(e=>t.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:n,onDrag:r,onUpClick:o,onDownClick:i,onRemoveClick:a,children:s,onInfoClick:l,onOpacityChanged:c})=>t.jsxs("div",{css:li,children:[t.jsxs("div",{css:ci,children:[t.jsx(ae,{icon:t.jsx(T,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:r,style:{display:"none",marginBottom:"12px"}}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[t.jsx(ae,{icon:t.jsx($,{rotate:"180"}),"aria-label":"Up",onClick:o}),t.jsx(ae,{icon:t.jsx($,{}),"aria-label":"Down",onClick:i})]})]}),t.jsxs("div",{style:{width:"100%"},children:[t.jsxs("div",{css:ui,children:[t.jsxs("div",{children:[t.jsx("h3",{css:di,children:e}),t.jsx("p",{css:pi,children:n})]}),t.jsx(b,{label:"Remove",size:"small",variant:"secondary",rightIcon:t.jsx(E,{}),onClick:a})]}),s,t.jsxs("div",{css:hi,children:[t.jsx(b,{label:"About data",size:"small",variant:"secondary",leftIcon:t.jsx(k,{}),onClick:l}),t.jsx(mi,{defaultValue:80,onOpacityChanged:c})]})]})]}),exports.List=qi,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:t,onExpandClick:n,onShareClick:r,onPrintClick:i,onSettingsClick:a,onQuestionClick:s,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d})=>{const p=[{icon:o.jsx(V,{}),label:"Zoom in",ariaLabel:"zoom in",onClick:e},{icon:o.jsx(N,{}),label:"Zoom out",ariaLabel:"zoom out",onClick:t,gap:!0},{icon:o.jsx(A,{}),label:"Expand",ariaLabel:"expand",onClick:n,gap:!0},{icon:o.jsx(z,{}),label:"Share",ariaLabel:"share",onClick:r,gap:!0},{icon:o.jsx(B,{}),label:"Print",ariaLabel:"print",onClick:i,gap:!0},{icon:o.jsx(H,{}),label:"Settings",ariaLabel:"settings",onClick:a,gap:!0},{icon:o.jsx(F,{}),label:"Help",ariaLabel:"question",onClick:s}];return o.jsx(fe,{items:p,vertical:l,expanded:c,showExpandedToggle:u,ariaLabel:d||"Map controls toolbar"})},exports.MapMarker=Tn,exports.MapMarkers=Pn,exports.MapPopUp=({open:e,onOpenChange:r,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}=Ao({open:e,onOpenChange:r,placement:c,whileElementsMounted:ao,middleware:[bo(u),(b={fallbackAxisSideDirection:"start"},{...co(b),options:[b,y]}),yo({padding:8}),wo({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=_o(),v=Ar("function"==typeof c?c:()=>!1),m="function"==typeof c?v:c,b=l.useRef(!1),{escapeKey:y,outsidePress:w}=Vo(f),{escapeKey:C,outsidePress:j}=Vo(x),k=l.useRef(!1),$=Ar((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?Ir(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=Ar((e=>{var t;const n=()=>{var t;$(e),null==(t=Mr(e))||t.removeEventListener("keydown",n)};null==(t=Mr(e))||t.addEventListener("keydown",n)})),E=Ar((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=Mr(e),l="[data-floating-ui-inert]",c=Dr(o.floating).querySelectorAll(l);let d=Nn(s)?s:null;for(;d&&!Qn(d);){const e=nr(d);if(Qn(e)||!Nn(e))break;d=e}if(c.length&&Nn(s)&&!s.matches("html,body")&&!Pr(s,o.floating)&&Array.from(c).every((e=>!Pr(d,e))))return;if(An(s)&&O){const t=Qn(s),n=er(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&&Ir(g.nodesRef.current,p).some((t=>{var n;return _r(e,null==(n=t.context)?void 0:n.elements.floating)}));if(_r(e,o.floating)||_r(e,o.domReference)||h)return;const f=g?Ir(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=Ar((e=>{var t;const n=()=>{var t;E(e),null==(t=Mr(e))||t.removeEventListener(u,n)};null==(t=Mr(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}),Kn()?5:0)}const d=Dr(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&&(Nn(o.domReference)&&(p=or(o.domReference)),Nn(o.floating)&&(p=p.concat(or(o.floating))),!Nn(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(or(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&&{[Do[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},[Io[u]]:()=>{i.current.insideReactTree=!0}})),[$,u,i]);return l.useMemo((()=>a?{reference:L,floating:O}:{}),[a,L,O])}(g,{escapeKey:d,outsidePress:p}),C=Ho(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=>zo(t,e,"reference")),t),i=l.useCallback((t=>zo(t,e,"floating")),n),a=l.useCallback((t=>zo(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),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:f.setFloating,style:x,"aria-modal":!0,...j(),css:Fo,children:[t.jsxs("div",{css:Zo,children:[i,t.jsx(se,{onClick:()=>r(!1),className:"ds-map-pop-up-close-button","aria-label":"Close"})]}),t.jsx("div",{css:qo,children:a}),s?t.jsx("div",{css:Wo,children:s}):null,t.jsx("div",{ref:h,css:Go(E,R,k,$,S,u)})]}),t.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>p&&r(!1)})]})},exports.Menu=Ce,exports.MobileTabBar=({defaultValue:r,tabs:o,onTabClick:i,hideLabels:a,activationMode:s="manual"})=>{const l=o.length,[c,u]=n.useState((()=>qh(o,r)));return t.jsx("div",{css:Bh,children:t.jsx(e.Tabs.Root,{width:"full",defaultValue:r||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=qh(o,e);u(t),i&&i(e)})(e),activationMode:s,children:t.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((n,r)=>{const{label:o,icon:i,bagdeCount:s,"aria-label":u,"aria-describedby":d,disabled:p,...h}=n,f=`${n.value}-str-status`,x=[`tab ${r+1} of ${l}`,c===r?"selected":"not selected"];p&&x.push("disabled");const g=[d,f].filter(Boolean).join(" ")||void 0;return t.jsxs(e.Tabs.Trigger,{css:Hh,"aria-label":u||o,"aria-disabled":!!p||void 0,"aria-describedby":g,disabled:p,...h,children:[t.jsxs("div",{css:Fh,children:[i,s?t.jsx("div",{css:Zh,className:"ds-badge-count",children:s}):null]}),a?null:t.jsx("p",{children:o}),t.jsx(e.VisuallyHidden,{id:f,children:x.join(", ")})]},n.value)}))})})})},exports.Modal=({header:n,content:r,footer:o,size:i="medium",draggable:a,blocking:s,open:l,onClose:c})=>l?t.jsx(e.Dialog.Root,{open:l,onOpenChange:c,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!a&&!s,preventScroll:!a&&!s,closeOnEscape:!s,defaultOpen:!0,children:t.jsxs(e.Portal,{children:[a?null:t.jsx(e.Dialog.Backdrop,{}),t.jsx(ds,{disabled:!a,children:t.jsx(e.Dialog.Positioner,{children:t.jsxs(e.Dialog.Content,{css:ps(i),children:[t.jsxs(e.Dialog.Header,{css:hs,children:[n,s?null:t.jsx(e.Dialog.CloseTrigger,{css:fs,asChild:!0,children:t.jsx(se,{})})]}),t.jsx(e.Dialog.Body,{css:xs,children:r}),o?t.jsx(e.Dialog.Footer,{padding:"12px",children:o}):null]})})})]})}):null,exports.MultiActionButton=({variant:r="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 t.jsxs(e.Group,{css:Se,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":p,role:"group",children:[t.jsx(b,{css:{},label:i,variant:r,size:o,onClick:a,disabled:l,...c}),t.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>d(e),positioning:{placement:"bottom-end"},children:[t.jsx(e.Menu.Trigger,{css:ke(r),"data-group-item":!0,"data-last":!0,asChild:!0,children:t.jsx(b,{variant:r,size:o,leftIcon:t.jsx($,{rotate:u?"180":"0",color:h("accessible","text-on-primary-mids")||h("primary",900)}),disabled:l})}),t.jsx(Ee,{children:s.map((({label:n,value:r,onClick:i})=>t.jsx(e.Menu.Item,{css:$e(o),onClick:i,value:r,children:n},r)))})]})]})},exports.Navbar=({logo:e,linkRouter:o,pathname:i,navigationSection:a,utilitySection:s,actionsSection:l,maxWidth:c,fixed:u,onNavbarHeightChange:d,backgroundColor:p})=>{const f=n.useRef(null),x=n.useRef(null),g=n.useRef(null),[v,m]=n.useState(!1),[y,w]=n.useState(-1),[C,j]=n.useState("undefined"!=typeof window&&window?.innerWidth<=ff),[k,$]=n.useState(!1),S=o,R=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<=ff||window.innerWidth<=y?(d?.(96),m(!0)):window.innerWidth>ff&&window.innerWidth<=1440?e.right>=t.left?(d?.(96),m(!0),w(window.innerWidth)):window.innerWidth>y&&(d?.(48),m(!1),w(-1)):(d?.(48),m(!1),w(-1)),v&&(window.innerWidth<=ff||n.right>=t.left?(j(!0),d?.(48)):(j(!1),d?.(96)))}}),[y,v]);return n.useEffect((()=>(R(),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)})),[R]),t.jsxs("nav",{css:Wh(v&&!C,u,p),children:[t.jsxs("div",{css:Uh(v&&!C,c),children:[t.jsxs("div",{css:(L=v&&!C,r.css`
|
|
3586
3609
|
display: flex;
|
|
3587
3610
|
align-items: center;
|
|
3588
3611
|
justify-content: flex-start;
|
|
3589
3612
|
gap: 12px;
|
|
3590
3613
|
color: ${h("neutral",L?100:900)};
|
|
3591
|
-
`),ref:f,children:[e?t.jsx("div",{ref:g,css:
|
|
3614
|
+
`),ref:f,children:[e?t.jsx("div",{ref:g,css:Xh,children:e}):null,t.jsx("div",{css:Yh(v),children:a?.map((e=>e.link?t.jsx(S,{to:e.link,href:e.link,css:Kh(i===e.link),children:e.label},e.label):t.jsx(Ce,{label:e.label,items:e.items||[]},e.label)))})]}),t.jsx("div",{css:Jh,ref:x,children:C?t.jsxs("button",{type:"button",onClick:()=>$(!k),"aria-label":"Open menu",css:tf,children:[k?"Close":"Menu",k?t.jsx(E,{height:"16px",width:"16px"}):t.jsx(J,{height:"16px",width:"16px"})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{css:Jh,children:s?.map(((e,n)=>t.jsx("div",{css:Qh(v),children:e},n)))}),l?t.jsx("div",{css:ef(v),children:l.map((e=>t.jsx(b,{...e},e.ariaLabel)))}):null]})})]}),v&&!C?t.jsx("div",{css:Gh,children:a?.map((e=>e.link?t.jsx(S,{to:e.link,href:e.link,css:Kh(i===e.link),children:e.label},e.label):t.jsx(Ce,{label:e.label,items:e.items||[]},e.label)))}):null,C?t.jsx(hf,{navigationSection:a,utilitySection:s,actionsSection:l,linkRouter:o,isOpen:k,setIsOpen:$,pathname:i}):null]});var L},exports.NavigationRail=({tabs:r=[],defaultValue:o,onTabClick:i,children:a,onOpenChange:s})=>{const[l,c]=n.useState(!1),[u,d]=n.useState(o||r?.[0]?.value),p=e=>{d(e),i&&i(e)},[f]=e.useMediaQuery(["(max-width: 768px)"]);return f?t.jsxs(e.Tabs.Root,{defaultValue:u,onValueChange:({value:e})=>p(e),children:[t.jsx(e.Tabs.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"8px",gap:"8px"},children:r.map((n=>t.jsx(e.Tabs.Trigger,{value:n.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:n.label},n.value)))}),r.map((n=>t.jsx(e.Tabs.Content,{value:n.value,children:a},n.value)))]}):t.jsxs("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[t.jsxs("div",{css:xf,children:[t.jsx(e.Tabs.Root,{defaultValue:o||r?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{p(e)},role:"tablist",children:t.jsx(e.Tabs.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:r.map((n=>t.jsx(e.Tabs.Trigger,{css:gf,"aria-label":n["aria-label"]||n.label,...n,children:t.jsxs(e.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[n.icon?t.jsx("div",{css:vf,children:n.icon}):null,t.jsx("p",{children:n.label})]})},n.label)))})}),a?t.jsx(e.Collapsible.Root,{onOpenChange:({open:e})=>{c(e),s&&s(!e)},children:t.jsxs(e.Collapsible.Trigger,{css:mf,children:[t.jsx("div",{css:vf,children:l?t.jsx(w,{}):t.jsx(y,{})}),t.jsxs("div",{className:"ds-tab-label",children:[t.jsx("p",{children:l?"Show":"Hide"}),t.jsx("p",{children:"Sidebar"})]})]})}):null]}),a?t.jsx(e.Collapsible.Root,{defaultOpen:!0,open:!l,children:t.jsx(e.Collapsible.Content,{height:"100%",children:t.jsx("div",{css:bf,role:"tabpanel","aria-labelledby":u,children:a})})}):null]})},exports.OptionCard=({defaultValue:n,items:o,onValueChange:i})=>t.jsx(e.RadioCard.Root,{defaultValue:n,onValueChange:i,children:t.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:o.map((n=>{return t.jsxs(e.RadioCard.Item,{css:Ie,value:n.value,disabled:n.disabled,children:[t.jsx(e.RadioCard.ItemHiddenInput,{}),t.jsxs(e.RadioCard.ItemControl,{css:Ve,children:[t.jsxs("div",{css:(i=n.variant,r.css`
|
|
3592
3615
|
width: 100%;
|
|
3593
3616
|
display: flex;
|
|
3594
3617
|
flex-direction: ${"centered"===i?"column":"row"};
|
|
@@ -3601,7 +3624,7 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3601
3624
|
padding: 0px;
|
|
3602
3625
|
padding-top: 8px;
|
|
3603
3626
|
color: ${o?h("neutral",500):"inherit"};
|
|
3604
|
-
`),children:n.children}):null]},`${n.label}-${n.value}`);var o,i}))})}),exports.Pagination=
|
|
3627
|
+
`),children:n.children}):null]},`${n.label}-${n.value}`);var o,i}))})}),exports.Pagination=Yi,exports.Panel=({header:e,content:r,footer:o,variant:i="fixed",width:a})=>{const[s,l]=n.useState(void 0),[c,u]=n.useState(void 0),d=n.useRef(null),p=n.useRef(null);n.useEffect((()=>{l(d?.current?.getBoundingClientRect()?.height),u(p?.current?.getBoundingClientRect()?.height)}),[e,o]);return t.jsxs("div",{css:[gs(a),"fixed"===i?vs:ms],children:[e?t.jsx("div",{css:bs,ref:d,children:e}):null,t.jsx("div",{css:ys(s,c),children:r}),o?t.jsx("div",{css:ws,ref:p,children:o}):null]})},exports.Password=({label:e,caption:o,required:i,disabledRules:a,onChange:s,minLength:l=8,hideValidations:c})=>{const[u,d]=n.useState(!1),[p,f]=n.useState(""),[x,g]=n.useState({strength:"Very weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1});return t.jsxs("div",{css:Kt,children:[t.jsxs("p",{css:Jt,"aria-label":e,children:[i?t.jsx("span",{children:"*"}):null,e]}),t.jsx("p",{css:Qt,"aria-label":o,children:o}),t.jsxs("div",{css:en,children:[t.jsx(kt,{type:u?"text":"password",value:p,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...x};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"),f(e),g(t),s&&s(t)})(e.target.value)}),t.jsx(b,{label:u?"Hide":"Show",variant:"secondary",leftIcon:u?t.jsx(O,{}):t.jsx(L,{}),"aria-label":u?"Hide password":"Show password",onClick:()=>d(!u),type:"button"})]}),p&&!c?t.jsxs("div",{id:"password-guidelines",css:tn,"aria-live":"polite",children:[t.jsxs("p",{css:(v=x.strength,r.css`
|
|
3605
3628
|
font-size: 16px;
|
|
3606
3629
|
line-height: 24px;
|
|
3607
3630
|
font-weight: 400;
|
|
@@ -3612,13 +3635,13 @@ function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3612
3635
|
font-weight: 700;
|
|
3613
3636
|
color: ${h("Medium"===v?"warning":"Strong"===v||"Very Strong"===v?"success":"error",900)};
|
|
3614
3637
|
}
|
|
3615
|
-
`),"aria-live":"polite",role:"status",children:["Password Strength: ",t.jsx("span",{children:x.strength})]}),t.jsx("div",{css:
|
|
3638
|
+
`),"aria-live":"polite",role:"status",children:["Password Strength: ",t.jsx("span",{children:x.strength})]}),t.jsx("div",{css:nn(x.strength),children:t.jsx("div",{})}),t.jsxs("div",{css:rn(x.length),"aria-label":`Use a minimum of ${l} characters. ${x.length?"Requirement met.":"Requirement not met."}`,children:[t.jsx("div",{children:x.length?t.jsx(C,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(E,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsxs("p",{children:["Use a minimum of ",l," characters"]})]}),a?.uppercase?null:t.jsxs("div",{css:rn(x.uppercase),"aria-label":"Use an uppercase letter. "+(x.uppercase?"Requirement met.":"Requirement not met."),children:[t.jsx("div",{children:x.uppercase?t.jsx(C,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(E,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use an uppercase letter"})]}),a?.lowercase?null:t.jsxs("div",{css:rn(x.lowercase),"aria-label":"Use a lowercase letter. "+(x.lowercase?"Requirement met.":"Requirement not met."),children:[t.jsx("div",{children:x.lowercase?t.jsx(C,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(E,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a lowercase letter"})]}),a?.numbers?null:t.jsxs("div",{css:rn(x.numbers),"aria-label":"Use a number. "+(x.numbers?"Requirement met.":"Requirement not met."),children:[t.jsx("div",{children:x.numbers?t.jsx(C,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(E,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a number"})]}),a?.specialCharacters?null:t.jsxs("div",{css:rn(x.specialCharacters),"aria-label":"Use a special character. "+(x.specialCharacters?"Requirement met.":"Requirement not met."),children:[t.jsx("div",{children:x.specialCharacters?t.jsx(C,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(E,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a special character"})]})]}):null]});var v},exports.ProgressBar=({progress:e})=>{let n=e;return n>100&&(n=100),n<0&&(n=0),t.jsx("div",{css:Yf,role:"progressbar","aria-label":`Progress: ${n}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:t.jsx("div",{css:Kf(n)})})},exports.QualitativeAttribute=({type:e,label:r,caption:o,color:i,onActionClick:a,showActionButton:s,pointIcon:l=t.jsx(Z,{color:"#006D2C"}),ariaLabelType:c=""})=>{const[u,d]=n.useState(!0),p=n.useId(),h=n.useId(),f="raster"===e,x="line"===e,g="point"===e,v=n.useId(),m=n.useMemo((()=>{let e=c??`${c},`;x&&(e="line,");return`${e} ${r}${o?`, ${o}`:""}. Currently ${u?"visible":"hidden"}.`}),[u,e,r,o]),y=u?"Hide":"Show";return t.jsxs("div",{css:Ci,children:[t.jsx("p",{id:v,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:m}),t.jsxs("div",{css:ji,children:[t.jsxs("div",{children:[f&&t.jsx("div",{css:bi(i)}),x&&t.jsx("div",{css:yi(i)}),g&&t.jsx("div",{css:wi(i),children:l})]}),t.jsxs("div",{children:[t.jsx("p",{id:p,css:ki,children:r}),o?t.jsx("p",{id:h,css:$i,children:o}):null]})]}),a&&s?t.jsx("div",{css:Si,children:t.jsx(b,{type:"button",variant:"borderless",label:y,rightIcon:u?t.jsx(O,{}):t.jsx(L,{}),"aria-pressed":u,"aria-labelledby":`${v} ${p}`,onClick:()=>{d((e=>!e)),a?.()}})}):null]})},exports.Radio=qe,exports.RadioGroup=We,exports.RadioList=({label:n,caption:o,name:i,radios:a,defaultValue:s,onCheckedChange:l,errorMessage:c,horizontal:u,variant:d="default",required:p})=>{const h=`${n}. ${o?`${o}.`:""} ${p?"Required.":"Optional."} ${c?`Error: ${c}.`:""} `;return t.jsxs(e.Group,{css:on,"aria-roledescription":"group","aria-label":h,children:[c?t.jsx("div",{css:cn}):null,t.jsxs("div",{css:(f=!!c,r.css`
|
|
3616
3639
|
margin-left: ${f?"19px":"0px"};
|
|
3617
|
-
`),children:[t.jsxs("p",{css:
|
|
3640
|
+
`),children:[t.jsxs("p",{css:an,"aria-label":n,children:[p&&t.jsx("span",{"aria-label":"required",children:"*"}),n]}),t.jsx("p",{css:sn,"aria-label":o,children:o}),c?t.jsx("p",{css:un,"aria-label":c,children:c}):null,t.jsx("div",{css:ln,children:t.jsx(We,{name:i,defaultValue:s,onChange:l,horizontal:u&&"card"!==d,children:a.map((e=>t.jsx(qe,{css:"card"===d?dn:{},...e},e.value)))})})]})]});var f},exports.SSOButtons=re,exports.ScaleBar=({colors:e,values:n,subLabels:o,isGradient:i})=>{return t.jsxs("div",{css:Ei,children:[i?t.jsx("div",{css:(a=Pi(e),r.css`
|
|
3618
3641
|
height: 20px;
|
|
3619
3642
|
width: 100%;
|
|
3620
3643
|
margin-bottom: 8px;
|
|
3621
3644
|
border: 1px solid ${h("neutral",300)};
|
|
3622
3645
|
border-radius: 4px;
|
|
3623
3646
|
${a?`background: ${a};`:""}
|
|
3624
|
-
`)}):t.jsx("div",{css:Si,children:e?.map(((e,r)=>t.jsx("div",{"data-test":`${e}-${n?.[r]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${n?.[r]}`)))}),t.jsx("div",{css:Ei,children:n?.map((e=>t.jsx("div",{style:{width:i?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:t.jsx("p",{css:Ri,children:e})},e)))}),o&&o.length?t.jsx("div",{css:Ei,children:o.map((e=>t.jsx("div",{style:{width:i?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:t.jsx("p",{css:Li,style:{width:"100%"},children:e})},e)))}):null]});var a},exports.Search=({placeholder:r,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.useRef(null),$=`search-results-${n.useId()}`,S=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:()=>S(e.id||e.label)})));w(e),m()}),[x]),n.useEffect((()=>{function e(e){v&&k.current&&!k.current.contains(e.target)&&b()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[v]);const E=x.length?t.jsx(se,{style:{marginTop:"-12px"},onClick:()=>{g(""),p?.()}}):null,R="none"!==c&&!!x.length&&y.length>0&&v;return t.jsxs("div",{ref:k,style:{position:"relative",width:"100%"},children:[t.jsx(e.InputGroup,{startElement:t.jsx(ne,{fill:o?h("neutral",500):h("primary",700),style:{marginTop:"-12px"}}),endElement:E,children:t.jsx(Ct,{autoComplete:"off",placeholder:r||"Filter",onChange:e=>{const{value:t}=e.target;g(t)},value:x,label:"",style:{paddingLeft:"40px"},type:"search","aria-label":r||"Search filter","aria-expanded":R,"aria-controls":$,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,onKeyDown:e=>{if(R){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];S(e.id||e.label)}"Escape"===e.key&&b()}}})}),(R||l&&!!x.length)&&"custom"===c&&f&&!l&&f({items:y,highlightedIndex:C,query:x,onSelect:S}),(R||l&&!!x.length)&&t.jsx(e.Portal,{container:k,children:t.jsxs(e.Box,{position:"absolute",marginTop:"-20px",width:"100%",backgroundColor:"white",border:"1px solid",borderColor:"gray.200",borderRadius:"md",boxShadow:"md",zIndex:1e3,overflowY:"auto",maxHeight:s,children:[l&&t.jsx(e.Box,{padding:"1rem",children:t.jsx(e.Spinner,{})}),"text"===c&&!l&&t.jsx(Sf,{highlightedIndex:C,items:y,query:x,onSelect:S}),"list"===c&&!l&&t.jsx(Fi,{items:y,highlightedIndex:C})]})})]})},exports.Select=Ut,exports.Sheet=({header:e,content:r,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=Th(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||Th(g,b)!==b.length-1);return t.jsx(Rh,{ref:f,css:Oh(!!e,h),className:d,open:i,onDismiss:a,header:t.jsxs("div",{children:[t.jsx("button",{type:"button",disabled:w,"aria-label":y,css:Lh,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:t.jsx("div",{})}),t.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?r:null})},exports.SimpleMapPin=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:a="simple-pin"})=>o.jsx(Ln,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:a}),exports.Slider=tt,exports.SliderInput=({label:e,caption:r,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 t.jsxs("div",{children:[t.jsxs("p",{css:un(o),"aria-label":e,children:[a?t.jsx("span",{children:"*"}):null,e]}),r?t.jsx("p",{css:dn(o),"aria-label":r,children:r}):null,t.jsxs("div",{css:pn,children:[i.step&&i.marks?t.jsx(Ut,{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)}}):t.jsx(Ct,{"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()}),t.jsx(tt,{css:{},...i,value:l,onValueChangeEnd:e=>{c(e.value),s&&s(e.value)}}),2===l?.length?t.jsx(Ct,{"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:n})=>t.jsxs("div",{css:Yf,children:[e.map(((e,r)=>t.jsxs("div",{css:Kf,children:[t.jsx("button",{css:Jf(n>=r+1,n<r+1),type:"button",onClick:e.onClick,"aria-current":n===r+1,"aria-disabled":n<r+1,disabled:n<r+1,"aria-label":`Current Step ${r}${e.label?` ${e.label}`:""}`,"data-active":n>=r+1,children:n>r+1?t.jsx(C,{height:"16px",width:"16px"}):r+1}),e.label?t.jsx("p",{css:Qf(n===r+1),children:e.label}):null]},`${e.label}-${r}`))),t.jsx("div",{css:ex,children:t.jsx("div",{css:tx})})]}),exports.Switch=rt,exports.TabBar=({variant:r="panel",defaultValue:o,tabs:i,onTabClick:a,activationMode:s="manual"})=>{const[l,c]=n.useState(jf(i,o)||0),u="view"===r;return t.jsx("div",{css:mf(r),children:t.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c(jf(i,t=e)),void(a&&a(t));var t},activationMode:s,children:t.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((r,o)=>t.jsxs(n.Fragment,{children:[u&&1===o&&"left"===kf(l)?t.jsx("div",{css:wf}):null,t.jsx(e.Tabs.Trigger,{css:[bf,u?Cf:yf],"aria-label":r["aria-label"]||r.label,...r,children:t.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"5px",children:[r.icon,r.label]})},r.label),u&&1===o&&"right"===kf(l)?t.jsx("div",{css:wf}):null]},r.label)))})})})},exports.Table=({columns:r,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||{},S=(e,t)=>{b({key:e,order:t}),p&&p({key:e,order:t})},E=u?.length===o?.length,R=u&&u.length>0&&!E;return t.jsxs("div",{children:[t.jsxs(e.Table.Root,{css:Xi(d),striped:a,stickyHeader:s,interactive:!0,children:[t.jsx(e.Table.Header,{css:Yi(d),children:t.jsxs(e.Table.Row,{children:[c?t.jsx(e.Table.ColumnHeader,{children:t.jsx(Le,{name:"header-checkbox",checked:E,indeterminate:R,onCheckedChange:({checked:e})=>{g&&g(e)}})}):null,r.map((n=>t.jsx(e.Table.ColumnHeader,{role:n.sortable?"columnheader":void 0,"aria-sort":n.sortable&&"asc"===m.order?"ascending":n.sortable&&"desc"===m.order?"descending":void 0,children:t.jsxs("div",{css:Ki,children:[n.label,n.sortable?t.jsxs("div",{css:Ji,children:[t.jsx(ae,{css:Qi(m.key===n.key&&"asc"===m.order),icon:t.jsx($,{style:{transform:"rotate(180deg)"}}),onClick:()=>S(n.key,"asc"),"aria-label":"Ascending"}),t.jsx(ae,{css:Qi(m.key===n.key&&"desc"===m.order),icon:t.jsx($,{}),onClick:()=>S(n.key,"desc"),"aria-label":"Descending"})]}):null]})},n.key)))]})}),t.jsx(e.Table.Body,{css:na,children:o.map((e=>t.jsx(n.Fragment,{children:i(e)},e.id)))})]}),v?t.jsx("div",{css:ra,children:t.jsx(e.Spinner,{size:"lg",color:h("primary",500)})}):null,t.jsxs("div",{css:ea,children:[t.jsx("div",{children:j?t.jsx(_i,{pageSize:C,currentPage:w,totalItems:y,onPageSizeChange:f,showItemCountText:k}):null}),l?t.jsx("div",{css:ta,children:t.jsx(Ui,{totalItems:y,pageSize:C,currentPage:w,onPageChange:x})}):null]})]})},exports.TableCell=ia,exports.TableRow=oa,exports.Tag=Wt,exports.TextInput=Ct,exports.Textarea=({label:r,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 t.jsxs("div",{css:hn(c),children:[S?t.jsx("div",{css:fn}):null,t.jsxs(e.Field.Root,{required:s,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[r?t.jsxs(e.Field.Label,{css:xn(c,l),"aria-label":r,children:[t.jsx(e.Field.RequiredIndicator,{"aria-label":"required"}),r,s?"":t.jsx("span",{children:" (Optional)"})]}):null,o?t.jsx(e.Field.HelperText,{id:j,css:gn(c,l),children:o}):null,a?t.jsx(e.Field.ErrorText,{id:k,css:mn,"aria-label":`Error: ${a}`,"aria-live":"polite",children:a}):null,t.jsx(e.Textarea,{placeholder:i,disabled:l,css:bn(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?t.jsxs(e.Field.ErrorText,{id:k,css:mn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",p-x.length," more characters"]}):null,b&&h?t.jsxs(e.Field.ErrorText,{id:k,css:mn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",x.length-h," characters too many"]}):null,!w||b||v?null:t.jsx(e.Field.HelperText,{id:$,css:vn,"aria-live":"polite",children:w})]})]})},exports.Toast=()=>Object.keys(lx).map((n=>t.jsx(e.Portal,{children:t.jsx(e.Toaster,{toaster:lx[n],insetInline:{mdDown:"4"},children:r=>t.jsxs(e.Toast.Root,{css:nx,width:{md:"sm"},children:[t.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===r.type?r.meta?.icon?r.meta.icon:t.jsx(k,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===r.type?t.jsx(e.Spinner,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===r.type?r.meta?.icon?r.meta.icon:t.jsx(P,{color:"var(--chakra-colors-success-500)"}):null,"warning"===r.type?r.meta?.icon?r.meta.icon:t.jsx(M,{color:"var(--chakra-colors-warning-500)"}):null,"error"===r.type?r.meta?.icon?r.meta.icon:t.jsx(_,{color:"var(--chakra-colors-error-500)"}):null,t.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[t.jsx(e.Toast.Title,{css:rx,"aria-label":`${r.title}`,children:r.title}),r.description?t.jsx(e.Toast.Title,{css:ox,"aria-label":`${r.description}`,children:r.description}):null]})]}),r.action||r.meta?.closable?t.jsxs(e.Stack,{flexDirection:"row",children:[r.action?t.jsx(b,{css:ix,label:r.action.label,size:"small",variant:"info"===r.type?"primary":"secondary",onClick:()=>{r?.action?.onClick&&r.action.onClick(),lx[n].dismiss()}}):null,r.meta?.closable?t.jsx(b,{css:ax,label:r.meta.closableLabel,"aria-label":r.meta?.closableLabel||"Dismiss",leftIcon:t.jsx(E,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>lx[n].dismiss()}):null]}):null]})})},n))),exports.Toolbar=fe,exports.Tooltip=pe,exports.designSystemStyles=p,exports.designSystemStylesForTailwind=d,exports.getThemedColor=h,exports.showToast=e=>{lx[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})};
|
|
3647
|
+
`)}):t.jsx("div",{css:Ri,children:e?.map(((e,r)=>t.jsx("div",{"data-test":`${e}-${n?.[r]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${n?.[r]}`)))}),t.jsx("div",{css:Li,children:n?.map((e=>t.jsx("div",{style:{width:i?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:t.jsx("p",{css:Oi,children:e})},e)))}),o&&o.length?t.jsx("div",{css:Li,children:o.map((e=>t.jsx("div",{style:{width:i?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:t.jsx("p",{css:Ti,style:{width:"100%"},children:e})},e)))}):null]});var a},exports.Search=({placeholder:r,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.useRef(null),$=`search-results-${n.useId()}`,S=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:()=>S(e.id||e.label)})));w(e),m()}),[x]),n.useEffect((()=>{function e(e){v&&k.current&&!k.current.contains(e.target)&&b()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[v]);const E=x.length?t.jsx(se,{style:{marginTop:"-12px"},onClick:()=>{g(""),p?.()}}):null,R="none"!==c&&!!x.length&&y.length>0&&v;return t.jsxs("div",{ref:k,style:{position:"relative",width:"100%"},children:[t.jsx(e.InputGroup,{startElement:t.jsx(ne,{fill:o?h("neutral",500):h("primary",700),style:{marginTop:"-12px"}}),endElement:E,children:t.jsx(kt,{autoComplete:"off",placeholder:r||"Filter",onChange:e=>{const{value:t}=e.target;g(t)},value:x,label:"",style:{paddingLeft:"40px"},type:"search","aria-label":r||"Search filter","aria-expanded":R,"aria-controls":$,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,onKeyDown:e=>{if(R){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];S(e.id||e.label)}"Escape"===e.key&&b()}}})}),(R||l&&!!x.length)&&"custom"===c&&f&&!l&&f({items:y,highlightedIndex:C,query:x,onSelect:S}),(R||l&&!!x.length)&&t.jsx(e.Portal,{container:k,children:t.jsxs(e.Box,{position:"absolute",marginTop:"-20px",width:"100%",backgroundColor:"white",border:"1px solid",borderColor:"gray.200",borderRadius:"md",boxShadow:"md",zIndex:1e3,overflowY:"auto",maxHeight:s,children:[l&&t.jsx(e.Box,{padding:"1rem",children:t.jsx(e.Spinner,{})}),"text"===c&&!l&&t.jsx(Rf,{highlightedIndex:C,items:y,query:x,onSelect:S}),"list"===c&&!l&&t.jsx(qi,{items:y,highlightedIndex:C})]})})]})},exports.Select=Yt,exports.Sheet=({header:e,content:r,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=Mh(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||Mh(g,b)!==b.length-1);return t.jsx(Oh,{ref:f,css:Ph(!!e,h),className:d,open:i,onDismiss:a,header:t.jsxs("div",{children:[t.jsx("button",{type:"button",disabled:w,"aria-label":y,css:Th,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:t.jsx("div",{})}),t.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?r:null})},exports.SimpleMapPin=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:a="simple-pin"})=>o.jsx(Tn,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:a}),exports.Slider=tt,exports.SliderInput=({label:e,caption:r,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 t.jsxs("div",{children:[t.jsxs("p",{css:pn(o),"aria-label":e,children:[a?t.jsx("span",{children:"*"}):null,e]}),r?t.jsx("p",{css:hn(o),"aria-label":r,children:r}):null,t.jsxs("div",{css:fn,children:[i.step&&i.marks?t.jsx(Yt,{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)}}):t.jsx(kt,{"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()}),t.jsx(tt,{css:{},...i,value:l,onValueChangeEnd:e=>{c(e.value),s&&s(e.value)}}),2===l?.length?t.jsx(kt,{"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:n})=>t.jsxs("div",{css:Jf,children:[e.map(((e,r)=>t.jsxs("div",{css:Qf,children:[t.jsx("button",{css:ex(n>=r+1,n<r+1),type:"button",onClick:e.onClick,"aria-current":n===r+1,"aria-disabled":n<r+1,disabled:n<r+1,"aria-label":`Current Step ${r}${e.label?` ${e.label}`:""}`,"data-active":n>=r+1,children:n>r+1?t.jsx(C,{height:"16px",width:"16px"}):r+1}),e.label?t.jsx("p",{css:tx(n===r+1),children:e.label}):null]},`${e.label}-${r}`))),t.jsx("div",{css:nx,children:t.jsx("div",{css:rx})})]}),exports.Switch=rt,exports.TabBar=({variant:r="panel",defaultValue:o,tabs:i,onTabClick:a,activationMode:s="manual"})=>{const[l,c]=n.useState($f(i,o)||0),u="view"===r;return t.jsx("div",{css:yf(r),children:t.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c($f(i,t=e)),void(a&&a(t));var t},activationMode:s,children:t.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((r,o)=>t.jsxs(n.Fragment,{children:[u&&1===o&&"left"===Sf(l)?t.jsx("div",{css:jf}):null,t.jsx(e.Tabs.Trigger,{css:[wf,u?kf:Cf],"aria-label":r["aria-label"]||r.label,...r,children:t.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"5px",children:[r.icon,r.label]})},r.label),u&&1===o&&"right"===Sf(l)?t.jsx("div",{css:jf}):null]},r.label)))})})})},exports.Table=({columns:r,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||{},S=(e,t)=>{b({key:e,order:t}),p&&p({key:e,order:t})},E=u?.length===o?.length,R=u&&u.length>0&&!E;return t.jsxs("div",{children:[t.jsxs(e.Table.Root,{css:Ki(d),striped:a,stickyHeader:s,interactive:!0,children:[t.jsx(e.Table.Header,{css:Ji(d),children:t.jsxs(e.Table.Row,{children:[c?t.jsx(e.Table.ColumnHeader,{children:t.jsx(Le,{name:"header-checkbox",checked:E,indeterminate:R,onCheckedChange:({checked:e})=>{g&&g(e)}})}):null,r.map((n=>t.jsx(e.Table.ColumnHeader,{role:n.sortable?"columnheader":void 0,"aria-sort":n.sortable&&"asc"===m.order?"ascending":n.sortable&&"desc"===m.order?"descending":void 0,children:t.jsxs("div",{css:Qi,children:[n.label,n.sortable?t.jsxs("div",{css:ea,children:[t.jsx(ae,{css:ta(m.key===n.key&&"asc"===m.order),icon:t.jsx($,{style:{transform:"rotate(180deg)"}}),onClick:()=>S(n.key,"asc"),"aria-label":"Ascending"}),t.jsx(ae,{css:ta(m.key===n.key&&"desc"===m.order),icon:t.jsx($,{}),onClick:()=>S(n.key,"desc"),"aria-label":"Descending"})]}):null]})},n.key)))]})}),t.jsx(e.Table.Body,{css:oa,children:o.map((e=>t.jsx(n.Fragment,{children:i(e)},e.id)))})]}),v?t.jsx("div",{css:ia,children:t.jsx(e.Spinner,{size:"lg",color:h("primary",500)})}):null,t.jsxs("div",{css:na,children:[t.jsx("div",{children:j?t.jsx(Ii,{pageSize:C,currentPage:w,totalItems:y,onPageSizeChange:f,showItemCountText:k}):null}),l?t.jsx("div",{css:ra,children:t.jsx(Yi,{totalItems:y,pageSize:C,currentPage:w,onPageChange:x})}):null]})]})},exports.TableCell=sa,exports.TableRow=aa,exports.Tag=Gt,exports.TextInput=kt,exports.Textarea=({label:r,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 t.jsxs("div",{css:xn(c),children:[S?t.jsx("div",{css:gn}):null,t.jsxs(e.Field.Root,{required:s,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[r?t.jsxs(e.Field.Label,{css:vn(c,l),"aria-label":r,children:[t.jsx(e.Field.RequiredIndicator,{"aria-label":"required"}),r,s?"":t.jsx("span",{children:" (Optional)"})]}):null,o?t.jsx(e.Field.HelperText,{id:j,css:mn(c,l),children:o}):null,a?t.jsx(e.Field.ErrorText,{id:k,css:yn,"aria-label":`Error: ${a}`,"aria-live":"polite",children:a}):null,t.jsx(e.Textarea,{placeholder:i,disabled:l,css:wn(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?t.jsxs(e.Field.ErrorText,{id:k,css:yn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",p-x.length," more characters"]}):null,b&&h?t.jsxs(e.Field.ErrorText,{id:k,css:yn,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",x.length-h," characters too many"]}):null,!w||b||v?null:t.jsx(e.Field.HelperText,{id:$,css:bn,"aria-live":"polite",children:w})]})]})},exports.Toast=()=>Object.keys(ux).map((n=>t.jsx(e.Portal,{children:t.jsx(e.Toaster,{toaster:ux[n],insetInline:{mdDown:"4"},children:r=>t.jsxs(e.Toast.Root,{css:ox,width:{md:"sm"},children:[t.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===r.type?r.meta?.icon?r.meta.icon:t.jsx(k,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===r.type?t.jsx(e.Spinner,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===r.type?r.meta?.icon?r.meta.icon:t.jsx(P,{color:"var(--chakra-colors-success-500)"}):null,"warning"===r.type?r.meta?.icon?r.meta.icon:t.jsx(M,{color:"var(--chakra-colors-warning-500)"}):null,"error"===r.type?r.meta?.icon?r.meta.icon:t.jsx(_,{color:"var(--chakra-colors-error-500)"}):null,t.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[t.jsx(e.Toast.Title,{css:ix,"aria-label":`${r.title}`,children:r.title}),r.description?t.jsx(e.Toast.Title,{css:ax,"aria-label":`${r.description}`,children:r.description}):null]})]}),r.action||r.meta?.closable?t.jsxs(e.Stack,{flexDirection:"row",children:[r.action?t.jsx(b,{css:sx,label:r.action.label,size:"small",variant:"info"===r.type?"primary":"secondary",onClick:()=>{r?.action?.onClick&&r.action.onClick(),ux[n].dismiss()}}):null,r.meta?.closable?t.jsx(b,{css:lx,label:r.meta.closableLabel,"aria-label":r.meta?.closableLabel||"Dismiss",leftIcon:t.jsx(E,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>ux[n].dismiss()}):null]}):null]})})},n))),exports.Toolbar=fe,exports.Tooltip=pe,exports.designSystemStyles=p,exports.designSystemStylesForTailwind=d,exports.getThemedColor=h,exports.showToast=e=>{ux[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})};
|