@worldresources/wri-design-systems 2.194.1 → 2.194.2
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 +366 -363
- package/dist/index.esm.js +366 -363
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -103,7 +103,88 @@
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
`,Of=({icon:t,disabled:n,...o})=>r.jsx(e.Button,{css:Tf,"aria-label":o["aria-label"],disabled:n,...o,children:t}),Lf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[t.jsx("path",{d:"M9.78791 8.03125H16V2.21875C16 1.27103 15.229 0.5 14.2812 0.5H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V8.96875H9.78791L10.5502 9.73106C10.7333 9.91413 10.7333 10.2109 10.5502 10.394C10.3672 10.577 10.0704 10.577 9.88731 10.394L8.32481 8.83147C8.14175 8.64841 8.14175 8.35162 8.32481 8.16856L9.88731 6.60606C10.0704 6.423 10.3672 6.423 10.5502 6.60606C10.7333 6.78912 10.7333 7.08591 10.5502 7.26897L9.78791 8.03125Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_1216_84",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),Af=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M14.2812 0.5H7.1875V8.03125H12.4621L11.6998 7.26897C11.5168 7.08591 11.5168 6.78912 11.6998 6.60606C11.8829 6.423 12.1797 6.423 12.3627 6.60606L13.9252 8.16856C14.1083 8.35162 14.1083 8.64841 13.9252 8.83147L12.3627 10.394C12.1797 10.577 11.8829 10.577 11.6998 10.394C11.5168 10.2109 11.5168 9.91413 11.6998 9.73106L12.4621 8.96875H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V2.21875C16 1.27103 15.229 0.5 14.2812 0.5Z",fill:"#4F4E4E"})]})}),Rf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M4.19632 10.4277L0 6.23139L1.04908 5.18231L4.19632 8.32955L10.9509 1.57495L12 2.62403L4.19632 10.4277Z",fill:"currentColor"})})}),Nf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),Df=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.5 7.49997H5.5V4.49997H4.5V7.49997ZM5 3.49997C5.14167 3.49997 5.26042 3.45205 5.35625 3.35622C5.45208 3.26039 5.5 3.14164 5.5 2.99997C5.5 2.8583 5.45208 2.73955 5.35625 2.64372C5.26042 2.54789 5.14167 2.49997 5 2.49997C4.85833 2.49997 4.73958 2.54789 4.64375 2.64372C4.54792 2.73955 4.5 2.8583 4.5 2.99997C4.5 3.14164 4.54792 3.26039 4.64375 3.35622C4.73958 3.45205 4.85833 3.49997 5 3.49997ZM5 9.99997C4.30833 9.99997 3.65833 9.86872 3.05 9.60622C2.44167 9.34372 1.9125 8.98747 1.4625 8.53747C1.0125 8.08747 0.65625 7.5583 0.39375 6.94997C0.13125 6.34164 0 5.69164 0 4.99997C0 4.3083 0.13125 3.6583 0.39375 3.04997C0.65625 2.44164 1.0125 1.91247 1.4625 1.46247C1.9125 1.01247 2.44167 0.656219 3.05 0.393719C3.65833 0.131219 4.30833 -3.05176e-05 5 -3.05176e-05C5.69167 -3.05176e-05 6.34167 0.131219 6.95 0.393719C7.55833 0.656219 8.0875 1.01247 8.5375 1.46247C8.9875 1.91247 9.34375 2.44164 9.60625 3.04997C9.86875 3.6583 10 4.3083 10 4.99997C10 5.69164 9.86875 6.34164 9.60625 6.94997C9.34375 7.5583 8.9875 8.08747 8.5375 8.53747C8.0875 8.98747 7.55833 9.34372 6.95 9.60622C6.34167 9.86872 5.69167 9.99997 5 9.99997Z",fill:"currentColor"})})}),If=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),Pf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),zf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),Vf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 16C7.45 16 6.97917 15.8042 6.5875 15.4125C6.19583 15.0208 6 14.55 6 14C6 13.45 6.19583 12.9792 6.5875 12.5875C6.97917 12.1958 7.45 12 8 12C8.55 12 9.02083 12.1958 9.4125 12.5875C9.80417 12.9792 10 13.45 10 14C10 14.55 9.80417 15.0208 9.4125 15.4125C9.02083 15.8042 8.55 16 8 16ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10ZM8 4C7.45 4 6.97917 3.80417 6.5875 3.4125C6.19583 3.02083 6 2.55 6 2C6 1.45 6.19583 0.979167 6.5875 0.5875C6.97917 0.195833 7.45 0 8 0C8.55 0 9.02083 0.195833 9.4125 0.5875C9.80417 0.979167 10 1.45 10 2C10 2.55 9.80417 3.02083 9.4125 3.4125C9.02083 3.80417 8.55 4 8 4Z",fill:"currentColor"})})}),Bf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5 6.95455C5.56818 6.95455 6.05114 6.75568 6.44886 6.35795C6.84659 5.96023 7.04545 5.47727 7.04545 4.90909C7.04545 4.34091 6.84659 3.85795 6.44886 3.46023C6.05114 3.0625 5.56818 2.86364 5 2.86364C4.43182 2.86364 3.94886 3.0625 3.55114 3.46023C3.15341 3.85795 2.95455 4.34091 2.95455 4.90909C2.95455 5.47727 3.15341 5.96023 3.55114 6.35795C3.94886 6.75568 4.43182 6.95455 5 6.95455ZM5 6.13636C4.65909 6.13636 4.36932 6.01705 4.13068 5.77841C3.89205 5.53977 3.77273 5.25 3.77273 4.90909C3.77273 4.56818 3.89205 4.27841 4.13068 4.03977C4.36932 3.80114 4.65909 3.68182 5 3.68182C5.34091 3.68182 5.63068 3.80114 5.86932 4.03977C6.10795 4.27841 6.22727 4.56818 6.22727 4.90909C6.22727 5.25 6.10795 5.53977 5.86932 5.77841C5.63068 6.01705 5.34091 6.13636 5 6.13636ZM5 8.31818C3.89394 8.31818 2.88636 8.00947 1.97727 7.39205C1.06818 6.77462 0.409091 5.94697 0 4.90909C0.409091 3.87121 1.06818 3.04356 1.97727 2.42614C2.88636 1.80871 3.89394 1.5 5 1.5C6.10606 1.5 7.11364 1.80871 8.02273 2.42614C8.93182 3.04356 9.59091 3.87121 10 4.90909C9.59091 5.94697 8.93182 6.77462 8.02273 7.39205C7.11364 8.00947 6.10606 8.31818 5 8.31818Z",fill:"currentColor"})})}),_f=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:t.jsx("path",{d:"M8.54545 9.9375L6.63636 8.05114C6.37121 8.13447 6.10417 8.19697 5.83523 8.23864C5.56629 8.2803 5.28788 8.30114 5 8.30114C3.85606 8.30114 2.83712 7.98485 1.94318 7.35227C1.04924 6.7197 0.401515 5.89962 0 4.89205C0.159091 4.49053 0.359848 4.11742 0.602273 3.77273C0.844697 3.42803 1.12121 3.11932 1.43182 2.84659L0.181818 1.57386L0.818182 0.9375L9.18182 9.30114L8.54545 9.9375ZM5 6.9375C5.08333 6.9375 5.16098 6.93371 5.23295 6.92614C5.30492 6.91856 5.38258 6.90341 5.46591 6.88068L3.01136 4.42614C2.98864 4.50947 2.97348 4.58712 2.96591 4.65909C2.95833 4.73106 2.95455 4.80871 2.95455 4.89205C2.95455 5.46023 3.15341 5.94318 3.55114 6.34091C3.94886 6.73864 4.43182 6.9375 5 6.9375ZM8.31818 7.14205L6.875 5.71023C6.92803 5.58144 6.9697 5.45076 7 5.31818C7.0303 5.18561 7.04545 5.04356 7.04545 4.89205C7.04545 4.32386 6.84659 3.84091 6.44886 3.44318C6.05114 3.04545 5.56818 2.84659 5 2.84659C4.84848 2.84659 4.70644 2.86174 4.57386 2.89205C4.44129 2.92235 4.31061 2.9678 4.18182 3.02841L3.02273 1.86932C3.33333 1.74053 3.65152 1.64394 3.97727 1.57955C4.30303 1.51515 4.64394 1.48295 5 1.48295C6.14394 1.48295 7.16288 1.79924 8.05682 2.43182C8.95076 3.06439 9.59848 3.88447 10 4.89205C9.82576 5.33902 9.59659 5.75379 9.3125 6.13636C9.02841 6.51894 8.69697 6.85417 8.31818 7.14205ZM6.21591 5.05114L4.85227 3.6875C5.06439 3.64962 5.25947 3.66667 5.4375 3.73864C5.61553 3.81061 5.76894 3.91477 5.89773 4.05114C6.02652 4.1875 6.11932 4.3447 6.17614 4.52273C6.23295 4.70076 6.24621 4.87689 6.21591 5.05114Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4626_1381",children:t.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),Hf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:t.jsx("path",{d:"M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4916_54426",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),Ff=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 18.6477L10 1.375L20 18.6477H0ZM10 15.9205C10.2576 15.9205 10.4735 15.8333 10.6477 15.6591C10.822 15.4848 10.9091 15.2689 10.9091 15.0114C10.9091 14.7538 10.822 14.5379 10.6477 14.3636C10.4735 14.1894 10.2576 14.1023 10 14.1023C9.74242 14.1023 9.52652 14.1894 9.35227 14.3636C9.17803 14.5379 9.09091 14.7538 9.09091 15.0114C9.09091 15.2689 9.17803 15.4848 9.35227 15.6591C9.52652 15.8333 9.74242 15.9205 10 15.9205ZM9.09091 13.1932H10.9091V8.64773H9.09091V13.1932Z",fill:"currentColor"})})}),qf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})})}),Wf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.79733 2.62109L7.05688 4.36154L8.6964 6.00105L10.4368 4.26061L8.79733 2.62109",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4348 17.7395L26.7261 24.0306L28.4666 22.2904L22.1753 15.999L20.4348 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.83032 8.73722L8.57056 10.4775L15.5197 3.52853L17.9952 6.00428L19.7357 4.26384L15.5197 0.0478516L6.83032 8.73722",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.0828 8.74062L26.823 10.4811L28.4667 8.83761L26.7262 7.09717L25.0828 8.74062",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05664 26.7665L8.79688 28.5069L15.088 22.216L13.3476 20.4756L7.05664 26.7665",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 17.865L17.6987 19.6052L24.2126 13.0913L22.4722 11.3511L15.9583 17.865",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.606 8.61475L27.5582 15.5672L25.086 18.0396L26.8264 19.7799L31.0391 15.5672L22.3462 6.87451L20.606 8.61475",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 22.2898L4.32031 24.0302L5.95651 22.394L4.21607 20.6538L2.58008 22.2898",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 8.91145L17.6987 10.6517L23.99 4.36056L22.2496 2.62012L15.9583 8.91145",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 15.5676L8.69268 24.2603L10.4331 22.5198L3.48068 15.5676L5.96016 13.0881L4.21971 11.3477L0 15.5676",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3071 8.61154L17.8244 15.1288L19.5646 13.3885L13.0474 6.87109L11.3071 8.61154",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6091 26.8674L22.2493 28.5073L23.9897 26.7671L22.3496 25.127L20.6091 26.8674",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 8.83789L8.87079 15.1286L10.6112 13.3884L4.32052 7.09766L2.58008 8.83789",fill:"#9B9B9B"}),t.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),t.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4817 17.7395L17.9989 24.2567L19.7392 22.5163L13.2219 15.999L11.4817 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5195 27.6061L13.0437 25.1303L11.3035 26.8706L15.5195 31.0868L24.2159 22.3903L22.4756 20.6499L15.5195 27.6061",fill:"#9B9B9B"})]}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82666 18.0429L8.5669 19.7834L15.0881 13.2624L13.3476 11.522L6.82666 18.0429",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.8376 3.46878C39.7609 3.22403 39.6861 3.06362 39.5918 2.99958C39.5199 2.95005 39.386 2.93948 39.3278 2.93948C39.2598 2.93948 39.219 2.93264 39.219 2.87834C39.219 2.83171 39.2754 2.82031 39.3653 2.82031C39.7133 2.82031 40.0782 2.83648 40.1396 2.83648C40.1999 2.83648 40.4927 2.82031 40.8782 2.82031C40.9688 2.82031 41.0173 2.83648 41.0173 2.87834C41.0173 2.93264 40.9628 2.93948 40.8968 2.93948C40.8442 2.93948 40.7783 2.93948 40.7319 2.96373C40.6714 2.99191 40.6579 3.0373 40.6579 3.10921C40.6579 3.19853 40.724 3.42402 40.8055 3.721C40.9174 4.16202 41.5358 6.18037 41.656 6.55196H41.6755L42.9658 3.08496C43.0325 2.89616 43.0773 2.84497 43.1336 2.84497C43.2064 2.84497 43.2387 2.94632 43.3278 3.15999L44.7104 6.5043H44.7296C44.8482 6.05851 45.3823 4.30149 45.6173 3.52391C45.66 3.37138 45.6811 3.23169 45.6811 3.13615C45.6811 3.0315 45.6222 2.93948 45.3617 2.93948C45.2969 2.93948 45.2502 2.9171 45.2502 2.87834C45.2502 2.83171 45.3008 2.82031 45.4036 2.82031C45.7549 2.82031 46.034 2.83648 46.0939 2.83648C46.1395 2.83648 46.4268 2.82031 46.6462 2.82031C46.7184 2.82031 46.7658 2.83171 46.7658 2.87233C46.7658 2.9171 46.7351 2.93948 46.6744 2.93948C46.6067 2.93948 46.5142 2.94632 46.4407 2.97139C46.2796 3.0315 46.2092 3.29656 46.0657 3.67831C45.763 4.51578 45.0639 6.63155 44.7377 7.62964C44.6639 7.86258 44.6308 7.94279 44.5435 7.94279C44.4756 7.94279 44.4378 7.86258 44.3377 7.6141L42.9542 4.2818H42.9397C42.8143 4.62169 41.9279 6.97723 41.6423 7.58778C41.514 7.86258 41.4831 7.94279 41.4034 7.94279C41.3358 7.94279 41.3105 7.87025 41.2502 7.69575L39.8376 3.46878",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.4736 5.46052C52.4736 3.96919 51.6156 3.04363 50.5241 3.04363C49.7593 3.04363 48.8862 3.46848 48.8862 5.12686C48.8862 6.51167 49.6547 7.61007 50.9315 7.61007C51.3984 7.61007 52.4736 7.38417 52.4736 5.46052ZM47.9695 5.33425C47.9695 4.19523 48.7201 2.72607 50.7182 2.72607C52.3747 2.72607 53.4068 3.68811 53.4068 5.21384C53.4068 6.73834 52.3397 7.94243 50.6521 7.94243C48.7413 7.94243 47.9695 6.51161 47.9695 5.33425V5.33425Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.6253 5.27407C56.6253 5.34806 56.6388 5.37251 56.685 5.39469C56.8222 5.44111 57.0255 5.46059 57.1911 5.46059C57.4551 5.46059 57.5428 5.43261 57.6644 5.34806C57.8634 5.20029 58.0557 4.89253 58.0557 4.34561C58.0557 3.40327 57.4331 3.13178 57.0371 3.13178C56.8709 3.13178 56.7515 3.13593 56.685 3.15976C56.6388 3.17219 56.6253 3.19831 56.6253 3.25115V5.27407ZM55.8409 4.74893C55.8409 3.73799 55.8409 3.5494 55.8277 3.33842C55.8144 3.10921 55.7609 3.00435 55.5421 2.95689C55.4865 2.94632 55.3769 2.93948 55.2814 2.93948C55.208 2.93948 55.1667 2.92352 55.1667 2.87834C55.1667 2.83171 55.2146 2.82031 55.3122 2.82031C55.6681 2.82031 56.0873 2.83648 56.2272 2.83648C56.4521 2.83648 56.9576 2.82031 57.1633 2.82031C57.5836 2.82031 58.0313 2.86052 58.3884 3.10465C58.5765 3.23169 58.841 3.5724 58.841 4.01632C58.841 4.50957 58.6354 4.95825 57.9633 5.50455C58.5554 6.25187 59.014 6.84501 59.4066 7.25598C59.7788 7.64145 60.0519 7.68767 60.1537 7.70984C60.225 7.72373 60.2867 7.72891 60.3379 7.72891C60.3924 7.72891 60.4187 7.75233 60.4187 7.78404C60.4187 7.83357 60.3732 7.8489 60.2913 7.8489H59.6602C59.2866 7.8489 59.1197 7.81429 58.9498 7.72373C58.6626 7.56974 58.4076 7.25598 58.0369 6.74512C57.7708 6.37705 57.4665 5.92671 57.3766 5.82371C57.3461 5.78785 57.3051 5.78018 57.2585 5.78018L56.6788 5.76485C56.6469 5.76485 56.6253 5.78018 56.6253 5.8179V5.91344C56.6253 6.53145 56.6253 7.05661 56.6585 7.3368C56.6788 7.52871 56.7165 7.6773 56.9194 7.70155C57.0195 7.71751 57.1633 7.72891 57.2429 7.72891C57.297 7.72891 57.3264 7.75233 57.3264 7.78404C57.3264 7.82984 57.279 7.8489 57.1911 7.8489C56.8056 7.8489 56.3132 7.82984 56.2142 7.82984C56.0873 7.82984 55.6681 7.8489 55.4016 7.8489C55.3122 7.8489 55.2681 7.82984 55.2681 7.78404C55.2681 7.75233 55.2944 7.72891 55.3769 7.72891C55.4751 7.72891 55.5543 7.71751 55.6142 7.70155C55.7466 7.6773 55.7808 7.52871 55.8071 7.3368C55.8409 7.05661 55.8409 6.53145 55.8409 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.7401 5.92028C62.7401 6.76978 62.7401 7.22986 62.8795 7.34944C62.9923 7.45099 63.167 7.49804 63.6837 7.49804C64.037 7.49804 64.2973 7.48913 64.4635 7.30945C64.5458 7.22385 64.6235 7.03567 64.6351 6.91236C64.6426 6.85164 64.6544 6.8104 64.7079 6.8104C64.7576 6.8104 64.7636 6.84501 64.7636 6.92273C64.7636 6.99858 64.7159 7.49804 64.6633 7.68767C64.6235 7.83357 64.5885 7.87025 64.2426 7.87025C63.7651 7.87025 63.4198 7.85491 63.1195 7.8489C62.8194 7.83357 62.5805 7.82984 62.3067 7.82984C62.2352 7.82984 62.0852 7.82984 61.9272 7.83357C61.7749 7.83357 61.6029 7.8489 61.4709 7.8489C61.3832 7.8489 61.3349 7.82984 61.3349 7.78404C61.3349 7.75233 61.365 7.72891 61.4413 7.72891C61.543 7.72891 61.6216 7.71751 61.6819 7.70155C61.8176 7.6773 61.8487 7.52871 61.874 7.3368C61.9082 7.05661 61.9082 6.53145 61.9082 5.92028V4.74893C61.9082 3.73799 61.9082 3.5494 61.8951 3.33842C61.8817 3.10921 61.8269 3.00435 61.6095 2.95689C61.5577 2.94632 61.474 2.93948 61.3886 2.93948C61.3155 2.93948 61.2759 2.92352 61.2759 2.87834C61.2759 2.83171 61.3233 2.82031 61.4214 2.82031C61.7353 2.82031 62.1536 2.83648 62.3341 2.83648C62.4939 2.83648 62.9803 2.82031 63.2387 2.82031C63.3324 2.82031 63.38 2.83171 63.38 2.87834C63.38 2.92352 63.339 2.93948 63.2588 2.93948C63.1867 2.93948 63.0816 2.94632 62.9991 2.95689C62.8194 2.99191 62.7647 3.10465 62.7533 3.33842C62.7401 3.5494 62.7401 3.73799 62.7401 4.74893V5.92028",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.8097 5.48049C67.8097 6.18388 67.8141 6.6966 67.8234 6.82509C67.8294 6.99068 67.8447 7.25575 67.8978 7.33056C67.9832 7.45595 68.2426 7.59501 68.7672 7.59501C69.4469 7.59501 69.9002 7.46237 70.2973 7.11627C70.7267 6.74903 70.8568 6.14512 70.8568 5.46059C70.8568 4.61607 70.5043 4.06832 70.22 3.79517C69.6061 3.21012 68.8478 3.13178 68.3284 3.13178C68.1954 3.13178 67.9498 3.1496 67.8978 3.17696C67.8375 3.20432 67.8141 3.23706 67.8141 3.30918C67.8097 3.53819 67.8097 4.11682 67.8097 4.64343V5.48049ZM66.9788 4.74893C66.9788 3.73799 66.9788 3.5494 66.9632 3.33842C66.95 3.10921 66.8969 3.00435 66.6779 2.95689C66.6254 2.94632 66.5114 2.93948 66.4196 2.93948C66.3438 2.93948 66.3042 2.92352 66.3042 2.87834C66.3042 2.83171 66.3531 2.82031 66.4509 2.82031C66.8041 2.82031 67.2215 2.83648 67.4096 2.83648C67.6156 2.83648 68.0355 2.82031 68.4355 2.82031C69.267 2.82031 70.3786 2.82031 71.1044 3.57676C71.4374 3.92389 71.7481 4.47661 71.7481 5.26622C71.7481 6.10556 71.3968 6.74512 71.0236 7.125C70.7169 7.43669 70.0257 7.90942 68.7953 7.90942C68.5559 7.90942 68.2817 7.88911 68.0297 7.87025C67.7761 7.8489 67.5417 7.82984 67.379 7.82984C67.3042 7.82984 67.1574 7.82984 66.9964 7.83357C66.8441 7.83357 66.6721 7.8489 66.5373 7.8489C66.4509 7.8489 66.407 7.82984 66.407 7.78404C66.407 7.75233 66.4335 7.72891 66.5114 7.72891C66.612 7.72891 66.6932 7.71751 66.7518 7.70155C66.8855 7.6773 66.9187 7.52871 66.9456 7.3368C66.9788 7.05661 66.9788 6.53145 66.9788 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.2173 16.0733C41.2173 16.1481 41.231 16.1755 41.2755 16.1948C41.4152 16.241 41.6173 16.2607 41.7812 16.2607C42.0492 16.2607 42.1356 16.2333 42.2543 16.1481C42.456 16.0002 42.6456 15.6964 42.6456 15.1501C42.6456 14.2044 42.022 13.9325 41.6299 13.9325C41.4637 13.9325 41.3425 13.9385 41.2755 13.9582C41.231 13.9727 41.2173 13.9965 41.2173 14.0508V16.0733ZM40.4308 15.5499C40.4308 14.5375 40.4308 14.3499 40.419 14.1383C40.4055 13.9131 40.3531 13.8053 40.1297 13.7597C40.0783 13.746 39.966 13.7406 39.8735 13.7406C39.8016 13.7406 39.761 13.727 39.761 13.6772C39.761 13.6316 39.8055 13.6167 39.9083 13.6167C40.258 13.6167 40.6772 13.6397 40.8181 13.6397C41.0424 13.6397 41.5472 13.6167 41.757 13.6167C42.1733 13.6167 42.6222 13.6606 42.9812 13.9075C43.1658 14.0335 43.434 14.3723 43.434 14.8179C43.434 15.3084 43.2251 15.7621 42.5542 16.3086C43.1463 17.053 43.6056 17.6457 43.9979 18.0588C44.3697 18.4434 44.6426 18.4917 44.7425 18.5095C44.8176 18.5228 44.8756 18.5328 44.9299 18.5328C44.9804 18.5328 45.0097 18.5489 45.0097 18.5829C45.0097 18.6376 44.9628 18.6492 44.8837 18.6492H44.2503C43.8754 18.6492 43.7123 18.6171 43.5376 18.5228C43.2522 18.3697 42.9996 18.0588 42.627 17.5452C42.3611 17.1811 42.056 16.727 41.9688 16.6288C41.9358 16.5867 41.8937 16.5815 41.8463 16.5815L41.2714 16.5683C41.2376 16.5683 41.2173 16.5815 41.2173 16.6203V16.7152C41.2173 17.3328 41.2173 17.8571 41.2502 18.1375C41.2714 18.3294 41.3106 18.477 41.5097 18.5035C41.6096 18.5174 41.757 18.5328 41.8347 18.5328C41.8892 18.5328 41.9163 18.5489 41.9163 18.5829C41.9163 18.6287 41.8678 18.6492 41.7812 18.6492C41.3959 18.6492 40.9046 18.6287 40.8055 18.6287C40.6772 18.6287 40.258 18.6492 39.9937 18.6492C39.9083 18.6492 39.8582 18.6287 39.8582 18.5829C39.8582 18.5489 39.8862 18.5328 39.966 18.5328C40.0661 18.5328 40.1465 18.5174 40.2076 18.5035C40.3396 18.477 40.3734 18.3294 40.3999 18.1375C40.4308 17.8571 40.4308 17.3328 40.4308 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.4986 15.5498C46.4986 14.5374 46.4986 14.3499 46.4862 14.1383C46.4737 13.913 46.419 13.8052 46.1998 13.7596C46.1463 13.7459 46.0306 13.7406 45.9419 13.7406C45.8675 13.7406 45.8257 13.7269 45.8257 13.6771C45.8257 13.6315 45.8736 13.6166 45.9734 13.6166C46.1531 13.6166 46.3475 13.6247 46.5142 13.6247C46.6849 13.6315 46.8387 13.6396 46.932 13.6396C47.1456 13.6396 48.4681 13.6396 48.5961 13.6315C48.7201 13.6166 48.827 13.6054 48.8813 13.5928C48.914 13.5868 48.9553 13.5654 48.9864 13.5654C49.0191 13.5654 49.0272 13.5928 49.0272 13.6247C49.0272 13.6722 48.9959 13.7528 48.9727 14.0589C48.9686 14.1248 48.9553 14.4201 48.9414 14.4964C48.9352 14.5306 48.9199 14.5695 48.8736 14.5695C48.827 14.5695 48.8144 14.5374 48.8144 14.4781C48.8144 14.4315 48.8096 14.3167 48.7762 14.239C48.7275 14.1186 48.662 14.0375 48.3282 13.9965C48.2154 13.9836 47.5162 13.9727 47.384 13.9727C47.35 13.9727 47.3377 13.9905 47.3377 14.0375V15.7226C47.3377 15.7684 47.3454 15.7946 47.384 15.7946C47.5299 15.7946 48.2969 15.7946 48.4484 15.7809C48.6098 15.7684 48.7085 15.7488 48.7667 15.6818C48.8144 15.6281 48.8405 15.5948 48.8736 15.5948C48.902 15.5948 48.9199 15.6085 48.9199 15.6491C48.9199 15.6887 48.8952 15.7946 48.8678 16.1344C48.8627 16.2665 48.8405 16.5336 48.8405 16.5815C48.8405 16.6333 48.8405 16.7056 48.7802 16.7056C48.7335 16.7056 48.7201 16.6799 48.7201 16.6474C48.7165 16.5815 48.7165 16.4955 48.695 16.4063C48.662 16.2745 48.5704 16.1755 48.3222 16.1481C48.1959 16.1344 47.5359 16.1268 47.3784 16.1268C47.3454 16.1268 47.3377 16.1541 47.3377 16.1947V16.7191C47.3377 16.9454 47.3301 17.5599 47.3377 17.753C47.35 18.2081 47.4559 18.3115 48.1344 18.3115C48.3085 18.3115 48.5881 18.3115 48.7617 18.233C48.9352 18.1499 49.0146 18.0135 49.0628 17.7385C49.0749 17.6627 49.0869 17.6376 49.1348 17.6376C49.188 17.6376 49.188 17.6923 49.188 17.7582C49.188 17.9118 49.1348 18.3648 49.1008 18.4968C49.0521 18.6697 48.9959 18.6697 48.7427 18.6697C48.2428 18.6697 47.8782 18.6545 47.5902 18.6491C47.3046 18.6375 47.0969 18.6286 46.898 18.6286C46.8246 18.6286 46.6785 18.6286 46.5181 18.6375C46.3656 18.6375 46.1938 18.6491 46.0597 18.6491C45.9734 18.6491 45.9239 18.6286 45.9239 18.5828C45.9239 18.5488 45.9542 18.5327 46.0306 18.5327C46.1314 18.5327 46.2132 18.5173 46.2735 18.5035C46.4064 18.4769 46.4379 18.3294 46.4657 18.1375C46.4986 17.8571 46.4986 17.3327 46.4986 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.3845 18.5715C51.2755 18.5227 51.2566 18.4917 51.2566 18.3445C51.2566 17.9771 51.2813 17.579 51.2875 17.4735C51.2951 17.3723 51.3163 17.3017 51.3685 17.3017C51.429 17.3017 51.435 17.3607 51.435 17.4134C51.435 17.4979 51.463 17.6376 51.4951 17.753C51.6408 18.2448 52.0348 18.4243 52.4487 18.4243C53.0447 18.4243 53.3388 18.016 53.3388 17.6627C53.3388 17.3373 53.2368 17.0335 52.6864 16.6006L52.3805 16.3597C51.6485 15.7888 51.3959 15.3208 51.3959 14.7843C51.3959 14.0508 52.0079 13.5244 52.9342 13.5244C53.3649 13.5244 53.6447 13.5928 53.8181 13.6396C53.8789 13.655 53.9126 13.6722 53.9126 13.719C53.9126 13.8052 53.883 13.9965 53.883 14.5173C53.883 14.6647 53.8625 14.7171 53.8113 14.7171C53.7628 14.7171 53.7439 14.6771 53.7439 14.5986C53.7439 14.5374 53.7129 14.3304 53.5723 14.158C53.4708 14.0334 53.2795 13.8326 52.8445 13.8326C52.3531 13.8326 52.0545 14.1186 52.0545 14.5173C52.0545 14.8247 52.2099 15.0547 52.7614 15.4773L52.9454 15.6161C53.7533 16.2211 54.0368 16.6799 54.0368 17.3135C54.0368 17.6975 53.8913 18.1594 53.4136 18.4703C53.0816 18.6819 52.7088 18.7449 52.3531 18.7449C51.9691 18.7449 51.6698 18.6966 51.3845 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.4449 16.2609C60.4449 14.7716 59.5867 13.8452 58.4976 13.8452C57.731 13.8452 56.8585 14.2726 56.8585 15.9289C56.8585 17.3137 57.6253 18.4106 58.9013 18.4106C59.3691 18.4106 60.4449 18.1835 60.4449 16.2609ZM55.9399 16.1345C55.9399 14.9975 56.6912 13.5244 58.689 13.5244C60.3437 13.5244 61.3787 14.4918 61.3787 16.0161C61.3787 17.5404 60.3116 18.7449 58.6225 18.7449C56.713 18.7449 55.9399 17.3135 55.9399 16.1345V16.1345Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M63.5918 15.5499C63.5918 14.5375 63.5918 14.3499 63.579 14.1383C63.5653 13.9131 63.5118 13.8053 63.2915 13.7597C63.2387 13.746 63.1243 13.7406 63.0314 13.7406C62.9575 13.7406 62.9187 13.727 62.9187 13.6772C62.9187 13.6316 62.9649 13.6167 63.0661 13.6167C63.4175 13.6167 63.8366 13.6397 64.037 13.6397C64.1955 13.6397 64.6175 13.6167 64.8544 13.6167C64.9557 13.6167 65.0017 13.6316 65.0017 13.6772C65.0017 13.727 64.9615 13.7406 64.8956 13.7406C64.8216 13.7406 64.781 13.746 64.7012 13.7597C64.5207 13.791 64.4712 13.9075 64.4554 14.1383C64.4438 14.3499 64.4438 14.5375 64.4438 15.5499V16.481C64.4438 17.4441 64.6351 17.8515 64.9615 18.1189C65.2608 18.3649 65.5685 18.3908 65.7924 18.3908C66.086 18.3908 66.4466 18.2979 66.7125 18.0314C67.0781 17.6627 67.0972 17.0661 67.0972 16.3803V15.5499C67.0972 14.5375 67.0972 14.3499 67.0858 14.1383C67.0721 13.9131 67.018 13.8053 66.7992 13.7597C66.7459 13.746 66.6332 13.7406 66.5573 13.7406C66.4858 13.7406 66.4466 13.727 66.4466 13.6772C66.4466 13.6316 66.491 13.6167 66.5876 13.6167C66.9237 13.6167 67.3417 13.6397 67.3417 13.6397C67.4323 13.6397 67.8491 13.6167 68.1089 13.6167C68.2041 13.6167 68.2476 13.6316 68.2476 13.6772C68.2476 13.727 68.2097 13.7406 68.1282 13.7406C68.0561 13.7406 68.0138 13.746 67.9382 13.7597C67.7572 13.791 67.7013 13.9075 67.6893 14.1383C67.6762 14.3499 67.6762 14.5375 67.6762 15.5499V16.2607C67.6762 17.0006 67.6045 17.7832 67.0431 18.2627C66.5718 18.6697 66.0937 18.745 65.6583 18.745C65.3091 18.745 64.6681 18.723 64.1835 18.2826C63.8428 17.9771 63.5918 17.4851 63.5918 16.5212V15.5499",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.3762 16.0733C71.3762 16.1481 71.3888 16.1755 71.4361 16.1948C71.5762 16.241 71.7749 16.2607 71.942 16.2607C72.2083 16.2607 72.2937 16.2333 72.4141 16.1481C72.6143 16.0002 72.8066 15.6964 72.8066 15.1501C72.8066 14.2044 72.1809 13.9325 71.7886 13.9325C71.622 13.9325 71.5043 13.9385 71.4361 13.9582C71.3888 13.9727 71.3762 13.9965 71.3762 14.0508V16.0733ZM70.5907 15.5499C70.5907 14.5375 70.5907 14.3499 70.5772 14.1383C70.5634 13.9131 70.5117 13.8053 70.2917 13.7597C70.2361 13.746 70.1248 13.7406 70.0322 13.7406C69.9599 13.7406 69.9167 13.727 69.9167 13.6772C69.9167 13.6316 69.9634 13.6167 70.0664 13.6167C70.4158 13.6167 70.8371 13.6397 70.9762 13.6397C71.2044 13.6397 71.7084 13.6167 71.9152 13.6167C72.3343 13.6167 72.7813 13.6606 73.138 13.9075C73.3268 14.0335 73.5924 14.3723 73.5924 14.8179C73.5924 15.3084 73.3864 15.7621 72.7125 16.3086C73.305 17.053 73.7636 17.6457 74.1555 18.0588C74.5284 18.4434 74.8025 18.4917 74.9016 18.5095C74.9754 18.5228 75.0363 18.5328 75.0888 18.5328C75.1422 18.5328 75.1683 18.5489 75.1683 18.5829C75.1683 18.6376 75.1227 18.6492 75.0403 18.6492H74.4102C74.0393 18.6492 73.8699 18.6171 73.6994 18.5228C73.4121 18.3697 73.1579 18.0588 72.7867 17.5452C72.5195 17.1811 72.2143 16.727 72.1274 16.6288C72.0939 16.5867 72.053 16.5815 72.0081 16.5815L71.4315 16.5683C71.3969 16.5683 71.3762 16.5815 71.3762 16.6203V16.7152C71.3762 17.3328 71.3762 17.8571 71.4102 18.1375C71.4315 18.3294 71.4682 18.477 71.6702 18.5035C71.7683 18.5174 71.9152 18.5328 71.9946 18.5328C72.0476 18.5328 72.0738 18.5489 72.0738 18.5829C72.0738 18.6287 72.0273 18.6492 71.9419 18.6492C71.5558 18.6492 71.0626 18.6287 70.9635 18.6287C70.8371 18.6287 70.4158 18.6492 70.1522 18.6492C70.0664 18.6492 70.0197 18.6287 70.0197 18.5829C70.0197 18.5489 70.044 18.5328 70.1248 18.5328C70.2258 18.5328 70.3053 18.5174 70.3642 18.5035C70.4974 18.477 70.5304 18.3294 70.558 18.1375C70.5907 17.8571 70.5907 17.3328 70.5907 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.7248 18.016C76.0707 17.444 75.9004 16.6996 75.9004 16.0549C75.9004 15.6041 76.0397 14.8178 76.68 14.2313C77.1561 13.7909 77.789 13.5244 78.7811 13.5244C79.1931 13.5244 79.4405 13.553 79.7454 13.5928C79.9991 13.6247 80.2123 13.6879 80.4121 13.7047C80.4836 13.7124 80.512 13.746 80.512 13.787C80.512 13.8403 80.4917 13.9167 80.4784 14.1503C80.4648 14.3723 80.4701 14.7376 80.4571 14.869C80.4511 14.9695 80.4374 15.0236 80.3773 15.0236C80.3251 15.0236 80.3122 14.9695 80.3122 14.8761C80.3046 14.6701 80.2179 14.4404 80.0525 14.2655C79.8333 14.0334 79.3152 13.8519 78.7017 13.8519C78.1229 13.8519 77.7424 13.9965 77.4508 14.2655C76.9646 14.7094 76.8376 15.3413 76.8376 15.9871C76.8376 17.5711 78.0433 18.3559 78.9345 18.3559C79.5251 18.3559 79.8849 18.2919 80.1499 17.9833C80.2648 17.8571 80.352 17.6627 80.3773 17.5452C80.3972 17.4374 80.4121 17.4134 80.4648 17.4134C80.512 17.4134 80.5249 17.4585 80.5249 17.5131C80.5249 17.591 80.4455 18.1715 80.3773 18.3969C80.3421 18.5095 80.3176 18.5447 80.2065 18.5907C79.9384 18.6966 79.4325 18.7449 79.0066 18.7449C78.0959 18.7449 77.3306 18.5447 76.7248 18.016",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.9906 15.5498C82.9906 14.5374 82.9906 14.3499 82.9794 14.1383C82.9659 13.913 82.9112 13.8052 82.6928 13.7596C82.6399 13.7459 82.5272 13.7406 82.4333 13.7406C82.3601 13.7406 82.3191 13.7269 82.3191 13.6771C82.3191 13.6315 82.3661 13.6166 82.4629 13.6166C82.6474 13.6166 82.8378 13.6247 83.0049 13.6247C83.1806 13.6315 83.3331 13.6396 83.4252 13.6396C83.6378 13.6396 84.9615 13.6396 85.0891 13.6315C85.2143 13.6166 85.3208 13.6054 85.3739 13.5928C85.4089 13.5868 85.451 13.5654 85.4783 13.5654C85.5152 13.5654 85.519 13.5928 85.519 13.6247C85.519 13.6722 85.4862 13.7528 85.4686 14.0589C85.4613 14.1248 85.451 14.4201 85.4354 14.4964C85.4282 14.5306 85.4145 14.5695 85.3697 14.5695C85.3208 14.5695 85.3078 14.5374 85.3078 14.4781C85.3078 14.4315 85.302 14.3167 85.2667 14.239C85.2211 14.1186 85.1542 14.0375 84.8224 13.9965C84.7097 13.9836 84.0092 13.9727 83.8784 13.9727C83.8436 13.9727 83.8299 13.9905 83.8299 14.0375V15.7226C83.8299 15.7684 83.8399 15.7946 83.8784 15.7946C84.0224 15.7946 84.7913 15.7946 84.9426 15.7809C85.102 15.7684 85.2006 15.7488 85.2611 15.6818C85.3078 15.6281 85.3351 15.5948 85.3697 15.5948C85.3932 15.5948 85.4145 15.6085 85.4145 15.6491C85.4145 15.6887 85.3874 15.7946 85.3621 16.1344C85.3532 16.2665 85.3351 16.5336 85.3351 16.5815C85.3351 16.6333 85.3351 16.7056 85.2742 16.7056C85.2288 16.7056 85.2143 16.6799 85.2143 16.6474C85.2095 16.5815 85.2095 16.4955 85.1892 16.4063C85.1542 16.2745 85.0609 16.1755 84.8143 16.1481C84.6885 16.1344 84.0297 16.1268 83.873 16.1268C83.8399 16.1268 83.8299 16.1541 83.8299 16.1947V16.7191C83.8299 16.9454 83.8251 17.5599 83.8299 17.753C83.8436 18.2081 83.9524 18.3115 84.629 18.3115C84.8027 18.3115 85.0815 18.3115 85.2553 18.233C85.4282 18.1499 85.508 18.0135 85.5563 17.7385C85.5656 17.6627 85.5813 17.6376 85.6284 17.6376C85.6814 17.6376 85.6814 17.6923 85.6814 17.7582C85.6814 17.9118 85.6284 18.3648 85.595 18.4968C85.5482 18.6697 85.4862 18.6697 85.2354 18.6697C84.7378 18.6697 84.3714 18.6545 84.0844 18.6491C83.7965 18.6375 83.5907 18.6286 83.3949 18.6286C83.3193 18.6286 83.1725 18.6286 83.014 18.6375C82.8588 18.6375 82.6863 18.6491 82.5535 18.6491C82.4629 18.6491 82.4202 18.6286 82.4202 18.5828C82.4202 18.5488 82.4476 18.5327 82.5272 18.5327C82.6279 18.5327 82.7073 18.5173 82.7661 18.5035C82.8998 18.4769 82.9332 18.3294 82.9599 18.1375C82.9906 17.8571 82.9906 17.3327 82.9906 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.8766 18.5715C87.7717 18.5227 87.7495 18.4917 87.7495 18.3445C87.7495 17.9771 87.7754 17.579 87.7837 17.4735C87.7912 17.3723 87.8084 17.3017 87.861 17.3017C87.9232 17.3017 87.9269 17.3607 87.9269 17.4134C87.9269 17.4979 87.953 17.6376 87.9893 17.753C88.1342 18.2448 88.529 18.4243 88.941 18.4243C89.5376 18.4243 89.8323 18.016 89.8323 17.6627C89.8323 17.3373 89.7326 17.0335 89.1795 16.6006L88.8734 16.3597C88.1418 15.7888 87.8904 15.3208 87.8904 14.7843C87.8904 14.0508 88.5016 13.5244 89.4263 13.5244C89.8591 13.5244 90.1405 13.5928 90.3117 13.6396C90.3718 13.655 90.4051 13.6722 90.4051 13.719C90.4051 13.8052 90.3799 13.9965 90.3799 14.5173C90.3799 14.6647 90.3581 14.7171 90.3038 14.7171C90.259 14.7171 90.2369 14.6771 90.2369 14.5986C90.2369 14.5374 90.2049 14.3304 90.0661 14.158C89.965 14.0334 89.7716 13.8326 89.338 13.8326C88.8475 13.8326 88.5486 14.1186 88.5486 14.5173C88.5486 14.8247 88.7024 15.0547 89.2551 15.4773L89.4394 15.6161C90.2454 16.2211 90.5312 16.6799 90.5312 17.3135C90.5312 17.6975 90.3834 18.1594 89.9057 18.4703C89.5714 18.6819 89.1992 18.7449 88.8475 18.7449C88.4612 18.7449 88.1619 18.6966 87.8766 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.4308 26.351C40.4308 25.3411 40.4308 25.1548 40.419 24.9405C40.4055 24.7134 40.3396 24.6015 40.1919 24.5681C40.1202 24.547 40.03 24.5443 39.9511 24.5443C39.8862 24.5443 39.8462 24.5289 39.8462 24.4726C39.8462 24.4359 39.9005 24.4214 40.0037 24.4214C40.258 24.4214 40.6772 24.4402 40.8696 24.4402C41.0368 24.4402 41.43 24.4214 41.6832 24.4214C41.7688 24.4214 41.821 24.4359 41.821 24.4726C41.821 24.5289 41.7812 24.5443 41.7141 24.5443C41.6505 24.5443 41.596 24.547 41.5141 24.5615C41.3359 24.5949 41.2832 24.7074 41.2714 24.9405C41.2561 25.1548 41.2561 25.3411 41.2561 26.351V27.5214C41.2561 28.1675 41.2561 28.6935 41.2832 28.9814C41.3046 29.1605 41.3502 29.2786 41.5473 29.3043C41.6424 29.3186 41.7881 29.3331 41.8892 29.3331C41.962 29.3331 41.9941 29.3528 41.9941 29.3868C41.9941 29.4322 41.9425 29.4518 41.8679 29.4518C41.43 29.4518 41.0097 29.4322 40.8298 29.4322C40.6772 29.4322 40.258 29.4518 39.9937 29.4518C39.9084 29.4518 39.8582 29.4322 39.8582 29.3868C39.8582 29.3528 39.8862 29.3331 39.966 29.3331C40.0661 29.3331 40.1465 29.3186 40.2076 29.3043C40.3396 29.2786 40.3782 29.1683 40.3999 28.9737C40.4308 28.6935 40.4308 28.1675 40.4308 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.8558 28.5483C44.8695 29.0666 44.9551 29.2398 45.089 29.2861C45.2017 29.3252 45.3281 29.3329 45.4347 29.3329C45.5095 29.3329 45.5472 29.3457 45.5472 29.3866C45.5472 29.438 45.489 29.4516 45.3957 29.4516C44.9628 29.4516 44.6938 29.432 44.5696 29.432C44.5104 29.432 44.198 29.4516 43.8503 29.4516C43.7659 29.4516 43.7046 29.4465 43.7046 29.3866C43.7046 29.3457 43.7433 29.3329 43.8092 29.3329C43.8969 29.3329 44.0171 29.3252 44.1104 29.3006C44.2851 29.2467 44.3095 29.0512 44.3164 28.4749L44.3786 24.5339C44.3786 24.4007 44.3958 24.3076 44.4637 24.3076C44.5354 24.3076 44.5957 24.3949 44.7103 24.5132C44.7881 24.6013 45.8019 25.6856 46.7726 26.6505C47.2261 27.1038 48.1224 28.0625 48.2345 28.1673H48.271L48.2037 25.1793C48.196 24.7721 48.1345 24.6475 47.9763 24.5799C47.8783 24.5441 47.7164 24.5441 47.6252 24.5441C47.5453 24.5441 47.5162 24.5219 47.5162 24.4809C47.5162 24.4264 47.5921 24.4212 47.6914 24.4212C48.0379 24.4212 48.3572 24.44 48.4967 24.44C48.5705 24.44 48.8221 24.4212 49.1473 24.4212C49.2341 24.4212 49.3019 24.4264 49.3019 24.4809C49.3019 24.5219 49.2617 24.5441 49.1802 24.5441C49.1143 24.5441 49.0629 24.5441 48.9806 24.5613C48.7939 24.616 48.7427 24.7544 48.7359 25.1273L48.6621 29.3252C48.6621 29.4713 48.6347 29.5345 48.5746 29.5345C48.5023 29.5345 48.4221 29.4577 48.3496 29.3866C47.9311 28.9856 47.0783 28.1145 46.3861 27.4291C45.6599 26.7092 44.9219 25.8785 44.8017 25.7523H44.7843L44.8558 28.5483",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.4631 29.3742C51.3557 29.3253 51.3379 29.2921 51.3379 29.1469C51.3379 28.7815 51.363 28.3817 51.3686 28.2744C51.3766 28.1761 51.3959 28.1019 51.4488 28.1019C51.5085 28.1019 51.5165 28.1616 51.5165 28.2163C51.5165 28.2999 51.5426 28.44 51.5768 28.5527C51.7223 29.0455 52.1149 29.2264 52.5283 29.2264C53.1243 29.2264 53.4197 28.8209 53.4197 28.4673C53.4197 28.143 53.3183 27.8365 52.7673 27.4019L52.4601 27.1637C51.7281 26.589 51.4757 26.1256 51.4757 25.5866C51.4757 24.8534 52.0865 24.3301 53.0116 24.3301C53.4449 24.3301 53.7243 24.3949 53.8978 24.4401C53.9583 24.4555 53.991 24.4725 53.991 24.522C53.991 24.6101 53.9651 24.8011 53.9651 25.3186C53.9651 25.4654 53.9457 25.5192 53.8914 25.5192C53.8447 25.5192 53.8234 25.4807 53.8234 25.3988C53.8234 25.341 53.791 25.1344 53.6528 24.9626C53.5515 24.8335 53.3575 24.6356 52.927 24.6356C52.4344 24.6356 52.136 24.9216 52.136 25.3186C52.136 25.626 52.2894 25.8573 52.8408 26.2782L53.0269 26.4174C53.8313 27.022 54.1162 27.4829 54.1162 28.1146C54.1162 28.4996 53.9691 28.9599 53.4912 29.2708C53.161 29.4841 52.7865 29.5466 52.4344 29.5466C52.0483 29.5466 51.7474 29.4977 51.4631 29.3742",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.6296 24.7953L56.6388 24.82C56.2502 24.8335 56.0945 24.8662 55.994 25.0138C55.9275 25.1145 55.891 25.193 55.8788 25.2453C55.8668 25.2998 55.8469 25.3261 55.8071 25.3261C55.7609 25.3261 55.7466 25.2938 55.7466 25.2204C55.7466 25.1145 55.872 24.5093 55.8896 24.4555C55.9086 24.3659 55.9275 24.3301 55.965 24.3301C56.0193 24.3301 56.0873 24.3949 56.2502 24.407C56.445 24.4264 56.697 24.4401 56.9167 24.4401H59.5543C59.7653 24.4401 59.9116 24.4213 60.0115 24.407C60.1118 24.3871 60.165 24.3761 60.1924 24.3761C60.2394 24.3761 60.245 24.4144 60.245 24.5133C60.245 24.6544 60.2249 25.1145 60.2249 25.2863C60.2189 25.3545 60.2061 25.393 60.165 25.393C60.1118 25.393 60.0973 25.358 60.09 25.2625L60.0875 25.1864C60.0722 25.0138 59.8931 24.8285 59.301 24.815L58.4623 24.7953V27.5212C58.4623 28.1343 58.4623 28.6592 58.4976 28.9454C58.5148 29.1332 58.5554 29.2785 58.7543 29.3042C58.8478 29.3185 58.9941 29.333 59.0934 29.333C59.167 29.333 59.2003 29.3527 59.2003 29.3866C59.2003 29.432 59.1464 29.4517 59.0741 29.4517C58.6354 29.4517 58.2178 29.432 58.0313 29.432C57.876 29.432 57.4551 29.4517 57.1911 29.4517C57.1049 29.4517 57.0562 29.432 57.0562 29.3866C57.0562 29.3527 57.0852 29.333 57.1633 29.333C57.2663 29.333 57.3461 29.3185 57.4037 29.3042C57.5386 29.2785 57.5766 29.1332 57.5962 28.9413C57.6296 28.6592 57.6296 28.1343 57.6296 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.5148 26.351C62.5148 25.3411 62.5148 25.1548 62.5011 24.9405C62.4876 24.7134 62.4195 24.6015 62.2752 24.5681C62.2023 24.547 62.1156 24.5443 62.0331 24.5443C61.9675 24.5443 61.9272 24.5289 61.9272 24.4726C61.9272 24.4359 61.9807 24.4214 62.0852 24.4214C62.3403 24.4214 62.7614 24.4402 62.9535 24.4402C63.1195 24.4402 63.5118 24.4214 63.7651 24.4214C63.8509 24.4214 63.9037 24.4359 63.9037 24.4726C63.9037 24.5289 63.8633 24.5443 63.798 24.5443C63.7321 24.5443 63.6801 24.547 63.5991 24.5615C63.4198 24.5949 63.3635 24.7074 63.3535 24.9405C63.339 25.1548 63.339 25.3411 63.339 26.351V27.5214C63.339 28.1675 63.339 28.6935 63.3635 28.9814C63.3863 29.1605 63.4312 29.2786 63.6331 29.3043C63.7234 29.3186 63.8712 29.3331 63.973 29.3331C64.0451 29.3331 64.0778 29.3528 64.0778 29.3868C64.0778 29.4322 64.0217 29.4518 63.9493 29.4518C63.5118 29.4518 63.092 29.4322 62.9121 29.4322C62.7614 29.4322 62.3403 29.4518 62.0736 29.4518C61.9867 29.4518 61.9401 29.4322 61.9401 29.3868C61.9401 29.3528 61.9675 29.3331 62.0474 29.3331C62.1475 29.3331 62.2273 29.3186 62.2856 29.3043C62.4195 29.2786 62.4588 29.1683 62.4789 28.9737C62.5148 28.6935 62.5148 28.1675 62.5148 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.4491 24.7953L66.4598 24.82C66.0741 24.8335 65.9133 24.8662 65.8121 25.0138C65.7464 25.1145 65.7122 25.193 65.7014 25.2453C65.6857 25.2998 65.6662 25.3261 65.6277 25.3261C65.579 25.3261 65.5686 25.2938 65.5686 25.2204C65.5686 25.1145 65.6934 24.5093 65.707 24.4555C65.7276 24.3659 65.7464 24.3301 65.7875 24.3301C65.8401 24.3301 65.9072 24.3949 66.0741 24.407C66.2674 24.4264 66.519 24.4401 66.7379 24.4401H69.3734C69.5869 24.4401 69.7326 24.4213 69.8356 24.407C69.9321 24.3871 69.9869 24.3761 70.0117 24.3761C70.0586 24.3761 70.0664 24.4144 70.0664 24.5133C70.0664 24.6544 70.0449 25.1145 70.0449 25.2863C70.0393 25.3545 70.0258 25.393 69.9869 25.393C69.9321 25.393 69.9195 25.358 69.9118 25.2625L69.9075 25.1864C69.8938 25.0138 69.7121 24.8285 69.1229 24.815L68.2819 24.7953V27.5212C68.2819 28.1343 68.2819 28.6592 68.3148 28.9454C68.3351 29.1332 68.3747 29.2785 68.5749 29.3042C68.6688 29.3185 68.8139 29.333 68.9129 29.333C68.989 29.333 69.0223 29.3527 69.0223 29.3866C69.0223 29.432 68.9682 29.4517 68.8932 29.4517C68.4559 29.4517 68.0356 29.432 67.8479 29.432C67.6976 29.432 67.278 29.4517 67.0098 29.4517C66.9238 29.4517 66.8761 29.432 66.8761 29.3866C66.8761 29.3527 66.9053 29.333 66.9839 29.333C67.084 29.333 67.1636 29.3185 67.2216 29.3042C67.3573 29.2785 67.3965 29.1332 67.4181 28.9413C67.4491 28.6592 67.4491 28.1343 67.4491 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.0477 26.351C72.0477 25.3411 72.0477 25.1548 72.033 24.9405C72.0197 24.7134 71.9681 24.6102 71.7482 24.5615C71.6927 24.547 71.5826 24.5443 71.49 24.5443C71.4177 24.5443 71.3762 24.5289 71.3762 24.4811C71.3762 24.4359 71.4216 24.4214 71.5227 24.4214C71.874 24.4214 72.2937 24.4402 72.4937 24.4402C72.6528 24.4402 73.0702 24.4214 73.3123 24.4214C73.4122 24.4214 73.4588 24.4359 73.4588 24.4811C73.4588 24.5289 73.4182 24.5443 73.3515 24.5443C73.2804 24.5443 73.2373 24.547 73.1579 24.5615C72.9809 24.5949 72.9248 24.7074 72.9129 24.9405C72.8995 25.1548 72.8995 25.3411 72.8995 26.351V27.2824C72.8995 28.2482 73.0924 28.6554 73.4182 28.9198C73.7171 29.1683 74.0236 29.1932 74.2509 29.1932C74.5423 29.1932 74.8994 29.1001 75.1684 28.8336C75.5348 28.4674 75.5528 27.8699 75.5528 27.1833V26.351C75.5528 25.3411 75.5528 25.1548 75.5402 24.9405C75.5302 24.7134 75.4761 24.6102 75.255 24.5615C75.2026 24.547 75.0888 24.5443 75.0181 24.5443C74.9402 24.5443 74.8994 24.5289 74.8994 24.4811C74.8994 24.4359 74.9481 24.4214 75.0403 24.4214C75.3829 24.4214 75.8007 24.4402 75.8065 24.4402C75.8882 24.4402 76.3072 24.4214 76.5675 24.4214C76.6589 24.4214 76.7055 24.4359 76.7055 24.4811C76.7055 24.5289 76.6666 24.5443 76.587 24.5443C76.5122 24.5443 76.4742 24.547 76.3928 24.5615C76.2121 24.5949 76.1596 24.7074 76.146 24.9405C76.1323 25.1548 76.1323 25.3411 76.1323 26.351V27.0619C76.1323 27.8016 76.0589 28.587 75.5006 29.0668C75.0295 29.4715 74.5504 29.5468 74.1162 29.5468C73.7637 29.5468 73.1245 29.5269 72.64 29.0898C72.3009 28.7816 72.0477 28.288 72.0477 27.3224V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.9309 24.7953L78.9403 24.82C78.554 24.8335 78.3952 24.8662 78.2958 25.0138C78.2296 25.1145 78.1967 25.193 78.1809 25.2453C78.1693 25.2998 78.148 25.3261 78.1084 25.3261C78.0626 25.3261 78.0481 25.2938 78.0481 25.2204C78.0481 25.1145 78.1737 24.5093 78.1867 24.4555C78.2083 24.3659 78.2296 24.3301 78.2684 24.3301C78.3208 24.3301 78.3867 24.3949 78.554 24.407C78.7463 24.4264 79.0004 24.4401 79.2201 24.4401H81.855C82.0689 24.4401 82.2125 24.4213 82.3151 24.407C82.4143 24.3871 82.4668 24.3761 82.4966 24.3761C82.5401 24.3761 82.5482 24.4144 82.5482 24.5133C82.5482 24.6544 82.5271 25.1145 82.5271 25.2863C82.5192 25.3545 82.5072 25.393 82.4668 25.393C82.4143 25.393 82.3986 25.358 82.3951 25.2625L82.389 25.1864C82.3735 25.0138 82.1949 24.8285 81.6046 24.815L80.764 24.7953V27.5212C80.764 28.1343 80.764 28.6592 80.7968 28.9454C80.8181 29.1332 80.8592 29.2785 81.055 29.3042C81.1524 29.3185 81.2942 29.333 81.3949 29.333C81.4703 29.333 81.5033 29.3527 81.5033 29.3866C81.5033 29.432 81.4484 29.4517 81.3764 29.4517C80.9346 29.4517 80.5172 29.432 80.333 29.432C80.1792 29.432 79.7581 29.4517 79.4918 29.4517C79.4064 29.4517 79.36 29.432 79.36 29.3866C79.36 29.3527 79.3848 29.333 79.4667 29.333C79.5658 29.333 79.6455 29.3185 79.7046 29.3042C79.8393 29.2785 79.8774 29.1332 79.9 28.9413C79.9309 28.6592 79.9309 28.1343 79.9309 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.8142 26.3512C84.8142 25.3413 84.8142 25.155 84.8026 24.9407C84.7889 24.7136 84.7377 24.6103 84.517 24.5616C84.4629 24.5471 84.3502 24.5444 84.2555 24.5444C84.1832 24.5444 84.1423 24.5291 84.1423 24.4812C84.1423 24.4361 84.1892 24.4215 84.2905 24.4215C84.4706 24.4215 84.6611 24.4267 84.8316 24.4267C85.0028 24.4361 85.1541 24.4404 85.2472 24.4404C85.4612 24.4404 86.7872 24.4404 86.9113 24.4361C87.0375 24.4215 87.1453 24.4072 87.1988 24.3952C87.2328 24.3873 87.2705 24.3662 87.3047 24.3662C87.3374 24.3662 87.3447 24.3952 87.3447 24.4267C87.3447 24.4727 87.3097 24.554 87.2922 24.8595C87.2842 24.9262 87.2705 25.2207 87.2549 25.3001C87.2514 25.3349 87.2367 25.3718 87.1911 25.3718C87.1453 25.3718 87.131 25.3413 87.131 25.2806C87.131 25.2335 87.1269 25.1216 87.0898 25.0406C87.0433 24.9218 86.9797 24.84 86.6434 24.8014C86.5327 24.7871 85.8357 24.7724 85.7004 24.7724C85.6666 24.7724 85.6534 24.7956 85.6534 24.84V26.5236C85.6534 26.5723 85.6612 26.597 85.7004 26.597C85.8471 26.597 86.6135 26.597 86.7654 26.5844C86.9229 26.5723 87.022 26.5524 87.0838 26.4853C87.131 26.4322 87.1584 26.3989 87.1911 26.3989C87.2172 26.3989 87.2367 26.4109 87.2367 26.4501C87.2367 26.4905 87.2102 26.597 87.1834 26.9352C87.1756 27.0691 87.1584 27.3371 87.1584 27.3822C87.1584 27.4363 87.1584 27.5122 87.0972 27.5122C87.0512 27.5122 87.0375 27.4832 87.0375 27.4498C87.0301 27.3822 87.0301 27.2962 87.0104 27.21C86.9797 27.077 86.884 26.976 86.6403 26.953C86.5136 26.9352 85.8511 26.93 85.6919 26.93C85.6612 26.93 85.6534 26.9572 85.6534 26.9974V27.5215C85.6534 27.7487 85.6473 28.3609 85.6534 28.553C85.6666 29.0139 85.7756 29.1113 86.4506 29.1113C86.6251 29.1113 86.9045 29.1113 87.0784 29.0327C87.2514 28.9523 87.331 28.8141 87.3776 28.5391C87.3892 28.4676 87.4023 28.4402 87.4516 28.4402C87.5043 28.4402 87.5043 28.4933 87.5043 28.5606C87.5043 28.7142 87.4516 29.1685 87.417 29.3009C87.3696 29.4717 87.3097 29.4717 87.0568 29.4717C86.558 29.4717 86.1912 29.458 85.9074 29.452C85.621 29.4383 85.4144 29.4323 85.2142 29.4323C85.1408 29.4323 84.9947 29.4323 84.8339 29.4383C84.6818 29.4383 84.5077 29.452 84.3761 29.452C84.2905 29.452 84.2443 29.4323 84.2443 29.3869C84.2443 29.3529 84.2685 29.3333 84.3502 29.3333C84.4493 29.3333 84.5307 29.3187 84.5892 29.3044C84.7232 29.2787 84.757 29.1335 84.7815 28.9416C84.8142 28.6595 84.8142 28.1345 84.8142 27.5215V26.3512",fill:"#686767"})]})}),Uf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.99573 16C9.25964 16 10.2883 14.9745 10.2938 13.7118H5.69775C5.70325 14.9744 6.73181 16 7.99573 16Z",fill:"currentColor"}),t.jsx("path",{d:"M14.2106 12.7737V12.0912C14.2106 11.3503 13.7648 10.6915 13.108 10.4019V6.52185C13.108 5.4281 12.7614 4.40417 12.1055 3.56079C11.5471 2.8429 10.7917 2.28613 9.90662 1.93701V1.91077C9.90662 0.857178 9.04944 0 7.99585 0C6.94226 0 6.08521 0.857178 6.08521 1.91077V1.93701C5.20007 2.28613 4.4447 2.8429 3.88635 3.56079C3.23047 4.40417 2.88367 5.4281 2.88367 6.52185V10.4017C2.22705 10.6914 1.78125 11.3503 1.78125 12.0912V12.7736H14.2106V12.7737Z",fill:"currentColor"})]})}),Kf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),Gf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),Zf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_8714_101)",children:t.jsx("path",{d:"M0 20V13.3333H2.22222V16.2222L5.66667 12.7778L7.22222 14.3333L3.77778 17.7778H6.66667V20H0ZM14.3333 7.22222L12.7778 5.66667L16.2222 2.22222H13.3333V0H20V6.66667H17.7778V3.77778L14.3333 7.22222Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_8714_101",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),Jf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 20C15.1667 20 14.4583 19.7083 13.875 19.125C13.2917 18.5417 13 17.8333 13 17C13 16.9 13.025 16.6667 13.075 16.3L6.05 12.2C5.78333 12.45 5.475 12.6458 5.125 12.7875C4.775 12.9292 4.4 13 4 13C3.16667 13 2.45833 12.7083 1.875 12.125C1.29167 11.5417 1 10.8333 1 10C1 9.16667 1.29167 8.45833 1.875 7.875C2.45833 7.29167 3.16667 7 4 7C4.4 7 4.775 7.07083 5.125 7.2125C5.475 7.35417 5.78333 7.55 6.05 7.8L13.075 3.7C13.0417 3.58333 13.0208 3.47083 13.0125 3.3625C13.0042 3.25417 13 3.13333 13 3C13 2.16667 13.2917 1.45833 13.875 0.875C14.4583 0.291667 15.1667 0 16 0C16.8333 0 17.5417 0.291667 18.125 0.875C18.7083 1.45833 19 2.16667 19 3C19 3.83333 18.7083 4.54167 18.125 5.125C17.5417 5.70833 16.8333 6 16 6C15.6 6 15.225 5.92917 14.875 5.7875C14.525 5.64583 14.2167 5.45 13.95 5.2L6.925 9.3C6.95833 9.41667 6.97917 9.52917 6.9875 9.6375C6.99583 9.74583 7 9.86667 7 10C7 10.1333 6.99583 10.2542 6.9875 10.3625C6.97917 10.4708 6.95833 10.5833 6.925 10.7L13.95 14.8C14.2167 14.55 14.525 14.3542 14.875 14.2125C15.225 14.0708 15.6 14 16 14C16.8333 14 17.5417 14.2917 18.125 14.875C18.7083 15.4583 19 16.1667 19 17C19 17.8333 18.7083 18.5417 18.125 19.125C17.5417 19.7083 16.8333 20 16 20Z",fill:"currentColor"})})}),Xf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 5H4V1H16V5ZM16 10.5C16.2833 10.5 16.5208 10.4042 16.7125 10.2125C16.9042 10.0208 17 9.78333 17 9.5C17 9.21667 16.9042 8.97917 16.7125 8.7875C16.5208 8.59583 16.2833 8.5 16 8.5C15.7167 8.5 15.4792 8.59583 15.2875 8.7875C15.0958 8.97917 15 9.21667 15 9.5C15 9.78333 15.0958 10.0208 15.2875 10.2125C15.4792 10.4042 15.7167 10.5 16 10.5ZM14 17V13H6V17H14ZM16 19H4V15H0V9C0 8.15 0.291667 7.4375 0.875 6.8625C1.45833 6.2875 2.16667 6 3 6H17C17.85 6 18.5625 6.2875 19.1375 6.8625C19.7125 7.4375 20 8.15 20 9V15H16V19Z",fill:"currentColor"})})}),Yf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.26368 20L6.86567 16.8C6.65008 16.7167 6.44693 16.6167 6.25622 16.5C6.06551 16.3833 5.87894 16.2583 5.69652 16.125L2.73632 17.375L0 12.625L2.56219 10.675C2.54561 10.5583 2.53731 10.4458 2.53731 10.3375V9.6625C2.53731 9.55417 2.54561 9.44167 2.56219 9.325L0 7.375L2.73632 2.625L5.69652 3.875C5.87894 3.74167 6.06965 3.61667 6.26866 3.5C6.46766 3.38333 6.66667 3.28333 6.86567 3.2L7.26368 0H12.7363L13.1343 3.2C13.3499 3.28333 13.5531 3.38333 13.7438 3.5C13.9345 3.61667 14.1211 3.74167 14.3035 3.875L17.2637 2.625L20 7.375L17.4378 9.325C17.4544 9.44167 17.4627 9.55417 17.4627 9.6625V10.3375C17.4627 10.4458 17.4461 10.5583 17.4129 10.675L19.9751 12.625L17.2388 17.375L14.3035 16.125C14.1211 16.2583 13.9303 16.3833 13.7313 16.5C13.5323 16.6167 13.3333 16.7167 13.1343 16.8L12.7363 20H7.26368ZM10.0498 13.5C11.0116 13.5 11.8325 13.1583 12.5124 12.475C13.1924 11.7917 13.5323 10.9667 13.5323 10C13.5323 9.03333 13.1924 8.20833 12.5124 7.525C11.8325 6.84167 11.0116 6.5 10.0498 6.5C9.07131 6.5 8.24627 6.84167 7.57463 7.525C6.90299 8.20833 6.56716 9.03333 6.56716 10C6.56716 10.9667 6.90299 11.7917 7.57463 12.475C8.24627 13.1583 9.07131 13.5 10.0498 13.5Z",fill:"currentColor"})})}),Qf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M9.95 15.9999C10.3 15.9999 10.5958 15.8791 10.8375 15.6374C11.0792 15.3958 11.2 15.0999 11.2 14.7499C11.2 14.3999 11.0792 14.1041 10.8375 13.8624C10.5958 13.6208 10.3 13.4999 9.95 13.4999C9.6 13.4999 9.30417 13.6208 9.0625 13.8624C8.82083 14.1041 8.7 14.3999 8.7 14.7499C8.7 15.0999 8.82083 15.3958 9.0625 15.6374C9.30417 15.8791 9.6 15.9999 9.95 15.9999ZM9.05 12.1499H10.9C10.9 11.5999 10.9625 11.1666 11.0875 10.8499C11.2125 10.5333 11.5667 10.0999 12.15 9.54994C12.5833 9.11661 12.925 8.70411 13.175 8.31244C13.425 7.92077 13.55 7.44994 13.55 6.89994C13.55 5.96661 13.2083 5.24994 12.525 4.74994C11.8417 4.24994 11.0333 3.99994 10.1 3.99994C9.15 3.99994 8.37917 4.24994 7.7875 4.74994C7.19583 5.24994 6.78333 5.84994 6.55 6.54994L8.2 7.19994C8.28333 6.89994 8.47083 6.57494 8.7625 6.22494C9.05417 5.87494 9.5 5.69994 10.1 5.69994C10.6333 5.69994 11.0333 5.84577 11.3 6.13744C11.5667 6.42911 11.7 6.74994 11.7 7.09994C11.7 7.43327 11.6 7.74577 11.4 8.03744C11.2 8.32911 10.95 8.59994 10.65 8.84994C9.91667 9.49994 9.46667 9.99161 9.3 10.3249C9.13333 10.6583 9.05 11.2666 9.05 12.1499ZM10 19.9999C8.61667 19.9999 7.31667 19.7374 6.1 19.2124C4.88333 18.6874 3.825 17.9749 2.925 17.0749C2.025 16.1749 1.3125 15.1166 0.7875 13.8999C0.2625 12.6833 0 11.3833 0 9.99994C0 8.61661 0.2625 7.31661 0.7875 6.09994C1.3125 4.88327 2.025 3.82494 2.925 2.92494C3.825 2.02494 4.88333 1.31244 6.1 0.787439C7.31667 0.262439 8.61667 -6.10352e-05 10 -6.10352e-05C11.3833 -6.10352e-05 12.6833 0.262439 13.9 0.787439C15.1167 1.31244 16.175 2.02494 17.075 2.92494C17.975 3.82494 18.6875 4.88327 19.2125 6.09994C19.7375 7.31661 20 8.61661 20 9.99994C20 11.3833 19.7375 12.6833 19.2125 13.8999C18.6875 15.1166 17.975 16.1749 17.075 17.0749C16.175 17.9749 15.1167 18.6874 13.9 19.2124C12.6833 19.7374 11.3833 19.9999 10 19.9999Z",fill:"currentColor"})})}),em=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.55556 14C1.12778 14 0.761574 13.8477 0.456944 13.5431C0.152315 13.2384 0 12.8722 0 12.4444V1.55556C0 1.12778 0.152315 0.761574 0.456944 0.456944C0.761574 0.152315 1.12778 0 1.55556 0H12.4444C12.8722 0 13.2384 0.152315 13.5431 0.456944C13.8477 0.761574 14 1.12778 14 1.55556V12.4444C14 12.8722 13.8477 13.2384 13.5431 13.5431C13.2384 13.8477 12.8722 14 12.4444 14H1.55556ZM2.33333 10.8889H11.6667L8.75 7L6.41667 10.1111L4.66667 7.77778L2.33333 10.8889Z",fill:"currentColor"})})}),tm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM2.66667 9.33333H7.33333V8H2.66667V9.33333ZM2.66667 6.66667H9.33333V5.33333H2.66667V6.66667ZM2.66667 4H9.33333V2.66667H2.66667V4Z",fill:"currentColor"})})}),nm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.27472 12C3.81319 12 2.56868 11.4945 1.54121 10.4835C0.513736 9.47253 0 8.24176 0 6.79121C0 6.0989 0.134615 5.43681 0.403846 4.80495C0.673077 4.17308 1.05494 3.61538 1.54945 3.13187L4.35165 0.379121C4.48352 0.258242 4.62912 0.164835 4.78846 0.0989011C4.9478 0.032967 5.10989 0 5.27472 0C5.43956 0 5.60165 0.032967 5.76099 0.0989011C5.92033 0.164835 6.06593 0.258242 6.1978 0.379121L9 3.13187C9.4945 3.61538 9.87637 4.17308 10.1456 4.80495C10.4148 5.43681 10.5494 6.0989 10.5494 6.79121C10.5494 8.24176 10.0357 9.47253 9.00824 10.4835C7.98077 11.4945 6.73626 12 5.27472 12Z",fill:"currentColor"})})}),rm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 12V6.68333C4.62222 6.68333 3.93889 6.54722 3.28333 6.275C2.62778 6.00278 2.05 5.61667 1.55 5.11667C1.05 4.61667 0.666667 4.03889 0.4 3.38333C0.133333 2.72778 0 2.04444 0 1.33333V0H1.33333C2.03333 0 2.71111 0.136111 3.36667 0.408333C4.02222 0.680556 4.6 1.06667 5.1 1.56667C5.44444 1.91111 5.73056 2.28889 5.95833 2.7C6.18611 3.11111 6.36111 3.55 6.48333 4.01667C6.53889 3.93889 6.6 3.86389 6.66667 3.79167C6.73333 3.71944 6.80556 3.64444 6.88333 3.56667C7.38333 3.06667 7.96111 2.68056 8.61667 2.40833C9.27222 2.13611 9.95556 2 10.6667 2H12V3.33333C12 4.04444 11.8639 4.72778 11.5917 5.38333C11.3194 6.03889 10.9333 6.61667 10.4333 7.11667C9.93333 7.61667 9.35833 8 8.70833 8.26667C8.05833 8.53333 7.37778 8.66667 6.66667 8.66667V12H5.33333Z",fill:"currentColor"})})}),om=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.013 8.18324C16.013 7.61597 15.9621 7.07051 15.8676 6.54688H8.33301V9.64142H12.6385C12.453 10.6414 11.8894 11.4887 11.0421 12.056V14.0632H13.6276C15.1403 12.6705 16.013 10.6196 16.013 8.18324Z",fill:"#4285F4"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 15.9995C10.4927 15.9995 12.3036 15.2832 13.6272 14.0613L11.0418 12.0541C10.3254 12.5341 9.40905 12.8177 8.33268 12.8177C6.24905 12.8177 4.48541 11.4104 3.85632 9.51953H1.18359V11.5923C2.49996 14.2068 5.20541 15.9995 8.33268 15.9995Z",fill:"#34A853"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.85664 9.51898C3.69664 9.03898 3.60574 8.52625 3.60574 7.99898C3.60574 7.4717 3.69664 6.95898 3.85664 6.47898V4.40625H1.18392C0.642099 5.48625 0.333008 6.70807 0.333008 7.99898C0.333008 9.28989 0.642099 10.5117 1.18392 11.5917L3.85664 9.51898Z",fill:"#FBBC05"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 3.18182C9.50723 3.18182 10.5618 3.58545 11.3909 4.37818L13.6854 2.08364C12.3 0.792727 10.489 0 8.33268 0C5.20541 0 2.49996 1.79273 1.18359 4.40727L3.85632 6.48C4.48541 4.58909 6.24905 3.18182 8.33268 3.18182Z",fill:"#EA4335"})]})}),im=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M16.167 8.04974C16.167 3.60622 12.5831 0 8.16699 0C3.75093 0 0.166992 3.60622 0.166992 8.04974C0.166992 12.0705 3.09181 15.4031 6.92291 16V10.371H4.87966V8.04974H6.92291V6.27565C6.92291 4.26114 8.10932 3.14197 9.93836 3.14197C10.8117 3.14197 11.718 3.30777 11.718 3.30777V5.27254H10.7128C9.71591 5.27254 9.40283 5.90259 9.40283 6.53264V8.04145H11.6273L11.2731 10.3627H9.40283V15.9917C13.2422 15.4031 16.167 12.0705 16.167 8.04974Z",fill:"#1877F2"}),t.jsx("path",{d:"M11.2811 10.3096L11.6354 8.00384H9.41086V6.50513C9.41086 5.87106 9.73218 5.25346 10.7209 5.25346H11.726V3.2936C11.726 3.2936 10.8197 3.12891 9.94639 3.12891C8.11735 3.12891 6.93095 4.24059 6.93095 6.24162V8.00384H4.8877V10.3096H6.93095V15.9009C7.33466 15.9668 7.75484 15.9997 8.17502 15.9997C8.59521 15.9997 9.0154 15.9668 9.4191 15.9009V10.3096H11.2811Z",fill:"white"})]})}),sm=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_703_2142)",children:t.jsx("path",{d:"M10.3552 6.77143L16.3115 0H14.9001L9.72817 5.87954L5.59738 0H0.833008L7.07957 8.8909L0.833008 15.9918H2.24455L7.70622 9.78279L12.0686 15.9918H16.833L10.3548 6.77143H10.3552ZM8.42187 8.96923L7.78897 8.0839L2.75315 1.03921H4.92121L8.98517 6.7245L9.61807 7.60983L14.9007 14.9998H12.7327L8.42187 8.96957V8.96923Z",fill:"#5C5959"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_703_2142",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),am=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),t.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),t.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),t.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),lm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),cm=n=>{const{size:r="16px",...o}=n;return t.jsx(e.Icon,{boxSize:r,...o,children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 8.88889C5.97297 8.88889 4.32432 7.24024 4.32432 5.21321C4.32432 3.18618 5.97297 1.53753 8 1.53753C10.027 1.53753 11.6757 3.18618 11.6757 5.21321C11.6757 7.24024 10.027 8.88889 8 8.88889ZM2 14.4625V13.136C2 11.2583 4.85714 9.92589 8 9.92589C11.1429 9.92589 14 11.2583 14 13.136V14.4625H2Z",fill:"currentColor"})})})},dm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.22857 6.85714L0 1.6L1.6 0L8.45714 6.85714L1.6 13.7143L0 12.1143L5.22857 6.85714ZM12.7714 6.85714L7.54286 1.6L9.14286 0L16 6.85714L9.14286 13.7143L7.54286 12.1143L12.7714 6.85714Z",fill:"#5C5959"})})}),um=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.7714 6.85714L16 12.1143L14.4 13.7143L7.54286 6.85714L14.4 0L16 1.6L10.7714 6.85714ZM3.22857 6.85714L8.45714 12.1143L6.85714 13.7143L0 6.85714L6.85714 0L8.45714 1.6L3.22857 6.85714Z",fill:"#5C5959"})})}),hm=n=>{const{fill:r,width:o,height:i,...s}=n,a=r||"currentColor",l=o??"20",c=i??o??"20";return t.jsx(e.Icon,{...n,fill:a,children:t.jsx("svg",{width:l,height:c,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M18.4444 20L11.4444 13C10.8889 13.4444 10.25 13.7963 9.52778 14.0556C8.80556 14.3148 8.03704 14.4444 7.22222 14.4444C5.2037 14.4444 3.49537 13.7454 2.09722 12.3472C0.699074 10.9491 0 9.24074 0 7.22222C0 5.2037 0.699074 3.49537 2.09722 2.09722C3.49537 0.699074 5.2037 0 7.22222 0C9.24074 0 10.9491 0.699074 12.3472 2.09722C13.7454 3.49537 14.4444 5.2037 14.4444 7.22222C14.4444 8.03704 14.3148 8.80556 14.0556 9.52778C13.7963 10.25 13.4444 10.8889 13 11.4444L20 18.4444L18.4444 20ZM7.22222 12.2222C8.61111 12.2222 9.79167 11.7361 10.7639 10.7639C11.7361 9.79167 12.2222 8.61111 12.2222 7.22222C12.2222 5.83333 11.7361 4.65278 10.7639 3.68056C9.79167 2.70833 8.61111 2.22222 7.22222 2.22222C5.83333 2.22222 4.65278 2.70833 3.68056 3.68056C2.70833 4.65278 2.22222 5.83333 2.22222 7.22222C2.22222 8.61111 2.70833 9.79167 3.68056 10.7639C4.65278 11.7361 5.83333 12.2222 7.22222 12.2222Z"})})})},pm=(e,t)=>i.css`
|
|
106
|
+
`,Of=({icon:t,disabled:n,...o})=>r.jsx(e.Button,{css:Tf,"aria-label":o["aria-label"],disabled:n,...o,children:t}),Lf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsxs("g",{clipPath:"url(#clip0_1216_84)",children:[t.jsx("path",{d:"M9.78791 8.03125H16V2.21875C16 1.27103 15.229 0.5 14.2812 0.5H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V8.96875H9.78791L10.5502 9.73106C10.7333 9.91413 10.7333 10.2109 10.5502 10.394C10.3672 10.577 10.0704 10.577 9.88731 10.394L8.32481 8.83147C8.14175 8.64841 8.14175 8.35162 8.32481 8.16856L9.88731 6.60606C10.0704 6.423 10.3672 6.423 10.5502 6.60606C10.7333 6.78912 10.7333 7.08591 10.5502 7.26897L9.78791 8.03125Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_1216_84",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),Af=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{viewBox:"0 0 16 17",children:[t.jsx("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"}),t.jsx("path",{d:"M14.2812 0.5H7.1875V8.03125H12.4621L11.6998 7.26897C11.5168 7.08591 11.5168 6.78912 11.6998 6.60606C11.8829 6.423 12.1797 6.423 12.3627 6.60606L13.9252 8.16856C14.1083 8.35162 14.1083 8.64841 13.9252 8.83147L12.3627 10.394C12.1797 10.577 11.8829 10.577 11.6998 10.394C11.5168 10.2109 11.5168 9.91413 11.6998 9.73106L12.4621 8.96875H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V2.21875C16 1.27103 15.229 0.5 14.2812 0.5Z",fill:"#4F4E4E"})]})}),Rf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M4.19632 10.4277L0 6.23139L1.04908 5.18231L4.19632 8.32955L10.9509 1.57495L12 2.62403L4.19632 10.4277Z",fill:"currentColor"})})}),Nf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:t.jsx("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),Df=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.5 7.49997H5.5V4.49997H4.5V7.49997ZM5 3.49997C5.14167 3.49997 5.26042 3.45205 5.35625 3.35622C5.45208 3.26039 5.5 3.14164 5.5 2.99997C5.5 2.8583 5.45208 2.73955 5.35625 2.64372C5.26042 2.54789 5.14167 2.49997 5 2.49997C4.85833 2.49997 4.73958 2.54789 4.64375 2.64372C4.54792 2.73955 4.5 2.8583 4.5 2.99997C4.5 3.14164 4.54792 3.26039 4.64375 3.35622C4.73958 3.45205 4.85833 3.49997 5 3.49997ZM5 9.99997C4.30833 9.99997 3.65833 9.86872 3.05 9.60622C2.44167 9.34372 1.9125 8.98747 1.4625 8.53747C1.0125 8.08747 0.65625 7.5583 0.39375 6.94997C0.13125 6.34164 0 5.69164 0 4.99997C0 4.3083 0.13125 3.6583 0.39375 3.04997C0.65625 2.44164 1.0125 1.91247 1.4625 1.46247C1.9125 1.01247 2.44167 0.656219 3.05 0.393719C3.65833 0.131219 4.30833 -3.05176e-05 5 -3.05176e-05C5.69167 -3.05176e-05 6.34167 0.131219 6.95 0.393719C7.55833 0.656219 8.0875 1.01247 8.5375 1.46247C8.9875 1.91247 9.34375 2.44164 9.60625 3.04997C9.86875 3.6583 10 4.3083 10 4.99997C10 5.69164 9.86875 6.34164 9.60625 6.94997C9.34375 7.5583 8.9875 8.08747 8.5375 8.53747C8.0875 8.98747 7.55833 9.34372 6.95 9.60622C6.34167 9.86872 5.69167 9.99997 5 9.99997Z",fill:"currentColor"})})}),If=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),Pf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.37 0L13.37 8L5.37 16L3.50333 14.1333L9.63667 8L3.50333 1.86667L5.37 0Z",fill:"currentColor"})})}),zf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),Vf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 16C7.45 16 6.97917 15.8042 6.5875 15.4125C6.19583 15.0208 6 14.55 6 14C6 13.45 6.19583 12.9792 6.5875 12.5875C6.97917 12.1958 7.45 12 8 12C8.55 12 9.02083 12.1958 9.4125 12.5875C9.80417 12.9792 10 13.45 10 14C10 14.55 9.80417 15.0208 9.4125 15.4125C9.02083 15.8042 8.55 16 8 16ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10ZM8 4C7.45 4 6.97917 3.80417 6.5875 3.4125C6.19583 3.02083 6 2.55 6 2C6 1.45 6.19583 0.979167 6.5875 0.5875C6.97917 0.195833 7.45 0 8 0C8.55 0 9.02083 0.195833 9.4125 0.5875C9.80417 0.979167 10 1.45 10 2C10 2.55 9.80417 3.02083 9.4125 3.4125C9.02083 3.80417 8.55 4 8 4Z",fill:"currentColor"})})}),Bf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5 6.95455C5.56818 6.95455 6.05114 6.75568 6.44886 6.35795C6.84659 5.96023 7.04545 5.47727 7.04545 4.90909C7.04545 4.34091 6.84659 3.85795 6.44886 3.46023C6.05114 3.0625 5.56818 2.86364 5 2.86364C4.43182 2.86364 3.94886 3.0625 3.55114 3.46023C3.15341 3.85795 2.95455 4.34091 2.95455 4.90909C2.95455 5.47727 3.15341 5.96023 3.55114 6.35795C3.94886 6.75568 4.43182 6.95455 5 6.95455ZM5 6.13636C4.65909 6.13636 4.36932 6.01705 4.13068 5.77841C3.89205 5.53977 3.77273 5.25 3.77273 4.90909C3.77273 4.56818 3.89205 4.27841 4.13068 4.03977C4.36932 3.80114 4.65909 3.68182 5 3.68182C5.34091 3.68182 5.63068 3.80114 5.86932 4.03977C6.10795 4.27841 6.22727 4.56818 6.22727 4.90909C6.22727 5.25 6.10795 5.53977 5.86932 5.77841C5.63068 6.01705 5.34091 6.13636 5 6.13636ZM5 8.31818C3.89394 8.31818 2.88636 8.00947 1.97727 7.39205C1.06818 6.77462 0.409091 5.94697 0 4.90909C0.409091 3.87121 1.06818 3.04356 1.97727 2.42614C2.88636 1.80871 3.89394 1.5 5 1.5C6.10606 1.5 7.11364 1.80871 8.02273 2.42614C8.93182 3.04356 9.59091 3.87121 10 4.90909C9.59091 5.94697 8.93182 6.77462 8.02273 7.39205C7.11364 8.00947 6.10606 8.31818 5 8.31818Z",fill:"currentColor"})})}),_f=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4626_1381)",children:t.jsx("path",{d:"M8.54545 9.9375L6.63636 8.05114C6.37121 8.13447 6.10417 8.19697 5.83523 8.23864C5.56629 8.2803 5.28788 8.30114 5 8.30114C3.85606 8.30114 2.83712 7.98485 1.94318 7.35227C1.04924 6.7197 0.401515 5.89962 0 4.89205C0.159091 4.49053 0.359848 4.11742 0.602273 3.77273C0.844697 3.42803 1.12121 3.11932 1.43182 2.84659L0.181818 1.57386L0.818182 0.9375L9.18182 9.30114L8.54545 9.9375ZM5 6.9375C5.08333 6.9375 5.16098 6.93371 5.23295 6.92614C5.30492 6.91856 5.38258 6.90341 5.46591 6.88068L3.01136 4.42614C2.98864 4.50947 2.97348 4.58712 2.96591 4.65909C2.95833 4.73106 2.95455 4.80871 2.95455 4.89205C2.95455 5.46023 3.15341 5.94318 3.55114 6.34091C3.94886 6.73864 4.43182 6.9375 5 6.9375ZM8.31818 7.14205L6.875 5.71023C6.92803 5.58144 6.9697 5.45076 7 5.31818C7.0303 5.18561 7.04545 5.04356 7.04545 4.89205C7.04545 4.32386 6.84659 3.84091 6.44886 3.44318C6.05114 3.04545 5.56818 2.84659 5 2.84659C4.84848 2.84659 4.70644 2.86174 4.57386 2.89205C4.44129 2.92235 4.31061 2.9678 4.18182 3.02841L3.02273 1.86932C3.33333 1.74053 3.65152 1.64394 3.97727 1.57955C4.30303 1.51515 4.64394 1.48295 5 1.48295C6.14394 1.48295 7.16288 1.79924 8.05682 2.43182C8.95076 3.06439 9.59848 3.88447 10 4.89205C9.82576 5.33902 9.59659 5.75379 9.3125 6.13636C9.02841 6.51894 8.69697 6.85417 8.31818 7.14205ZM6.21591 5.05114L4.85227 3.6875C5.06439 3.64962 5.25947 3.66667 5.4375 3.73864C5.61553 3.81061 5.76894 3.91477 5.89773 4.05114C6.02652 4.1875 6.11932 4.3447 6.17614 4.52273C6.23295 4.70076 6.24621 4.87689 6.21591 5.05114Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4626_1381",children:t.jsx("rect",{width:"10",height:"10",fill:"white"})})})]})}),Hf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_4916_54426)",children:t.jsx("path",{d:"M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4916_54426",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),Ff=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 18.6477L10 1.375L20 18.6477H0ZM10 15.9205C10.2576 15.9205 10.4735 15.8333 10.6477 15.6591C10.822 15.4848 10.9091 15.2689 10.9091 15.0114C10.9091 14.7538 10.822 14.5379 10.6477 14.3636C10.4735 14.1894 10.2576 14.1023 10 14.1023C9.74242 14.1023 9.52652 14.1894 9.35227 14.3636C9.17803 14.5379 9.09091 14.7538 9.09091 15.0114C9.09091 15.2689 9.17803 15.4848 9.35227 15.6591C9.52652 15.8333 9.74242 15.9205 10 15.9205ZM9.09091 13.1932H10.9091V8.64773H9.09091V13.1932Z",fill:"currentColor"})})}),qf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"currentColor"})})}),Wf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"91",height:"32",viewBox:"0 0 91 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.79733 2.62109L7.05688 4.36154L8.6964 6.00105L10.4368 4.26061L8.79733 2.62109",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4348 17.7395L26.7261 24.0306L28.4666 22.2904L22.1753 15.999L20.4348 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.83032 8.73722L8.57056 10.4775L15.5197 3.52853L17.9952 6.00428L19.7357 4.26384L15.5197 0.0478516L6.83032 8.73722",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.0828 8.74062L26.823 10.4811L28.4667 8.83761L26.7262 7.09717L25.0828 8.74062",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05664 26.7665L8.79688 28.5069L15.088 22.216L13.3476 20.4756L7.05664 26.7665",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 17.865L17.6987 19.6052L24.2126 13.0913L22.4722 11.3511L15.9583 17.865",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.606 8.61475L27.5582 15.5672L25.086 18.0396L26.8264 19.7799L31.0391 15.5672L22.3462 6.87451L20.606 8.61475",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 22.2898L4.32031 24.0302L5.95651 22.394L4.21607 20.6538L2.58008 22.2898",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9583 8.91145L17.6987 10.6517L23.99 4.36056L22.2496 2.62012L15.9583 8.91145",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 15.5676L8.69268 24.2603L10.4331 22.5198L3.48068 15.5676L5.96016 13.0881L4.21971 11.3477L0 15.5676",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3071 8.61154L17.8244 15.1288L19.5646 13.3885L13.0474 6.87109L11.3071 8.61154",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6091 26.8674L22.2493 28.5073L23.9897 26.7671L22.3496 25.127L20.6091 26.8674",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58008 8.83789L8.87079 15.1286L10.6112 13.3884L4.32052 7.09766L2.58008 8.83789",fill:"#9B9B9B"}),t.jsx("mask",{id:"mask0_2684_24177",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"15",width:"14",height:"17",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3035 15.999H24.2159V31.0746H11.3035V15.999Z",fill:"white"})}),t.jsxs("g",{mask:"url(#mask0_2684_24177)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4817 17.7395L17.9989 24.2567L19.7392 22.5163L13.2219 15.999L11.4817 17.7395",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5195 27.6061L13.0437 25.1303L11.3035 26.8706L15.5195 31.0868L24.2159 22.3903L22.4756 20.6499L15.5195 27.6061",fill:"#9B9B9B"})]}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82666 18.0429L8.5669 19.7834L15.0881 13.2624L13.3476 11.522L6.82666 18.0429",fill:"#9B9B9B"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.8376 3.46878C39.7609 3.22403 39.6861 3.06362 39.5918 2.99958C39.5199 2.95005 39.386 2.93948 39.3278 2.93948C39.2598 2.93948 39.219 2.93264 39.219 2.87834C39.219 2.83171 39.2754 2.82031 39.3653 2.82031C39.7133 2.82031 40.0782 2.83648 40.1396 2.83648C40.1999 2.83648 40.4927 2.82031 40.8782 2.82031C40.9688 2.82031 41.0173 2.83648 41.0173 2.87834C41.0173 2.93264 40.9628 2.93948 40.8968 2.93948C40.8442 2.93948 40.7783 2.93948 40.7319 2.96373C40.6714 2.99191 40.6579 3.0373 40.6579 3.10921C40.6579 3.19853 40.724 3.42402 40.8055 3.721C40.9174 4.16202 41.5358 6.18037 41.656 6.55196H41.6755L42.9658 3.08496C43.0325 2.89616 43.0773 2.84497 43.1336 2.84497C43.2064 2.84497 43.2387 2.94632 43.3278 3.15999L44.7104 6.5043H44.7296C44.8482 6.05851 45.3823 4.30149 45.6173 3.52391C45.66 3.37138 45.6811 3.23169 45.6811 3.13615C45.6811 3.0315 45.6222 2.93948 45.3617 2.93948C45.2969 2.93948 45.2502 2.9171 45.2502 2.87834C45.2502 2.83171 45.3008 2.82031 45.4036 2.82031C45.7549 2.82031 46.034 2.83648 46.0939 2.83648C46.1395 2.83648 46.4268 2.82031 46.6462 2.82031C46.7184 2.82031 46.7658 2.83171 46.7658 2.87233C46.7658 2.9171 46.7351 2.93948 46.6744 2.93948C46.6067 2.93948 46.5142 2.94632 46.4407 2.97139C46.2796 3.0315 46.2092 3.29656 46.0657 3.67831C45.763 4.51578 45.0639 6.63155 44.7377 7.62964C44.6639 7.86258 44.6308 7.94279 44.5435 7.94279C44.4756 7.94279 44.4378 7.86258 44.3377 7.6141L42.9542 4.2818H42.9397C42.8143 4.62169 41.9279 6.97723 41.6423 7.58778C41.514 7.86258 41.4831 7.94279 41.4034 7.94279C41.3358 7.94279 41.3105 7.87025 41.2502 7.69575L39.8376 3.46878",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.4736 5.46052C52.4736 3.96919 51.6156 3.04363 50.5241 3.04363C49.7593 3.04363 48.8862 3.46848 48.8862 5.12686C48.8862 6.51167 49.6547 7.61007 50.9315 7.61007C51.3984 7.61007 52.4736 7.38417 52.4736 5.46052ZM47.9695 5.33425C47.9695 4.19523 48.7201 2.72607 50.7182 2.72607C52.3747 2.72607 53.4068 3.68811 53.4068 5.21384C53.4068 6.73834 52.3397 7.94243 50.6521 7.94243C48.7413 7.94243 47.9695 6.51161 47.9695 5.33425V5.33425Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.6253 5.27407C56.6253 5.34806 56.6388 5.37251 56.685 5.39469C56.8222 5.44111 57.0255 5.46059 57.1911 5.46059C57.4551 5.46059 57.5428 5.43261 57.6644 5.34806C57.8634 5.20029 58.0557 4.89253 58.0557 4.34561C58.0557 3.40327 57.4331 3.13178 57.0371 3.13178C56.8709 3.13178 56.7515 3.13593 56.685 3.15976C56.6388 3.17219 56.6253 3.19831 56.6253 3.25115V5.27407ZM55.8409 4.74893C55.8409 3.73799 55.8409 3.5494 55.8277 3.33842C55.8144 3.10921 55.7609 3.00435 55.5421 2.95689C55.4865 2.94632 55.3769 2.93948 55.2814 2.93948C55.208 2.93948 55.1667 2.92352 55.1667 2.87834C55.1667 2.83171 55.2146 2.82031 55.3122 2.82031C55.6681 2.82031 56.0873 2.83648 56.2272 2.83648C56.4521 2.83648 56.9576 2.82031 57.1633 2.82031C57.5836 2.82031 58.0313 2.86052 58.3884 3.10465C58.5765 3.23169 58.841 3.5724 58.841 4.01632C58.841 4.50957 58.6354 4.95825 57.9633 5.50455C58.5554 6.25187 59.014 6.84501 59.4066 7.25598C59.7788 7.64145 60.0519 7.68767 60.1537 7.70984C60.225 7.72373 60.2867 7.72891 60.3379 7.72891C60.3924 7.72891 60.4187 7.75233 60.4187 7.78404C60.4187 7.83357 60.3732 7.8489 60.2913 7.8489H59.6602C59.2866 7.8489 59.1197 7.81429 58.9498 7.72373C58.6626 7.56974 58.4076 7.25598 58.0369 6.74512C57.7708 6.37705 57.4665 5.92671 57.3766 5.82371C57.3461 5.78785 57.3051 5.78018 57.2585 5.78018L56.6788 5.76485C56.6469 5.76485 56.6253 5.78018 56.6253 5.8179V5.91344C56.6253 6.53145 56.6253 7.05661 56.6585 7.3368C56.6788 7.52871 56.7165 7.6773 56.9194 7.70155C57.0195 7.71751 57.1633 7.72891 57.2429 7.72891C57.297 7.72891 57.3264 7.75233 57.3264 7.78404C57.3264 7.82984 57.279 7.8489 57.1911 7.8489C56.8056 7.8489 56.3132 7.82984 56.2142 7.82984C56.0873 7.82984 55.6681 7.8489 55.4016 7.8489C55.3122 7.8489 55.2681 7.82984 55.2681 7.78404C55.2681 7.75233 55.2944 7.72891 55.3769 7.72891C55.4751 7.72891 55.5543 7.71751 55.6142 7.70155C55.7466 7.6773 55.7808 7.52871 55.8071 7.3368C55.8409 7.05661 55.8409 6.53145 55.8409 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.7401 5.92028C62.7401 6.76978 62.7401 7.22986 62.8795 7.34944C62.9923 7.45099 63.167 7.49804 63.6837 7.49804C64.037 7.49804 64.2973 7.48913 64.4635 7.30945C64.5458 7.22385 64.6235 7.03567 64.6351 6.91236C64.6426 6.85164 64.6544 6.8104 64.7079 6.8104C64.7576 6.8104 64.7636 6.84501 64.7636 6.92273C64.7636 6.99858 64.7159 7.49804 64.6633 7.68767C64.6235 7.83357 64.5885 7.87025 64.2426 7.87025C63.7651 7.87025 63.4198 7.85491 63.1195 7.8489C62.8194 7.83357 62.5805 7.82984 62.3067 7.82984C62.2352 7.82984 62.0852 7.82984 61.9272 7.83357C61.7749 7.83357 61.6029 7.8489 61.4709 7.8489C61.3832 7.8489 61.3349 7.82984 61.3349 7.78404C61.3349 7.75233 61.365 7.72891 61.4413 7.72891C61.543 7.72891 61.6216 7.71751 61.6819 7.70155C61.8176 7.6773 61.8487 7.52871 61.874 7.3368C61.9082 7.05661 61.9082 6.53145 61.9082 5.92028V4.74893C61.9082 3.73799 61.9082 3.5494 61.8951 3.33842C61.8817 3.10921 61.8269 3.00435 61.6095 2.95689C61.5577 2.94632 61.474 2.93948 61.3886 2.93948C61.3155 2.93948 61.2759 2.92352 61.2759 2.87834C61.2759 2.83171 61.3233 2.82031 61.4214 2.82031C61.7353 2.82031 62.1536 2.83648 62.3341 2.83648C62.4939 2.83648 62.9803 2.82031 63.2387 2.82031C63.3324 2.82031 63.38 2.83171 63.38 2.87834C63.38 2.92352 63.339 2.93948 63.2588 2.93948C63.1867 2.93948 63.0816 2.94632 62.9991 2.95689C62.8194 2.99191 62.7647 3.10465 62.7533 3.33842C62.7401 3.5494 62.7401 3.73799 62.7401 4.74893V5.92028",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.8097 5.48049C67.8097 6.18388 67.8141 6.6966 67.8234 6.82509C67.8294 6.99068 67.8447 7.25575 67.8978 7.33056C67.9832 7.45595 68.2426 7.59501 68.7672 7.59501C69.4469 7.59501 69.9002 7.46237 70.2973 7.11627C70.7267 6.74903 70.8568 6.14512 70.8568 5.46059C70.8568 4.61607 70.5043 4.06832 70.22 3.79517C69.6061 3.21012 68.8478 3.13178 68.3284 3.13178C68.1954 3.13178 67.9498 3.1496 67.8978 3.17696C67.8375 3.20432 67.8141 3.23706 67.8141 3.30918C67.8097 3.53819 67.8097 4.11682 67.8097 4.64343V5.48049ZM66.9788 4.74893C66.9788 3.73799 66.9788 3.5494 66.9632 3.33842C66.95 3.10921 66.8969 3.00435 66.6779 2.95689C66.6254 2.94632 66.5114 2.93948 66.4196 2.93948C66.3438 2.93948 66.3042 2.92352 66.3042 2.87834C66.3042 2.83171 66.3531 2.82031 66.4509 2.82031C66.8041 2.82031 67.2215 2.83648 67.4096 2.83648C67.6156 2.83648 68.0355 2.82031 68.4355 2.82031C69.267 2.82031 70.3786 2.82031 71.1044 3.57676C71.4374 3.92389 71.7481 4.47661 71.7481 5.26622C71.7481 6.10556 71.3968 6.74512 71.0236 7.125C70.7169 7.43669 70.0257 7.90942 68.7953 7.90942C68.5559 7.90942 68.2817 7.88911 68.0297 7.87025C67.7761 7.8489 67.5417 7.82984 67.379 7.82984C67.3042 7.82984 67.1574 7.82984 66.9964 7.83357C66.8441 7.83357 66.6721 7.8489 66.5373 7.8489C66.4509 7.8489 66.407 7.82984 66.407 7.78404C66.407 7.75233 66.4335 7.72891 66.5114 7.72891C66.612 7.72891 66.6932 7.71751 66.7518 7.70155C66.8855 7.6773 66.9187 7.52871 66.9456 7.3368C66.9788 7.05661 66.9788 6.53145 66.9788 5.92028V4.74893V4.74893Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.2173 16.0733C41.2173 16.1481 41.231 16.1755 41.2755 16.1948C41.4152 16.241 41.6173 16.2607 41.7812 16.2607C42.0492 16.2607 42.1356 16.2333 42.2543 16.1481C42.456 16.0002 42.6456 15.6964 42.6456 15.1501C42.6456 14.2044 42.022 13.9325 41.6299 13.9325C41.4637 13.9325 41.3425 13.9385 41.2755 13.9582C41.231 13.9727 41.2173 13.9965 41.2173 14.0508V16.0733ZM40.4308 15.5499C40.4308 14.5375 40.4308 14.3499 40.419 14.1383C40.4055 13.9131 40.3531 13.8053 40.1297 13.7597C40.0783 13.746 39.966 13.7406 39.8735 13.7406C39.8016 13.7406 39.761 13.727 39.761 13.6772C39.761 13.6316 39.8055 13.6167 39.9083 13.6167C40.258 13.6167 40.6772 13.6397 40.8181 13.6397C41.0424 13.6397 41.5472 13.6167 41.757 13.6167C42.1733 13.6167 42.6222 13.6606 42.9812 13.9075C43.1658 14.0335 43.434 14.3723 43.434 14.8179C43.434 15.3084 43.2251 15.7621 42.5542 16.3086C43.1463 17.053 43.6056 17.6457 43.9979 18.0588C44.3697 18.4434 44.6426 18.4917 44.7425 18.5095C44.8176 18.5228 44.8756 18.5328 44.9299 18.5328C44.9804 18.5328 45.0097 18.5489 45.0097 18.5829C45.0097 18.6376 44.9628 18.6492 44.8837 18.6492H44.2503C43.8754 18.6492 43.7123 18.6171 43.5376 18.5228C43.2522 18.3697 42.9996 18.0588 42.627 17.5452C42.3611 17.1811 42.056 16.727 41.9688 16.6288C41.9358 16.5867 41.8937 16.5815 41.8463 16.5815L41.2714 16.5683C41.2376 16.5683 41.2173 16.5815 41.2173 16.6203V16.7152C41.2173 17.3328 41.2173 17.8571 41.2502 18.1375C41.2714 18.3294 41.3106 18.477 41.5097 18.5035C41.6096 18.5174 41.757 18.5328 41.8347 18.5328C41.8892 18.5328 41.9163 18.5489 41.9163 18.5829C41.9163 18.6287 41.8678 18.6492 41.7812 18.6492C41.3959 18.6492 40.9046 18.6287 40.8055 18.6287C40.6772 18.6287 40.258 18.6492 39.9937 18.6492C39.9083 18.6492 39.8582 18.6287 39.8582 18.5829C39.8582 18.5489 39.8862 18.5328 39.966 18.5328C40.0661 18.5328 40.1465 18.5174 40.2076 18.5035C40.3396 18.477 40.3734 18.3294 40.3999 18.1375C40.4308 17.8571 40.4308 17.3328 40.4308 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.4986 15.5498C46.4986 14.5374 46.4986 14.3499 46.4862 14.1383C46.4737 13.913 46.419 13.8052 46.1998 13.7596C46.1463 13.7459 46.0306 13.7406 45.9419 13.7406C45.8675 13.7406 45.8257 13.7269 45.8257 13.6771C45.8257 13.6315 45.8736 13.6166 45.9734 13.6166C46.1531 13.6166 46.3475 13.6247 46.5142 13.6247C46.6849 13.6315 46.8387 13.6396 46.932 13.6396C47.1456 13.6396 48.4681 13.6396 48.5961 13.6315C48.7201 13.6166 48.827 13.6054 48.8813 13.5928C48.914 13.5868 48.9553 13.5654 48.9864 13.5654C49.0191 13.5654 49.0272 13.5928 49.0272 13.6247C49.0272 13.6722 48.9959 13.7528 48.9727 14.0589C48.9686 14.1248 48.9553 14.4201 48.9414 14.4964C48.9352 14.5306 48.9199 14.5695 48.8736 14.5695C48.827 14.5695 48.8144 14.5374 48.8144 14.4781C48.8144 14.4315 48.8096 14.3167 48.7762 14.239C48.7275 14.1186 48.662 14.0375 48.3282 13.9965C48.2154 13.9836 47.5162 13.9727 47.384 13.9727C47.35 13.9727 47.3377 13.9905 47.3377 14.0375V15.7226C47.3377 15.7684 47.3454 15.7946 47.384 15.7946C47.5299 15.7946 48.2969 15.7946 48.4484 15.7809C48.6098 15.7684 48.7085 15.7488 48.7667 15.6818C48.8144 15.6281 48.8405 15.5948 48.8736 15.5948C48.902 15.5948 48.9199 15.6085 48.9199 15.6491C48.9199 15.6887 48.8952 15.7946 48.8678 16.1344C48.8627 16.2665 48.8405 16.5336 48.8405 16.5815C48.8405 16.6333 48.8405 16.7056 48.7802 16.7056C48.7335 16.7056 48.7201 16.6799 48.7201 16.6474C48.7165 16.5815 48.7165 16.4955 48.695 16.4063C48.662 16.2745 48.5704 16.1755 48.3222 16.1481C48.1959 16.1344 47.5359 16.1268 47.3784 16.1268C47.3454 16.1268 47.3377 16.1541 47.3377 16.1947V16.7191C47.3377 16.9454 47.3301 17.5599 47.3377 17.753C47.35 18.2081 47.4559 18.3115 48.1344 18.3115C48.3085 18.3115 48.5881 18.3115 48.7617 18.233C48.9352 18.1499 49.0146 18.0135 49.0628 17.7385C49.0749 17.6627 49.0869 17.6376 49.1348 17.6376C49.188 17.6376 49.188 17.6923 49.188 17.7582C49.188 17.9118 49.1348 18.3648 49.1008 18.4968C49.0521 18.6697 48.9959 18.6697 48.7427 18.6697C48.2428 18.6697 47.8782 18.6545 47.5902 18.6491C47.3046 18.6375 47.0969 18.6286 46.898 18.6286C46.8246 18.6286 46.6785 18.6286 46.5181 18.6375C46.3656 18.6375 46.1938 18.6491 46.0597 18.6491C45.9734 18.6491 45.9239 18.6286 45.9239 18.5828C45.9239 18.5488 45.9542 18.5327 46.0306 18.5327C46.1314 18.5327 46.2132 18.5173 46.2735 18.5035C46.4064 18.4769 46.4379 18.3294 46.4657 18.1375C46.4986 17.8571 46.4986 17.3327 46.4986 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.3845 18.5715C51.2755 18.5227 51.2566 18.4917 51.2566 18.3445C51.2566 17.9771 51.2813 17.579 51.2875 17.4735C51.2951 17.3723 51.3163 17.3017 51.3685 17.3017C51.429 17.3017 51.435 17.3607 51.435 17.4134C51.435 17.4979 51.463 17.6376 51.4951 17.753C51.6408 18.2448 52.0348 18.4243 52.4487 18.4243C53.0447 18.4243 53.3388 18.016 53.3388 17.6627C53.3388 17.3373 53.2368 17.0335 52.6864 16.6006L52.3805 16.3597C51.6485 15.7888 51.3959 15.3208 51.3959 14.7843C51.3959 14.0508 52.0079 13.5244 52.9342 13.5244C53.3649 13.5244 53.6447 13.5928 53.8181 13.6396C53.8789 13.655 53.9126 13.6722 53.9126 13.719C53.9126 13.8052 53.883 13.9965 53.883 14.5173C53.883 14.6647 53.8625 14.7171 53.8113 14.7171C53.7628 14.7171 53.7439 14.6771 53.7439 14.5986C53.7439 14.5374 53.7129 14.3304 53.5723 14.158C53.4708 14.0334 53.2795 13.8326 52.8445 13.8326C52.3531 13.8326 52.0545 14.1186 52.0545 14.5173C52.0545 14.8247 52.2099 15.0547 52.7614 15.4773L52.9454 15.6161C53.7533 16.2211 54.0368 16.6799 54.0368 17.3135C54.0368 17.6975 53.8913 18.1594 53.4136 18.4703C53.0816 18.6819 52.7088 18.7449 52.3531 18.7449C51.9691 18.7449 51.6698 18.6966 51.3845 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.4449 16.2609C60.4449 14.7716 59.5867 13.8452 58.4976 13.8452C57.731 13.8452 56.8585 14.2726 56.8585 15.9289C56.8585 17.3137 57.6253 18.4106 58.9013 18.4106C59.3691 18.4106 60.4449 18.1835 60.4449 16.2609ZM55.9399 16.1345C55.9399 14.9975 56.6912 13.5244 58.689 13.5244C60.3437 13.5244 61.3787 14.4918 61.3787 16.0161C61.3787 17.5404 60.3116 18.7449 58.6225 18.7449C56.713 18.7449 55.9399 17.3135 55.9399 16.1345V16.1345Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M63.5918 15.5499C63.5918 14.5375 63.5918 14.3499 63.579 14.1383C63.5653 13.9131 63.5118 13.8053 63.2915 13.7597C63.2387 13.746 63.1243 13.7406 63.0314 13.7406C62.9575 13.7406 62.9187 13.727 62.9187 13.6772C62.9187 13.6316 62.9649 13.6167 63.0661 13.6167C63.4175 13.6167 63.8366 13.6397 64.037 13.6397C64.1955 13.6397 64.6175 13.6167 64.8544 13.6167C64.9557 13.6167 65.0017 13.6316 65.0017 13.6772C65.0017 13.727 64.9615 13.7406 64.8956 13.7406C64.8216 13.7406 64.781 13.746 64.7012 13.7597C64.5207 13.791 64.4712 13.9075 64.4554 14.1383C64.4438 14.3499 64.4438 14.5375 64.4438 15.5499V16.481C64.4438 17.4441 64.6351 17.8515 64.9615 18.1189C65.2608 18.3649 65.5685 18.3908 65.7924 18.3908C66.086 18.3908 66.4466 18.2979 66.7125 18.0314C67.0781 17.6627 67.0972 17.0661 67.0972 16.3803V15.5499C67.0972 14.5375 67.0972 14.3499 67.0858 14.1383C67.0721 13.9131 67.018 13.8053 66.7992 13.7597C66.7459 13.746 66.6332 13.7406 66.5573 13.7406C66.4858 13.7406 66.4466 13.727 66.4466 13.6772C66.4466 13.6316 66.491 13.6167 66.5876 13.6167C66.9237 13.6167 67.3417 13.6397 67.3417 13.6397C67.4323 13.6397 67.8491 13.6167 68.1089 13.6167C68.2041 13.6167 68.2476 13.6316 68.2476 13.6772C68.2476 13.727 68.2097 13.7406 68.1282 13.7406C68.0561 13.7406 68.0138 13.746 67.9382 13.7597C67.7572 13.791 67.7013 13.9075 67.6893 14.1383C67.6762 14.3499 67.6762 14.5375 67.6762 15.5499V16.2607C67.6762 17.0006 67.6045 17.7832 67.0431 18.2627C66.5718 18.6697 66.0937 18.745 65.6583 18.745C65.3091 18.745 64.6681 18.723 64.1835 18.2826C63.8428 17.9771 63.5918 17.4851 63.5918 16.5212V15.5499",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.3762 16.0733C71.3762 16.1481 71.3888 16.1755 71.4361 16.1948C71.5762 16.241 71.7749 16.2607 71.942 16.2607C72.2083 16.2607 72.2937 16.2333 72.4141 16.1481C72.6143 16.0002 72.8066 15.6964 72.8066 15.1501C72.8066 14.2044 72.1809 13.9325 71.7886 13.9325C71.622 13.9325 71.5043 13.9385 71.4361 13.9582C71.3888 13.9727 71.3762 13.9965 71.3762 14.0508V16.0733ZM70.5907 15.5499C70.5907 14.5375 70.5907 14.3499 70.5772 14.1383C70.5634 13.9131 70.5117 13.8053 70.2917 13.7597C70.2361 13.746 70.1248 13.7406 70.0322 13.7406C69.9599 13.7406 69.9167 13.727 69.9167 13.6772C69.9167 13.6316 69.9634 13.6167 70.0664 13.6167C70.4158 13.6167 70.8371 13.6397 70.9762 13.6397C71.2044 13.6397 71.7084 13.6167 71.9152 13.6167C72.3343 13.6167 72.7813 13.6606 73.138 13.9075C73.3268 14.0335 73.5924 14.3723 73.5924 14.8179C73.5924 15.3084 73.3864 15.7621 72.7125 16.3086C73.305 17.053 73.7636 17.6457 74.1555 18.0588C74.5284 18.4434 74.8025 18.4917 74.9016 18.5095C74.9754 18.5228 75.0363 18.5328 75.0888 18.5328C75.1422 18.5328 75.1683 18.5489 75.1683 18.5829C75.1683 18.6376 75.1227 18.6492 75.0403 18.6492H74.4102C74.0393 18.6492 73.8699 18.6171 73.6994 18.5228C73.4121 18.3697 73.1579 18.0588 72.7867 17.5452C72.5195 17.1811 72.2143 16.727 72.1274 16.6288C72.0939 16.5867 72.053 16.5815 72.0081 16.5815L71.4315 16.5683C71.3969 16.5683 71.3762 16.5815 71.3762 16.6203V16.7152C71.3762 17.3328 71.3762 17.8571 71.4102 18.1375C71.4315 18.3294 71.4682 18.477 71.6702 18.5035C71.7683 18.5174 71.9152 18.5328 71.9946 18.5328C72.0476 18.5328 72.0738 18.5489 72.0738 18.5829C72.0738 18.6287 72.0273 18.6492 71.9419 18.6492C71.5558 18.6492 71.0626 18.6287 70.9635 18.6287C70.8371 18.6287 70.4158 18.6492 70.1522 18.6492C70.0664 18.6492 70.0197 18.6287 70.0197 18.5829C70.0197 18.5489 70.044 18.5328 70.1248 18.5328C70.2258 18.5328 70.3053 18.5174 70.3642 18.5035C70.4974 18.477 70.5304 18.3294 70.558 18.1375C70.5907 17.8571 70.5907 17.3328 70.5907 16.7192V15.5499V15.5499Z",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.7248 18.016C76.0707 17.444 75.9004 16.6996 75.9004 16.0549C75.9004 15.6041 76.0397 14.8178 76.68 14.2313C77.1561 13.7909 77.789 13.5244 78.7811 13.5244C79.1931 13.5244 79.4405 13.553 79.7454 13.5928C79.9991 13.6247 80.2123 13.6879 80.4121 13.7047C80.4836 13.7124 80.512 13.746 80.512 13.787C80.512 13.8403 80.4917 13.9167 80.4784 14.1503C80.4648 14.3723 80.4701 14.7376 80.4571 14.869C80.4511 14.9695 80.4374 15.0236 80.3773 15.0236C80.3251 15.0236 80.3122 14.9695 80.3122 14.8761C80.3046 14.6701 80.2179 14.4404 80.0525 14.2655C79.8333 14.0334 79.3152 13.8519 78.7017 13.8519C78.1229 13.8519 77.7424 13.9965 77.4508 14.2655C76.9646 14.7094 76.8376 15.3413 76.8376 15.9871C76.8376 17.5711 78.0433 18.3559 78.9345 18.3559C79.5251 18.3559 79.8849 18.2919 80.1499 17.9833C80.2648 17.8571 80.352 17.6627 80.3773 17.5452C80.3972 17.4374 80.4121 17.4134 80.4648 17.4134C80.512 17.4134 80.5249 17.4585 80.5249 17.5131C80.5249 17.591 80.4455 18.1715 80.3773 18.3969C80.3421 18.5095 80.3176 18.5447 80.2065 18.5907C79.9384 18.6966 79.4325 18.7449 79.0066 18.7449C78.0959 18.7449 77.3306 18.5447 76.7248 18.016",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.9906 15.5498C82.9906 14.5374 82.9906 14.3499 82.9794 14.1383C82.9659 13.913 82.9112 13.8052 82.6928 13.7596C82.6399 13.7459 82.5272 13.7406 82.4333 13.7406C82.3601 13.7406 82.3191 13.7269 82.3191 13.6771C82.3191 13.6315 82.3661 13.6166 82.4629 13.6166C82.6474 13.6166 82.8378 13.6247 83.0049 13.6247C83.1806 13.6315 83.3331 13.6396 83.4252 13.6396C83.6378 13.6396 84.9615 13.6396 85.0891 13.6315C85.2143 13.6166 85.3208 13.6054 85.3739 13.5928C85.4089 13.5868 85.451 13.5654 85.4783 13.5654C85.5152 13.5654 85.519 13.5928 85.519 13.6247C85.519 13.6722 85.4862 13.7528 85.4686 14.0589C85.4613 14.1248 85.451 14.4201 85.4354 14.4964C85.4282 14.5306 85.4145 14.5695 85.3697 14.5695C85.3208 14.5695 85.3078 14.5374 85.3078 14.4781C85.3078 14.4315 85.302 14.3167 85.2667 14.239C85.2211 14.1186 85.1542 14.0375 84.8224 13.9965C84.7097 13.9836 84.0092 13.9727 83.8784 13.9727C83.8436 13.9727 83.8299 13.9905 83.8299 14.0375V15.7226C83.8299 15.7684 83.8399 15.7946 83.8784 15.7946C84.0224 15.7946 84.7913 15.7946 84.9426 15.7809C85.102 15.7684 85.2006 15.7488 85.2611 15.6818C85.3078 15.6281 85.3351 15.5948 85.3697 15.5948C85.3932 15.5948 85.4145 15.6085 85.4145 15.6491C85.4145 15.6887 85.3874 15.7946 85.3621 16.1344C85.3532 16.2665 85.3351 16.5336 85.3351 16.5815C85.3351 16.6333 85.3351 16.7056 85.2742 16.7056C85.2288 16.7056 85.2143 16.6799 85.2143 16.6474C85.2095 16.5815 85.2095 16.4955 85.1892 16.4063C85.1542 16.2745 85.0609 16.1755 84.8143 16.1481C84.6885 16.1344 84.0297 16.1268 83.873 16.1268C83.8399 16.1268 83.8299 16.1541 83.8299 16.1947V16.7191C83.8299 16.9454 83.8251 17.5599 83.8299 17.753C83.8436 18.2081 83.9524 18.3115 84.629 18.3115C84.8027 18.3115 85.0815 18.3115 85.2553 18.233C85.4282 18.1499 85.508 18.0135 85.5563 17.7385C85.5656 17.6627 85.5813 17.6376 85.6284 17.6376C85.6814 17.6376 85.6814 17.6923 85.6814 17.7582C85.6814 17.9118 85.6284 18.3648 85.595 18.4968C85.5482 18.6697 85.4862 18.6697 85.2354 18.6697C84.7378 18.6697 84.3714 18.6545 84.0844 18.6491C83.7965 18.6375 83.5907 18.6286 83.3949 18.6286C83.3193 18.6286 83.1725 18.6286 83.014 18.6375C82.8588 18.6375 82.6863 18.6491 82.5535 18.6491C82.4629 18.6491 82.4202 18.6286 82.4202 18.5828C82.4202 18.5488 82.4476 18.5327 82.5272 18.5327C82.6279 18.5327 82.7073 18.5173 82.7661 18.5035C82.8998 18.4769 82.9332 18.3294 82.9599 18.1375C82.9906 17.8571 82.9906 17.3327 82.9906 16.7191V15.5498",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.8766 18.5715C87.7717 18.5227 87.7495 18.4917 87.7495 18.3445C87.7495 17.9771 87.7754 17.579 87.7837 17.4735C87.7912 17.3723 87.8084 17.3017 87.861 17.3017C87.9232 17.3017 87.9269 17.3607 87.9269 17.4134C87.9269 17.4979 87.953 17.6376 87.9893 17.753C88.1342 18.2448 88.529 18.4243 88.941 18.4243C89.5376 18.4243 89.8323 18.016 89.8323 17.6627C89.8323 17.3373 89.7326 17.0335 89.1795 16.6006L88.8734 16.3597C88.1418 15.7888 87.8904 15.3208 87.8904 14.7843C87.8904 14.0508 88.5016 13.5244 89.4263 13.5244C89.8591 13.5244 90.1405 13.5928 90.3117 13.6396C90.3718 13.655 90.4051 13.6722 90.4051 13.719C90.4051 13.8052 90.3799 13.9965 90.3799 14.5173C90.3799 14.6647 90.3581 14.7171 90.3038 14.7171C90.259 14.7171 90.2369 14.6771 90.2369 14.5986C90.2369 14.5374 90.2049 14.3304 90.0661 14.158C89.965 14.0334 89.7716 13.8326 89.338 13.8326C88.8475 13.8326 88.5486 14.1186 88.5486 14.5173C88.5486 14.8247 88.7024 15.0547 89.2551 15.4773L89.4394 15.6161C90.2454 16.2211 90.5312 16.6799 90.5312 17.3135C90.5312 17.6975 90.3834 18.1594 89.9057 18.4703C89.5714 18.6819 89.1992 18.7449 88.8475 18.7449C88.4612 18.7449 88.1619 18.6966 87.8766 18.5715",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.4308 26.351C40.4308 25.3411 40.4308 25.1548 40.419 24.9405C40.4055 24.7134 40.3396 24.6015 40.1919 24.5681C40.1202 24.547 40.03 24.5443 39.9511 24.5443C39.8862 24.5443 39.8462 24.5289 39.8462 24.4726C39.8462 24.4359 39.9005 24.4214 40.0037 24.4214C40.258 24.4214 40.6772 24.4402 40.8696 24.4402C41.0368 24.4402 41.43 24.4214 41.6832 24.4214C41.7688 24.4214 41.821 24.4359 41.821 24.4726C41.821 24.5289 41.7812 24.5443 41.7141 24.5443C41.6505 24.5443 41.596 24.547 41.5141 24.5615C41.3359 24.5949 41.2832 24.7074 41.2714 24.9405C41.2561 25.1548 41.2561 25.3411 41.2561 26.351V27.5214C41.2561 28.1675 41.2561 28.6935 41.2832 28.9814C41.3046 29.1605 41.3502 29.2786 41.5473 29.3043C41.6424 29.3186 41.7881 29.3331 41.8892 29.3331C41.962 29.3331 41.9941 29.3528 41.9941 29.3868C41.9941 29.4322 41.9425 29.4518 41.8679 29.4518C41.43 29.4518 41.0097 29.4322 40.8298 29.4322C40.6772 29.4322 40.258 29.4518 39.9937 29.4518C39.9084 29.4518 39.8582 29.4322 39.8582 29.3868C39.8582 29.3528 39.8862 29.3331 39.966 29.3331C40.0661 29.3331 40.1465 29.3186 40.2076 29.3043C40.3396 29.2786 40.3782 29.1683 40.3999 28.9737C40.4308 28.6935 40.4308 28.1675 40.4308 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.8558 28.5483C44.8695 29.0666 44.9551 29.2398 45.089 29.2861C45.2017 29.3252 45.3281 29.3329 45.4347 29.3329C45.5095 29.3329 45.5472 29.3457 45.5472 29.3866C45.5472 29.438 45.489 29.4516 45.3957 29.4516C44.9628 29.4516 44.6938 29.432 44.5696 29.432C44.5104 29.432 44.198 29.4516 43.8503 29.4516C43.7659 29.4516 43.7046 29.4465 43.7046 29.3866C43.7046 29.3457 43.7433 29.3329 43.8092 29.3329C43.8969 29.3329 44.0171 29.3252 44.1104 29.3006C44.2851 29.2467 44.3095 29.0512 44.3164 28.4749L44.3786 24.5339C44.3786 24.4007 44.3958 24.3076 44.4637 24.3076C44.5354 24.3076 44.5957 24.3949 44.7103 24.5132C44.7881 24.6013 45.8019 25.6856 46.7726 26.6505C47.2261 27.1038 48.1224 28.0625 48.2345 28.1673H48.271L48.2037 25.1793C48.196 24.7721 48.1345 24.6475 47.9763 24.5799C47.8783 24.5441 47.7164 24.5441 47.6252 24.5441C47.5453 24.5441 47.5162 24.5219 47.5162 24.4809C47.5162 24.4264 47.5921 24.4212 47.6914 24.4212C48.0379 24.4212 48.3572 24.44 48.4967 24.44C48.5705 24.44 48.8221 24.4212 49.1473 24.4212C49.2341 24.4212 49.3019 24.4264 49.3019 24.4809C49.3019 24.5219 49.2617 24.5441 49.1802 24.5441C49.1143 24.5441 49.0629 24.5441 48.9806 24.5613C48.7939 24.616 48.7427 24.7544 48.7359 25.1273L48.6621 29.3252C48.6621 29.4713 48.6347 29.5345 48.5746 29.5345C48.5023 29.5345 48.4221 29.4577 48.3496 29.3866C47.9311 28.9856 47.0783 28.1145 46.3861 27.4291C45.6599 26.7092 44.9219 25.8785 44.8017 25.7523H44.7843L44.8558 28.5483",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.4631 29.3742C51.3557 29.3253 51.3379 29.2921 51.3379 29.1469C51.3379 28.7815 51.363 28.3817 51.3686 28.2744C51.3766 28.1761 51.3959 28.1019 51.4488 28.1019C51.5085 28.1019 51.5165 28.1616 51.5165 28.2163C51.5165 28.2999 51.5426 28.44 51.5768 28.5527C51.7223 29.0455 52.1149 29.2264 52.5283 29.2264C53.1243 29.2264 53.4197 28.8209 53.4197 28.4673C53.4197 28.143 53.3183 27.8365 52.7673 27.4019L52.4601 27.1637C51.7281 26.589 51.4757 26.1256 51.4757 25.5866C51.4757 24.8534 52.0865 24.3301 53.0116 24.3301C53.4449 24.3301 53.7243 24.3949 53.8978 24.4401C53.9583 24.4555 53.991 24.4725 53.991 24.522C53.991 24.6101 53.9651 24.8011 53.9651 25.3186C53.9651 25.4654 53.9457 25.5192 53.8914 25.5192C53.8447 25.5192 53.8234 25.4807 53.8234 25.3988C53.8234 25.341 53.791 25.1344 53.6528 24.9626C53.5515 24.8335 53.3575 24.6356 52.927 24.6356C52.4344 24.6356 52.136 24.9216 52.136 25.3186C52.136 25.626 52.2894 25.8573 52.8408 26.2782L53.0269 26.4174C53.8313 27.022 54.1162 27.4829 54.1162 28.1146C54.1162 28.4996 53.9691 28.9599 53.4912 29.2708C53.161 29.4841 52.7865 29.5466 52.4344 29.5466C52.0483 29.5466 51.7474 29.4977 51.4631 29.3742",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.6296 24.7953L56.6388 24.82C56.2502 24.8335 56.0945 24.8662 55.994 25.0138C55.9275 25.1145 55.891 25.193 55.8788 25.2453C55.8668 25.2998 55.8469 25.3261 55.8071 25.3261C55.7609 25.3261 55.7466 25.2938 55.7466 25.2204C55.7466 25.1145 55.872 24.5093 55.8896 24.4555C55.9086 24.3659 55.9275 24.3301 55.965 24.3301C56.0193 24.3301 56.0873 24.3949 56.2502 24.407C56.445 24.4264 56.697 24.4401 56.9167 24.4401H59.5543C59.7653 24.4401 59.9116 24.4213 60.0115 24.407C60.1118 24.3871 60.165 24.3761 60.1924 24.3761C60.2394 24.3761 60.245 24.4144 60.245 24.5133C60.245 24.6544 60.2249 25.1145 60.2249 25.2863C60.2189 25.3545 60.2061 25.393 60.165 25.393C60.1118 25.393 60.0973 25.358 60.09 25.2625L60.0875 25.1864C60.0722 25.0138 59.8931 24.8285 59.301 24.815L58.4623 24.7953V27.5212C58.4623 28.1343 58.4623 28.6592 58.4976 28.9454C58.5148 29.1332 58.5554 29.2785 58.7543 29.3042C58.8478 29.3185 58.9941 29.333 59.0934 29.333C59.167 29.333 59.2003 29.3527 59.2003 29.3866C59.2003 29.432 59.1464 29.4517 59.0741 29.4517C58.6354 29.4517 58.2178 29.432 58.0313 29.432C57.876 29.432 57.4551 29.4517 57.1911 29.4517C57.1049 29.4517 57.0562 29.432 57.0562 29.3866C57.0562 29.3527 57.0852 29.333 57.1633 29.333C57.2663 29.333 57.3461 29.3185 57.4037 29.3042C57.5386 29.2785 57.5766 29.1332 57.5962 28.9413C57.6296 28.6592 57.6296 28.1343 57.6296 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.5148 26.351C62.5148 25.3411 62.5148 25.1548 62.5011 24.9405C62.4876 24.7134 62.4195 24.6015 62.2752 24.5681C62.2023 24.547 62.1156 24.5443 62.0331 24.5443C61.9675 24.5443 61.9272 24.5289 61.9272 24.4726C61.9272 24.4359 61.9807 24.4214 62.0852 24.4214C62.3403 24.4214 62.7614 24.4402 62.9535 24.4402C63.1195 24.4402 63.5118 24.4214 63.7651 24.4214C63.8509 24.4214 63.9037 24.4359 63.9037 24.4726C63.9037 24.5289 63.8633 24.5443 63.798 24.5443C63.7321 24.5443 63.6801 24.547 63.5991 24.5615C63.4198 24.5949 63.3635 24.7074 63.3535 24.9405C63.339 25.1548 63.339 25.3411 63.339 26.351V27.5214C63.339 28.1675 63.339 28.6935 63.3635 28.9814C63.3863 29.1605 63.4312 29.2786 63.6331 29.3043C63.7234 29.3186 63.8712 29.3331 63.973 29.3331C64.0451 29.3331 64.0778 29.3528 64.0778 29.3868C64.0778 29.4322 64.0217 29.4518 63.9493 29.4518C63.5118 29.4518 63.092 29.4322 62.9121 29.4322C62.7614 29.4322 62.3403 29.4518 62.0736 29.4518C61.9867 29.4518 61.9401 29.4322 61.9401 29.3868C61.9401 29.3528 61.9675 29.3331 62.0474 29.3331C62.1475 29.3331 62.2273 29.3186 62.2856 29.3043C62.4195 29.2786 62.4588 29.1683 62.4789 28.9737C62.5148 28.6935 62.5148 28.1675 62.5148 27.5214V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.4491 24.7953L66.4598 24.82C66.0741 24.8335 65.9133 24.8662 65.8121 25.0138C65.7464 25.1145 65.7122 25.193 65.7014 25.2453C65.6857 25.2998 65.6662 25.3261 65.6277 25.3261C65.579 25.3261 65.5686 25.2938 65.5686 25.2204C65.5686 25.1145 65.6934 24.5093 65.707 24.4555C65.7276 24.3659 65.7464 24.3301 65.7875 24.3301C65.8401 24.3301 65.9072 24.3949 66.0741 24.407C66.2674 24.4264 66.519 24.4401 66.7379 24.4401H69.3734C69.5869 24.4401 69.7326 24.4213 69.8356 24.407C69.9321 24.3871 69.9869 24.3761 70.0117 24.3761C70.0586 24.3761 70.0664 24.4144 70.0664 24.5133C70.0664 24.6544 70.0449 25.1145 70.0449 25.2863C70.0393 25.3545 70.0258 25.393 69.9869 25.393C69.9321 25.393 69.9195 25.358 69.9118 25.2625L69.9075 25.1864C69.8938 25.0138 69.7121 24.8285 69.1229 24.815L68.2819 24.7953V27.5212C68.2819 28.1343 68.2819 28.6592 68.3148 28.9454C68.3351 29.1332 68.3747 29.2785 68.5749 29.3042C68.6688 29.3185 68.8139 29.333 68.9129 29.333C68.989 29.333 69.0223 29.3527 69.0223 29.3866C69.0223 29.432 68.9682 29.4517 68.8932 29.4517C68.4559 29.4517 68.0356 29.432 67.8479 29.432C67.6976 29.432 67.278 29.4517 67.0098 29.4517C66.9238 29.4517 66.8761 29.432 66.8761 29.3866C66.8761 29.3527 66.9053 29.333 66.9839 29.333C67.084 29.333 67.1636 29.3185 67.2216 29.3042C67.3573 29.2785 67.3965 29.1332 67.4181 28.9413C67.4491 28.6592 67.4491 28.1343 67.4491 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.0477 26.351C72.0477 25.3411 72.0477 25.1548 72.033 24.9405C72.0197 24.7134 71.9681 24.6102 71.7482 24.5615C71.6927 24.547 71.5826 24.5443 71.49 24.5443C71.4177 24.5443 71.3762 24.5289 71.3762 24.4811C71.3762 24.4359 71.4216 24.4214 71.5227 24.4214C71.874 24.4214 72.2937 24.4402 72.4937 24.4402C72.6528 24.4402 73.0702 24.4214 73.3123 24.4214C73.4122 24.4214 73.4588 24.4359 73.4588 24.4811C73.4588 24.5289 73.4182 24.5443 73.3515 24.5443C73.2804 24.5443 73.2373 24.547 73.1579 24.5615C72.9809 24.5949 72.9248 24.7074 72.9129 24.9405C72.8995 25.1548 72.8995 25.3411 72.8995 26.351V27.2824C72.8995 28.2482 73.0924 28.6554 73.4182 28.9198C73.7171 29.1683 74.0236 29.1932 74.2509 29.1932C74.5423 29.1932 74.8994 29.1001 75.1684 28.8336C75.5348 28.4674 75.5528 27.8699 75.5528 27.1833V26.351C75.5528 25.3411 75.5528 25.1548 75.5402 24.9405C75.5302 24.7134 75.4761 24.6102 75.255 24.5615C75.2026 24.547 75.0888 24.5443 75.0181 24.5443C74.9402 24.5443 74.8994 24.5289 74.8994 24.4811C74.8994 24.4359 74.9481 24.4214 75.0403 24.4214C75.3829 24.4214 75.8007 24.4402 75.8065 24.4402C75.8882 24.4402 76.3072 24.4214 76.5675 24.4214C76.6589 24.4214 76.7055 24.4359 76.7055 24.4811C76.7055 24.5289 76.6666 24.5443 76.587 24.5443C76.5122 24.5443 76.4742 24.547 76.3928 24.5615C76.2121 24.5949 76.1596 24.7074 76.146 24.9405C76.1323 25.1548 76.1323 25.3411 76.1323 26.351V27.0619C76.1323 27.8016 76.0589 28.587 75.5006 29.0668C75.0295 29.4715 74.5504 29.5468 74.1162 29.5468C73.7637 29.5468 73.1245 29.5269 72.64 29.0898C72.3009 28.7816 72.0477 28.288 72.0477 27.3224V26.351",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.9309 24.7953L78.9403 24.82C78.554 24.8335 78.3952 24.8662 78.2958 25.0138C78.2296 25.1145 78.1967 25.193 78.1809 25.2453C78.1693 25.2998 78.148 25.3261 78.1084 25.3261C78.0626 25.3261 78.0481 25.2938 78.0481 25.2204C78.0481 25.1145 78.1737 24.5093 78.1867 24.4555C78.2083 24.3659 78.2296 24.3301 78.2684 24.3301C78.3208 24.3301 78.3867 24.3949 78.554 24.407C78.7463 24.4264 79.0004 24.4401 79.2201 24.4401H81.855C82.0689 24.4401 82.2125 24.4213 82.3151 24.407C82.4143 24.3871 82.4668 24.3761 82.4966 24.3761C82.5401 24.3761 82.5482 24.4144 82.5482 24.5133C82.5482 24.6544 82.5271 25.1145 82.5271 25.2863C82.5192 25.3545 82.5072 25.393 82.4668 25.393C82.4143 25.393 82.3986 25.358 82.3951 25.2625L82.389 25.1864C82.3735 25.0138 82.1949 24.8285 81.6046 24.815L80.764 24.7953V27.5212C80.764 28.1343 80.764 28.6592 80.7968 28.9454C80.8181 29.1332 80.8592 29.2785 81.055 29.3042C81.1524 29.3185 81.2942 29.333 81.3949 29.333C81.4703 29.333 81.5033 29.3527 81.5033 29.3866C81.5033 29.432 81.4484 29.4517 81.3764 29.4517C80.9346 29.4517 80.5172 29.432 80.333 29.432C80.1792 29.432 79.7581 29.4517 79.4918 29.4517C79.4064 29.4517 79.36 29.432 79.36 29.3866C79.36 29.3527 79.3848 29.333 79.4667 29.333C79.5658 29.333 79.6455 29.3185 79.7046 29.3042C79.8393 29.2785 79.8774 29.1332 79.9 28.9413C79.9309 28.6592 79.9309 28.1343 79.9309 27.5212V24.7953",fill:"#686767"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.8142 26.3512C84.8142 25.3413 84.8142 25.155 84.8026 24.9407C84.7889 24.7136 84.7377 24.6103 84.517 24.5616C84.4629 24.5471 84.3502 24.5444 84.2555 24.5444C84.1832 24.5444 84.1423 24.5291 84.1423 24.4812C84.1423 24.4361 84.1892 24.4215 84.2905 24.4215C84.4706 24.4215 84.6611 24.4267 84.8316 24.4267C85.0028 24.4361 85.1541 24.4404 85.2472 24.4404C85.4612 24.4404 86.7872 24.4404 86.9113 24.4361C87.0375 24.4215 87.1453 24.4072 87.1988 24.3952C87.2328 24.3873 87.2705 24.3662 87.3047 24.3662C87.3374 24.3662 87.3447 24.3952 87.3447 24.4267C87.3447 24.4727 87.3097 24.554 87.2922 24.8595C87.2842 24.9262 87.2705 25.2207 87.2549 25.3001C87.2514 25.3349 87.2367 25.3718 87.1911 25.3718C87.1453 25.3718 87.131 25.3413 87.131 25.2806C87.131 25.2335 87.1269 25.1216 87.0898 25.0406C87.0433 24.9218 86.9797 24.84 86.6434 24.8014C86.5327 24.7871 85.8357 24.7724 85.7004 24.7724C85.6666 24.7724 85.6534 24.7956 85.6534 24.84V26.5236C85.6534 26.5723 85.6612 26.597 85.7004 26.597C85.8471 26.597 86.6135 26.597 86.7654 26.5844C86.9229 26.5723 87.022 26.5524 87.0838 26.4853C87.131 26.4322 87.1584 26.3989 87.1911 26.3989C87.2172 26.3989 87.2367 26.4109 87.2367 26.4501C87.2367 26.4905 87.2102 26.597 87.1834 26.9352C87.1756 27.0691 87.1584 27.3371 87.1584 27.3822C87.1584 27.4363 87.1584 27.5122 87.0972 27.5122C87.0512 27.5122 87.0375 27.4832 87.0375 27.4498C87.0301 27.3822 87.0301 27.2962 87.0104 27.21C86.9797 27.077 86.884 26.976 86.6403 26.953C86.5136 26.9352 85.8511 26.93 85.6919 26.93C85.6612 26.93 85.6534 26.9572 85.6534 26.9974V27.5215C85.6534 27.7487 85.6473 28.3609 85.6534 28.553C85.6666 29.0139 85.7756 29.1113 86.4506 29.1113C86.6251 29.1113 86.9045 29.1113 87.0784 29.0327C87.2514 28.9523 87.331 28.8141 87.3776 28.5391C87.3892 28.4676 87.4023 28.4402 87.4516 28.4402C87.5043 28.4402 87.5043 28.4933 87.5043 28.5606C87.5043 28.7142 87.4516 29.1685 87.417 29.3009C87.3696 29.4717 87.3097 29.4717 87.0568 29.4717C86.558 29.4717 86.1912 29.458 85.9074 29.452C85.621 29.4383 85.4144 29.4323 85.2142 29.4323C85.1408 29.4323 84.9947 29.4323 84.8339 29.4383C84.6818 29.4383 84.5077 29.452 84.3761 29.452C84.2905 29.452 84.2443 29.4323 84.2443 29.3869C84.2443 29.3529 84.2685 29.3333 84.3502 29.3333C84.4493 29.3333 84.5307 29.3187 84.5892 29.3044C84.7232 29.2787 84.757 29.1335 84.7815 28.9416C84.8142 28.6595 84.8142 28.1345 84.8142 27.5215V26.3512",fill:"#686767"})]})}),Uf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.99573 16C9.25964 16 10.2883 14.9745 10.2938 13.7118H5.69775C5.70325 14.9744 6.73181 16 7.99573 16Z",fill:"currentColor"}),t.jsx("path",{d:"M14.2106 12.7737V12.0912C14.2106 11.3503 13.7648 10.6915 13.108 10.4019V6.52185C13.108 5.4281 12.7614 4.40417 12.1055 3.56079C11.5471 2.8429 10.7917 2.28613 9.90662 1.93701V1.91077C9.90662 0.857178 9.04944 0 7.99585 0C6.94226 0 6.08521 0.857178 6.08521 1.91077V1.93701C5.20007 2.28613 4.4447 2.8429 3.88635 3.56079C3.23047 4.40417 2.88367 5.4281 2.88367 6.52185V10.4017C2.22705 10.6914 1.78125 11.3503 1.78125 12.0912V12.7736H14.2106V12.7737Z",fill:"currentColor"})]})}),Kf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8.57143 11.4285H0V8.57137H8.57143V-6.10352e-05H11.4286V8.57137H20V11.4285H11.4286V19.9999H8.57143V11.4285Z",fill:"currentColor"})})}),Gf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 11.2499V8.74994H20V11.2499H0Z",fill:"currentColor"})})}),Zf=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_8714_101)",children:t.jsx("path",{d:"M0 20V13.3333H2.22222V16.2222L5.66667 12.7778L7.22222 14.3333L3.77778 17.7778H6.66667V20H0ZM14.3333 7.22222L12.7778 5.66667L16.2222 2.22222H13.3333V0H20V6.66667H17.7778V3.77778L14.3333 7.22222Z",fill:"currentColor"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_8714_101",children:t.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}),Jf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 20C15.1667 20 14.4583 19.7083 13.875 19.125C13.2917 18.5417 13 17.8333 13 17C13 16.9 13.025 16.6667 13.075 16.3L6.05 12.2C5.78333 12.45 5.475 12.6458 5.125 12.7875C4.775 12.9292 4.4 13 4 13C3.16667 13 2.45833 12.7083 1.875 12.125C1.29167 11.5417 1 10.8333 1 10C1 9.16667 1.29167 8.45833 1.875 7.875C2.45833 7.29167 3.16667 7 4 7C4.4 7 4.775 7.07083 5.125 7.2125C5.475 7.35417 5.78333 7.55 6.05 7.8L13.075 3.7C13.0417 3.58333 13.0208 3.47083 13.0125 3.3625C13.0042 3.25417 13 3.13333 13 3C13 2.16667 13.2917 1.45833 13.875 0.875C14.4583 0.291667 15.1667 0 16 0C16.8333 0 17.5417 0.291667 18.125 0.875C18.7083 1.45833 19 2.16667 19 3C19 3.83333 18.7083 4.54167 18.125 5.125C17.5417 5.70833 16.8333 6 16 6C15.6 6 15.225 5.92917 14.875 5.7875C14.525 5.64583 14.2167 5.45 13.95 5.2L6.925 9.3C6.95833 9.41667 6.97917 9.52917 6.9875 9.6375C6.99583 9.74583 7 9.86667 7 10C7 10.1333 6.99583 10.2542 6.9875 10.3625C6.97917 10.4708 6.95833 10.5833 6.925 10.7L13.95 14.8C14.2167 14.55 14.525 14.3542 14.875 14.2125C15.225 14.0708 15.6 14 16 14C16.8333 14 17.5417 14.2917 18.125 14.875C18.7083 15.4583 19 16.1667 19 17C19 17.8333 18.7083 18.5417 18.125 19.125C17.5417 19.7083 16.8333 20 16 20Z",fill:"currentColor"})})}),Xf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 5H4V1H16V5ZM16 10.5C16.2833 10.5 16.5208 10.4042 16.7125 10.2125C16.9042 10.0208 17 9.78333 17 9.5C17 9.21667 16.9042 8.97917 16.7125 8.7875C16.5208 8.59583 16.2833 8.5 16 8.5C15.7167 8.5 15.4792 8.59583 15.2875 8.7875C15.0958 8.97917 15 9.21667 15 9.5C15 9.78333 15.0958 10.0208 15.2875 10.2125C15.4792 10.4042 15.7167 10.5 16 10.5ZM14 17V13H6V17H14ZM16 19H4V15H0V9C0 8.15 0.291667 7.4375 0.875 6.8625C1.45833 6.2875 2.16667 6 3 6H17C17.85 6 18.5625 6.2875 19.1375 6.8625C19.7125 7.4375 20 8.15 20 9V15H16V19Z",fill:"currentColor"})})}),Yf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.26368 20L6.86567 16.8C6.65008 16.7167 6.44693 16.6167 6.25622 16.5C6.06551 16.3833 5.87894 16.2583 5.69652 16.125L2.73632 17.375L0 12.625L2.56219 10.675C2.54561 10.5583 2.53731 10.4458 2.53731 10.3375V9.6625C2.53731 9.55417 2.54561 9.44167 2.56219 9.325L0 7.375L2.73632 2.625L5.69652 3.875C5.87894 3.74167 6.06965 3.61667 6.26866 3.5C6.46766 3.38333 6.66667 3.28333 6.86567 3.2L7.26368 0H12.7363L13.1343 3.2C13.3499 3.28333 13.5531 3.38333 13.7438 3.5C13.9345 3.61667 14.1211 3.74167 14.3035 3.875L17.2637 2.625L20 7.375L17.4378 9.325C17.4544 9.44167 17.4627 9.55417 17.4627 9.6625V10.3375C17.4627 10.4458 17.4461 10.5583 17.4129 10.675L19.9751 12.625L17.2388 17.375L14.3035 16.125C14.1211 16.2583 13.9303 16.3833 13.7313 16.5C13.5323 16.6167 13.3333 16.7167 13.1343 16.8L12.7363 20H7.26368ZM10.0498 13.5C11.0116 13.5 11.8325 13.1583 12.5124 12.475C13.1924 11.7917 13.5323 10.9667 13.5323 10C13.5323 9.03333 13.1924 8.20833 12.5124 7.525C11.8325 6.84167 11.0116 6.5 10.0498 6.5C9.07131 6.5 8.24627 6.84167 7.57463 7.525C6.90299 8.20833 6.56716 9.03333 6.56716 10C6.56716 10.9667 6.90299 11.7917 7.57463 12.475C8.24627 13.1583 9.07131 13.5 10.0498 13.5Z",fill:"currentColor"})})}),Qf=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M9.95 15.9999C10.3 15.9999 10.5958 15.8791 10.8375 15.6374C11.0792 15.3958 11.2 15.0999 11.2 14.7499C11.2 14.3999 11.0792 14.1041 10.8375 13.8624C10.5958 13.6208 10.3 13.4999 9.95 13.4999C9.6 13.4999 9.30417 13.6208 9.0625 13.8624C8.82083 14.1041 8.7 14.3999 8.7 14.7499C8.7 15.0999 8.82083 15.3958 9.0625 15.6374C9.30417 15.8791 9.6 15.9999 9.95 15.9999ZM9.05 12.1499H10.9C10.9 11.5999 10.9625 11.1666 11.0875 10.8499C11.2125 10.5333 11.5667 10.0999 12.15 9.54994C12.5833 9.11661 12.925 8.70411 13.175 8.31244C13.425 7.92077 13.55 7.44994 13.55 6.89994C13.55 5.96661 13.2083 5.24994 12.525 4.74994C11.8417 4.24994 11.0333 3.99994 10.1 3.99994C9.15 3.99994 8.37917 4.24994 7.7875 4.74994C7.19583 5.24994 6.78333 5.84994 6.55 6.54994L8.2 7.19994C8.28333 6.89994 8.47083 6.57494 8.7625 6.22494C9.05417 5.87494 9.5 5.69994 10.1 5.69994C10.6333 5.69994 11.0333 5.84577 11.3 6.13744C11.5667 6.42911 11.7 6.74994 11.7 7.09994C11.7 7.43327 11.6 7.74577 11.4 8.03744C11.2 8.32911 10.95 8.59994 10.65 8.84994C9.91667 9.49994 9.46667 9.99161 9.3 10.3249C9.13333 10.6583 9.05 11.2666 9.05 12.1499ZM10 19.9999C8.61667 19.9999 7.31667 19.7374 6.1 19.2124C4.88333 18.6874 3.825 17.9749 2.925 17.0749C2.025 16.1749 1.3125 15.1166 0.7875 13.8999C0.2625 12.6833 0 11.3833 0 9.99994C0 8.61661 0.2625 7.31661 0.7875 6.09994C1.3125 4.88327 2.025 3.82494 2.925 2.92494C3.825 2.02494 4.88333 1.31244 6.1 0.787439C7.31667 0.262439 8.61667 -6.10352e-05 10 -6.10352e-05C11.3833 -6.10352e-05 12.6833 0.262439 13.9 0.787439C15.1167 1.31244 16.175 2.02494 17.075 2.92494C17.975 3.82494 18.6875 4.88327 19.2125 6.09994C19.7375 7.31661 20 8.61661 20 9.99994C20 11.3833 19.7375 12.6833 19.2125 13.8999C18.6875 15.1166 17.975 16.1749 17.075 17.0749C16.175 17.9749 15.1167 18.6874 13.9 19.2124C12.6833 19.7374 11.3833 19.9999 10 19.9999Z",fill:"currentColor"})})}),em=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.55556 14C1.12778 14 0.761574 13.8477 0.456944 13.5431C0.152315 13.2384 0 12.8722 0 12.4444V1.55556C0 1.12778 0.152315 0.761574 0.456944 0.456944C0.761574 0.152315 1.12778 0 1.55556 0H12.4444C12.8722 0 13.2384 0.152315 13.5431 0.456944C13.8477 0.761574 14 1.12778 14 1.55556V12.4444C14 12.8722 13.8477 13.2384 13.5431 13.5431C13.2384 13.8477 12.8722 14 12.4444 14H1.55556ZM2.33333 10.8889H11.6667L8.75 7L6.41667 10.1111L4.66667 7.77778L2.33333 10.8889Z",fill:"currentColor"})})}),tm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM2.66667 9.33333H7.33333V8H2.66667V9.33333ZM2.66667 6.66667H9.33333V5.33333H2.66667V6.66667ZM2.66667 4H9.33333V2.66667H2.66667V4Z",fill:"currentColor"})})}),nm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.27472 12C3.81319 12 2.56868 11.4945 1.54121 10.4835C0.513736 9.47253 0 8.24176 0 6.79121C0 6.0989 0.134615 5.43681 0.403846 4.80495C0.673077 4.17308 1.05494 3.61538 1.54945 3.13187L4.35165 0.379121C4.48352 0.258242 4.62912 0.164835 4.78846 0.0989011C4.9478 0.032967 5.10989 0 5.27472 0C5.43956 0 5.60165 0.032967 5.76099 0.0989011C5.92033 0.164835 6.06593 0.258242 6.1978 0.379121L9 3.13187C9.4945 3.61538 9.87637 4.17308 10.1456 4.80495C10.4148 5.43681 10.5494 6.0989 10.5494 6.79121C10.5494 8.24176 10.0357 9.47253 9.00824 10.4835C7.98077 11.4945 6.73626 12 5.27472 12Z",fill:"currentColor"})})}),rm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 12V6.68333C4.62222 6.68333 3.93889 6.54722 3.28333 6.275C2.62778 6.00278 2.05 5.61667 1.55 5.11667C1.05 4.61667 0.666667 4.03889 0.4 3.38333C0.133333 2.72778 0 2.04444 0 1.33333V0H1.33333C2.03333 0 2.71111 0.136111 3.36667 0.408333C4.02222 0.680556 4.6 1.06667 5.1 1.56667C5.44444 1.91111 5.73056 2.28889 5.95833 2.7C6.18611 3.11111 6.36111 3.55 6.48333 4.01667C6.53889 3.93889 6.6 3.86389 6.66667 3.79167C6.73333 3.71944 6.80556 3.64444 6.88333 3.56667C7.38333 3.06667 7.96111 2.68056 8.61667 2.40833C9.27222 2.13611 9.95556 2 10.6667 2H12V3.33333C12 4.04444 11.8639 4.72778 11.5917 5.38333C11.3194 6.03889 10.9333 6.61667 10.4333 7.11667C9.93333 7.61667 9.35833 8 8.70833 8.26667C8.05833 8.53333 7.37778 8.66667 6.66667 8.66667V12H5.33333Z",fill:"currentColor"})})}),om=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.013 8.18324C16.013 7.61597 15.9621 7.07051 15.8676 6.54688H8.33301V9.64142H12.6385C12.453 10.6414 11.8894 11.4887 11.0421 12.056V14.0632H13.6276C15.1403 12.6705 16.013 10.6196 16.013 8.18324Z",fill:"#4285F4"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 15.9995C10.4927 15.9995 12.3036 15.2832 13.6272 14.0613L11.0418 12.0541C10.3254 12.5341 9.40905 12.8177 8.33268 12.8177C6.24905 12.8177 4.48541 11.4104 3.85632 9.51953H1.18359V11.5923C2.49996 14.2068 5.20541 15.9995 8.33268 15.9995Z",fill:"#34A853"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.85664 9.51898C3.69664 9.03898 3.60574 8.52625 3.60574 7.99898C3.60574 7.4717 3.69664 6.95898 3.85664 6.47898V4.40625H1.18392C0.642099 5.48625 0.333008 6.70807 0.333008 7.99898C0.333008 9.28989 0.642099 10.5117 1.18392 11.5917L3.85664 9.51898Z",fill:"#FBBC05"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33268 3.18182C9.50723 3.18182 10.5618 3.58545 11.3909 4.37818L13.6854 2.08364C12.3 0.792727 10.489 0 8.33268 0C5.20541 0 2.49996 1.79273 1.18359 4.40727L3.85632 6.48C4.48541 4.58909 6.24905 3.18182 8.33268 3.18182Z",fill:"#EA4335"})]})}),im=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M16.167 8.04974C16.167 3.60622 12.5831 0 8.16699 0C3.75093 0 0.166992 3.60622 0.166992 8.04974C0.166992 12.0705 3.09181 15.4031 6.92291 16V10.371H4.87966V8.04974H6.92291V6.27565C6.92291 4.26114 8.10932 3.14197 9.93836 3.14197C10.8117 3.14197 11.718 3.30777 11.718 3.30777V5.27254H10.7128C9.71591 5.27254 9.40283 5.90259 9.40283 6.53264V8.04145H11.6273L11.2731 10.3627H9.40283V15.9917C13.2422 15.4031 16.167 12.0705 16.167 8.04974Z",fill:"#1877F2"}),t.jsx("path",{d:"M11.2811 10.3096L11.6354 8.00384H9.41086V6.50513C9.41086 5.87106 9.73218 5.25346 10.7209 5.25346H11.726V3.2936C11.726 3.2936 10.8197 3.12891 9.94639 3.12891C8.11735 3.12891 6.93095 4.24059 6.93095 6.24162V8.00384H4.8877V10.3096H6.93095V15.9009C7.33466 15.9668 7.75484 15.9997 8.17502 15.9997C8.59521 15.9997 9.0154 15.9668 9.4191 15.9009V10.3096H11.2811Z",fill:"white"})]})}),sm=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_703_2142)",children:t.jsx("path",{d:"M10.3552 6.77143L16.3115 0H14.9001L9.72817 5.87954L5.59738 0H0.833008L7.07957 8.8909L0.833008 15.9918H2.24455L7.70622 9.78279L12.0686 15.9918H16.833L10.3548 6.77143H10.3552ZM8.42187 8.96923L7.78897 8.0839L2.75315 1.03921H4.92121L8.98517 6.7245L9.61807 7.60983L14.9007 14.9998H12.7327L8.42187 8.96957V8.96923Z",fill:"#5C5959"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_703_2142",children:t.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.833008)"})})})]})}),am=n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.66699 0H0.166992V7.5H7.66699V0Z",fill:"#F35325"}),t.jsx("path",{d:"M16.167 0H8.66699V7.5H16.167V0Z",fill:"#81BC06"}),t.jsx("path",{d:"M7.66699 8.5H0.166992V16H7.66699V8.5Z",fill:"#05A6F0"}),t.jsx("path",{d:"M16.167 8.5H8.66699V16H16.167V8.5Z",fill:"#FFBA08"})]})}),lm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 13.3267V11.5489H16V13.3267H0ZM0 8.88223V7.10445H16V8.88223H0ZM0 4.43778V2.66H16V4.43778H0Z",fill:"currentColor"})})}),cm=n=>{const{size:r="16px",...o}=n;return t.jsx(e.Icon,{boxSize:r,...o,children:t.jsx("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M8 8.88889C5.97297 8.88889 4.32432 7.24024 4.32432 5.21321C4.32432 3.18618 5.97297 1.53753 8 1.53753C10.027 1.53753 11.6757 3.18618 11.6757 5.21321C11.6757 7.24024 10.027 8.88889 8 8.88889ZM2 14.4625V13.136C2 11.2583 4.85714 9.92589 8 9.92589C11.1429 9.92589 14 11.2583 14 13.136V14.4625H2Z",fill:"currentColor"})})})},dm=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.22857 6.85714L0 1.6L1.6 0L8.45714 6.85714L1.6 13.7143L0 12.1143L5.22857 6.85714ZM12.7714 6.85714L7.54286 1.6L9.14286 0L16 6.85714L9.14286 13.7143L7.54286 12.1143L12.7714 6.85714Z",fill:"#5C5959"})})}),um=n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.7714 6.85714L16 12.1143L14.4 13.7143L7.54286 6.85714L14.4 0L16 1.6L10.7714 6.85714ZM3.22857 6.85714L8.45714 12.1143L6.85714 13.7143L0 6.85714L6.85714 0L8.45714 1.6L3.22857 6.85714Z",fill:"#5C5959"})})}),hm=n=>{const{fill:r,width:o,height:i,...s}=n,a=r||"currentColor",l=o??"20",c=i??o??"20";return t.jsx(e.Icon,{...n,fill:a,children:t.jsx("svg",{width:l,height:c,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M18.4444 20L11.4444 13C10.8889 13.4444 10.25 13.7963 9.52778 14.0556C8.80556 14.3148 8.03704 14.4444 7.22222 14.4444C5.2037 14.4444 3.49537 13.7454 2.09722 12.3472C0.699074 10.9491 0 9.24074 0 7.22222C0 5.2037 0.699074 3.49537 2.09722 2.09722C3.49537 0.699074 5.2037 0 7.22222 0C9.24074 0 10.9491 0.699074 12.3472 2.09722C13.7454 3.49537 14.4444 5.2037 14.4444 7.22222C14.4444 8.03704 14.3148 8.80556 14.0556 9.52778C13.7963 10.25 13.4444 10.8889 13 11.4444L20 18.4444L18.4444 20ZM7.22222 12.2222C8.61111 12.2222 9.79167 11.7361 10.7639 10.7639C11.7361 9.79167 12.2222 8.61111 12.2222 7.22222C12.2222 5.83333 11.7361 4.65278 10.7639 3.68056C9.79167 2.70833 8.61111 2.22222 7.22222 2.22222C5.83333 2.22222 4.65278 2.70833 3.68056 3.68056C2.70833 4.65278 2.22222 5.83333 2.22222 7.22222C2.22222 8.61111 2.70833 9.79167 3.68056 10.7639C4.65278 11.7361 5.83333 12.2222 7.22222 12.2222Z"})})})},pm=i.css`
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: flex-start;
|
|
109
|
+
gap: 0;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
|
|
112
|
+
svg {
|
|
113
|
+
height: 1rem;
|
|
114
|
+
width: 1rem;
|
|
115
|
+
color: ${w("neutral",700)};
|
|
116
|
+
margin-top: ${k(100)};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: color-mix(
|
|
121
|
+
in srgb,
|
|
122
|
+
${w("primary",500)} 20%,
|
|
123
|
+
transparent
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&[data-highlighted] {
|
|
128
|
+
background-color: color-mix(
|
|
129
|
+
in srgb,
|
|
130
|
+
${w("primary",500)} 20%,
|
|
131
|
+
transparent
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
&:not(:hover) {
|
|
135
|
+
background-color: ${w("neutral",100)};
|
|
136
|
+
outline-color: ${w("primary",700)};
|
|
137
|
+
box-shadow:
|
|
138
|
+
0 0 0 0.125rem ${w("primary",700)},
|
|
139
|
+
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:active,
|
|
144
|
+
&[data-highlighted]:active {
|
|
145
|
+
background-color: color-mix(
|
|
146
|
+
in srgb,
|
|
147
|
+
${w("primary",500)} 40%,
|
|
148
|
+
transparent
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&[data-disabled] {
|
|
153
|
+
cursor: not-allowed;
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
outline: none;
|
|
156
|
+
box-shadow: none;
|
|
157
|
+
|
|
158
|
+
.ds-menu-item-label,
|
|
159
|
+
.ds-menu-item-caption {
|
|
160
|
+
color: ${w("neutral",600)};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
`,fm=(e=!1)=>i.css`
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
color: ${w("neutral",700)};
|
|
168
|
+
width: 100%;
|
|
169
|
+
|
|
170
|
+
.ds-menu-item-label {
|
|
171
|
+
font-size: ${C(400)};
|
|
172
|
+
line-height: ${S(600)};
|
|
173
|
+
font-weight: ${e?700:400};
|
|
174
|
+
color: ${w("neutral",900)};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ds-menu-item-caption {
|
|
178
|
+
font-size: ${C(300)};
|
|
179
|
+
line-height: ${S(500)};
|
|
180
|
+
font-weight: 400;
|
|
181
|
+
color: ${w("neutral",700)};
|
|
182
|
+
}
|
|
183
|
+
`,mm=({item:t,isLast:n,isChecked:o=!1})=>{return r.jsx(e.Menu.Item,{css:pm,value:t.value||t.label||"",disabled:t.disabled,role:"menuitem","aria-label":t.label,children:t.children?t.children:r.jsxs(r.Fragment,{children:[t.startIcon,r.jsxs("div",{css:(s=!!t.startIcon,a=!!t.endIcon,i.css`
|
|
184
|
+
width: 100%;
|
|
185
|
+
margin-left: ${s?k(200):"0"};
|
|
186
|
+
margin-right: ${a?k(200):"0"};
|
|
187
|
+
`),children:[r.jsxs("div",{css:fm(o),children:[r.jsx("p",{className:"ds-menu-item-label",children:t.label}),t.command?r.jsx(e.Menu.ItemCommand,{"aria-label":`Shortcut ${t.command}`,children:t.command}):null]}),t.caption?r.jsx("p",{className:"ds-menu-item-caption",children:t.caption}):null]}),o?r.jsx(Rf,{}):t.endIcon]})});var s,a},gm=(e,t)=>i.css`
|
|
107
188
|
display: flex;
|
|
108
189
|
align-items: center;
|
|
109
190
|
justify-content: center;
|
|
@@ -127,7 +208,7 @@
|
|
|
127
208
|
outline-style: solid;
|
|
128
209
|
outline-width: ${E(200)};
|
|
129
210
|
}
|
|
130
|
-
`,
|
|
211
|
+
`,vm=i.css`
|
|
131
212
|
position: absolute;
|
|
132
213
|
left: 1rem;
|
|
133
214
|
width: 1rem;
|
|
@@ -155,7 +236,7 @@
|
|
|
155
236
|
border-bottom: ${E(100)} solid
|
|
156
237
|
${w("neutral",600)};
|
|
157
238
|
}
|
|
158
|
-
`,
|
|
239
|
+
`,bm=i.css`
|
|
159
240
|
width: 14rem;
|
|
160
241
|
border: ${E(100)} solid ${w("neutral",600)};
|
|
161
242
|
box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
|
|
@@ -164,7 +245,7 @@
|
|
|
164
245
|
display: flex;
|
|
165
246
|
flex-direction: column;
|
|
166
247
|
gap: ${k(200)};
|
|
167
|
-
`,
|
|
248
|
+
`,ym=i.css`
|
|
168
249
|
display: flex;
|
|
169
250
|
justify-content: space-between;
|
|
170
251
|
align-items: center;
|
|
@@ -214,94 +295,16 @@
|
|
|
214
295
|
box-shadow: none;
|
|
215
296
|
}
|
|
216
297
|
}
|
|
217
|
-
`,vm=i.css`
|
|
218
|
-
display: flex;
|
|
219
|
-
align-items: flex-start;
|
|
220
|
-
gap: 0;
|
|
221
|
-
cursor: pointer;
|
|
222
|
-
|
|
223
|
-
svg {
|
|
224
|
-
height: 1rem;
|
|
225
|
-
width: 1rem;
|
|
226
|
-
color: ${w("neutral",700)};
|
|
227
|
-
margin-top: ${k(100)};
|
|
228
|
-
in srgb,
|
|
229
|
-
${w("primary",500)} 20%,
|
|
230
|
-
transparent
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&:active {
|
|
235
|
-
background-color: color-mix(
|
|
236
|
-
in srgb,
|
|
237
|
-
${w("primary",500)} 40%,
|
|
238
|
-
transparent
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&[data-highlighted] {
|
|
243
|
-
background-color: color-mix(
|
|
244
|
-
in srgb,
|
|
245
|
-
${w("primary",500)} 20%,
|
|
246
|
-
transparent
|
|
247
|
-
);
|
|
248
|
-
|
|
249
|
-
&:not(:hover) {
|
|
250
|
-
background-color: ${w("neutral",100)};
|
|
251
|
-
outline-color: ${w("primary",700)};
|
|
252
|
-
box-shadow:
|
|
253
|
-
0 0 0 0.125rem ${w("primary",700)},
|
|
254
|
-
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&[data-disabled] {
|
|
259
|
-
cursor: not-allowed;
|
|
260
|
-
background-color: transparent;
|
|
261
|
-
outline: none;
|
|
262
|
-
box-shadow: none;
|
|
263
|
-
|
|
264
|
-
.ds-menu-item-label,
|
|
265
|
-
.ds-menu-item-caption {
|
|
266
|
-
color: ${w("neutral",600)};
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
`,bm=i.css`
|
|
270
|
-
display: flex;
|
|
271
|
-
align-items: center;
|
|
272
|
-
justify-content: space-between;
|
|
273
|
-
color: ${w("neutral",700)};
|
|
274
|
-
width: 100%;
|
|
275
|
-
|
|
276
|
-
.ds-menu-item-label {
|
|
277
|
-
font-size: ${C(400)};
|
|
278
|
-
line-height: ${S(600)};
|
|
279
|
-
font-weight: 400;
|
|
280
|
-
color: ${w("neutral",900)};
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.ds-menu-item-caption {
|
|
284
|
-
font-size: ${C(300)};
|
|
285
|
-
line-height: ${S(500)};
|
|
286
|
-
font-weight: 400;
|
|
287
|
-
color: ${w("neutral",700)};
|
|
288
|
-
}
|
|
289
|
-
`,ym=i.css`
|
|
290
|
-
font-weight: 700;
|
|
291
298
|
`,xm=i.css`
|
|
292
299
|
font-size: ${C(300)};
|
|
293
300
|
line-height: ${S(500)};
|
|
294
301
|
font-weight: 700;
|
|
295
302
|
color: ${w("neutral",900)};
|
|
296
|
-
`,wm=({
|
|
297
|
-
width: 100%;
|
|
298
|
-
margin-left: ${s?k(200):"0"};
|
|
299
|
-
margin-right: ${a?k(200):"0"};
|
|
300
|
-
`),children:[r.jsxs("div",{css:bm,children:[r.jsx("p",{css:o?ym:void 0,className:"ds-menu-item-label",children:t.label}),t.command?r.jsx(e.Menu.ItemCommand,{"aria-label":`Shortcut ${t.command}`,children:t.command}):null]}),t.caption?r.jsx("p",{className:"ds-menu-item-caption",children:t.caption}):null]}),o?r.jsx(Rf,{}):t.endIcon]})}),n?null:r.jsx(e.Menu.Separator,{borderColor:"var(--chakra-colors-neutral-300)"})]});var s,a},Cm=({theme:t="light",label:o,fontSize:i,items:s,groups:a,onSelect:l,customTrigger:c,selectionMode:d,defaultSelectedValues:u=[]})=>{const[h,p]=n.useState(!1),[f,m]=n.useState(new Set(u)),g=n.useRef(null);return n.useEffect((()=>{if(!h||!g.current)return;const e=new window.IntersectionObserver((([e])=>{e.isIntersecting||p(!1)}),{threshold:.01});return e.observe(g.current),()=>{e.disconnect()}}),[h]),r.jsxs(e.Menu.Root,{onSelect:({value:e})=>{m((t=>{const n=new Set(t);return"radio"===d?(n.clear(),n.add(e)):n.has(e)?n.delete(e):n.add(e),n})),l&&l(e)},onOpenChange:({open:e})=>p(e),open:h,children:[r.jsx(e.Menu.Trigger,{css:pm(t,i),asChild:!0,children:c||r.jsxs("button",{type:"button",ref:g,children:[o,r.jsx(If,{marginLeft:"0.375rem",rotate:h?"180":"0",height:"0.875rem",width:"0.875rem"})]})}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsxs(e.Menu.Content,{css:mm,role:"menu","aria-label":o||"Menu",children:[r.jsx("div",{css:fm}),s?.map(((t,o)=>{if(t.submenu){const[i,s]=n.useState(!1);return r.jsxs(e.Menu.Root,{positioning:{placement:"right-start",gutter:2},onSelect:({value:e})=>l&&l(e),onOpenChange:({open:e})=>s(e),open:i,children:[r.jsxs(e.Menu.TriggerItem,{css:gm,role:"menuitem","aria-haspopup":"true","aria-expanded":i?"true":"false",children:[t.label,r.jsx(If,{rotate:"270",color:"var(--chakra-colors-neutral-700)"})]}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{css:mm,role:"menu","aria-label":`${t.label} submenu`,children:t.submenu.map(((e,n)=>r.jsx(wm,{item:e,isLast:n===(t.submenu?.length||0)-1},e.value)))})})})]},`${t.value}-${o}`)}return r.jsx(wm,{item:t,isLast:o===s.length-1,isChecked:!!d&&f.has(t.value||t.label||"")},`${t.value}-${o}`)})),a?.map(((t,o)=>r.jsxs(n.Fragment,{children:[r.jsxs(e.Menu.ItemGroup,{role:"group","aria-labelledby":`group-${o}`,children:[r.jsx(e.Menu.ItemGroupLabel,{id:`group-${o}`,css:xm,children:t.title}),t.items?.map((e=>r.jsx(wm,{item:e,isLast:!0,isChecked:!!d&&f.has(e.value||e.label||"")},e.value)))]}),o!==a.length-1?r.jsx(e.Menu.Separator,{borderColor:"var(--chakra-colors-neutral-300)"}):null]},t.title)))]})})})]})},km=i.css`
|
|
303
|
+
`,wm=({theme:t="light",label:o,fontSize:i,items:s,groups:a,onSelect:l,customTrigger:c,selectionMode:d,defaultSelectedValues:u=[]})=>{const[h,p]=n.useState(!1),[f,m]=n.useState(new Set(u)),g=n.useRef(null);return n.useEffect((()=>{if(!h||!g.current)return;const e=new window.IntersectionObserver((([e])=>{e.isIntersecting||p(!1)}),{threshold:.01});return e.observe(g.current),()=>{e.disconnect()}}),[h]),r.jsxs(e.Menu.Root,{closeOnSelect:"multiple"!==d,onSelect:({value:e})=>{m((t=>{const n=new Set(t);return"radio"===d?(n.clear(),n.add(e)):n.has(e)?n.delete(e):n.add(e),n})),l&&l(e)},onOpenChange:({open:e})=>p(e),open:h,children:[r.jsx(e.Menu.Trigger,{css:gm(t,i),asChild:!0,children:c||r.jsxs("button",{type:"button",ref:g,children:[o,r.jsx(If,{marginLeft:"0.375rem",rotate:h?"180":"0",height:"0.875rem",width:"0.875rem"})]})}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsxs(e.Menu.Content,{css:bm,role:"menu","aria-label":o||"Menu",children:[r.jsx("div",{css:vm}),s?.map(((t,o)=>{if(t.submenu){const[i,s]=n.useState(!1);return r.jsxs(e.Menu.Root,{positioning:{placement:"right-start",gutter:2},onSelect:({value:e})=>l&&l(e),onOpenChange:({open:e})=>s(e),open:i,children:[r.jsxs(e.Menu.TriggerItem,{css:ym,role:"menuitem","aria-haspopup":"true","aria-expanded":i?"true":"false",children:[t.label,r.jsx(If,{rotate:"270",color:"var(--chakra-colors-neutral-700)"})]}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{css:bm,role:"menu","aria-label":`${t.label} submenu`,children:t.submenu.map(((e,n)=>r.jsx(mm,{item:e,isLast:n===(t.submenu?.length||0)-1},e.value)))})})})]},`${t.value}-${o}`)}return r.jsx(mm,{item:t,isLast:o===s.length-1,isChecked:!!d&&f.has(t.value||t.label||"")},`${t.value}-${o}`)})),a?.map(((t,o)=>r.jsxs(n.Fragment,{children:[r.jsxs(e.Menu.ItemGroup,{role:"group","aria-labelledby":`group-${o}`,children:[r.jsx(e.Menu.ItemGroupLabel,{id:`group-${o}`,css:xm,children:t.title}),t.items?.map((e=>r.jsx(mm,{item:e,isLast:!0,isChecked:!!d&&f.has(e.value||e.label||"")},e.value)))]}),o!==a.length-1?r.jsx(e.Menu.Separator,{borderColor:"var(--chakra-colors-neutral-300)"}):null]},t.title)))]})})})]})},Cm=i.css`
|
|
301
304
|
&:focus-visible {
|
|
302
305
|
outline: none;
|
|
303
306
|
}
|
|
304
|
-
`,
|
|
307
|
+
`,km=e=>i.css`
|
|
305
308
|
background-color: ${w("neutral",800)};
|
|
306
309
|
border-radius: ${$(300)};
|
|
307
310
|
border: ${E(100)} solid ${w("neutral",800)};
|
|
@@ -317,7 +320,7 @@
|
|
|
317
320
|
}
|
|
318
321
|
|
|
319
322
|
${"text"===e&&`\n background-color: transparent;\n border: none;\n box-shadow: none;\n color: ${w("neutral",800)};\n font-size: ${C(400)};\n line-height: ${S(600)};\n text-shadow: 0 0 ${E(100)} ${w("neutral",100)};\n `}
|
|
320
|
-
`,$m=({children:t,content:o,showArrow:i=!0,disabled:s,position:a="bottom",variant:l="pill",portalRef:c,openDelay:d=0,closeDelay:u=0})=>{const[h,p]=n.useState(!1);return s?t:r.jsxs(e.Tooltip.Root,{positioning:{placement:a,offset:"pill"===l?void 0:{mainAxis:0,crossAxis:0}},openDelay:d,closeDelay:u,open:h,onOpenChange:({open:e})=>p(e),children:[r.jsx(e.Tooltip.Trigger,{tabIndex:0,onClick:()=>p(!0),css:km,children:t}),r.jsx(e.Portal,{disabled:s,container:c,children:r.jsx(e.Tooltip.Positioner,{children:r.jsxs(e.Tooltip.Content,{css:Sm(l),children:[i&&"pill"===l?r.jsx(e.Tooltip.Arrow,{children:r.jsx(e.Tooltip.ArrowTip,{})}):null,o]})})})]})},Em=e=>{const{icon:n,label:r,active:o,...i}=e;return t.jsx($m,{content:r,children:t.jsx(Of,{icon:t.jsx("span",{"data-rte-icon":"true",children:n}),"aria-label":r,"aria-pressed":o,...i})})};function Mm(e){const{label:n,icon:r,isDisabled:o,isActive:i,command:s}=e,a=e=>{const{editor:a}=xf();if(!a)return null;const{label:l,...c}=e,d=l||n,u=!!o&&o(a),h=!!i&&i(a);return t.jsx(Em,{label:d,icon:t.jsx(r,{}),active:h,onClick:()=>s(a),disabled:u,...c})};return a.displayName=`BooleanControl(${n})`,a}function jm(n){const{label:r,options:o,getValue:i,command:s,isDisabled:a}=n,l=({label:n}={})=>{const{editor:l}=xf();if(!l)return null;const c=n||r,d=i(l),u=!!a&&a(l),h=o.find((e=>e.value===d));return t.jsx(Cm,{label:c,items:o.map((e=>({label:e.label,value:e.value}))),onSelect:e=>s(l,e),customTrigger:t.jsx(e.Box,{css:{"& button":{fontWeight:"normal"},'&[data-part="trigger"]':{padding:0}},children:t.jsx(jf,{variant:"secondary",size:"small",disabled:u,label:h?.label||c,"aria-label":`${c}: ${h?.label||c}`,rightIcon:t.jsx(If,{width:"0.875rem",height:"0.875rem"}),borderColor:w("neutral",400)})})})};return l.displayName=`OptionControl(${r})`,l}const Tm=jm({label:"Font Family",options:[{value:"default",label:"Default"},{value:"Arial",label:"Arial"},{value:"Georgia",label:"Georgia"},{value:"monospace",label:"Monospace"}],getValue:e=>e.getAttributes("textStyle")?.fontFamily||"default",command:(e,t)=>{"default"!==t?e.chain().focus().setFontFamily(t).run():e.chain().focus().unsetFontFamily().run()}}),Om=jm({label:"Font Size",options:[{value:"12px",label:"12px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"},{value:"18px",label:"18px"}],getValue:e=>e.getAttributes("textStyle")?.fontSize||"16px",command:(e,t)=>{e.chain().focus().setFontSize(t).run()}}),Lm=Mm({label:"Bold",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11.2552",height:"14",viewBox:"0 0 11.2552 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.19444 14H0V0H6.61111C7.39057 4.63933e-05 8.15373 0.223185 8.81044 0.643056C9.46714 1.06293 9.98996 1.66199 10.3171 2.36946C10.6443 3.07694 10.7621 3.86327 10.6567 4.63557C10.5513 5.40787 10.227 6.13386 9.72222 6.72778C10.3816 7.25508 10.8612 7.97379 11.0952 8.78497C11.3292 9.59616 11.3061 10.4599 11.0289 11.2574C10.7517 12.0548 10.2341 12.7468 9.54742 13.2379C8.86074 13.7291 8.03869 13.9953 7.19444 14ZM2.33333 11.6667H7.17889C7.4087 11.6667 7.63626 11.6214 7.84858 11.5335C8.0609 11.4455 8.25382 11.3166 8.41633 11.1541C8.57883 10.9916 8.70773 10.7987 8.79568 10.5864C8.88362 10.374 8.92889 10.1465 8.92889 9.91667C8.92889 9.68685 8.88362 9.45929 8.79568 9.24697C8.70773 9.03465 8.57883 8.84173 8.41633 8.67923C8.25382 8.51673 8.0609 8.38782 7.84858 8.29988C7.63626 8.21193 7.4087 8.16667 7.17889 8.16667H2.33333V11.6667ZM2.33333 5.83333H6.61111C6.84092 5.83333 7.06849 5.78807 7.28081 5.70012C7.49313 5.61218 7.68604 5.48327 7.84855 5.32077C8.01105 5.15827 8.13995 4.96535 8.2279 4.75303C8.31585 4.54071 8.36111 4.31315 8.36111 4.08333C8.36111 3.85352 8.31585 3.62596 8.2279 3.41364C8.13995 3.20132 8.01105 3.0084 7.84855 2.8459C7.68604 2.68339 7.49313 2.55449 7.28081 2.46654C7.06849 2.3786 6.84092 2.33333 6.61111 2.33333H2.33333V5.83333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleBold().run(),isActive:e=>e.isActive("bold")}),Am=Mm({label:"Italic",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M13 1.44444V0H3.61111V1.44444H7.32333L4.16722 11.5556H0V13H9.38889V11.5556H5.67667L8.83278 1.44444H13Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleItalic().run(),isActive:e=>e.isActive("italic")}),Rm=Mm({label:"Underline",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14.6087",height:"14",viewBox:"0 0 14.6087 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 12.7826H14.6087V14H0V12.7826ZM7.30435 10.9565C6.1743 10.9565 5.09053 10.5076 4.29146 9.70854C3.49239 8.90947 3.04348 7.8257 3.04348 6.69565V0H4.26087V6.69565C4.26087 7.50283 4.58152 8.27695 5.15228 8.84772C5.72305 9.41848 6.49717 9.73913 7.30435 9.73913C8.11153 9.73913 8.88565 9.41848 9.45641 8.84772C10.0272 8.27695 10.3478 7.50283 10.3478 6.69565V0H11.5652V6.69565C11.5652 7.8257 11.1163 8.90947 10.3172 9.70854C9.51817 10.5076 8.4344 10.9565 7.30435 10.9565V10.9565Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleUnderline().run(),isActive:e=>e.isActive("underline")}),Nm=Mm({label:"Strikethrough",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"13.3507",viewBox:"0 0 16 13.3507",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 6.01707H9.304C9.00798 5.93748 8.7106 5.86302 8.412 5.79374C6.54 5.35107 5.48133 5.02707 5.48133 3.51174C5.46613 3.25015 5.50486 2.98823 5.59512 2.74224C5.68537 2.49624 5.82523 2.27143 6.006 2.08174C6.57226 1.61607 7.28154 1.35948 8.01467 1.35507C9.90133 1.30841 10.7713 1.94841 11.4827 2.92174L12.5593 2.13507C12.0554 1.41131 11.3683 0.834307 10.5683 0.463013C9.76831 0.0917179 8.8841 -0.0605588 8.006 0.0217402C6.92734 0.0286269 5.88679 0.421436 5.07267 1.12907C4.7641 1.44207 4.52292 1.81496 4.364 2.22475C4.20509 2.63454 4.1318 3.07254 4.14867 3.51174C4.11943 3.99233 4.20971 4.47268 4.41143 4.90986C4.61316 5.34704 4.92004 5.72744 5.30467 6.01707H0V7.35041H9.10133C10.4127 7.73041 11.1967 8.22507 11.2167 9.58907C11.2383 9.88044 11.1984 10.1731 11.0993 10.448C11.0003 10.7229 10.8445 10.9738 10.642 11.1844C9.93654 11.7405 9.0601 12.0348 8.162 12.0171C7.49168 11.9977 6.83454 11.8261 6.24031 11.5152C5.64608 11.2044 5.1303 10.7626 4.732 10.2231L3.71 11.0791C4.22782 11.7691 4.89593 12.3323 5.6637 12.7258C6.43148 13.1194 7.27876 13.3329 8.14133 13.3504H8.208C9.43919 13.3645 10.6341 12.934 11.5733 12.1377C11.9067 11.8017 12.1658 11.3994 12.334 10.957C12.5023 10.5145 12.5758 10.0417 12.55 9.56907C12.5749 8.76057 12.3021 7.97106 11.7833 7.35041H16V6.01707Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleStrike().run(),isActive:e=>e.isActive("strike")});Mm({label:"Code",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"m16 18 6-6-6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"m8 6-6 6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),command:e=>e.chain().focus().toggleCode().run(),isActive:e=>e.isActive("code")});const Dm=Mm({label:"Bullet List",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"12.3077",viewBox:"0 0 16 12.3077",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M1.84615 3.69231C2.86576 3.69231 3.69231 2.86576 3.69231 1.84615C3.69231 0.826551 2.86576 0 1.84615 0C0.826551 0 0 0.826551 0 1.84615C0 2.86576 0.826551 3.69231 1.84615 3.69231Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M1.84615 12.3077C2.86576 12.3077 3.69231 11.4811 3.69231 10.4615C3.69231 9.44194 2.86576 8.61538 1.84615 8.61538C0.826551 8.61538 0 9.44194 0 10.4615C0 11.4811 0.826551 12.3077 1.84615 12.3077Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M7.38462 9.84615H16V11.0769H7.38462V9.84615ZM7.38462 1.23077H16V2.46154H7.38462V1.23077Z",fill:"black",stroke:"none"})]})}),command:e=>e.chain().focus().toggleBulletList().run(),isActive:e=>e.isActive("bulletList")}),Im=Mm({label:"Ordered List",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.38462 11.25H16V12.5H7.38462V11.25ZM7.38462 2.5H16V3.75H7.38462V2.5ZM2.46154 5V0H1.23077V0.625H0V1.875H1.23077V5H0V6.25H3.69231V5H2.46154ZM3.69231 15H0V12.5C0 12.1685 0.12967 11.8505 0.360484 11.6161C0.591298 11.3817 0.904349 11.25 1.23077 11.25H2.46154V10H0V8.75H2.46154C2.78796 8.75 3.10101 8.8817 3.33182 9.11612C3.56264 9.35054 3.69231 9.66848 3.69231 10V11.25C3.69231 11.5815 3.56264 11.8995 3.33182 12.1339C3.10101 12.3683 2.78796 12.5 2.46154 12.5H1.23077V13.75H3.69231V15Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleOrderedList().run(),isActive:e=>e.isActive("orderedList")}),Pm=Mm({label:"Link",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"12.2513",viewBox:"0 0 16 12.2513",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M15.0602 0.939796C14.7633 0.641913 14.4106 0.405559 14.0222 0.244287C13.6338 0.0830158 13.2174 0 12.7969 0C12.3763 0 11.9599 0.0830158 11.5716 0.244287C11.1832 0.405559 10.8304 0.641913 10.5336 0.939796L11.2898 1.69601C11.4881 1.49774 11.7234 1.34047 11.9825 1.23317C12.2415 1.12587 12.5192 1.07064 12.7996 1.07064C13.0799 1.07064 13.3576 1.12587 13.6166 1.23317C13.8757 1.34047 14.111 1.49774 14.3093 1.69601C14.5076 1.89427 14.6649 2.12965 14.7722 2.38869C14.8795 2.64774 14.9347 2.92538 14.9347 3.20577C14.9347 3.48616 14.8795 3.7638 14.7722 4.02285C14.6649 4.28189 14.5076 4.51727 14.3093 4.71553L10.049 8.97588C9.64926 9.37629 9.10686 9.60152 8.54109 9.60202C7.97532 9.60252 7.43252 9.37825 7.03211 8.97854C6.63169 8.57883 6.40646 8.03643 6.40596 7.47066C6.40546 6.90489 6.62974 6.3621 7.02944 5.96168L7.78033 5.20547L7.02944 4.44926L6.27323 5.20547C5.97535 5.50232 5.73899 5.85505 5.57772 6.24344C5.41645 6.63183 5.33344 7.04824 5.33344 7.46878C5.33344 7.88932 5.41645 8.30572 5.57772 8.69411C5.73899 9.0825 5.97535 9.43524 6.27323 9.73209C6.8758 10.3269 7.68984 10.6583 8.53654 10.6534C8.9587 10.6551 9.37701 10.5732 9.76732 10.4123C10.1576 10.2514 10.5122 10.0148 10.8105 9.71611L15.0709 5.45576C15.6678 4.85524 16.002 4.04232 16 3.19558C15.998 2.34883 15.66 1.5375 15.0602 0.939796Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M1.71466 10.5575C1.5158 10.3596 1.35801 10.1243 1.25034 9.86524C1.14267 9.60615 1.08724 9.32834 1.08724 9.04777C1.08724 8.7672 1.14267 8.48939 1.25034 8.2303C1.35801 7.97121 1.5158 7.73594 1.71466 7.53801L5.97501 3.27766C6.17294 3.07881 6.40821 2.92101 6.6673 2.81334C6.92639 2.70567 7.2042 2.65024 7.48477 2.65024C7.76534 2.65024 8.04315 2.70567 8.30224 2.81334C8.56133 2.92101 8.7966 3.07881 8.99453 3.27766C9.19213 3.47715 9.34768 3.71428 9.45196 3.97498C9.55624 4.23569 9.60714 4.51468 9.60163 4.79541C9.60325 5.07702 9.54902 5.35616 9.44207 5.61668C9.33512 5.8772 9.17758 6.11392 8.97855 6.31316L7.84956 7.45813L8.60577 8.21434L9.73476 7.08535C10.3357 6.48437 10.6734 5.66928 10.6734 4.81938C10.6734 3.96947 10.3357 3.15438 9.73476 2.5534C9.13379 1.95243 8.3187 1.61481 7.46879 1.61481C6.61889 1.61481 5.80379 1.95243 5.20282 2.5534L0.942471 6.81375C0.643787 7.1107 0.406756 7.46376 0.245012 7.85265C0.0832669 8.24153 0 8.65855 0 9.07972C0 9.5009 0.0832669 9.91792 0.245012 10.3068C0.406756 10.6957 0.643787 11.0487 0.942471 11.3457C1.54894 11.936 2.36484 12.2616 3.21111 12.251C4.06483 12.2518 4.88421 11.9149 5.49039 11.3137L4.73418 10.5575C4.53625 10.7564 4.30098 10.9142 4.04189 11.0219C3.7828 11.1295 3.50499 11.185 3.22442 11.185C2.94385 11.185 2.66604 11.1295 2.40695 11.0219C2.14786 10.9142 1.91259 10.7564 1.71466 10.5575Z",fill:"black",stroke:"none"})]})}),command:e=>{if(e.isActive("link"))return void e.chain().focus().unsetLink().run();const{from:t,to:n,empty:r}=e.state.selection,o=e.state.doc.textBetween(t,n," ").trim(),i=/^https?:\/\//i.test(o);let s="https://";o&&(s=i?o:`https://${o}`),r?e.chain().focus().insertContent(`<a href="${s}">${s}</a>`).run():e.chain().focus().extendMarkRange("link").setLink({href:s}).run()},isActive:e=>e.isActive("link")}),zm=Mm({label:"Image",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.77778 16C1.28889 16 0.87037 15.8259 0.522222 15.4778C0.174074 15.1296 0 14.7111 0 14.2222V1.77778C0 1.28889 0.174074 0.87037 0.522222 0.522222C0.87037 0.174074 1.28889 0 1.77778 0H14.2222C14.7111 0 15.1296 0.174074 15.4778 0.522222C15.8259 0.87037 16 1.28889 16 1.77778V14.2222C16 14.7111 15.8259 15.1296 15.4778 15.4778C15.1296 15.8259 14.7111 16 14.2222 16H1.77778ZM2.66667 12.4444H13.3333L10 8L7.33333 11.5556L5.33333 8.88889L2.66667 12.4444Z",fill:"black",stroke:"none"})})}),command:e=>{if("undefined"==typeof document)return;const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{const n=t.files?.[0];if(!n)return;const r=new FileReader;r.onload=()=>{"string"==typeof r.result&&e.chain().focus().insertContent({type:"image",attrs:{src:r.result,alt:n.name}}).run()},r.readAsDataURL(n)},t.click()}}),Vm=Mm({label:"Undo",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.6667 3.33333H2.54333L4.93467 0.942667L4 0L0 4L4 8L4.93467 7.05667L2.54533 4.66667H10.6667C11.7275 4.66667 12.7449 5.08809 13.4951 5.83824C14.2452 6.58839 14.6667 7.6058 14.6667 8.66667C14.6667 9.72753 14.2452 10.7449 13.4951 11.4951C12.7449 12.2452 11.7275 12.6667 10.6667 12.6667H5.33333V14H10.6667C12.0812 14 13.4377 13.4381 14.4379 12.4379C15.4381 11.4377 16 10.0812 16 8.66667C16 7.25218 15.4381 5.89562 14.4379 4.89543C13.4377 3.89524 12.0812 3.33333 10.6667 3.33333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().undo().run(),isDisabled:e=>!e.can().undo()}),Bm=Mm({label:"Redo",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 3.33333H13.4567L11.0653 0.942667L12 0L16 4L12 8L11.0653 7.05667L13.4547 4.66667H5.33333C4.27247 4.66667 3.25505 5.08809 2.50491 5.83824C1.75476 6.58839 1.33333 7.6058 1.33333 8.66667C1.33333 9.72753 1.75476 10.7449 2.50491 11.4951C3.25505 12.2452 4.27247 12.6667 5.33333 12.6667H10.6667V14H5.33333C3.91885 14 2.56229 13.4381 1.5621 12.4379C0.561903 11.4377 0 10.0812 0 8.66667C0 7.25218 0.561903 5.89562 1.5621 4.89543C2.56229 3.89524 3.91885 3.33333 5.33333 3.33333V3.33333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().redo().run(),isDisabled:e=>!e.can().redo()}),_m=l.forwardRef(((n,r)=>{const{editor:o,children:i,css:s,disabled:a,...c}=n,d=l.useMemo((()=>({editor:o})),[o]);return t.jsx(yf.Provider,{value:d,children:t.jsx(e.Box,{ref:r,"data-disabled":a||void 0,css:[wf,s],...c,children:i})})})),Hm={fixed:{bg:"bg",roundedTop:"l2",borderBottomWidth:"1px",p:"3"},floating:{bg:"bg.panel",roundedTop:"l2",shadow:"sm",p:"3"}},Fm={Root:_m,Toolbar:l.forwardRef(((n,r)=>{const{variant:o="fixed",css:i,...s}=n;return t.jsx(e.HStack,{ref:r,flexWrap:"wrap",separator:t.jsx(e.StackSeparator,{h:"5",alignSelf:"center"}),css:[Hm[o],i],...s})})),Content:l.forwardRef(((e,n)=>{const{editor:r}=xf();return r?t.jsx(sf,{editor:r,innerRef:n,...e}):null})),ControlGroup:l.forwardRef(((n,r)=>t.jsx(e.HStack,{ref:r,gap:"2",...n})))},qm=["undo","redo","fontFamily","fontSize","bold","italic","underline","strikethrough","bulletList","orderedList","link","image"],Wm={Google:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Google",leftIcon:t.jsx(om,{}),"aria-label":e||"Google Login",variant:"secondary",size:n,onClick:r}),Facebook:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Facebook",leftIcon:t.jsx(im,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:n,onClick:r}),X:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"X",leftIcon:t.jsx(sm,{}),"aria-label":e||"X Login",variant:"secondary",size:n,onClick:r}),Microsoft:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Microsoft",leftIcon:t.jsx(am,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:n,onClick:r})},Um=i.css`
|
|
323
|
+
`,Sm=({children:t,content:o,showArrow:i=!0,disabled:s,position:a="bottom",variant:l="pill",portalRef:c,openDelay:d=0,closeDelay:u=0})=>{const[h,p]=n.useState(!1);return s?t:r.jsxs(e.Tooltip.Root,{positioning:{placement:a,offset:"pill"===l?void 0:{mainAxis:0,crossAxis:0}},openDelay:d,closeDelay:u,open:h,onOpenChange:({open:e})=>p(e),children:[r.jsx(e.Tooltip.Trigger,{tabIndex:0,onClick:()=>p(!0),css:Cm,children:t}),r.jsx(e.Portal,{disabled:s,container:c,children:r.jsx(e.Tooltip.Positioner,{children:r.jsxs(e.Tooltip.Content,{css:km(l),children:[i&&"pill"===l?r.jsx(e.Tooltip.Arrow,{children:r.jsx(e.Tooltip.ArrowTip,{})}):null,o]})})})]})},$m=e=>{const{icon:n,label:r,active:o,...i}=e;return t.jsx(Sm,{content:r,children:t.jsx(Of,{icon:t.jsx("span",{"data-rte-icon":"true",children:n}),"aria-label":r,"aria-pressed":o,...i})})};function Em(e){const{label:n,icon:r,isDisabled:o,isActive:i,command:s}=e,a=e=>{const{editor:a}=xf();if(!a)return null;const{label:l,...c}=e,d=l||n,u=!!o&&o(a),h=!!i&&i(a);return t.jsx($m,{label:d,icon:t.jsx(r,{}),active:h,onClick:()=>s(a),disabled:u,...c})};return a.displayName=`BooleanControl(${n})`,a}function Mm(n){const{label:r,options:o,getValue:i,command:s,isDisabled:a}=n,l=({label:n}={})=>{const{editor:l}=xf();if(!l)return null;const c=n||r,d=i(l),u=!!a&&a(l),h=o.find((e=>e.value===d));return t.jsx(wm,{label:c,items:o.map((e=>({label:e.label,value:e.value}))),onSelect:e=>s(l,e),customTrigger:t.jsx(e.Box,{css:{"& button":{fontWeight:"normal"},'&[data-part="trigger"]':{padding:0}},children:t.jsx(jf,{variant:"secondary",size:"small",disabled:u,label:h?.label||c,"aria-label":`${c}: ${h?.label||c}`,rightIcon:t.jsx(If,{width:"0.875rem",height:"0.875rem"}),borderColor:w("neutral",400)})})})};return l.displayName=`OptionControl(${r})`,l}const jm=Mm({label:"Font Family",options:[{value:"default",label:"Default"},{value:"Arial",label:"Arial"},{value:"Georgia",label:"Georgia"},{value:"monospace",label:"Monospace"}],getValue:e=>e.getAttributes("textStyle")?.fontFamily||"default",command:(e,t)=>{"default"!==t?e.chain().focus().setFontFamily(t).run():e.chain().focus().unsetFontFamily().run()}}),Tm=Mm({label:"Font Size",options:[{value:"12px",label:"12px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"},{value:"18px",label:"18px"}],getValue:e=>e.getAttributes("textStyle")?.fontSize||"16px",command:(e,t)=>{e.chain().focus().setFontSize(t).run()}}),Om=Em({label:"Bold",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"11.2552",height:"14",viewBox:"0 0 11.2552 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.19444 14H0V0H6.61111C7.39057 4.63933e-05 8.15373 0.223185 8.81044 0.643056C9.46714 1.06293 9.98996 1.66199 10.3171 2.36946C10.6443 3.07694 10.7621 3.86327 10.6567 4.63557C10.5513 5.40787 10.227 6.13386 9.72222 6.72778C10.3816 7.25508 10.8612 7.97379 11.0952 8.78497C11.3292 9.59616 11.3061 10.4599 11.0289 11.2574C10.7517 12.0548 10.2341 12.7468 9.54742 13.2379C8.86074 13.7291 8.03869 13.9953 7.19444 14ZM2.33333 11.6667H7.17889C7.4087 11.6667 7.63626 11.6214 7.84858 11.5335C8.0609 11.4455 8.25382 11.3166 8.41633 11.1541C8.57883 10.9916 8.70773 10.7987 8.79568 10.5864C8.88362 10.374 8.92889 10.1465 8.92889 9.91667C8.92889 9.68685 8.88362 9.45929 8.79568 9.24697C8.70773 9.03465 8.57883 8.84173 8.41633 8.67923C8.25382 8.51673 8.0609 8.38782 7.84858 8.29988C7.63626 8.21193 7.4087 8.16667 7.17889 8.16667H2.33333V11.6667ZM2.33333 5.83333H6.61111C6.84092 5.83333 7.06849 5.78807 7.28081 5.70012C7.49313 5.61218 7.68604 5.48327 7.84855 5.32077C8.01105 5.15827 8.13995 4.96535 8.2279 4.75303C8.31585 4.54071 8.36111 4.31315 8.36111 4.08333C8.36111 3.85352 8.31585 3.62596 8.2279 3.41364C8.13995 3.20132 8.01105 3.0084 7.84855 2.8459C7.68604 2.68339 7.49313 2.55449 7.28081 2.46654C7.06849 2.3786 6.84092 2.33333 6.61111 2.33333H2.33333V5.83333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleBold().run(),isActive:e=>e.isActive("bold")}),Lm=Em({label:"Italic",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M13 1.44444V0H3.61111V1.44444H7.32333L4.16722 11.5556H0V13H9.38889V11.5556H5.67667L8.83278 1.44444H13Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleItalic().run(),isActive:e=>e.isActive("italic")}),Am=Em({label:"Underline",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"14.6087",height:"14",viewBox:"0 0 14.6087 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M0 12.7826H14.6087V14H0V12.7826ZM7.30435 10.9565C6.1743 10.9565 5.09053 10.5076 4.29146 9.70854C3.49239 8.90947 3.04348 7.8257 3.04348 6.69565V0H4.26087V6.69565C4.26087 7.50283 4.58152 8.27695 5.15228 8.84772C5.72305 9.41848 6.49717 9.73913 7.30435 9.73913C8.11153 9.73913 8.88565 9.41848 9.45641 8.84772C10.0272 8.27695 10.3478 7.50283 10.3478 6.69565V0H11.5652V6.69565C11.5652 7.8257 11.1163 8.90947 10.3172 9.70854C9.51817 10.5076 8.4344 10.9565 7.30435 10.9565V10.9565Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleUnderline().run(),isActive:e=>e.isActive("underline")}),Rm=Em({label:"Strikethrough",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"13.3507",viewBox:"0 0 16 13.3507",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 6.01707H9.304C9.00798 5.93748 8.7106 5.86302 8.412 5.79374C6.54 5.35107 5.48133 5.02707 5.48133 3.51174C5.46613 3.25015 5.50486 2.98823 5.59512 2.74224C5.68537 2.49624 5.82523 2.27143 6.006 2.08174C6.57226 1.61607 7.28154 1.35948 8.01467 1.35507C9.90133 1.30841 10.7713 1.94841 11.4827 2.92174L12.5593 2.13507C12.0554 1.41131 11.3683 0.834307 10.5683 0.463013C9.76831 0.0917179 8.8841 -0.0605588 8.006 0.0217402C6.92734 0.0286269 5.88679 0.421436 5.07267 1.12907C4.7641 1.44207 4.52292 1.81496 4.364 2.22475C4.20509 2.63454 4.1318 3.07254 4.14867 3.51174C4.11943 3.99233 4.20971 4.47268 4.41143 4.90986C4.61316 5.34704 4.92004 5.72744 5.30467 6.01707H0V7.35041H9.10133C10.4127 7.73041 11.1967 8.22507 11.2167 9.58907C11.2383 9.88044 11.1984 10.1731 11.0993 10.448C11.0003 10.7229 10.8445 10.9738 10.642 11.1844C9.93654 11.7405 9.0601 12.0348 8.162 12.0171C7.49168 11.9977 6.83454 11.8261 6.24031 11.5152C5.64608 11.2044 5.1303 10.7626 4.732 10.2231L3.71 11.0791C4.22782 11.7691 4.89593 12.3323 5.6637 12.7258C6.43148 13.1194 7.27876 13.3329 8.14133 13.3504H8.208C9.43919 13.3645 10.6341 12.934 11.5733 12.1377C11.9067 11.8017 12.1658 11.3994 12.334 10.957C12.5023 10.5145 12.5758 10.0417 12.55 9.56907C12.5749 8.76057 12.3021 7.97106 11.7833 7.35041H16V6.01707Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleStrike().run(),isActive:e=>e.isActive("strike")});Em({label:"Code",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"m16 18 6-6-6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"m8 6-6 6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),command:e=>e.chain().focus().toggleCode().run(),isActive:e=>e.isActive("code")});const Nm=Em({label:"Bullet List",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"12.3077",viewBox:"0 0 16 12.3077",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M1.84615 3.69231C2.86576 3.69231 3.69231 2.86576 3.69231 1.84615C3.69231 0.826551 2.86576 0 1.84615 0C0.826551 0 0 0.826551 0 1.84615C0 2.86576 0.826551 3.69231 1.84615 3.69231Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M1.84615 12.3077C2.86576 12.3077 3.69231 11.4811 3.69231 10.4615C3.69231 9.44194 2.86576 8.61538 1.84615 8.61538C0.826551 8.61538 0 9.44194 0 10.4615C0 11.4811 0.826551 12.3077 1.84615 12.3077Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M7.38462 9.84615H16V11.0769H7.38462V9.84615ZM7.38462 1.23077H16V2.46154H7.38462V1.23077Z",fill:"black",stroke:"none"})]})}),command:e=>e.chain().focus().toggleBulletList().run(),isActive:e=>e.isActive("bulletList")}),Dm=Em({label:"Ordered List",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M7.38462 11.25H16V12.5H7.38462V11.25ZM7.38462 2.5H16V3.75H7.38462V2.5ZM2.46154 5V0H1.23077V0.625H0V1.875H1.23077V5H0V6.25H3.69231V5H2.46154ZM3.69231 15H0V12.5C0 12.1685 0.12967 11.8505 0.360484 11.6161C0.591298 11.3817 0.904349 11.25 1.23077 11.25H2.46154V10H0V8.75H2.46154C2.78796 8.75 3.10101 8.8817 3.33182 9.11612C3.56264 9.35054 3.69231 9.66848 3.69231 10V11.25C3.69231 11.5815 3.56264 11.8995 3.33182 12.1339C3.10101 12.3683 2.78796 12.5 2.46154 12.5H1.23077V13.75H3.69231V15Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().toggleOrderedList().run(),isActive:e=>e.isActive("orderedList")}),Im=Em({label:"Link",icon:n=>t.jsx(e.Icon,{...n,children:t.jsxs("svg",{width:"16",height:"12.2513",viewBox:"0 0 16 12.2513",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M15.0602 0.939796C14.7633 0.641913 14.4106 0.405559 14.0222 0.244287C13.6338 0.0830158 13.2174 0 12.7969 0C12.3763 0 11.9599 0.0830158 11.5716 0.244287C11.1832 0.405559 10.8304 0.641913 10.5336 0.939796L11.2898 1.69601C11.4881 1.49774 11.7234 1.34047 11.9825 1.23317C12.2415 1.12587 12.5192 1.07064 12.7996 1.07064C13.0799 1.07064 13.3576 1.12587 13.6166 1.23317C13.8757 1.34047 14.111 1.49774 14.3093 1.69601C14.5076 1.89427 14.6649 2.12965 14.7722 2.38869C14.8795 2.64774 14.9347 2.92538 14.9347 3.20577C14.9347 3.48616 14.8795 3.7638 14.7722 4.02285C14.6649 4.28189 14.5076 4.51727 14.3093 4.71553L10.049 8.97588C9.64926 9.37629 9.10686 9.60152 8.54109 9.60202C7.97532 9.60252 7.43252 9.37825 7.03211 8.97854C6.63169 8.57883 6.40646 8.03643 6.40596 7.47066C6.40546 6.90489 6.62974 6.3621 7.02944 5.96168L7.78033 5.20547L7.02944 4.44926L6.27323 5.20547C5.97535 5.50232 5.73899 5.85505 5.57772 6.24344C5.41645 6.63183 5.33344 7.04824 5.33344 7.46878C5.33344 7.88932 5.41645 8.30572 5.57772 8.69411C5.73899 9.0825 5.97535 9.43524 6.27323 9.73209C6.8758 10.3269 7.68984 10.6583 8.53654 10.6534C8.9587 10.6551 9.37701 10.5732 9.76732 10.4123C10.1576 10.2514 10.5122 10.0148 10.8105 9.71611L15.0709 5.45576C15.6678 4.85524 16.002 4.04232 16 3.19558C15.998 2.34883 15.66 1.5375 15.0602 0.939796Z",fill:"black",stroke:"none"}),t.jsx("path",{d:"M1.71466 10.5575C1.5158 10.3596 1.35801 10.1243 1.25034 9.86524C1.14267 9.60615 1.08724 9.32834 1.08724 9.04777C1.08724 8.7672 1.14267 8.48939 1.25034 8.2303C1.35801 7.97121 1.5158 7.73594 1.71466 7.53801L5.97501 3.27766C6.17294 3.07881 6.40821 2.92101 6.6673 2.81334C6.92639 2.70567 7.2042 2.65024 7.48477 2.65024C7.76534 2.65024 8.04315 2.70567 8.30224 2.81334C8.56133 2.92101 8.7966 3.07881 8.99453 3.27766C9.19213 3.47715 9.34768 3.71428 9.45196 3.97498C9.55624 4.23569 9.60714 4.51468 9.60163 4.79541C9.60325 5.07702 9.54902 5.35616 9.44207 5.61668C9.33512 5.8772 9.17758 6.11392 8.97855 6.31316L7.84956 7.45813L8.60577 8.21434L9.73476 7.08535C10.3357 6.48437 10.6734 5.66928 10.6734 4.81938C10.6734 3.96947 10.3357 3.15438 9.73476 2.5534C9.13379 1.95243 8.3187 1.61481 7.46879 1.61481C6.61889 1.61481 5.80379 1.95243 5.20282 2.5534L0.942471 6.81375C0.643787 7.1107 0.406756 7.46376 0.245012 7.85265C0.0832669 8.24153 0 8.65855 0 9.07972C0 9.5009 0.0832669 9.91792 0.245012 10.3068C0.406756 10.6957 0.643787 11.0487 0.942471 11.3457C1.54894 11.936 2.36484 12.2616 3.21111 12.251C4.06483 12.2518 4.88421 11.9149 5.49039 11.3137L4.73418 10.5575C4.53625 10.7564 4.30098 10.9142 4.04189 11.0219C3.7828 11.1295 3.50499 11.185 3.22442 11.185C2.94385 11.185 2.66604 11.1295 2.40695 11.0219C2.14786 10.9142 1.91259 10.7564 1.71466 10.5575Z",fill:"black",stroke:"none"})]})}),command:e=>{if(e.isActive("link"))return void e.chain().focus().unsetLink().run();const{from:t,to:n,empty:r}=e.state.selection,o=e.state.doc.textBetween(t,n," ").trim(),i=/^https?:\/\//i.test(o);let s="https://";o&&(s=i?o:`https://${o}`),r?e.chain().focus().insertContent(`<a href="${s}">${s}</a>`).run():e.chain().focus().extendMarkRange("link").setLink({href:s}).run()},isActive:e=>e.isActive("link")}),Pm=Em({label:"Image",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.77778 16C1.28889 16 0.87037 15.8259 0.522222 15.4778C0.174074 15.1296 0 14.7111 0 14.2222V1.77778C0 1.28889 0.174074 0.87037 0.522222 0.522222C0.87037 0.174074 1.28889 0 1.77778 0H14.2222C14.7111 0 15.1296 0.174074 15.4778 0.522222C15.8259 0.87037 16 1.28889 16 1.77778V14.2222C16 14.7111 15.8259 15.1296 15.4778 15.4778C15.1296 15.8259 14.7111 16 14.2222 16H1.77778ZM2.66667 12.4444H13.3333L10 8L7.33333 11.5556L5.33333 8.88889L2.66667 12.4444Z",fill:"black",stroke:"none"})})}),command:e=>{if("undefined"==typeof document)return;const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{const n=t.files?.[0];if(!n)return;const r=new FileReader;r.onload=()=>{"string"==typeof r.result&&e.chain().focus().insertContent({type:"image",attrs:{src:r.result,alt:n.name}}).run()},r.readAsDataURL(n)},t.click()}}),zm=Em({label:"Undo",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M10.6667 3.33333H2.54333L4.93467 0.942667L4 0L0 4L4 8L4.93467 7.05667L2.54533 4.66667H10.6667C11.7275 4.66667 12.7449 5.08809 13.4951 5.83824C14.2452 6.58839 14.6667 7.6058 14.6667 8.66667C14.6667 9.72753 14.2452 10.7449 13.4951 11.4951C12.7449 12.2452 11.7275 12.6667 10.6667 12.6667H5.33333V14H10.6667C12.0812 14 13.4377 13.4381 14.4379 12.4379C15.4381 11.4377 16 10.0812 16 8.66667C16 7.25218 15.4381 5.89562 14.4379 4.89543C13.4377 3.89524 12.0812 3.33333 10.6667 3.33333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().undo().run(),isDisabled:e=>!e.can().undo()}),Vm=Em({label:"Redo",icon:n=>t.jsx(e.Icon,{...n,children:t.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.33333 3.33333H13.4567L11.0653 0.942667L12 0L16 4L12 8L11.0653 7.05667L13.4547 4.66667H5.33333C4.27247 4.66667 3.25505 5.08809 2.50491 5.83824C1.75476 6.58839 1.33333 7.6058 1.33333 8.66667C1.33333 9.72753 1.75476 10.7449 2.50491 11.4951C3.25505 12.2452 4.27247 12.6667 5.33333 12.6667H10.6667V14H5.33333C3.91885 14 2.56229 13.4381 1.5621 12.4379C0.561903 11.4377 0 10.0812 0 8.66667C0 7.25218 0.561903 5.89562 1.5621 4.89543C2.56229 3.89524 3.91885 3.33333 5.33333 3.33333V3.33333Z",fill:"black",stroke:"none"})})}),command:e=>e.chain().focus().redo().run(),isDisabled:e=>!e.can().redo()}),Bm=l.forwardRef(((n,r)=>{const{editor:o,children:i,css:s,disabled:a,...c}=n,d=l.useMemo((()=>({editor:o})),[o]);return t.jsx(yf.Provider,{value:d,children:t.jsx(e.Box,{ref:r,"data-disabled":a||void 0,css:[wf,s],...c,children:i})})})),_m={fixed:{bg:"bg",roundedTop:"l2",borderBottomWidth:"1px",p:"3"},floating:{bg:"bg.panel",roundedTop:"l2",shadow:"sm",p:"3"}},Hm={Root:Bm,Toolbar:l.forwardRef(((n,r)=>{const{variant:o="fixed",css:i,...s}=n;return t.jsx(e.HStack,{ref:r,flexWrap:"wrap",separator:t.jsx(e.StackSeparator,{h:"5",alignSelf:"center"}),css:[_m[o],i],...s})})),Content:l.forwardRef(((e,n)=>{const{editor:r}=xf();return r?t.jsx(sf,{editor:r,innerRef:n,...e}):null})),ControlGroup:l.forwardRef(((n,r)=>t.jsx(e.HStack,{ref:r,gap:"2",...n})))},Fm=["undo","redo","fontFamily","fontSize","bold","italic","underline","strikethrough","bulletList","orderedList","link","image"],qm={Google:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Google",leftIcon:t.jsx(om,{}),"aria-label":e||"Google Login",variant:"secondary",size:n,onClick:r}),Facebook:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Facebook",leftIcon:t.jsx(im,{}),"aria-label":e||"Facebook Login",variant:"secondary",size:n,onClick:r}),X:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"X",leftIcon:t.jsx(sm,{}),"aria-label":e||"X Login",variant:"secondary",size:n,onClick:r}),Microsoft:({ariaLabel:e,size:n="default",onClick:r})=>t.jsx(jf,{label:"Microsoft",leftIcon:t.jsx(am,{}),"aria-label":e||"Microsoft Login",variant:"secondary",size:n,onClick:r})},Wm=i.css`
|
|
321
324
|
width: ${k(500)} !important;
|
|
322
325
|
padding: 0 !important;
|
|
323
326
|
min-width: ${k(500)} !important;
|
|
@@ -363,13 +366,13 @@
|
|
|
363
366
|
}
|
|
364
367
|
}
|
|
365
368
|
}
|
|
366
|
-
`,
|
|
369
|
+
`,Um=({disabled:e,labels:t,...n})=>{const o=Mf("CloseButton",t);return r.jsx(Of,{css:Wm,icon:r.jsx(zf,{}),"aria-label":n["aria-label"]||o.closeLabel,disabled:e,...n})},Km=i.css`
|
|
367
370
|
position: relative;
|
|
368
|
-
`,
|
|
371
|
+
`,Gm=i.css`
|
|
369
372
|
padding: ${k(100)};
|
|
370
373
|
background: rgba(0, 0, 0, 0);
|
|
371
374
|
border: none;
|
|
372
|
-
`,
|
|
375
|
+
`,Zm=({isExpanded:t,ariaLabel:n,icon:o,label:s,tooltip:a,disabled:l,onClick:c,showGap:d,vertical:u})=>{return r.jsx(e.Button,{className:"toolbar-item-button",css:(h=t,i.css`
|
|
373
376
|
display: flex;
|
|
374
377
|
align-items: center;
|
|
375
378
|
justify-content: ${h?"space-between":"center"};
|
|
@@ -425,17 +428,17 @@
|
|
|
425
428
|
}
|
|
426
429
|
}
|
|
427
430
|
}
|
|
428
|
-
`),"aria-label":n,disabled:l,onClick:c,mr:d&&!u?"1rem":"0",mb:d&&u?"1rem":"0",children:r.jsxs(e.Box,{display:"flex",overflow:"hidden",style:{justifyContent:"flex-end",alignItems:"center"},whiteSpace:"nowrap",transition:"max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease",maxWidth:t?"9.375rem":"2rem",padding:"0.5rem",margin:t?"0.5rem":"0",children:[o&&r.jsx(e.Box,{as:"span",mr:o&&t?"0.5rem":"0px",children:r.jsx(
|
|
431
|
+
`),"aria-label":n,disabled:l,onClick:c,mr:d&&!u?"1rem":"0",mb:d&&u?"1rem":"0",children:r.jsxs(e.Box,{display:"flex",overflow:"hidden",style:{justifyContent:"flex-end",alignItems:"center"},whiteSpace:"nowrap",transition:"max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease",maxWidth:t?"9.375rem":"2rem",padding:"0.5rem",margin:t?"0.5rem":"0",children:[o&&r.jsx(e.Box,{as:"span",mr:o&&t?"0.5rem":"0px",children:r.jsx(Sm,{content:a,disabled:!a,children:o})}),s&&r.jsx(e.Box,{"aria-hidden":!t,overflow:"hidden",maxWidth:t?"9.375rem":"0px",whiteSpace:"nowrap",transition:"max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease",children:r.jsx(Sm,{content:a,disabled:!a,children:s})})]})});var h},Jm=e=>{const t=u(e),n=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;return t.endsWith("px")?parseFloat(t)/n:(t.endsWith("rem"),parseFloat(t))};const Xm=({items:t,vertical:o=!1,expanded:i=!1,showExpandedToggle:s,autoCollapse:a=!1,ariaLabel:l,defaultGaps:c,labels:d})=>{const u=Mf("Toolbar",d),[h,p]=n.useState(i),{containerRef:f,visibleNumberOfItems:m,shouldForceCollapse:g}=function({itemsCount:e,isExpanded:t,isVertical:r,collapsedWidth:o,expandedLabelWidth:i,gap:s=0,showExpandedToggle:a,autoCollapse:l}){const c=n.useRef(null),[d,u]=n.useState(0),[h,p]=n.useState(e),[f,m]=n.useState(!1);return n.useEffect((()=>{if(!c.current)return;const e=new ResizeObserver((e=>{const t=e[0],n=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;u(t.contentRect.width/n)}));return e.observe(c.current),()=>e.disconnect()}),[]),n.useEffect((()=>{if(0===d)return;if(!l)return m(!1),void p(e);const n=Jm(o),c=Jm(i),u=Jm(s),h=d-(a?n+u:0),f=n+u;m(e*(t?c+u:f)-u>h),e>1&&!r&&p(Math.floor(h/f))}),[d,e,t,r,o,i,s,a,l]),{containerRef:c,visibleNumberOfItems:h,shouldForceCollapse:f}}({itemsCount:t.length,isExpanded:h,isVertical:o,collapsedWidth:"3rem",expandedLabelWidth:"6.25rem",gap:"1rem",showExpandedToggle:s,autoCollapse:a});n.useEffect((()=>{p(i)}),[i]);const v=t.slice(0,m),b=t.slice(m,t.length),y=b.map((e=>({label:e.label,startIcon:e.icon,disabled:e.disabled,onClick:e.onClick,itemAriaLabel:e.ariaLabel}))),x=r.jsx("div",{style:{position:"relative",display:"flex",width:"3rem"},children:r.jsx(Zm,{isExpanded:h,ariaLabel:h?"Collapse":"Expand",icon:r.jsx(Vf,{}),showGap:!1,vertical:o})}),[w,C]=n.useState(!1);return r.jsx("div",{role:"toolbar","aria-label":l,css:Km,children:r.jsxs(e.Group,{ref:f,orientation:o?"vertical":"horizontal",attached:!0,display:"grid",borderCollapse:"collapse",gridAutoFlow:o||1===t.length?"row":"column",children:[v.map((e=>{const t=c&&!1!==e.gap||!c&&!0===e.gap;return r.jsx(Zm,{isExpanded:h&&!g,ariaLabel:e.ariaLabel,icon:e.icon,label:e.label,tooltip:e.tooltip,disabled:e.disabled,onClick:e.onClick,showGap:t,vertical:o},e.ariaLabel)})),g&&y.length>1&&r.jsxs(e.Menu.Root,{onSelect:({value:e})=>(e=>{const t=b.find((t=>t.label===e));t&&t.onClick&&t.onClick()})(e),onOpenChange:({open:e})=>C(e),open:w,children:[r.jsx(e.Menu.Trigger,{asChild:!0,children:x}),r.jsx(e.Portal,{children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{style:{minWidth:0,padding:0},children:y.map((({label:t,startIcon:n,onClick:i,itemAriaLabel:s},a)=>r.jsx(e.Menu.Item,{css:Gm,value:t||l||a.toString(),role:"menuitem",children:r.jsx(Zm,{isExpanded:!1,icon:n,ariaLabel:s,label:"",onClick:i,showGap:!1,vertical:o})})))})})})]}),s&&!a&&!g&&r.jsx(Zm,{isExpanded:h,ariaLabel:h?u.collapseAriaLabel:u.expandAriaLabel,icon:h?r.jsx(dm,{}):r.jsx(um,{}),label:u.collapseLabel,onClick:()=>p(!h),showGap:!1,vertical:o})]})})},Ym=i.css`
|
|
429
432
|
width: 12.5rem;
|
|
430
433
|
border: ${E(100)} solid ${w("neutral",600)};
|
|
431
434
|
border-radius: ${$(300)};
|
|
432
435
|
padding: ${k(200)};
|
|
433
|
-
`,
|
|
436
|
+
`,Qm=e=>i.css`
|
|
434
437
|
&[data-state='open'] {
|
|
435
438
|
background-color: ${"primary"===e?w("primary",600):w("neutral",200)} !important;
|
|
436
439
|
border: ${E(100)} solid ${w("primary",800)} !important;
|
|
437
440
|
}
|
|
438
|
-
`,
|
|
441
|
+
`,eg=e=>i.css`
|
|
439
442
|
font-size: ${C("small"===e?300:400)};
|
|
440
443
|
line-height: ${S("small"===e?500:600)};
|
|
441
444
|
color: ${w("neutral",800)};
|
|
@@ -445,33 +448,33 @@
|
|
|
445
448
|
&[data-highlighted] {
|
|
446
449
|
background-color: ${w("neutral",200)};
|
|
447
450
|
}
|
|
448
|
-
`,
|
|
451
|
+
`,tg=i.css`
|
|
449
452
|
&:focus-visible {
|
|
450
453
|
outline-color: ${w("primary",700)};
|
|
451
454
|
}
|
|
452
|
-
`,
|
|
455
|
+
`,ng={padding:k(300)},rg=n.forwardRef(((t,n)=>{const{portalled:o=!0,portalRef:i,...s}=t;return r.jsx(e.Portal,{disabled:!o,container:i,children:r.jsx(e.Menu.Positioner,{children:r.jsx(e.Menu.Content,{css:Ym,ref:n,...s})})})})),og=i.css`
|
|
453
456
|
position: relative;
|
|
454
457
|
width: 100%;
|
|
455
458
|
padding-left: 1.1875rem;
|
|
456
|
-
`,
|
|
459
|
+
`,ig=i.css`
|
|
457
460
|
font-size: ${C(400)};
|
|
458
461
|
line-height: ${S(600)};
|
|
459
462
|
margin-bottom: ${k(100)};
|
|
460
463
|
color: ${w("neutral",900)};
|
|
461
|
-
`,
|
|
464
|
+
`,sg=i.css`
|
|
462
465
|
width: 0.1875rem;
|
|
463
466
|
height: 100%;
|
|
464
467
|
background-color: ${w("error",900)};
|
|
465
468
|
position: absolute;
|
|
466
469
|
top: 0;
|
|
467
470
|
left: 0;
|
|
468
|
-
`,
|
|
471
|
+
`,ag=i.css`
|
|
469
472
|
font-size: ${C(300)};
|
|
470
473
|
line-height: ${S(500)};
|
|
471
474
|
font-weight: 700;
|
|
472
475
|
color: ${w("error",900)};
|
|
473
476
|
margin-bottom: ${k(200)};
|
|
474
|
-
`,
|
|
477
|
+
`,lg=i.css`
|
|
475
478
|
.chakra-checkbox__control {
|
|
476
479
|
width: ${k(500)};
|
|
477
480
|
height: ${k(500)};
|
|
@@ -552,7 +555,7 @@
|
|
|
552
555
|
cursor: not-allowed;
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
|
-
`,
|
|
558
|
+
`,cg=({name:t,value:n,checked:o,defaultChecked:i,disabled:s,indeterminate:a,onCheckedChange:l,children:c,...d})=>r.jsxs(e.Checkbox.Root,{css:lg,name:t,value:n,checked:a?"indeterminate":o,defaultChecked:i,disabled:s,onCheckedChange:l,gap:c?"0.625rem":"0",...d,children:[r.jsx(e.Checkbox.HiddenInput,{}),r.jsx(e.Checkbox.Control,{children:a?r.jsx(Nf,{}):r.jsx(Rf,{})}),r.jsx(e.Checkbox.Label,{children:c})]}),dg=i.css`
|
|
556
559
|
width: 15.0625rem;
|
|
557
560
|
min-height: 4.375rem;
|
|
558
561
|
padding: ${k(300)};
|
|
@@ -593,7 +596,7 @@
|
|
|
593
596
|
color: ${w("neutral",600)};
|
|
594
597
|
cursor: not-allowed;
|
|
595
598
|
}
|
|
596
|
-
`,
|
|
599
|
+
`,ug=i.css`
|
|
597
600
|
width: 100%;
|
|
598
601
|
padding: 0;
|
|
599
602
|
display: flex;
|
|
@@ -603,25 +606,25 @@
|
|
|
603
606
|
&[data-disabled] {
|
|
604
607
|
background-color: ${w("neutral",100)};
|
|
605
608
|
}
|
|
606
|
-
`,
|
|
609
|
+
`,hg=i.css`
|
|
607
610
|
svg {
|
|
608
611
|
height: 2rem;
|
|
609
612
|
width: 2rem;
|
|
610
613
|
}
|
|
611
|
-
`,
|
|
614
|
+
`,pg=(e,t)=>i.css`
|
|
612
615
|
font-size: ${C(400)};
|
|
613
616
|
line-height: ${S(600)};
|
|
614
617
|
font-weight: 400;
|
|
615
618
|
color: ${w("neutral",t?600:900)};
|
|
616
619
|
text-align: ${"centered"===e?"center":"left"};
|
|
617
620
|
display: block;
|
|
618
|
-
`,
|
|
621
|
+
`,fg=(e,t)=>i.css`
|
|
619
622
|
font-size: ${C(300)};
|
|
620
623
|
line-height: ${S(500)};
|
|
621
624
|
font-weight: 400;
|
|
622
625
|
color: ${w("neutral",t?600:700)};
|
|
623
626
|
text-align: ${"centered"===e?"center":"left"};
|
|
624
|
-
`,
|
|
627
|
+
`,mg=e=>i.css`
|
|
625
628
|
position: ${"centered"===e?"absolute":"relative"};
|
|
626
629
|
top: 0;
|
|
627
630
|
right: 0;
|
|
@@ -647,7 +650,7 @@
|
|
|
647
650
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
648
651
|
cursor: not-allowed;
|
|
649
652
|
}
|
|
650
|
-
`,
|
|
653
|
+
`,gg=i.css`
|
|
651
654
|
width: 15.0625rem;
|
|
652
655
|
min-height: 4.375rem;
|
|
653
656
|
padding: ${k(300)};
|
|
@@ -688,7 +691,7 @@
|
|
|
688
691
|
color: ${w("neutral",600)};
|
|
689
692
|
cursor: not-allowed;
|
|
690
693
|
}
|
|
691
|
-
`,
|
|
694
|
+
`,vg=i.css`
|
|
692
695
|
width: 100%;
|
|
693
696
|
padding: 0;
|
|
694
697
|
display: flex;
|
|
@@ -698,24 +701,24 @@
|
|
|
698
701
|
&[data-disabled] {
|
|
699
702
|
background-color: ${w("neutral",100)};
|
|
700
703
|
}
|
|
701
|
-
`,
|
|
704
|
+
`,bg=i.css`
|
|
702
705
|
svg {
|
|
703
706
|
height: 2rem;
|
|
704
707
|
width: 2rem;
|
|
705
708
|
}
|
|
706
|
-
`,
|
|
709
|
+
`,yg=(e,t)=>i.css`
|
|
707
710
|
font-size: ${C(400)};
|
|
708
711
|
line-height: ${S(600)};
|
|
709
712
|
font-weight: 400;
|
|
710
713
|
color: ${w("neutral",t?600:900)};
|
|
711
714
|
text-align: ${"centered"===e?"center":"left"};
|
|
712
|
-
`,
|
|
715
|
+
`,xg=(e,t)=>i.css`
|
|
713
716
|
font-size: ${C(300)};
|
|
714
717
|
line-height: ${S(500)};
|
|
715
718
|
font-weight: 400;
|
|
716
719
|
color: ${w("neutral",t?600:700)};
|
|
717
720
|
text-align: ${"centered"===e?"center":"left"};
|
|
718
|
-
`,
|
|
721
|
+
`,wg=e=>i.css`
|
|
719
722
|
position: ${"centered"===e?"absolute":"relative"};
|
|
720
723
|
top: 0;
|
|
721
724
|
right: 0;
|
|
@@ -746,7 +749,7 @@
|
|
|
746
749
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
747
750
|
cursor: not-allowed;
|
|
748
751
|
}
|
|
749
|
-
`,
|
|
752
|
+
`,Cg=i.css`
|
|
750
753
|
.ds-radio-item-indicator {
|
|
751
754
|
width: ${k(500)};
|
|
752
755
|
height: ${k(500)};
|
|
@@ -815,21 +818,21 @@
|
|
|
815
818
|
}
|
|
816
819
|
}
|
|
817
820
|
}
|
|
818
|
-
`,
|
|
821
|
+
`,kg=i.css`
|
|
819
822
|
cursor: pointer;
|
|
820
823
|
|
|
821
824
|
&[data-disabled] {
|
|
822
825
|
color: ${w("neutral",500)};
|
|
823
826
|
cursor: not-allowed;
|
|
824
827
|
}
|
|
825
|
-
|
|
828
|
+
`,Sg=i.css`
|
|
826
829
|
margin: 0 !important;
|
|
827
830
|
width: ${k(500)} !important;
|
|
828
831
|
height: ${k(500)} !important;
|
|
829
|
-
|
|
832
|
+
`,$g=({children:t,value:n,disabled:o,...i})=>r.jsxs(e.RadioGroup.Item,{css:Cg,value:n,disabled:o,...i,children:[r.jsx(e.RadioGroup.ItemHiddenInput,{css:Sg}),r.jsx(e.RadioGroup.ItemIndicator,{className:"ds-radio-item-indicator"}),t?r.jsx(e.RadioGroup.ItemText,{css:kg,children:t}):null]}),Eg=({children:n,horizontal:r=!1,name:o,value:i="",onChange:s,customGap:a,...l})=>{let c=r?"1.25rem":"0.5rem";return c=a||c,t.jsx(e.RadioGroup.Root,{onValueChange:e=>{s&&s(o,e.value||"")},value:i,...l,children:t.jsx(e.HStack,{gap:c,flexDirection:r?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:n})})},Mg=i.css`
|
|
830
833
|
height: 3.75rem;
|
|
831
834
|
padding: ${k(1e3)} ${k(300)};
|
|
832
|
-
`,
|
|
835
|
+
`,jg=i.css`
|
|
833
836
|
height: ${k(500)};
|
|
834
837
|
width: ${k(500)};
|
|
835
838
|
background-color: ${w("primary",500)};
|
|
@@ -877,7 +880,7 @@
|
|
|
877
880
|
outline: none;
|
|
878
881
|
cursor: not-allowed;
|
|
879
882
|
}
|
|
880
|
-
`,
|
|
883
|
+
`,Tg=i.css`
|
|
881
884
|
font-size: ${C(300)};
|
|
882
885
|
line-height: ${S(500)};
|
|
883
886
|
color: ${w("neutral",800)};
|
|
@@ -891,11 +894,11 @@
|
|
|
891
894
|
align-items: center;
|
|
892
895
|
position: relative;
|
|
893
896
|
top: -1.875rem;
|
|
894
|
-
`,
|
|
897
|
+
`,Og=i.css`
|
|
895
898
|
background-color: ${w("neutral",300)};
|
|
896
899
|
border: none;
|
|
897
900
|
box-shadow: none;
|
|
898
|
-
`,
|
|
901
|
+
`,Lg=i.css`
|
|
899
902
|
background-color: ${w("primary",500)};
|
|
900
903
|
border: ${E(100)} solid ${w("primary",700)};
|
|
901
904
|
border-radius: ${$(500)};
|
|
@@ -908,7 +911,7 @@
|
|
|
908
911
|
background-color: ${w("neutral",400)};
|
|
909
912
|
border: none;
|
|
910
913
|
}
|
|
911
|
-
`,
|
|
914
|
+
`,Ag=(e,t)=>i.css`
|
|
912
915
|
font-size: ${C(200)};
|
|
913
916
|
line-height: ${S(400)};
|
|
914
917
|
color: ${w("neutral",800)};
|
|
@@ -943,7 +946,7 @@
|
|
|
943
946
|
}
|
|
944
947
|
|
|
945
948
|
${t?`\n --ty: -0.375rem !important;\n\n .chakra-slider__markerIndicator {\n height: 1rem;\n width: 0.25rem;\n background-color: ${w("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${w("neutral",400)} !important;\n }\n }\n `:""};
|
|
946
|
-
`,
|
|
949
|
+
`,Rg=t=>{const{value:n}=t;return r.jsx(e.For,{each:n,children:(t,n)=>r.jsxs(e.Slider.Thumb,{css:jg,index:n,children:[r.jsx("div",{css:Tg,className:"ds-slider-value-preview",children:t}),r.jsx(e.Slider.HiddenInput,{})]},n)})},Ng=n.forwardRef(((t,n)=>{const{marks:o,isCentred:i}=t;return o?.length?r.jsx(e.Slider.MarkerGroup,{ref:n,children:o.map(((t,n)=>{const o="number"==typeof t?t:t.value,s="number"==typeof t?void 0:t.label,a=i&&1===n;return r.jsxs(e.Slider.Marker,{css:Ag(i,a),value:o,children:[r.jsx(e.Slider.MarkerIndicator,{}),r.jsx("p",{children:s})]},o)}))}):null})),Dg=n.forwardRef(((t,o)=>{const{marks:i,onValueChange:s,isCentred:a,value:l,...c}=t,[d,u]=n.useState(l||[0]);n.useEffect((()=>{u(l||[0])}),[l]);let h=i?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(a){const e=c.min||0,t=c.max||100;h=[e,(e+t)/2,t].map((e=>({value:e,label:void 0})))}const p=!!h?.some((e=>e.label));return r.jsx(e.Slider.Root,{css:Mg,ref:o,thumbAlignment:"center",onValueChange:e=>{u(e.value),s&&s(e)},origin:a?"center":"start",value:d,...c,children:r.jsxs(e.Slider.Control,{"data-has-mark-label":p||void 0,children:[r.jsx(e.Slider.Track,{css:Og,children:r.jsx(e.Slider.Range,{css:Lg})}),r.jsx(Rg,{value:d}),r.jsx(Ng,{marks:h,isCentred:a})]})})})),Ig=i.css`
|
|
947
950
|
--switch-height: 1.5rem;
|
|
948
951
|
--switch-width: 2.5rem;
|
|
949
952
|
|
|
@@ -1043,14 +1046,14 @@
|
|
|
1043
1046
|
cursor: not-allowed;
|
|
1044
1047
|
}
|
|
1045
1048
|
}
|
|
1046
|
-
`,
|
|
1049
|
+
`,Pg=({name:t,defaultChecked:n=!1,onChange:o,disabled:i=!1,isLabelOnLeft:s=!1,children:a,...l})=>r.jsx("div",{style:{display:"flex",alignItems:"center"},children:r.jsxs(e.Switch.Root,{css:Ig,id:t,name:t,"aria-label":l["aria-label"]||t,defaultChecked:n,onCheckedChange:({checked:e})=>{o&&o(t,e)},disabled:i,...l,children:[s&&null!=a?r.jsx(e.Switch.Label,{children:a}):null,r.jsx(e.Switch.HiddenInput,{style:{width:"2.625rem",height:"1.625rem"}}),r.jsx("div",{className:"chakra-switch__control-container",children:r.jsx(e.Switch.Control,{children:r.jsx(e.Switch.Thumb,{children:r.jsx(e.Switch.ThumbIndicator,{display:"flex",children:r.jsx(Rf,{})})})})}),s||null==a?null:r.jsx(e.Switch.Label,{children:a})]})}),zg=i.css`
|
|
1047
1050
|
position: relative;
|
|
1048
1051
|
height: 100%;
|
|
1049
1052
|
width: 100%;
|
|
1050
1053
|
&:focus-visible {
|
|
1051
1054
|
outline-color: ${w("primary",700)};
|
|
1052
1055
|
}
|
|
1053
|
-
`,
|
|
1056
|
+
`,Vg=i.css`
|
|
1054
1057
|
font-size: ${C(400)};
|
|
1055
1058
|
line-height: ${S(600)};
|
|
1056
1059
|
color: ${w("neutral",900)};
|
|
@@ -1060,12 +1063,12 @@
|
|
|
1060
1063
|
color: ${w("error",500)};
|
|
1061
1064
|
margin-right: 0.1875rem;
|
|
1062
1065
|
}
|
|
1063
|
-
`,
|
|
1066
|
+
`,Bg=i.css`
|
|
1064
1067
|
font-size: ${C(300)};
|
|
1065
1068
|
line-height: ${S(500)};
|
|
1066
1069
|
color: ${w("neutral",700)};
|
|
1067
1070
|
text-align: left;
|
|
1068
|
-
`,
|
|
1071
|
+
`,_g=(e,t)=>i.css`
|
|
1069
1072
|
margin-top: ${k(300)};
|
|
1070
1073
|
display: flex;
|
|
1071
1074
|
flex-direction: ${e?"row":"column"};
|
|
@@ -1077,23 +1080,23 @@
|
|
|
1077
1080
|
transition:
|
|
1078
1081
|
max-height 250ms ease,
|
|
1079
1082
|
opacity 200ms ease;
|
|
1080
|
-
`,
|
|
1083
|
+
`,Hg=i.css`
|
|
1081
1084
|
width: 0.1875rem;
|
|
1082
1085
|
height: 100%;
|
|
1083
1086
|
background-color: ${w("error",900)};
|
|
1084
1087
|
position: absolute;
|
|
1085
1088
|
top: 0;
|
|
1086
1089
|
left: 0;
|
|
1087
|
-
`,
|
|
1090
|
+
`,Fg=i.css`
|
|
1088
1091
|
font-size: ${C(300)};
|
|
1089
1092
|
line-height: ${S(500)};
|
|
1090
1093
|
font-weight: 700;
|
|
1091
1094
|
color: ${w("error",900)};
|
|
1092
1095
|
text-align: left;
|
|
1093
|
-
`,
|
|
1096
|
+
`,qg=i.css`
|
|
1094
1097
|
color: ${w("neutral",700)};
|
|
1095
1098
|
margin-left: ${k(100)};
|
|
1096
|
-
`,
|
|
1099
|
+
`,Wg=i.css`
|
|
1097
1100
|
color: ${w("neutral",700)};
|
|
1098
1101
|
display: flex;
|
|
1099
1102
|
align-items: center;
|
|
@@ -1105,11 +1108,11 @@
|
|
|
1105
1108
|
> span {
|
|
1106
1109
|
margin-left: 0.375rem;
|
|
1107
1110
|
}
|
|
1108
|
-
`,
|
|
1111
|
+
`,Ug=i.css`
|
|
1109
1112
|
width: 100%;
|
|
1110
1113
|
max-width: 23.125rem;
|
|
1111
1114
|
position: relative;
|
|
1112
|
-
`,
|
|
1115
|
+
`,Kg=e=>i.css`
|
|
1113
1116
|
font-size: ${C(400)};
|
|
1114
1117
|
line-height: ${S(600)};
|
|
1115
1118
|
font-weight: 400;
|
|
@@ -1120,26 +1123,26 @@
|
|
|
1120
1123
|
color: ${e?w("neutral",600):w("error",500)};
|
|
1121
1124
|
margin-right: 0.1875rem;
|
|
1122
1125
|
}
|
|
1123
|
-
`,
|
|
1126
|
+
`,Gg=e=>i.css`
|
|
1124
1127
|
font-size: ${C(300)};
|
|
1125
1128
|
line-height: ${S(500)};
|
|
1126
1129
|
font-weight: 400;
|
|
1127
1130
|
color: ${w("neutral",e?600:700)};
|
|
1128
1131
|
text-align: left;
|
|
1129
|
-
`,
|
|
1132
|
+
`,Zg=i.css`
|
|
1130
1133
|
width: 0.1875rem;
|
|
1131
1134
|
height: 100%;
|
|
1132
1135
|
background-color: ${w("error",900)};
|
|
1133
1136
|
position: absolute;
|
|
1134
1137
|
top: 0;
|
|
1135
1138
|
left: 0;
|
|
1136
|
-
`,
|
|
1139
|
+
`,Jg=i.css`
|
|
1137
1140
|
font-size: ${C(300)};
|
|
1138
1141
|
line-height: ${S(500)};
|
|
1139
1142
|
font-weight: 700;
|
|
1140
1143
|
color: ${w("error",900)};
|
|
1141
1144
|
text-align: left;
|
|
1142
|
-
`,
|
|
1145
|
+
`,Xg=(e,t)=>i.css`
|
|
1143
1146
|
width: 100%;
|
|
1144
1147
|
margin-top: ${k(200)};
|
|
1145
1148
|
|
|
@@ -1175,7 +1178,7 @@
|
|
|
1175
1178
|
padding: 0 ${k(100)};
|
|
1176
1179
|
}
|
|
1177
1180
|
}
|
|
1178
|
-
`,
|
|
1181
|
+
`,Yg=(e,t)=>i.css`
|
|
1179
1182
|
position: relative;
|
|
1180
1183
|
height: 100%;
|
|
1181
1184
|
width: 100%;
|
|
@@ -1184,14 +1187,14 @@
|
|
|
1184
1187
|
align-items: flex-start;
|
|
1185
1188
|
gap: ${k("small"===e?300:400)};
|
|
1186
1189
|
margin-bottom: ${t?"0":k(500)};
|
|
1187
|
-
`,
|
|
1190
|
+
`,Qg=i.css`
|
|
1188
1191
|
width: 0.1875rem;
|
|
1189
1192
|
height: 100%;
|
|
1190
1193
|
background-color: ${w("error",900)};
|
|
1191
1194
|
position: absolute;
|
|
1192
1195
|
top: 0;
|
|
1193
1196
|
left: 0;
|
|
1194
|
-
`,
|
|
1197
|
+
`,ev=(e,t)=>i.css`
|
|
1195
1198
|
color: ${w("neutral",t?600:900)};
|
|
1196
1199
|
font-size: ${C("small"===e?300:400)};
|
|
1197
1200
|
font-weight: 400;
|
|
@@ -1213,7 +1216,7 @@
|
|
|
1213
1216
|
margin-top: ${k(100)};
|
|
1214
1217
|
color: ${t?w("neutral",600):w("error",500)};
|
|
1215
1218
|
}
|
|
1216
|
-
`,
|
|
1219
|
+
`,tv=(e,t)=>i.css`
|
|
1217
1220
|
color: ${w("neutral",t?600:700)};
|
|
1218
1221
|
font-size: ${C("small"===e?200:300)};
|
|
1219
1222
|
font-weight: 400;
|
|
@@ -1222,13 +1225,13 @@
|
|
|
1222
1225
|
&:first-letter {
|
|
1223
1226
|
text-transform: uppercase;
|
|
1224
1227
|
}
|
|
1225
|
-
`,
|
|
1228
|
+
`,nv=e=>i.css`
|
|
1226
1229
|
color: ${w("error",900)};
|
|
1227
1230
|
font-size: ${C("small"===e?200:300)};
|
|
1228
1231
|
font-weight: 700;
|
|
1229
1232
|
line-height: ${S("small"===e?400:500)};
|
|
1230
1233
|
margin-top: ${k(50)};
|
|
1231
|
-
`,
|
|
1234
|
+
`,rv=(e,t,n)=>i.css`
|
|
1232
1235
|
height: ${k("small"===e?700:1e3)};
|
|
1233
1236
|
width: 100%;
|
|
1234
1237
|
border-radius: ${$(300)};
|
|
@@ -1259,7 +1262,7 @@
|
|
|
1259
1262
|
}
|
|
1260
1263
|
|
|
1261
1264
|
${t||n?`\n border: ${E(100)} solid ${w("neutral",700)};\n `:""}
|
|
1262
|
-
`,
|
|
1265
|
+
`,ov=({label:t,caption:o,placeholder:i,errorMessage:s,required:a,disabled:l,size:c="default",noMarginBottom:d=!1,defaultValue:u="",onChange:h,labels:p,...f})=>{const m=Mf("TextInput",p),[g,v]=n.useState(u);return r.jsxs("div",{css:Yg(c,d),className:"ds-text-input-container",children:[s?r.jsx("div",{css:Qg}):null,r.jsxs(e.Field.Root,{required:a,invalid:!!s,gap:"0",style:{marginLeft:s?"1.1875rem":"0px"},children:[t?r.jsxs(e.Field.Label,{css:ev(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":m.requiredSymbolLabel}),t,a?"":r.jsx("span",{children:m.optionalSuffix})]}):null,o?r.jsx(e.Field.HelperText,{css:tv(c,l),"aria-label":o,children:o}):null,s?r.jsx(e.Field.ErrorText,{css:nv(c),"aria-label":s,children:s}):null,r.jsx(e.Input,{placeholder:i,disabled:l,css:rv(c,g,u),onChange:e=>{v(e.target.value),h&&h(e)},value:g,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...f})]})]})},iv=l.forwardRef(((n,r)=>{const{children:o,...i}=n,{"aria-label":s,...a}=i;return t.jsxs(e.Select.Control,{...a,children:[t.jsx(e.Select.Trigger,{ref:r,"aria-label":s,children:o}),t.jsx(e.Select.IndicatorGroup,{children:t.jsx(e.Select.Indicator,{children:t.jsx(If,{})})})]})})),sv=l.forwardRef(((n,r)=>{const{...o}=n;return t.jsx(e.Portal,{children:t.jsx(e.Select.Positioner,{children:t.jsx(e.Select.Content,{...o,ref:r})})})})),av=l.forwardRef(((n,r)=>{const{item:o,children:i,...s}=n;return t.jsx(e.Select.Item,{item:o,...s,ref:r,children:i},o.value)})),lv=l.forwardRef(((n,r)=>{const{children:o,...i}=n;return t.jsx(e.Select.ValueText,{...i,ref:r,children:t.jsx(e.Select.Context,{children:e=>{const t=e.selectedItems;return 0===t.length?n.placeholder:o?o(t):1===t.length?e.collection.stringifyItem(t[0]):`${t.length} selected`}})})})),cv=l.forwardRef(((n,r)=>t.jsx(e.Select.Root,{...n,ref:r,positioning:{sameWidth:!0,...n.positioning},children:n.asChild?n.children:t.jsxs(t.Fragment,{children:[t.jsx(e.Select.HiddenSelect,{}),n.children]})})));l.forwardRef(((n,r)=>{const{children:o,label:i,...s}=n;return t.jsxs(e.Select.ItemGroup,{...s,ref:r,children:[t.jsx(e.Select.ItemGroupLabel,{children:i}),o]})}));const dv=e.Select.Label;e.Select.ItemText;const uv=e=>i.css`
|
|
1263
1266
|
position: relative;
|
|
1264
1267
|
height: 100%;
|
|
1265
1268
|
width: 100%;
|
|
@@ -1271,14 +1274,14 @@
|
|
|
1271
1274
|
&:focus-visible {
|
|
1272
1275
|
outline-color: ${w("primary",700)};
|
|
1273
1276
|
}
|
|
1274
|
-
`,
|
|
1277
|
+
`,hv=i.css`
|
|
1275
1278
|
width: 0.1875rem;
|
|
1276
1279
|
height: 100%;
|
|
1277
1280
|
background-color: ${w("error",900)};
|
|
1278
1281
|
position: absolute;
|
|
1279
1282
|
top: 0;
|
|
1280
1283
|
left: 0;
|
|
1281
|
-
`,
|
|
1284
|
+
`,pv=e=>i.css`
|
|
1282
1285
|
font-size: ${C("small"===e?300:400)};
|
|
1283
1286
|
line-height: ${S("small"===e?500:600)};
|
|
1284
1287
|
font-weight: 400;
|
|
@@ -1297,7 +1300,7 @@
|
|
|
1297
1300
|
color: ${w("neutral",600)};
|
|
1298
1301
|
}
|
|
1299
1302
|
}
|
|
1300
|
-
`,
|
|
1303
|
+
`,fv=(e,t)=>i.css`
|
|
1301
1304
|
font-size: ${C("small"===e?200:300)};
|
|
1302
1305
|
line-height: ${S("small"===e?400:500)};
|
|
1303
1306
|
font-weight: 400;
|
|
@@ -1305,7 +1308,7 @@
|
|
|
1305
1308
|
text-align: left;
|
|
1306
1309
|
|
|
1307
1310
|
${t?`color: ${w("neutral",600)} !important;`:""}
|
|
1308
|
-
`,
|
|
1311
|
+
`,mv=(e,t,n,r)=>i.css`
|
|
1309
1312
|
.chakra-select__trigger {
|
|
1310
1313
|
min-height: ${k("small"===e?800:1e3)};
|
|
1311
1314
|
border-radius: ${$(300)};
|
|
@@ -1363,40 +1366,40 @@
|
|
|
1363
1366
|
}
|
|
1364
1367
|
}
|
|
1365
1368
|
}
|
|
1366
|
-
`,
|
|
1369
|
+
`,gv=i.css`
|
|
1367
1370
|
margin-top: -${k(200)};
|
|
1368
1371
|
border-radius: ${$(300)};
|
|
1369
1372
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
1370
1373
|
border-top-left-radius: 0;
|
|
1371
1374
|
border-top-right-radius: 0;
|
|
1372
1375
|
border-top: none;
|
|
1373
|
-
`,
|
|
1376
|
+
`,vv=i.css`
|
|
1374
1377
|
align-items: flex-start;
|
|
1375
1378
|
&[data-highlighted] {
|
|
1376
1379
|
background-color: ${w("neutral",200)};
|
|
1377
1380
|
cursor: pointer;
|
|
1378
1381
|
}
|
|
1379
|
-
`,
|
|
1382
|
+
`,bv=(e,t)=>i.css`
|
|
1380
1383
|
font-size: ${C("small"===e?300:400)};
|
|
1381
1384
|
line-height: ${S("small"===e?500:600)};
|
|
1382
1385
|
color: ${w("neutral",800)};
|
|
1383
1386
|
text-align: left;
|
|
1384
1387
|
|
|
1385
1388
|
${t?`color: ${w("neutral",600)} !important;`:""}
|
|
1386
|
-
`,
|
|
1389
|
+
`,yv=(e,t)=>i.css`
|
|
1387
1390
|
font-size: ${C("small"===e?300:400)};
|
|
1388
1391
|
line-height: ${S("small"===e?500:600)};
|
|
1389
1392
|
color: ${w("neutral",700)};
|
|
1390
1393
|
text-align: left;
|
|
1391
1394
|
|
|
1392
1395
|
${t?`color: ${w("neutral",600)} !important;`:""}
|
|
1393
|
-
`,
|
|
1396
|
+
`,xv=e=>i.css`
|
|
1394
1397
|
font-size: ${C("small"===e?200:300)};
|
|
1395
1398
|
line-height: ${S("small"===e?400:500)};
|
|
1396
1399
|
font-weight: 700;
|
|
1397
1400
|
color: ${w("error",900)};
|
|
1398
1401
|
text-align: left;
|
|
1399
|
-
`,
|
|
1402
|
+
`,wv=e=>i.css`
|
|
1400
1403
|
max-width: 100%;
|
|
1401
1404
|
display: flex;
|
|
1402
1405
|
justify-content: center;
|
|
@@ -1469,28 +1472,28 @@
|
|
|
1469
1472
|
background-color: ${w("neutral",300)};
|
|
1470
1473
|
color: ${w("neutral",600)};
|
|
1471
1474
|
}
|
|
1472
|
-
`,
|
|
1475
|
+
`,Cv=i.css`
|
|
1473
1476
|
background-color: ${w("neutral",100)};
|
|
1474
1477
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
1475
|
-
`,
|
|
1478
|
+
`,kv=i.css`
|
|
1476
1479
|
background-color: ${w("neutral",200)};
|
|
1477
1480
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
1478
|
-
|
|
1481
|
+
`,Sv=i.css`
|
|
1479
1482
|
background-color: ${w("success",100)};
|
|
1480
1483
|
border: ${E(100)} solid ${w("success",300)};
|
|
1481
1484
|
color: ${w("success",900)};
|
|
1482
|
-
|
|
1485
|
+
`,$v=i.css`
|
|
1483
1486
|
background-color: ${w("warning",100)};
|
|
1484
1487
|
border: ${E(100)} solid ${w("warning",300)};
|
|
1485
1488
|
color: ${w("warning",900)};
|
|
1486
|
-
`,
|
|
1489
|
+
`,Ev=i.css`
|
|
1487
1490
|
background-color: ${w("error",100)};
|
|
1488
1491
|
border: ${E(100)} solid ${w("error",300)};
|
|
1489
1492
|
color: ${w("error",900)};
|
|
1490
|
-
`,
|
|
1493
|
+
`,Mv=({label:t,size:n="default",variant:o,disabled:i,icon:s,onClose:a,closable:l,...c})=>{let d=Cv;return"info-grey"===o?d=kv:"success"===o?d=Sv:"warning"===o?d=$v:"error"===o&&(d=Ev),r.jsxs(e.Tag.Root,{css:[wv(n),d],"data-disabled":i,...c,children:[s?r.jsx(e.Tag.StartElement,{"aria-hidden":"true",children:s}):null,r.jsx(e.Tag.Label,{"aria-label":t,children:t}),l&&!i&&"small"!==n?r.jsx(e.Tag.EndElement,{children:r.jsx("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:a,onKeyDown:e=>{!a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},"aria-label":`${t} tag close button`,children:r.jsx(zf,{})})}):null]})},jv=({placeholder:t,size:n,disabled:o})=>r.jsx(lv,{placeholder:t,children:t=>{const{label:i,caption:s}=t[0];return r.jsxs(e.HStack,{flexDirection:"column",alignItems:"flex-start",children:[r.jsx("p",{css:bv(n,o),children:i}),s?r.jsx("p",{css:yv(n,o),children:s}):null]})}}),Tv=({placeholder:t,removeItem:n,disabled:o})=>r.jsx(lv,{placeholder:t,children:t=>t.map((t=>r.jsx(e.HStack,{flexDirection:"row",alignItems:"flex-start",children:r.jsx(Mv,{label:t.label,variant:"info-grey",disabled:o,onClose:()=>n(t.value),closable:!0},t.value)},t.value)))}),Ov=({label:t,caption:o,placeholder:i="",items:s,size:a="default",required:l,disabled:c,onChange:d,errorMessage:u,multiple:h,labels:p,...f})=>{const m=Mf("Select",p),[g,v]=n.useState(f.defaultValue||[]),b=(t=>e.createListCollection({items:t}))(s),y=e=>{v(e),d&&d(e)},x=`${t||m.defaultAriaLabel}${l?m.requiredSuffix:""}${o?` ${o}.`:""}${c?m.disabledSuffix:""}`.trim();return r.jsxs(e.Group,{css:uv(a),style:f.style,className:"ds-select-input-container",tabIndex:c?0:void 0,"aria-disabled":c,"aria-label":c?x:void 0,children:[u?r.jsx("div",{css:hv}):null,r.jsxs(cv,{css:{},collection:b,disabled:c,required:l,multiple:h,"aria-label":f["aria-label"]||t,value:g,onValueChange:e=>y(e.value),style:{marginLeft:u?"1.1875rem":"0px"},...f,children:[t?r.jsxs(dv,{css:pv(a),children:[l?r.jsx("span",{children:"*"}):null,t]}):null,o?r.jsx("p",{css:fv(a,c),children:o}):null,u&&r.jsx("p",{css:xv(a),children:u}),r.jsx(iv,{css:mv(a,g.length>0,!!u,h),"aria-label":f["aria-label"]||t||m.defaultAriaLabel,children:h?r.jsx(Tv,{placeholder:i,disabled:c,removeItem:e=>{const t=g.filter((t=>t!==e));y(t)}}):r.jsx(jv,{placeholder:i,size:a,disabled:c})}),r.jsx(sv,{css:gv,children:b.items.map((t=>r.jsxs(av,{css:vv,item:t,children:[r.jsxs(e.Box,{children:[r.jsx("p",{css:bv(a),children:t.label}),r.jsx("p",{css:yv(a),children:t.caption})]}),h?r.jsx(cg,{checked:g.some((e=>e===t.value)),"aria-label":`Select ${t.label}`}):null]},t.value)))})]})]})},Lv=i.css`
|
|
1491
1494
|
width: 100%;
|
|
1492
1495
|
max-width: 30.375rem;
|
|
1493
|
-
`,
|
|
1496
|
+
`,Av=i.css`
|
|
1494
1497
|
font-size: ${C(400)};
|
|
1495
1498
|
line-height: ${S(600)};
|
|
1496
1499
|
font-weight: 400;
|
|
@@ -1501,13 +1504,13 @@
|
|
|
1501
1504
|
color: ${w("error",500)};
|
|
1502
1505
|
margin-right: 0.1875rem;
|
|
1503
1506
|
}
|
|
1504
|
-
`,
|
|
1507
|
+
`,Rv=i.css`
|
|
1505
1508
|
font-size: ${C(300)};
|
|
1506
1509
|
line-height: ${S(500)};
|
|
1507
1510
|
font-weight: 400;
|
|
1508
1511
|
color: ${w("neutral",700)};
|
|
1509
1512
|
text-align: left;
|
|
1510
|
-
`,
|
|
1513
|
+
`,Nv=i.css`
|
|
1511
1514
|
display: flex;
|
|
1512
1515
|
align-items: center;
|
|
1513
1516
|
justify-content: space-between;
|
|
@@ -1525,9 +1528,9 @@
|
|
|
1525
1528
|
button {
|
|
1526
1529
|
min-width: 6.125rem;
|
|
1527
1530
|
}
|
|
1528
|
-
`,
|
|
1531
|
+
`,Dv=i.css`
|
|
1529
1532
|
margin-top: ${k(300)};
|
|
1530
|
-
`,
|
|
1533
|
+
`,Iv=e=>i.css`
|
|
1531
1534
|
height: ${k(200)};
|
|
1532
1535
|
width: 100%;
|
|
1533
1536
|
background-color: ${w("neutral",300)};
|
|
@@ -1541,7 +1544,7 @@
|
|
|
1541
1544
|
background-color: ${w("medium"===e?"warning":"strong"===e||"very-strong"===e?"success":"error",900)};
|
|
1542
1545
|
border-radius: ${$(500)};
|
|
1543
1546
|
}
|
|
1544
|
-
`,
|
|
1547
|
+
`,Pv=e=>i.css`
|
|
1545
1548
|
display: flex;
|
|
1546
1549
|
align-items: center;
|
|
1547
1550
|
gap: ${k(100)};
|
|
@@ -1558,13 +1561,13 @@
|
|
|
1558
1561
|
justify-content: center;
|
|
1559
1562
|
align-items: center;
|
|
1560
1563
|
}
|
|
1561
|
-
`,
|
|
1564
|
+
`,zv=i.css`
|
|
1562
1565
|
position: relative;
|
|
1563
1566
|
height: 100%;
|
|
1564
1567
|
&:focus-visible {
|
|
1565
1568
|
outline-color: ${w("primary",700)};
|
|
1566
1569
|
}
|
|
1567
|
-
`,
|
|
1570
|
+
`,Vv=i.css`
|
|
1568
1571
|
font-size: ${C(400)};
|
|
1569
1572
|
line-height: ${S(600)};
|
|
1570
1573
|
color: ${w("neutral",900)};
|
|
@@ -1574,27 +1577,27 @@
|
|
|
1574
1577
|
color: ${w("error",500)};
|
|
1575
1578
|
margin-right: 0.1875rem;
|
|
1576
1579
|
}
|
|
1577
|
-
`,
|
|
1580
|
+
`,Bv=i.css`
|
|
1578
1581
|
font-size: ${C(300)};
|
|
1579
1582
|
line-height: ${S(500)};
|
|
1580
1583
|
color: ${w("neutral",700)};
|
|
1581
1584
|
text-align: left;
|
|
1582
|
-
`,
|
|
1585
|
+
`,_v=i.css`
|
|
1583
1586
|
margin-top: ${k(300)};
|
|
1584
|
-
`,
|
|
1587
|
+
`,Hv=i.css`
|
|
1585
1588
|
width: 0.1875rem;
|
|
1586
1589
|
height: 100%;
|
|
1587
1590
|
background-color: ${w("error",900)};
|
|
1588
1591
|
position: absolute;
|
|
1589
1592
|
top: 0;
|
|
1590
1593
|
left: 0;
|
|
1591
|
-
`,
|
|
1594
|
+
`,Fv=i.css`
|
|
1592
1595
|
font-size: ${C(300)};
|
|
1593
1596
|
line-height: ${S(500)};
|
|
1594
1597
|
font-weight: 700;
|
|
1595
1598
|
color: ${w("error",900)};
|
|
1596
1599
|
text-align: left;
|
|
1597
|
-
`,
|
|
1600
|
+
`,qv=i.css`
|
|
1598
1601
|
height: 100%;
|
|
1599
1602
|
min-height: 3rem;
|
|
1600
1603
|
width: 100%;
|
|
@@ -1603,7 +1606,7 @@
|
|
|
1603
1606
|
border-radius: ${$(300)};
|
|
1604
1607
|
background-color: ${w("neutral",100)};
|
|
1605
1608
|
padding: ${k(300)};
|
|
1606
|
-
`,
|
|
1609
|
+
`,Wv=e=>i.css`
|
|
1607
1610
|
font-size: ${C("small"===e?300:400)};
|
|
1608
1611
|
line-height: ${S("small"===e?500:600)};
|
|
1609
1612
|
font-weight: 400;
|
|
@@ -1614,13 +1617,13 @@
|
|
|
1614
1617
|
color: ${w("error",500)};
|
|
1615
1618
|
margin-right: 0.1875rem;
|
|
1616
1619
|
}
|
|
1617
|
-
`,
|
|
1620
|
+
`,Uv=e=>i.css`
|
|
1618
1621
|
font-size: ${C("small"===e?200:300)};
|
|
1619
1622
|
line-height: ${S("small"===e?400:500)};
|
|
1620
1623
|
font-weight: 400;
|
|
1621
1624
|
color: ${w("neutral",700)};
|
|
1622
1625
|
text-align: left;
|
|
1623
|
-
`,
|
|
1626
|
+
`,Kv=i.css`
|
|
1624
1627
|
display: flex;
|
|
1625
1628
|
align-items: center;
|
|
1626
1629
|
gap: ${k(300)};
|
|
@@ -1641,7 +1644,7 @@
|
|
|
1641
1644
|
margin-top: 1.125rem;
|
|
1642
1645
|
width: 100%;
|
|
1643
1646
|
}
|
|
1644
|
-
`,
|
|
1647
|
+
`,Gv=e=>i.css`
|
|
1645
1648
|
position: relative;
|
|
1646
1649
|
height: 100%;
|
|
1647
1650
|
width: 100%;
|
|
@@ -1650,14 +1653,14 @@
|
|
|
1650
1653
|
align-items: flex-start;
|
|
1651
1654
|
gap: ${k("small"===e?300:400)};
|
|
1652
1655
|
margin-bottom: ${k(400)};
|
|
1653
|
-
`,
|
|
1656
|
+
`,Zv=i.css`
|
|
1654
1657
|
width: 0.1875rem;
|
|
1655
1658
|
height: 100%;
|
|
1656
1659
|
background-color: ${w("error",900)};
|
|
1657
1660
|
position: absolute;
|
|
1658
1661
|
top: 0;
|
|
1659
1662
|
left: 0;
|
|
1660
|
-
`,
|
|
1663
|
+
`,Jv=(e,t)=>i.css`
|
|
1661
1664
|
color: ${w("neutral",t?600:900)};
|
|
1662
1665
|
font-size: ${C("small"===e?300:400)};
|
|
1663
1666
|
font-weight: 400;
|
|
@@ -1671,24 +1674,24 @@
|
|
|
1671
1674
|
.chakra-field__requiredIndicator {
|
|
1672
1675
|
color: ${t?w("neutral",600):w("error",500)};
|
|
1673
1676
|
}
|
|
1674
|
-
`,
|
|
1677
|
+
`,Xv=(e,t)=>i.css`
|
|
1675
1678
|
color: ${w("neutral",t?600:700)};
|
|
1676
1679
|
font-size: ${C("small"===e?200:300)};
|
|
1677
1680
|
font-weight: 400;
|
|
1678
1681
|
line-height: ${S("small"===e?400:500)};
|
|
1679
|
-
`,
|
|
1682
|
+
`,Yv=i.css`
|
|
1680
1683
|
color: ${w("neutral",600)};
|
|
1681
1684
|
font-size: ${C(200)};
|
|
1682
1685
|
font-weight: 400;
|
|
1683
1686
|
line-height: ${S(400)};
|
|
1684
1687
|
margin-top: ${k(200)};
|
|
1685
|
-
`,
|
|
1688
|
+
`,Qv=i.css`
|
|
1686
1689
|
color: ${w("error",900)};
|
|
1687
1690
|
font-size: ${C(300)};
|
|
1688
1691
|
font-weight: 700;
|
|
1689
1692
|
line-height: ${S(500)};
|
|
1690
1693
|
margin-top: ${k(50)};
|
|
1691
|
-
`,
|
|
1694
|
+
`,eb=(e,t,n)=>i.css`
|
|
1692
1695
|
height: 6.5rem;
|
|
1693
1696
|
width: 100%;
|
|
1694
1697
|
border-radius: ${$(300)};
|
|
@@ -1726,7 +1729,7 @@
|
|
|
1726
1729
|
}
|
|
1727
1730
|
|
|
1728
1731
|
${t||n?`\n border: ${E(100)} solid ${w("neutral",700)};\n `:""}
|
|
1729
|
-
`,
|
|
1732
|
+
`,tb=(e,t)=>i.css`
|
|
1730
1733
|
height: ${e};
|
|
1731
1734
|
width: ${t};
|
|
1732
1735
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
@@ -1740,7 +1743,7 @@
|
|
|
1740
1743
|
height: 100%;
|
|
1741
1744
|
overflow-y: scroll;
|
|
1742
1745
|
}
|
|
1743
|
-
`,
|
|
1746
|
+
`,nb=i.css`
|
|
1744
1747
|
padding: ${k(400)} ${k(300)};
|
|
1745
1748
|
border-bottom: ${E(100)} solid
|
|
1746
1749
|
${w("neutral",300)};
|
|
@@ -1764,17 +1767,17 @@
|
|
|
1764
1767
|
color: ${w("neutral",700)};
|
|
1765
1768
|
text-align: left;
|
|
1766
1769
|
}
|
|
1767
|
-
`,
|
|
1770
|
+
`,rb=i.css``,ob=i.css`
|
|
1768
1771
|
display: flex;
|
|
1769
1772
|
flex-direction: column;
|
|
1770
1773
|
gap: ${k(300)};
|
|
1771
1774
|
padding: ${k(300)};
|
|
1772
1775
|
border-bottom: ${E(100)} solid
|
|
1773
1776
|
${w("neutral",300)};
|
|
1774
|
-
`,
|
|
1777
|
+
`,ib=i.css`
|
|
1775
1778
|
padding-top: ${k(300)};
|
|
1776
1779
|
padding-left: ${k(200)};
|
|
1777
|
-
`,
|
|
1780
|
+
`,sb=i.css``,ab=e=>i.css`
|
|
1778
1781
|
display: flex;
|
|
1779
1782
|
gap: ${k(300)};
|
|
1780
1783
|
padding: ${k(300)} ${k(200)};
|
|
@@ -1799,7 +1802,7 @@
|
|
|
1799
1802
|
background-color: ${w("primary",100)};
|
|
1800
1803
|
width: 99.8%;
|
|
1801
1804
|
}
|
|
1802
|
-
`,
|
|
1805
|
+
`,lb=i.css`
|
|
1803
1806
|
width: 100%;
|
|
1804
1807
|
max-width: calc(100% - 2.75rem);
|
|
1805
1808
|
|
|
@@ -1830,7 +1833,7 @@
|
|
|
1830
1833
|
.ds-base-map-children {
|
|
1831
1834
|
margin-top: 0.625rem;
|
|
1832
1835
|
}
|
|
1833
|
-
`,
|
|
1836
|
+
`,cb=(e,t,n,r,o,s="icon")=>{let a="1rem",l=`${E(300)} solid ${w("neutral",100)}`;if("cluster"===s){const e=1.75,t=6,n=.03125;if(l=`${E(300)} solid ${w("neutral",100)}`,void 0!==o&&o>1){const r=e+(o-1)*n;a=`${Math.min(r,t)}rem`}else a=`${e}rem`}else"simple-pin"===s?(l=`${E(300)} solid ${w("error",500)}`,a="1.5rem"):n&&(a="1.75rem",l=`${E(200)} solid ${w("neutral",100)}`);return i.css`
|
|
1834
1837
|
text-overflow: ellipsis;
|
|
1835
1838
|
height: ${a};
|
|
1836
1839
|
width: ${a};
|
|
@@ -1871,14 +1874,14 @@
|
|
|
1871
1874
|
height: 0.875rem;
|
|
1872
1875
|
width: 0.875rem;
|
|
1873
1876
|
}
|
|
1874
|
-
`},
|
|
1877
|
+
`},db=n.forwardRef((({ariaLabel:e,icon:t,backgroundColor:n,onClick:o,showFocusState:s,count:a,mode:l,variant:c="icon"},d)=>{const u=a?(h=a)>=1e8?"99M+":h>=1e6?`${(h/1e6).toFixed(0)}M`:h>=1e5?`${(h/1e3).toFixed(0)}K`:h.toString():void 0;var h;return r.jsx("div",{css:s?i.css`
|
|
1875
1878
|
outline: ${E(200)} solid ${w("primary",700)};
|
|
1876
1879
|
outline-offset: ${k(50)};
|
|
1877
1880
|
border-radius: 50%;
|
|
1878
1881
|
box-shadow:
|
|
1879
1882
|
0 0 0 0.125rem ${w("neutral",100)},
|
|
1880
1883
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
1881
|
-
`:"",children:r.jsxs("button",{type:"button",css:db(n,!!o,!!t,l,a,c),"aria-label":e||(a?`Cluster of ${a} locations`:"simple-pin"===c?"Map pin location":"Map point"),ref:d,onClick:o,children:["cluster"===c&&u,"icon"===c&&t]})})})),hb={Paper:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(ub,{ariaLabel:e||"paper icon",icon:t.jsx(tm,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:n,ref:r,showFocusState:o}),Drop:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(ub,{ariaLabel:e||"drop icon",icon:t.jsx(nm,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:n,ref:r,showFocusState:o}),Plant:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(ub,{ariaLabel:e||"plant icon",icon:t.jsx(rm,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:n,ref:r,showFocusState:o}),Point:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(ub,{ariaLabel:e||"point icon",backgroundColor:w("primary",500),onClick:n,ref:r,showFocusState:o})};function pb(){return"undefined"!=typeof window}function fb(e){return vb(e)?(e.nodeName||"").toLowerCase():"#document"}function mb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gb(e){var t;return null==(t=(vb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vb(e){return!!pb()&&(e instanceof Node||e instanceof mb(e).Node)}function bb(e){return!!pb()&&(e instanceof Element||e instanceof mb(e).Element)}function yb(e){return!!pb()&&(e instanceof HTMLElement||e instanceof mb(e).HTMLElement)}function xb(e){return!(!pb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mb(e).ShadowRoot)}const wb=new Set(["inline","contents"]);function Cb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Nb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wb.has(o)}const kb=new Set(["table","td","th"]);function Sb(e){return kb.has(fb(e))}const $b=[":popover-open",":modal"];function Eb(e){return $b.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Mb=["transform","translate","scale","rotate","perspective"],jb=["transform","translate","scale","rotate","perspective","filter"],Tb=["paint","layout","strict","content"];function Ob(e){const t=Lb(),n=bb(e)?Nb(e):e;return Mb.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||jb.some((e=>(n.willChange||"").includes(e)))||Tb.some((e=>(n.contain||"").includes(e)))}function Lb(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ab=new Set(["html","body","#document"]);function Rb(e){return Ab.has(fb(e))}function Nb(e){return mb(e).getComputedStyle(e)}function Db(e){return bb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ib(e){if("html"===fb(e))return e;const t=e.assignedSlot||e.parentNode||xb(e)&&e.host||gb(e);return xb(t)?t.host:t}function Pb(e){const t=Ib(e);return Rb(t)?e.ownerDocument?e.ownerDocument.body:e.body:yb(t)&&Cb(t)?t:Pb(t)}function zb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=mb(o);if(i){const e=Vb(s);return t.concat(s,s.visualViewport||[],Cb(o)?o:[],e&&n?zb(e):[])}return t.concat(o,zb(o,[],n))}function Vb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Bb=Math.min,_b=Math.max,Hb=Math.round,Fb=Math.floor,qb=e=>({x:e,y:e}),Wb={left:"right",right:"left",bottom:"top",top:"bottom"},Ub={start:"end",end:"start"};function Kb(e,t,n){return _b(e,Bb(t,n))}function Gb(e,t){return"function"==typeof e?e(t):e}function Zb(e){return e.split("-")[0]}function Jb(e){return e.split("-")[1]}function Xb(e){return"x"===e?"y":"x"}function Yb(e){return"y"===e?"height":"width"}const Qb=new Set(["top","bottom"]);function ey(e){return Qb.has(Zb(e))?"y":"x"}function ty(e){return Xb(ey(e))}function ny(e){return e.replace(/start|end/g,(e=>Ub[e]))}const ry=["left","right"],oy=["right","left"],iy=["top","bottom"],sy=["bottom","top"];function ay(e,t,n,r){const o=Jb(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?oy:ry:t?ry:oy;case"left":case"right":return t?iy:sy;default:return[]}}(Zb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ny)))),i}function ly(e){return e.replace(/left|right|bottom|top/g,(e=>Wb[e]))}function cy(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 dy(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 uy="data-floating-ui-focusable";function hy(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&xb(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function py(e){return"composedPath"in e?e.composedPath()[0]:e.target}function fy(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 my(e){return(null==e?void 0:e.ownerDocument)||document}function gy(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,...gy(e,t.id,n)]))}var vy="undefined"!=typeof document?n.useLayoutEffect:function(){};const by={...l}.useInsertionEffect||(e=>e());function yy(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return by((()=>{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 xy(e,t,n){let{reference:r,floating:o}=e;const i=ey(t),s=ty(t),a=Yb(s),l=Zb(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Jb(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function wy(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=Gb(t,e),f=cy(p),m=a[h?"floating"===u?"reference":"floating":u],g=dy(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=dy(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+f.top)/y.y,bottom:(x.bottom-g.bottom+f.bottom)/y.y,left:(g.left-x.left+f.left)/y.x,right:(x.right-g.right+f.right)/y.x}}const Cy=new Set(["left","top"]);function ky(e){const t=Nb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yb(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Hb(n)!==i||Hb(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Sy(e){return bb(e)?e:e.contextElement}function $y(e){const t=Sy(e);if(!yb(t))return qb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ky(t);let s=(i?Hb(n.width):n.width)/r,a=(i?Hb(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ey=qb(0);function My(e){const t=mb(e);return Lb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ey}function jy(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Sy(e);let s=qb(1);t&&(r?bb(r)&&(s=$y(r)):s=$y(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mb(e))&&t}(i,n,r)?My(i):qb(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=mb(i),t=r&&bb(r)?mb(r):r;let n=e,o=Vb(n);for(;o&&r&&t!==n;){const e=$y(o),t=o.getBoundingClientRect(),r=Nb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=mb(o),o=Vb(n)}}return dy({width:d,height:u,x:l,y:c})}function Ty(e,t){const n=Db(e).scrollLeft;return t?t.left+n:jy(gb(e)).left+n}function Oy(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ty(e,n),y:n.top+t.scrollTop}}const Ly=new Set(["absolute","fixed"]);function Ay(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mb(e),r=gb(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Lb();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ty(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,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=gb(e),n=Db(e),r=e.ownerDocument.body,o=_b(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_b(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ty(e);const a=-n.scrollTop;return"rtl"===Nb(r).direction&&(s+=_b(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(gb(e));else if(bb(t))r=function(e,t){const n=jy(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=yb(e)?$y(e):qb(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=My(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return dy(r)}function Ry(e,t){const n=Ib(e);return!(n===t||!bb(n)||Rb(n))&&("fixed"===Nb(n).position||Ry(n,t))}function Ny(e,t,n){const r=yb(t),o=gb(t),i="fixed"===n,s=jy(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=qb(0);function c(){l.x=Ty(o)}if(r||!r&&!i)if(("body"!==fb(t)||Cb(o))&&(a=Db(t)),r){const e=jy(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?qb(0):Oy(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Dy(e){return"static"===Nb(e).position}function Iy(e,t){if(!yb(e)||"fixed"===Nb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gb(e)===n&&(n=n.ownerDocument.body),n}function Py(e,t){const n=mb(e);if(Eb(e))return n;if(!yb(e)){let t=Ib(e);for(;t&&!Rb(t);){if(bb(t)&&!Dy(t))return t;t=Ib(t)}return n}let r=Iy(e,t);for(;r&&Sb(r)&&Dy(r);)r=Iy(r,t);return r&&Rb(r)&&Dy(r)&&!Ob(r)?n:r||function(e){let t=Ib(e);for(;yb(t)&&!Rb(t);){if(Ob(t))return t;if(Eb(t))return null;t=Ib(t)}return null}(e)||n}const zy={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=gb(r),a=!!t&&Eb(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=qb(1);const d=qb(0),u=yb(r);if((u||!u&&!i)&&(("body"!==fb(r)||Cb(s))&&(l=Db(r)),yb(r))){const e=jy(r);c=$y(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?qb(0):Oy(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:gb,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Eb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=zb(e,[],!1).filter((e=>bb(e)&&"body"!==fb(e))),o=null;const i="fixed"===Nb(e).position;let s=i?Ib(e):e;for(;bb(s)&&!Rb(s);){const t=Nb(s),n=Ob(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ly.has(o.position)||Cb(s)&&!n&&Ry(e,s))?r=r.filter((e=>e!==s)):o=t,s=Ib(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=Ay(t,n,o);return e.top=_b(r.top,e.top),e.right=Bb(r.right,e.right),e.bottom=Bb(r.bottom,e.bottom),e.left=_b(r.left,e.left),e}),Ay(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Py,getElementRects:async function(e){const t=this.getOffsetParent||Py,n=this.getDimensions,r=await n(e.floating);return{reference:Ny(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}=ky(e);return{width:t,height:n}},getScale:$y,isElement:bb,isRTL:function(e){return"rtl"===Nb(e).direction}};function Vy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function By(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Sy(e),d=o||i?[...c?zb(c):[],...zb(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=gb(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Fb(u)+"px "+-Fb(o.clientWidth-(d+h))+"px "+-Fb(o.clientHeight-(u+p))+"px "+-Fb(d)+"px",threshold:_b(0,Bb(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Vy(c,e.getBoundingClientRect())||s(),m=!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 h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?jy(e):null;return l&&function t(){const r=jy(e);m&&!Vy(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const _y=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=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)),s=Zb(n),a=Jb(n),l="y"===ey(n),c=Cy.has(s)?-1:1,d=i&&l?-1:1,u=Gb(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Hy=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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Gb(e,t),c={x:n,y:r},d=await wy(t,l),u=ey(Zb(o)),h=Xb(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=Kb(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=Kb(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},Fy=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Gb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Zb(o),b=ey(a),y=Zb(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(y||!m?[ly(a)]:function(e){const t=ly(e);return[ny(e),t,ny(t)]}(a)),C="none"!==f;!h&&C&&w.push(...ay(a,m,f,x));const k=[a,...w],S=await wy(t,g),$=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&$.push(S[v]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=Jb(e),o=ty(e),i=Yb(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ly(s)),[s,ly(s)]}(o,s,x);$.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:o,overflows:$}],!$.every((e=>e<=0))){var M,j;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&b!==ey(t))||E.every((e=>ey(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(j=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=E.filter((e=>{if(C){const t=ey(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},qy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Gb(e,t)||{};if(null==c)return{};const u=cy(d),h={x:n,y:r},p=ty(o),f=Yb(p),m=await s.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[f]+i.reference[p]-h[p]-i.floating[f],w=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const S=x/2-w/2,$=k/2-m[f]/2-1,E=Bb(u[v],$),M=Bb(u[b],$),j=E,T=k-m[f]-M,O=k/2-m[f]/2+S,L=Kb(j,O,T),A=!l.arrow&&null!=Jb(o)&&O!==L&&i.reference[f]/2-(O<j?E:M)-m[f]/2<0,R=A?O<j?O-j:O-T:0;return{[p]:h[p]+R,data:{[p]:L,centerOffset:O-L-R,...A&&{alignmentOffset:R}},reset:A}}}),Wy=(e,t,n)=>{const r=new Map,o={platform:zy,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=xy(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:v,data:b,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,p={...p,[i]:{...p[i],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=xy(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Uy="undefined"!=typeof document?n.useLayoutEffect:function(){};function Ky(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(!Ky(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)&&!Ky(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Gy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=Gy(e);return Math.round(t*n)/n}function Jy(e){const t=l.useRef(e);return Uy((()=>{t.current=e})),t}const Xy=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?qy({element:n.current,padding:r}).fn(t):{}:n?qy({element:n,padding:r}).fn(t):{};var o}}),Yy=(e,t)=>({..._y(e),options:[e,t]}),Qy=(e,t)=>({...Hy(e),options:[e,t]}),ex=(e,t)=>({...Xy(e),options:[e,t]}),tx="data-floating-ui-focusable",nx="active",rx="selected",ox={...l};let ix=!1,sx=0;const ax=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sx++;const lx=ox.useId||function(){const[e,t]=l.useState((()=>ix?ax():void 0));return vy((()=>{null==e&&t(ax())}),[]),l.useEffect((()=>{ix=!0}),[]),e};let cx;"production"!==process.env.NODE_ENV&&(cx=new Set);const dx=l.createContext(null),ux=l.createContext(null),hx=()=>{var e;return(null==(e=l.useContext(dx))?void 0:e.id)||null},px=()=>l.useContext(ux);const fx={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},mx={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gx=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 vx(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=lx(),i=l.useRef({}),[s]=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)}}}())),a=null!=hx();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!bb(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=cx)&&e.has(o)||(null==(i=cx)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,d]=l.useState(r.reference),u=yy(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),h=l.useMemo((()=>({setPositionReference:d})),[]),p=l.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return l.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:s,floatingId:o,refs:h})),[t,u,p,s,o,h])}function bx(e){void 0===e&&(e={});const{nodeId:t}=e,n=vx({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=l.useState(null),[a,d]=l.useState(null),u=(null==o?void 0:o.domReference)||i,h=l.useRef(null),p=px();vy((()=>{u&&(h.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:u}=e,[h,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=l.useState(r);Ky(f,r)||m(r);const[g,v]=l.useState(null),[b,y]=l.useState(null),x=l.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=l.useCallback((e=>{e!==$.current&&($.current=e,y(e))}),[]),C=i||g,k=s||b,S=l.useRef(null),$=l.useRef(null),E=l.useRef(h),M=null!=d,j=Jy(d),T=Jy(o),O=Jy(u),L=l.useCallback((()=>{if(!S.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),Wy(S.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};A.current&&!Ky(E.current,t)&&(E.current=t,c.flushSync((()=>{p(t)})))}))}),[f,t,n,T,O]);Uy((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=l.useRef(!1);Uy((()=>(A.current=!0,()=>{A.current=!1})),[]),Uy((()=>{if(C&&(S.current=C),k&&($.current=k),C&&k){if(j.current)return j.current(C,k,L);L()}}),[C,k,L,j,M]);const R=l.useMemo((()=>({reference:S,floating:$,setReference:x,setFloating:w})),[x,w]),N=l.useMemo((()=>({reference:C,floating:k})),[C,k]),D=l.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Zy(N.floating,h.x),r=Zy(N.floating,h.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Gy(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,h.x,h.y]);return l.useMemo((()=>({...h,update:L,refs:R,elements:N,floatingStyles:D})),[h,L,R,N,D])}({...e,elements:{...o,...a&&{reference:a}}}),m=l.useCallback((e=>{const t=bb(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(bb(e)||null===e)&&(h.current=e,s(e)),(bb(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!bb(e))&&f.refs.setReference(e)}),[f.refs]),v=l.useMemo((()=>({...f.refs,setReference:g,setPositionReference:m,domReference:h})),[f.refs,g,m]),b=l.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=l.useMemo((()=>({...f,...r,refs:v,elements:b,nodeId:t})),[f,v,b,t,r]);return vy((()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),l.useMemo((()=>({...f,context:y,refs:v,elements:b})),[f,v,b,y])}function yx(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[nx]:t,[rx]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[tx]:""},...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 s;o&&[nx,rx].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.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 xx=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function wx(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,d=lx(),u=(null==(n=i.domReference)?void 0:n.id)||d,h=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(uy)?t:t.querySelector("["+uy+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),p=null!=(r=xx.get(c))?r:c,f=null!=hx(),m=l.useMemo((()=>"tooltip"===p||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:o?h:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":o?h:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:u},..."menu"===p&&f&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}}),[p,h,f,o,u,c]),g=l.useMemo((()=>{const e={id:h,...p&&{role:p}};return"tooltip"===p||"label"===c?e:{...e,..."menu"===p&&{"aria-labelledby":u}}}),[p,h,u,c]),v=l.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[h,c]);return l.useMemo((()=>a?{reference:m,floating:g,item:v}:{}),[a,m,g,v])}const Cx=i.css`
|
|
1884
|
+
`:"",children:r.jsxs("button",{type:"button",css:cb(n,!!o,!!t,l,a,c),"aria-label":e||(a?`Cluster of ${a} locations`:"simple-pin"===c?"Map pin location":"Map point"),ref:d,onClick:o,children:["cluster"===c&&u,"icon"===c&&t]})})})),ub={Paper:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(db,{ariaLabel:e||"paper icon",icon:t.jsx(tm,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:n,ref:r,showFocusState:o}),Drop:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(db,{ariaLabel:e||"drop icon",icon:t.jsx(nm,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:n,ref:r,showFocusState:o}),Plant:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(db,{ariaLabel:e||"plant icon",icon:t.jsx(rm,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:n,ref:r,showFocusState:o}),Point:({ariaLabel:e,onClick:n,triggerRef:r,showFocusState:o})=>t.jsx(db,{ariaLabel:e||"point icon",backgroundColor:w("primary",500),onClick:n,ref:r,showFocusState:o})};function hb(){return"undefined"!=typeof window}function pb(e){return gb(e)?(e.nodeName||"").toLowerCase():"#document"}function fb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mb(e){var t;return null==(t=(gb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gb(e){return!!hb()&&(e instanceof Node||e instanceof fb(e).Node)}function vb(e){return!!hb()&&(e instanceof Element||e instanceof fb(e).Element)}function bb(e){return!!hb()&&(e instanceof HTMLElement||e instanceof fb(e).HTMLElement)}function yb(e){return!(!hb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fb(e).ShadowRoot)}const xb=new Set(["inline","contents"]);function wb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xb.has(o)}const Cb=new Set(["table","td","th"]);function kb(e){return Cb.has(pb(e))}const Sb=[":popover-open",":modal"];function $b(e){return Sb.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Eb=["transform","translate","scale","rotate","perspective"],Mb=["transform","translate","scale","rotate","perspective","filter"],jb=["paint","layout","strict","content"];function Tb(e){const t=Ob(),n=vb(e)?Rb(e):e;return Eb.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Mb.some((e=>(n.willChange||"").includes(e)))||jb.some((e=>(n.contain||"").includes(e)))}function Ob(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Lb=new Set(["html","body","#document"]);function Ab(e){return Lb.has(pb(e))}function Rb(e){return fb(e).getComputedStyle(e)}function Nb(e){return vb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Db(e){if("html"===pb(e))return e;const t=e.assignedSlot||e.parentNode||yb(e)&&e.host||mb(e);return yb(t)?t.host:t}function Ib(e){const t=Db(e);return Ab(t)?e.ownerDocument?e.ownerDocument.body:e.body:bb(t)&&wb(t)?t:Ib(t)}function Pb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ib(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fb(o);if(i){const e=zb(s);return t.concat(s,s.visualViewport||[],wb(o)?o:[],e&&n?Pb(e):[])}return t.concat(o,Pb(o,[],n))}function zb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Vb=Math.min,Bb=Math.max,_b=Math.round,Hb=Math.floor,Fb=e=>({x:e,y:e}),qb={left:"right",right:"left",bottom:"top",top:"bottom"},Wb={start:"end",end:"start"};function Ub(e,t,n){return Bb(e,Vb(t,n))}function Kb(e,t){return"function"==typeof e?e(t):e}function Gb(e){return e.split("-")[0]}function Zb(e){return e.split("-")[1]}function Jb(e){return"x"===e?"y":"x"}function Xb(e){return"y"===e?"height":"width"}const Yb=new Set(["top","bottom"]);function Qb(e){return Yb.has(Gb(e))?"y":"x"}function ey(e){return Jb(Qb(e))}function ty(e){return e.replace(/start|end/g,(e=>Wb[e]))}const ny=["left","right"],ry=["right","left"],oy=["top","bottom"],iy=["bottom","top"];function sy(e,t,n,r){const o=Zb(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ry:ny:t?ny:ry;case"left":case"right":return t?oy:iy;default:return[]}}(Gb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ty)))),i}function ay(e){return e.replace(/left|right|bottom|top/g,(e=>qb[e]))}function ly(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 cy(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 dy="data-floating-ui-focusable";function uy(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yb(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function hy(e){return"composedPath"in e?e.composedPath()[0]:e.target}function py(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 fy(e){return(null==e?void 0:e.ownerDocument)||document}function my(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,...my(e,t.id,n)]))}var gy="undefined"!=typeof document?n.useLayoutEffect:function(){};const vy={...l}.useInsertionEffect||(e=>e());function by(e){const t=l.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return vy((()=>{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 yy(e,t,n){let{reference:r,floating:o}=e;const i=Qb(t),s=ey(t),a=Xb(s),l=Gb(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Zb(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function xy(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=Kb(t,e),f=ly(p),m=a[h?"floating"===u?"reference":"floating":u],g=cy(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=cy(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+f.top)/y.y,bottom:(x.bottom-g.bottom+f.bottom)/y.y,left:(g.left-x.left+f.left)/y.x,right:(x.right-g.right+f.right)/y.x}}const wy=new Set(["left","top"]);function Cy(e){const t=Rb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bb(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=_b(n)!==i||_b(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ky(e){return vb(e)?e:e.contextElement}function Sy(e){const t=ky(e);if(!bb(t))return Fb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Cy(t);let s=(i?_b(n.width):n.width)/r,a=(i?_b(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const $y=Fb(0);function Ey(e){const t=fb(e);return Ob()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$y}function My(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ky(e);let s=Fb(1);t&&(r?vb(r)&&(s=Sy(r)):s=Sy(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fb(e))&&t}(i,n,r)?Ey(i):Fb(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=fb(i),t=r&&vb(r)?fb(r):r;let n=e,o=zb(n);for(;o&&r&&t!==n;){const e=Sy(o),t=o.getBoundingClientRect(),r=Rb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=fb(o),o=zb(n)}}return cy({width:d,height:u,x:l,y:c})}function jy(e,t){const n=Nb(e).scrollLeft;return t?t.left+n:My(mb(e)).left+n}function Ty(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-jy(e,n),y:n.top+t.scrollTop}}const Oy=new Set(["absolute","fixed"]);function Ly(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=fb(e),r=mb(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Ob();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=jy(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,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=mb(e),n=Nb(e),r=e.ownerDocument.body,o=Bb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jy(e);const a=-n.scrollTop;return"rtl"===Rb(r).direction&&(s+=Bb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(mb(e));else if(vb(t))r=function(e,t){const n=My(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bb(e)?Sy(e):Fb(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=Ey(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cy(r)}function Ay(e,t){const n=Db(e);return!(n===t||!vb(n)||Ab(n))&&("fixed"===Rb(n).position||Ay(n,t))}function Ry(e,t,n){const r=bb(t),o=mb(t),i="fixed"===n,s=My(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Fb(0);function c(){l.x=jy(o)}if(r||!r&&!i)if(("body"!==pb(t)||wb(o))&&(a=Nb(t)),r){const e=My(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?Fb(0):Ty(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Ny(e){return"static"===Rb(e).position}function Dy(e,t){if(!bb(e)||"fixed"===Rb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mb(e)===n&&(n=n.ownerDocument.body),n}function Iy(e,t){const n=fb(e);if($b(e))return n;if(!bb(e)){let t=Db(e);for(;t&&!Ab(t);){if(vb(t)&&!Ny(t))return t;t=Db(t)}return n}let r=Dy(e,t);for(;r&&kb(r)&&Ny(r);)r=Dy(r,t);return r&&Ab(r)&&Ny(r)&&!Tb(r)?n:r||function(e){let t=Db(e);for(;bb(t)&&!Ab(t);){if(Tb(t))return t;if($b(t))return null;t=Db(t)}return null}(e)||n}const Py={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=mb(r),a=!!t&&$b(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Fb(1);const d=Fb(0),u=bb(r);if((u||!u&&!i)&&(("body"!==pb(r)||wb(s))&&(l=Nb(r)),bb(r))){const e=My(r);c=Sy(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?Fb(0):Ty(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:mb,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?$b(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Pb(e,[],!1).filter((e=>vb(e)&&"body"!==pb(e))),o=null;const i="fixed"===Rb(e).position;let s=i?Db(e):e;for(;vb(s)&&!Ab(s);){const t=Rb(s),n=Tb(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Oy.has(o.position)||wb(s)&&!n&&Ay(e,s))?r=r.filter((e=>e!==s)):o=t,s=Db(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=Ly(t,n,o);return e.top=Bb(r.top,e.top),e.right=Vb(r.right,e.right),e.bottom=Vb(r.bottom,e.bottom),e.left=Bb(r.left,e.left),e}),Ly(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Iy,getElementRects:async function(e){const t=this.getOffsetParent||Iy,n=this.getDimensions,r=await n(e.floating);return{reference:Ry(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}=Cy(e);return{width:t,height:n}},getScale:Sy,isElement:vb,isRTL:function(e){return"rtl"===Rb(e).direction}};function zy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vy(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=ky(e),d=o||i?[...c?Pb(c):[],...Pb(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=mb(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Hb(u)+"px "+-Hb(o.clientWidth-(d+h))+"px "+-Hb(o.clientHeight-(u+p))+"px "+-Hb(d)+"px",threshold:Bb(0,Vb(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||zy(c,e.getBoundingClientRect())||s(),m=!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 h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?My(e):null;return l&&function t(){const r=My(e);m&&!zy(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const By=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=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)),s=Gb(n),a=Zb(n),l="y"===Qb(n),c=wy.has(s)?-1:1,d=i&&l?-1:1,u=Kb(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},_y=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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kb(e,t),c={x:n,y:r},d=await xy(t,l),u=Qb(Gb(o)),h=Jb(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=Ub(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=Ub(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},Hy=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Kb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Gb(o),b=Qb(a),y=Gb(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(y||!m?[ay(a)]:function(e){const t=ay(e);return[ty(e),t,ty(t)]}(a)),C="none"!==f;!h&&C&&w.push(...sy(a,m,f,x));const k=[a,...w],S=await xy(t,g),$=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&$.push(S[v]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=Zb(e),o=ey(e),i=Xb(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ay(s)),[s,ay(s)]}(o,s,x);$.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:o,overflows:$}],!$.every((e=>e<=0))){var M,j;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&b!==Qb(t))||E.every((e=>Qb(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(j=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=E.filter((e=>{if(C){const t=Qb(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Fy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Kb(e,t)||{};if(null==c)return{};const u=ly(d),h={x:n,y:r},p=ey(o),f=Xb(p),m=await s.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[f]+i.reference[p]-h[p]-i.floating[f],w=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const S=x/2-w/2,$=k/2-m[f]/2-1,E=Vb(u[v],$),M=Vb(u[b],$),j=E,T=k-m[f]-M,O=k/2-m[f]/2+S,L=Ub(j,O,T),A=!l.arrow&&null!=Zb(o)&&O!==L&&i.reference[f]/2-(O<j?E:M)-m[f]/2<0,R=A?O<j?O-j:O-T:0;return{[p]:h[p]+R,data:{[p]:L,centerOffset:O-L-R,...A&&{alignmentOffset:R}},reset:A}}}),qy=(e,t,n)=>{const r=new Map,o={platform:Py,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=yy(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:v,data:b,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,p={...p,[i]:{...p[i],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=yy(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Wy="undefined"!=typeof document?n.useLayoutEffect:function(){};function Uy(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(!Uy(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)&&!Uy(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ky(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gy(e,t){const n=Ky(e);return Math.round(t*n)/n}function Zy(e){const t=l.useRef(e);return Wy((()=>{t.current=e})),t}const Jy=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?Fy({element:n.current,padding:r}).fn(t):{}:n?Fy({element:n,padding:r}).fn(t):{};var o}}),Xy=(e,t)=>({...By(e),options:[e,t]}),Yy=(e,t)=>({..._y(e),options:[e,t]}),Qy=(e,t)=>({...Jy(e),options:[e,t]}),ex="data-floating-ui-focusable",tx="active",nx="selected",rx={...l};let ox=!1,ix=0;const sx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ix++;const ax=rx.useId||function(){const[e,t]=l.useState((()=>ox?sx():void 0));return gy((()=>{null==e&&t(sx())}),[]),l.useEffect((()=>{ox=!0}),[]),e};let lx;"production"!==process.env.NODE_ENV&&(lx=new Set);const cx=l.createContext(null),dx=l.createContext(null),ux=()=>{var e;return(null==(e=l.useContext(cx))?void 0:e.id)||null},hx=()=>l.useContext(dx);const px={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},fx={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mx=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 gx(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ax(),i=l.useRef({}),[s]=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)}}}())),a=null!=ux();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!vb(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=lx)&&e.has(o)||(null==(i=lx)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,d]=l.useState(r.reference),u=by(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),h=l.useMemo((()=>({setPositionReference:d})),[]),p=l.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return l.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:s,floatingId:o,refs:h})),[t,u,p,s,o,h])}function vx(e){void 0===e&&(e={});const{nodeId:t}=e,n=gx({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=l.useState(null),[a,d]=l.useState(null),u=(null==o?void 0:o.domReference)||i,h=l.useRef(null),p=hx();gy((()=>{u&&(h.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:u}=e,[h,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=l.useState(r);Uy(f,r)||m(r);const[g,v]=l.useState(null),[b,y]=l.useState(null),x=l.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=l.useCallback((e=>{e!==$.current&&($.current=e,y(e))}),[]),C=i||g,k=s||b,S=l.useRef(null),$=l.useRef(null),E=l.useRef(h),M=null!=d,j=Zy(d),T=Zy(o),O=Zy(u),L=l.useCallback((()=>{if(!S.current||!$.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),qy(S.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};A.current&&!Uy(E.current,t)&&(E.current=t,c.flushSync((()=>{p(t)})))}))}),[f,t,n,T,O]);Wy((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=l.useRef(!1);Wy((()=>(A.current=!0,()=>{A.current=!1})),[]),Wy((()=>{if(C&&(S.current=C),k&&($.current=k),C&&k){if(j.current)return j.current(C,k,L);L()}}),[C,k,L,j,M]);const R=l.useMemo((()=>({reference:S,floating:$,setReference:x,setFloating:w})),[x,w]),N=l.useMemo((()=>({reference:C,floating:k})),[C,k]),D=l.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Gy(N.floating,h.x),r=Gy(N.floating,h.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Ky(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,h.x,h.y]);return l.useMemo((()=>({...h,update:L,refs:R,elements:N,floatingStyles:D})),[h,L,R,N,D])}({...e,elements:{...o,...a&&{reference:a}}}),m=l.useCallback((e=>{const t=vb(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),f.refs.setReference(t)}),[f.refs]),g=l.useCallback((e=>{(vb(e)||null===e)&&(h.current=e,s(e)),(vb(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!vb(e))&&f.refs.setReference(e)}),[f.refs]),v=l.useMemo((()=>({...f.refs,setReference:g,setPositionReference:m,domReference:h})),[f.refs,g,m]),b=l.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),y=l.useMemo((()=>({...f,...r,refs:v,elements:b,nodeId:t})),[f,v,b,t,r]);return gy((()=>{r.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),l.useMemo((()=>({...f,context:y,refs:v,elements:b})),[f,v,b,y])}function bx(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[tx]:t,[nx]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[ex]:""},...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 s;o&&[tx,nx].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.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 yx=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xx(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,d=ax(),u=(null==(n=i.domReference)?void 0:n.id)||d,h=l.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(dy)?t:t.querySelector("["+dy+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),p=null!=(r=yx.get(c))?r:c,f=null!=ux(),m=l.useMemo((()=>"tooltip"===p||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:o?h:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":o?h:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:u},..."menu"===p&&f&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}}),[p,h,f,o,u,c]),g=l.useMemo((()=>{const e={id:h,...p&&{role:p}};return"tooltip"===p||"label"===c?e:{...e,..."menu"===p&&{"aria-labelledby":u}}}),[p,h,u,c]),v=l.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[h,c]);return l.useMemo((()=>a?{reference:m,floating:g,item:v}:{}),[a,m,g,v])}const wx=i.css`
|
|
1882
1885
|
height: auto;
|
|
1883
1886
|
max-height: 32rem;
|
|
1884
1887
|
width: 100%;
|
|
@@ -1892,7 +1895,7 @@
|
|
|
1892
1895
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
1893
1896
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
1894
1897
|
outline: 0;
|
|
1895
|
-
`,
|
|
1898
|
+
`,Cx=i.css`
|
|
1896
1899
|
display: flex;
|
|
1897
1900
|
align-items: flex-start;
|
|
1898
1901
|
justify-content: space-between;
|
|
@@ -1905,7 +1908,7 @@
|
|
|
1905
1908
|
.ds-map-pop-up-close-button {
|
|
1906
1909
|
margin-top: ${k(100)};
|
|
1907
1910
|
}
|
|
1908
|
-
`,
|
|
1911
|
+
`,kx=i.css`
|
|
1909
1912
|
height: 100%;
|
|
1910
1913
|
max-height: 25rem;
|
|
1911
1914
|
overflow-y: auto;
|
|
@@ -1913,12 +1916,12 @@
|
|
|
1913
1916
|
&:focus-visible {
|
|
1914
1917
|
outline-color: ${w("primary",700)};
|
|
1915
1918
|
}
|
|
1916
|
-
|
|
1919
|
+
`,Sx=i.css`
|
|
1917
1920
|
padding: ${k(200)} ${k(300)};
|
|
1918
1921
|
border-top: ${E(100)} solid
|
|
1919
1922
|
${w("neutral",300)};
|
|
1920
1923
|
min-height: 2.75rem;
|
|
1921
|
-
|
|
1924
|
+
`,$x=(e,t,n,r,o,s)=>i.css`
|
|
1922
1925
|
height: ${e}px;
|
|
1923
1926
|
width: ${t}px;
|
|
1924
1927
|
position: absolute;
|
|
@@ -1927,15 +1930,15 @@
|
|
|
1927
1930
|
${`${o}: -${s-1}px`};
|
|
1928
1931
|
background-color: ${w("neutral",100)};
|
|
1929
1932
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
1930
|
-
`,
|
|
1933
|
+
`,Ex=i.css`
|
|
1931
1934
|
background-color: ${w("neutral",100)};
|
|
1932
|
-
`,
|
|
1935
|
+
`,Mx=i.css`
|
|
1933
1936
|
padding: ${k(400)} ${k(400)} 0
|
|
1934
1937
|
${k(400)};
|
|
1935
1938
|
&:focus-visible {
|
|
1936
1939
|
outline-color: ${w("primary",700)};
|
|
1937
1940
|
}
|
|
1938
|
-
`,
|
|
1941
|
+
`,jx=i.css`
|
|
1939
1942
|
font-size: ${C(400)};
|
|
1940
1943
|
font-weight: 700;
|
|
1941
1944
|
line-height: ${S(600)};
|
|
@@ -1945,14 +1948,14 @@
|
|
|
1945
1948
|
align-items: center;
|
|
1946
1949
|
text-align: left;
|
|
1947
1950
|
gap: 0.625rem;
|
|
1948
|
-
`,
|
|
1951
|
+
`,Tx=i.css`
|
|
1949
1952
|
font-size: ${C(200)};
|
|
1950
1953
|
font-weight: 400;
|
|
1951
1954
|
line-height: ${S(400)};
|
|
1952
1955
|
text-align: left;
|
|
1953
1956
|
color: ${w("neutral",700)};
|
|
1954
1957
|
margin-bottom: ${k(200)};
|
|
1955
|
-
`,
|
|
1958
|
+
`,Ox=i.css`
|
|
1956
1959
|
width: 100%;
|
|
1957
1960
|
padding: ${k(400)} 0;
|
|
1958
1961
|
border-bottom: ${E(100)} solid
|
|
@@ -1961,32 +1964,32 @@
|
|
|
1961
1964
|
&:last-of-type {
|
|
1962
1965
|
border-bottom: none;
|
|
1963
1966
|
}
|
|
1964
|
-
`,
|
|
1967
|
+
`,Lx=i.css`
|
|
1965
1968
|
display: flex;
|
|
1966
1969
|
align-items: flex-start;
|
|
1967
1970
|
justify-content: space-between;
|
|
1968
|
-
`,
|
|
1971
|
+
`,Ax=i.css`
|
|
1969
1972
|
display: flex;
|
|
1970
1973
|
flex-direction: column;
|
|
1971
|
-
`,
|
|
1974
|
+
`,Rx=e=>i.css`
|
|
1972
1975
|
font-size: ${C(400)};
|
|
1973
1976
|
font-weight: 400;
|
|
1974
1977
|
line-height: ${S(600)};
|
|
1975
1978
|
text-align: left;
|
|
1976
1979
|
color: ${w("neutral",e?500:800)};
|
|
1977
|
-
`,
|
|
1980
|
+
`,Nx=e=>i.css`
|
|
1978
1981
|
font-size: ${C(300)};
|
|
1979
1982
|
font-weight: 400;
|
|
1980
1983
|
line-height: ${S(500)};
|
|
1981
1984
|
text-align: left;
|
|
1982
1985
|
color: ${w("neutral",e?500:700)};
|
|
1983
|
-
`,
|
|
1986
|
+
`,Dx=({name:t,label:n,caption:o,showInfoButton:i=!0,infoButtonLabel:s="About data",variant:a="switch",disabled:l,onInfoClick:c,isDefaultSelected:d=!1,onChange:u})=>{const h="switch"===a;return r.jsxs("div",{css:Ox,children:[h?r.jsxs("div",{css:Lx,children:[r.jsxs("div",{css:Ax,children:[r.jsx("p",{css:Rx(l),"aria-label":n,"aria-disabled":l,children:n}),r.jsx("p",{"aria-label":o,css:Nx(l),children:o})]}),r.jsx(Pg,{"aria-label":`${n}, ${o}`,name:t,disabled:l,defaultChecked:d,onChange:u})]}):r.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[r.jsx($g,{value:t,disabled:l,fontSize:"1rem",color:"var(--chakra-colors-neutral-800)",children:n}),r.jsx("p",{style:{marginLeft:"1.75rem"},css:Nx(l),children:o})]}),i?r.jsx(e.Box,{display:"flex",justifyContent:"flex-start",marginTop:"0.5rem",marginLeft:h?0:"1.75rem",children:r.jsx(jf,{variant:"secondary",label:s,rightIcon:r.jsx(Df,{}),size:"small",onClick:c,disabled:l})}):null]})},Ix=i.css`
|
|
1984
1987
|
margin-bottom: ${k(400)};
|
|
1985
1988
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
1986
1989
|
border-radius: ${$(300)};
|
|
1987
1990
|
box-shadow: 0 1px 0.125rem 0 #0000000d;
|
|
1988
1991
|
background-color: ${w("neutral",100)};
|
|
1989
|
-
`,
|
|
1992
|
+
`,Px=i.css`
|
|
1990
1993
|
padding: 0.375rem ${k(200)};
|
|
1991
1994
|
align-items: center;
|
|
1992
1995
|
background-color: ${w("neutral",100)};
|
|
@@ -2010,12 +2013,12 @@
|
|
|
2010
2013
|
0 0 0 0.125rem ${w("neutral",100)},
|
|
2011
2014
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2012
2015
|
}
|
|
2013
|
-
`,
|
|
2016
|
+
`,zx=i.css`
|
|
2014
2017
|
font-size: ${C(200)};
|
|
2015
2018
|
font-weight: 700;
|
|
2016
2019
|
line-height: ${S(400)};
|
|
2017
2020
|
color: ${w("neutral",800)};
|
|
2018
|
-
`,
|
|
2021
|
+
`,Vx=i.css`
|
|
2019
2022
|
padding: ${k(300)} ${k(200)};
|
|
2020
2023
|
display: flex;
|
|
2021
2024
|
flex-direction: column;
|
|
@@ -2032,7 +2035,7 @@
|
|
|
2032
2035
|
margin-bottom: 0;
|
|
2033
2036
|
}
|
|
2034
2037
|
}
|
|
2035
|
-
`,
|
|
2038
|
+
`,Bx=i.css`
|
|
2036
2039
|
padding: ${k(300)};
|
|
2037
2040
|
padding-bottom: ${k(500)};
|
|
2038
2041
|
display: flex;
|
|
@@ -2040,7 +2043,7 @@
|
|
|
2040
2043
|
border-bottom: ${E(100)} solid
|
|
2041
2044
|
${w("neutral",300)};
|
|
2042
2045
|
background-color: ${w("neutral",100)};
|
|
2043
|
-
`,
|
|
2046
|
+
`,_x=i.css`
|
|
2044
2047
|
display: flex;
|
|
2045
2048
|
flex-direction: column;
|
|
2046
2049
|
|
|
@@ -2049,44 +2052,44 @@
|
|
|
2049
2052
|
fill: ${w("neutral",700)} !important;
|
|
2050
2053
|
}
|
|
2051
2054
|
}
|
|
2052
|
-
`,
|
|
2055
|
+
`,Hx=i.css`
|
|
2053
2056
|
display: flex;
|
|
2054
2057
|
align-items: flex-start;
|
|
2055
2058
|
justify-content: space-between;
|
|
2056
2059
|
gap: ${k(300)};
|
|
2057
2060
|
margin-bottom: ${k(400)};
|
|
2058
|
-
`,
|
|
2061
|
+
`,Fx=i.css`
|
|
2059
2062
|
font-size: ${C(400)};
|
|
2060
2063
|
line-height: ${S(600)};
|
|
2061
2064
|
font-weight: 400;
|
|
2062
2065
|
text-align: left;
|
|
2063
2066
|
color: ${w("neutral",900)};
|
|
2064
|
-
`,
|
|
2067
|
+
`,qx=i.css`
|
|
2065
2068
|
font-size: ${C(300)};
|
|
2066
2069
|
line-height: ${S(500)};
|
|
2067
2070
|
font-weight: 400;
|
|
2068
2071
|
text-align: left;
|
|
2069
2072
|
color: ${w("neutral",700)};
|
|
2070
|
-
`,
|
|
2073
|
+
`,Wx=i.css`
|
|
2071
2074
|
display: flex;
|
|
2072
2075
|
justify-content: space-between;
|
|
2073
2076
|
|
|
2074
2077
|
button {
|
|
2075
2078
|
width: 46%;
|
|
2076
2079
|
}
|
|
2077
|
-
`,
|
|
2080
|
+
`,Ux=i.css`
|
|
2078
2081
|
width: 14.625rem;
|
|
2079
2082
|
border: ${E(100)} solid ${w("neutral",600)};
|
|
2080
2083
|
border-radius: ${$(300)};
|
|
2081
|
-
`,
|
|
2084
|
+
`,Kx=i.css`
|
|
2082
2085
|
padding: ${k(300)};
|
|
2083
|
-
`,
|
|
2086
|
+
`,Gx=i.css`
|
|
2084
2087
|
font-size: ${C(300)};
|
|
2085
2088
|
line-height: ${S(500)};
|
|
2086
2089
|
font-weight: 400;
|
|
2087
2090
|
text-align: left;
|
|
2088
2091
|
color: ${w("neutral",900)};
|
|
2089
|
-
`,
|
|
2092
|
+
`,Zx=i.css`
|
|
2090
2093
|
display: flex;
|
|
2091
2094
|
align-items: center;
|
|
2092
2095
|
gap: ${k(300)};
|
|
@@ -2107,20 +2110,20 @@
|
|
|
2107
2110
|
margin-top: 1.125rem;
|
|
2108
2111
|
width: 100%;
|
|
2109
2112
|
}
|
|
2110
|
-
`,
|
|
2113
|
+
`,Jx=({defaultValue:t,onOpacityChanged:o,labels:i})=>{const s=Mf("OpacityControl",i),[a,l]=n.useState(t);return r.jsxs(e.Popover.Root,{positioning:{placement:"bottom-end"},children:[r.jsx(e.Popover.Trigger,{asChild:!0,children:r.jsx(jf,{label:s.opacityButtonLabel,size:"small",variant:"secondary",leftIcon:r.jsx(Df,{})})}),r.jsx(e.Popover.Positioner,{children:r.jsx(e.Popover.Content,{css:Ux,children:r.jsxs(e.Popover.Body,{css:Kx,children:[r.jsx("p",{css:Gx,children:s.opacityHeading}),r.jsxs("div",{css:Zx,children:[r.jsxs("div",{style:{position:"relative"},children:[r.jsx(ov,{"aria-label":s.opacityAriaLabel,min:"0",max:"100",value:a,onChange:e=>{const t=e.target.value||"0";let n=parseInt(t,10);n=Number.isNaN(n)?0:n,n=n<0?0:n,n=n>100?100:n,l(n),o&&o(n)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx("p",{style:{position:"absolute",top:"1.15625rem",right:"0.3125rem"},children:s.percentSuffix})]}),r.jsx(Dg,{min:0,max:100,value:[a],onValueChangeEnd:({value:e})=>{l(e[0]),o&&o(e[0])}})]})]})})})]})},Xx=e=>i.css`
|
|
2111
2114
|
width: ${k(500)};
|
|
2112
2115
|
height: ${k(500)};
|
|
2113
2116
|
border-radius: 50%;
|
|
2114
2117
|
background-color: ${e};
|
|
2115
2118
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
2116
|
-
`,
|
|
2119
|
+
`,Yx=e=>i.css`
|
|
2117
2120
|
width: ${k(500)};
|
|
2118
2121
|
height: ${k(200)};
|
|
2119
2122
|
border-radius: ${$(200)};
|
|
2120
2123
|
background-color: ${e};
|
|
2121
2124
|
border: ${E(100)} solid ${w("neutral",400)};
|
|
2122
2125
|
margin-top: 0.375rem;
|
|
2123
|
-
`,
|
|
2126
|
+
`,Qx=e=>i.css`
|
|
2124
2127
|
width: ${k(500)};
|
|
2125
2128
|
height: ${k(500)};
|
|
2126
2129
|
border-radius: 50%;
|
|
@@ -2133,26 +2136,26 @@
|
|
|
2133
2136
|
width: 0.625rem;
|
|
2134
2137
|
height: 0.625rem;
|
|
2135
2138
|
}
|
|
2136
|
-
`,
|
|
2139
|
+
`,ew=i.css`
|
|
2137
2140
|
width: 100%;
|
|
2138
2141
|
display: flex;
|
|
2139
2142
|
justify-content: space-between;
|
|
2140
2143
|
gap: ${k(200)};
|
|
2141
2144
|
margin-bottom: ${k(400)};
|
|
2142
|
-
`,
|
|
2145
|
+
`,tw=i.css`
|
|
2143
2146
|
display: flex;
|
|
2144
2147
|
gap: ${k(200)};
|
|
2145
|
-
`,
|
|
2148
|
+
`,nw=i.css`
|
|
2146
2149
|
font-size: ${C(300)};
|
|
2147
2150
|
line-height: ${S(500)};
|
|
2148
2151
|
font-weight: 400;
|
|
2149
2152
|
color: ${w("neutral",800)};
|
|
2150
|
-
`,
|
|
2153
|
+
`,rw=i.css`
|
|
2151
2154
|
font-size: ${C(200)};
|
|
2152
2155
|
line-height: ${S(400)};
|
|
2153
2156
|
font-weight: 400;
|
|
2154
2157
|
color: ${w("neutral",700)};
|
|
2155
|
-
`,
|
|
2158
|
+
`,ow=i.css`
|
|
2156
2159
|
button {
|
|
2157
2160
|
height: 1.5625rem;
|
|
2158
2161
|
font-size: ${C(200)};
|
|
@@ -2161,12 +2164,12 @@
|
|
|
2161
2164
|
color: ${w("neutral",600)};
|
|
2162
2165
|
padding: 0 0.625rem;
|
|
2163
2166
|
}
|
|
2164
|
-
`,
|
|
2167
|
+
`,iw=i.css`
|
|
2165
2168
|
width: 100%;
|
|
2166
2169
|
display: flex;
|
|
2167
2170
|
flex-direction: column;
|
|
2168
2171
|
margin-bottom: ${k(400)};
|
|
2169
|
-
`,
|
|
2172
|
+
`,sw=i.css`
|
|
2170
2173
|
height: ${k(500)};
|
|
2171
2174
|
width: 100%;
|
|
2172
2175
|
margin-bottom: ${k(200)};
|
|
@@ -2184,27 +2187,27 @@
|
|
|
2184
2187
|
border-top-right-radius: 0.1875rem;
|
|
2185
2188
|
border-bottom-right-radius: 0.1875rem;
|
|
2186
2189
|
}
|
|
2187
|
-
`,
|
|
2190
|
+
`,aw=i.css`
|
|
2188
2191
|
display: flex;
|
|
2189
2192
|
justify-content: space-between;
|
|
2190
2193
|
align-items: flex-start;
|
|
2191
|
-
`,
|
|
2194
|
+
`,lw=i.css`
|
|
2192
2195
|
width: 100%;
|
|
2193
2196
|
font-size: ${C(200)};
|
|
2194
2197
|
line-height: ${S(400)};
|
|
2195
2198
|
font-weight: 400;
|
|
2196
2199
|
color: ${w("neutral",800)};
|
|
2197
2200
|
text-align: center;
|
|
2198
|
-
`,
|
|
2201
|
+
`,cw=i.css`
|
|
2199
2202
|
font-size: ${C(200)};
|
|
2200
2203
|
line-height: ${S(400)};
|
|
2201
2204
|
font-weight: 400;
|
|
2202
2205
|
color: ${w("neutral",700)};
|
|
2203
2206
|
text-align: center;
|
|
2204
|
-
`,
|
|
2207
|
+
`,dw=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(", ")})`},uw=i.css`
|
|
2205
2208
|
display: flex;
|
|
2206
2209
|
flex-direction: column;
|
|
2207
|
-
`,
|
|
2210
|
+
`,hw=e=>i.css`
|
|
2208
2211
|
display: flex;
|
|
2209
2212
|
gap: ${k(400)};
|
|
2210
2213
|
align-items: center;
|
|
@@ -2213,41 +2216,41 @@
|
|
|
2213
2216
|
.ds-select-input-container {
|
|
2214
2217
|
margin-bottom: 0rem;
|
|
2215
2218
|
}
|
|
2216
|
-
`,
|
|
2219
|
+
`,pw=i.css`
|
|
2217
2220
|
font-size: ${C(500)};
|
|
2218
2221
|
line-height: ${S(700)};
|
|
2219
2222
|
font-weight: 400;
|
|
2220
2223
|
color: ${w("neutral",700)};
|
|
2221
|
-
`,
|
|
2224
|
+
`,fw=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:o,showItemCountText:i,labels:s})=>{const a=Mf("ItemCount",s),l=0===n?0:(t-1)*e+1,c=0===n?0:Math.min(l+e-1,n);return r.jsxs("div",{css:uw,children:[r.jsxs("div",{css:hw(i),children:[r.jsx("div",{style:{width:"5rem"},children:r.jsx(Ov,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{o&&o(parseInt(e[0],10))},required:!0})}),r.jsx("p",{css:pw,children:a.perPageLabel})]}),i?r.jsx("p",{css:pw,children:a.showingLabel(l,c,n)}):null]})},mw=e=>i.css`
|
|
2222
2225
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
2223
2226
|
${e?"border: none;":""}
|
|
2224
|
-
`,
|
|
2227
|
+
`,gw=e=>i.css`
|
|
2225
2228
|
color: ${w("neutral",e?400:700)};
|
|
2226
2229
|
line-height: ${S(500)};
|
|
2227
2230
|
white-space: nowrap;
|
|
2228
2231
|
overflow: hidden;
|
|
2229
2232
|
text-overflow: ellipsis;
|
|
2230
|
-
`,
|
|
2233
|
+
`,vw=i.css`
|
|
2231
2234
|
font-weight: 400;
|
|
2232
2235
|
color: ${w("neutral",700)};
|
|
2233
2236
|
white-space: nowrap;
|
|
2234
2237
|
overflow: hidden;
|
|
2235
2238
|
text-overflow: ellipsis;
|
|
2236
|
-
`,
|
|
2239
|
+
`,bw=i.css`
|
|
2237
2240
|
color: ${w("neutral",700)};
|
|
2238
2241
|
text-align: right;
|
|
2239
2242
|
font-weight: 700;
|
|
2240
2243
|
white-space: nowrap;
|
|
2241
2244
|
overflow: hidden;
|
|
2242
2245
|
text-overflow: ellipsis;
|
|
2243
|
-
`,
|
|
2246
|
+
`,yw=e=>i.css`
|
|
2244
2247
|
width: ${k(400)};
|
|
2245
2248
|
height: ${k(400)};
|
|
2246
2249
|
|
|
2247
2250
|
path {
|
|
2248
2251
|
fill: ${w("neutral",e?400:700)};
|
|
2249
2252
|
}
|
|
2250
|
-
`,
|
|
2253
|
+
`,xw=i.css`
|
|
2251
2254
|
display: flex;
|
|
2252
2255
|
align-items: center;
|
|
2253
2256
|
justify-content: space-between;
|
|
@@ -2257,7 +2260,7 @@
|
|
|
2257
2260
|
${w("neutral",200)};
|
|
2258
2261
|
width: 100%;
|
|
2259
2262
|
text-align: left;
|
|
2260
|
-
`,
|
|
2263
|
+
`,ww=i.css`
|
|
2261
2264
|
display: flex;
|
|
2262
2265
|
align-items: center;
|
|
2263
2266
|
justify-content: space-between;
|
|
@@ -2293,19 +2296,19 @@
|
|
|
2293
2296
|
&:disabled {
|
|
2294
2297
|
background-color: ${w("neutral",200)};
|
|
2295
2298
|
}
|
|
2296
|
-
`,
|
|
2299
|
+
`,Cw=({id:t,label:n,caption:o,icon:i,value:s,variant:a="data",onItemClick:l,isExpanded:c=!1,ariaLabel:d,disabled:u=!1,isHighlighted:h=!1})=>{const p=("navigation"===a||"select"===a)&&!!l,f=p?e.chakra.button:e.chakra.div,m=d||("data"===a&&s?`${n}, ${s}`:n);return r.jsxs(f,{id:t,css:["data"===a?xw:ww,h&&{backgroundColor:w("neutral",200)}],onClick:p?l:void 0,tabIndex:p?0:void 0,onKeyDown:e=>{p&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l?.()))},role:p?"button":void 0,"aria-expanded":p?c:void 0,"aria-label":m,disabled:u,"data-selected":h||void 0,"data-highlighted":h||void 0,children:[r.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",children:[i,r.jsxs(e.Box,{flex:"1",minWidth:0,children:[r.jsx(e.Text,{fontWeight:"data"===a?"400":"700",css:gw(u),children:n}),o&&r.jsx(e.Text,{css:vw,children:o})]})]}),"data"===a&&s&&r.jsx(e.Text,{css:bw,children:s}),"navigation"===a&&r.jsx(e.Icon,{as:Pf,boxSize:4,"aria-hidden":"true",css:yw(u)})]})},kw=({items:t,noBorder:n,highlightedIndex:o})=>r.jsx(e.Box,{css:mw(n),children:t.map(((e,t)=>r.jsx(Cw,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick,isHighlighted:t===o},e.id??e.label)))}),Sw=i.css`
|
|
2297
2300
|
background: transparent;
|
|
2298
2301
|
svg {
|
|
2299
2302
|
path {
|
|
2300
2303
|
fill: ${w("primary",500)};
|
|
2301
2304
|
}
|
|
2302
2305
|
}
|
|
2303
|
-
|
|
2306
|
+
`,$w=i.css`
|
|
2304
2307
|
font-size: ${C(400)};
|
|
2305
2308
|
line-height: ${S(600)};
|
|
2306
2309
|
font-weight: 700;
|
|
2307
2310
|
color: ${w("neutral",900)};
|
|
2308
|
-
`,
|
|
2311
|
+
`,Ew=i.css`
|
|
2309
2312
|
span {
|
|
2310
2313
|
height: ${k(500)};
|
|
2311
2314
|
width: ${k(500)};
|
|
@@ -2315,7 +2318,7 @@
|
|
|
2315
2318
|
background-color: transparent;
|
|
2316
2319
|
}
|
|
2317
2320
|
}
|
|
2318
|
-
`,
|
|
2321
|
+
`,Mw=i.css`
|
|
2319
2322
|
font-size: ${C(400)};
|
|
2320
2323
|
line-height: ${S(600)};
|
|
2321
2324
|
font-weight: 400;
|
|
@@ -2325,7 +2328,7 @@
|
|
|
2325
2328
|
color: ${w("neutral",900)};
|
|
2326
2329
|
font-weight: 700;
|
|
2327
2330
|
}
|
|
2328
|
-
`,
|
|
2331
|
+
`,jw=({totalItems:t,pageSize:n,currentPage:o,variant:i="default",onPageChange:s,labels:a})=>{const l=Mf("Pagination",a),c="compact"===i||"compact-with-buttons"===i,d="compact-with-buttons"===i;return r.jsx("div",{"aria-label":l.paginationLabel,children:r.jsx(e.Pagination.Root,{count:t,pageSize:n,defaultPage:o,onPageChange:e=>s&&s(e.page),siblingCount:1,children:r.jsxs(e.ButtonGroup,{gap:"2",size:"sm",variant:"ghost",css:Ew,children:[r.jsx(e.Pagination.PrevTrigger,{asChild:!0,children:d?r.jsx(jf,{variant:"secondary",label:l.previousLabel,size:"small",leftIcon:r.jsx(If,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):r.jsx(Of,{css:Sw,style:{rotate:"90deg"},icon:r.jsx(If,{}),"aria-label":l.previousPageLabel})}),c?r.jsx(e.Pagination.PageText,{css:$w}):r.jsx(e.Pagination.Items,{render:e=>r.jsx(Of,{css:Mw,"aria-label":l.pageLabel(e.value),icon:r.jsx("p",{children:e.value})})}),r.jsx(e.Pagination.NextTrigger,{asChild:!0,children:d?r.jsx(jf,{variant:"secondary",label:l.nextLabel,size:"small",rightIcon:r.jsx(If,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):r.jsx(Of,{css:Sw,style:{rotate:"270deg"},icon:r.jsx(If,{}),"aria-label":l.nextPageLabel})})]})})})},Tw=(e,t)=>i.css`
|
|
2329
2332
|
border: ${"full-width"===e?"none":`${E(100)} solid ${w("neutral",300)}`};
|
|
2330
2333
|
border-radius: ${$(200)};
|
|
2331
2334
|
box-shadow: ${"full-width"===e?"none":`0 0 0 0.0625rem ${w("neutral",300)}`};
|
|
@@ -2374,7 +2377,7 @@
|
|
|
2374
2377
|
[data-sticky-last='true'] {
|
|
2375
2378
|
border-inline-end: 0.0625rem solid ${w("neutral",400)};
|
|
2376
2379
|
}
|
|
2377
|
-
`,
|
|
2380
|
+
`,Ow=e=>i.css`
|
|
2378
2381
|
tr {
|
|
2379
2382
|
background-color: ${w("neutral","full-width"===e?100:200)};
|
|
2380
2383
|
|
|
@@ -2383,14 +2386,14 @@
|
|
|
2383
2386
|
box-shadow: inset 0 -0.0625rem 0 ${w("neutral",300)};
|
|
2384
2387
|
}
|
|
2385
2388
|
}
|
|
2386
|
-
`,
|
|
2389
|
+
`,Lw=i.css`
|
|
2387
2390
|
font-size: ${C(400)};
|
|
2388
2391
|
line-height: ${S(600)};
|
|
2389
2392
|
font-weight: 700;
|
|
2390
2393
|
color: ${w("neutral",800)};
|
|
2391
2394
|
display: flex;
|
|
2392
2395
|
align-items: center;
|
|
2393
|
-
`,
|
|
2396
|
+
`,Aw=i.css`
|
|
2394
2397
|
height: ${S(600)};
|
|
2395
2398
|
width: 0.625rem;
|
|
2396
2399
|
display: flex;
|
|
@@ -2412,19 +2415,19 @@
|
|
|
2412
2415
|
}
|
|
2413
2416
|
}
|
|
2414
2417
|
}
|
|
2415
|
-
`,
|
|
2418
|
+
`,Rw=e=>i.css`
|
|
2416
2419
|
svg {
|
|
2417
2420
|
path {
|
|
2418
2421
|
fill: ${w("accessible",e?"controls-on-neutral-lights":100)} !important;
|
|
2419
2422
|
}
|
|
2420
2423
|
}
|
|
2421
|
-
`,
|
|
2424
|
+
`,Nw=i.css`
|
|
2422
2425
|
margin-top: ${k(300)};
|
|
2423
2426
|
display: flex;
|
|
2424
2427
|
justify-content: space-between;
|
|
2425
|
-
`,
|
|
2428
|
+
`,Dw=i.css`
|
|
2426
2429
|
margin-top: 0.5625rem;
|
|
2427
|
-
`,
|
|
2430
|
+
`,Iw=i.css`
|
|
2428
2431
|
tr {
|
|
2429
2432
|
height: ${k(1200)};
|
|
2430
2433
|
|
|
@@ -2449,18 +2452,18 @@
|
|
|
2449
2452
|
}
|
|
2450
2453
|
}
|
|
2451
2454
|
}
|
|
2452
|
-
`,
|
|
2455
|
+
`,Pw=e=>i.css`
|
|
2453
2456
|
overflow: auto;
|
|
2454
2457
|
height: ${e};
|
|
2455
2458
|
width: 100%;
|
|
2456
|
-
`,
|
|
2459
|
+
`,zw=i.css`
|
|
2457
2460
|
height: 30rem;
|
|
2458
2461
|
display: flex;
|
|
2459
2462
|
align-items: center;
|
|
2460
2463
|
justify-content: center;
|
|
2461
|
-
`,
|
|
2464
|
+
`,Vw=e.Table.Row,Bw=e.Table.Cell,_w=i.css`
|
|
2462
2465
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
2463
|
-
`,
|
|
2466
|
+
`,Hw=i.css`
|
|
2464
2467
|
padding: ${k(400)};
|
|
2465
2468
|
cursor: pointer;
|
|
2466
2469
|
&:focus-visible {
|
|
@@ -2475,9 +2478,9 @@
|
|
|
2475
2478
|
transparent
|
|
2476
2479
|
);
|
|
2477
2480
|
}
|
|
2478
|
-
`,
|
|
2481
|
+
`,Fw=i.css`
|
|
2479
2482
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
2480
|
-
`,
|
|
2483
|
+
`,qw=i.css`
|
|
2481
2484
|
padding: ${k(400)};
|
|
2482
2485
|
cursor: pointer;
|
|
2483
2486
|
border-bottom: ${E(100)} solid
|
|
@@ -2499,7 +2502,7 @@
|
|
|
2499
2502
|
transparent
|
|
2500
2503
|
);
|
|
2501
2504
|
}
|
|
2502
|
-
`,
|
|
2505
|
+
`,Ww=i.css`
|
|
2503
2506
|
.item-content-open > * {
|
|
2504
2507
|
max-height: auto;
|
|
2505
2508
|
|
|
@@ -2520,10 +2523,10 @@
|
|
|
2520
2523
|
padding-bottom 0.2s ease,
|
|
2521
2524
|
padding-top 0.2s ease;
|
|
2522
2525
|
}
|
|
2523
|
-
`,
|
|
2526
|
+
`,Uw=i.css`
|
|
2524
2527
|
border-top: ${E(100)} solid
|
|
2525
2528
|
${w("neutral",300)};
|
|
2526
|
-
`;var Gw
|
|
2529
|
+
`;var Kw,Gw={exports:{}},Zw={},Jw={exports:{}},Xw={exports:{}},Yw={};var Qw,eC,tC,nC,rC,oC,iC,sC,aC,lC,cC,dC,uC,hC={};
|
|
2527
2530
|
/** @license React v16.13.1
|
|
2528
2531
|
* react-is.development.js
|
|
2529
2532
|
*
|
|
@@ -2531,7 +2534,7 @@
|
|
|
2531
2534
|
*
|
|
2532
2535
|
* This source code is licensed under the MIT license found in the
|
|
2533
2536
|
* LICENSE file in the root directory of this source tree.
|
|
2534
|
-
*/function fC(){return tC||(tC=1,"production"===process.env.NODE_ENV?Yw.exports=function(){if(Gw)return Qw;Gw=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function x(e){return y(e)===c}return Qw.AsyncMode=l,Qw.ConcurrentMode=c,Qw.ContextConsumer=a,Qw.ContextProvider=s,Qw.Element=t,Qw.ForwardRef=d,Qw.Fragment=r,Qw.Lazy=f,Qw.Memo=p,Qw.Portal=n,Qw.Profiler=i,Qw.StrictMode=o,Qw.Suspense=u,Qw.isAsyncMode=function(e){return x(e)||y(e)===l},Qw.isConcurrentMode=x,Qw.isContextConsumer=function(e){return y(e)===a},Qw.isContextProvider=function(e){return y(e)===s},Qw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qw.isForwardRef=function(e){return y(e)===d},Qw.isFragment=function(e){return y(e)===r},Qw.isLazy=function(e){return y(e)===f},Qw.isMemo=function(e){return y(e)===p},Qw.isPortal=function(e){return y(e)===n},Qw.isProfiler=function(e){return y(e)===i},Qw.isStrictMode=function(e){return y(e)===o},Qw.isSuspense=function(e){return y(e)===u},Qw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},Qw.typeOf=y,Qw}():Yw.exports=(eC||(eC=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var x=l,w=c,C=a,k=s,S=t,$=d,E=r,M=f,j=p,T=n,O=i,L=o,A=u,R=!1;function N(e){return y(e)===c}pC.AsyncMode=x,pC.ConcurrentMode=w,pC.ContextConsumer=C,pC.ContextProvider=k,pC.Element=S,pC.ForwardRef=$,pC.Fragment=E,pC.Lazy=M,pC.Memo=j,pC.Portal=T,pC.Profiler=O,pC.StrictMode=L,pC.Suspense=A,pC.isAsyncMode=function(e){return R||(R=!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.")),N(e)||y(e)===l},pC.isConcurrentMode=N,pC.isContextConsumer=function(e){return y(e)===a},pC.isContextProvider=function(e){return y(e)===s},pC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},pC.isForwardRef=function(e){return y(e)===d},pC.isFragment=function(e){return y(e)===r},pC.isLazy=function(e){return y(e)===f},pC.isMemo=function(e){return y(e)===p},pC.isPortal=function(e){return y(e)===n},pC.isProfiler=function(e){return y(e)===i},pC.isStrictMode=function(e){return y(e)===o},pC.isSuspense=function(e){return y(e)===u},pC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},pC.typeOf=y}()),pC)),Yw.exports}function mC(){if(rC)return nC;rC=1;return nC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function gC(){return iC?oC:(iC=1,oC=Function.call.bind(Object.prototype.hasOwnProperty))}function vC(){if(cC)return lC;cC=1;var e=fC(),t=s,n=mC(),r=gC(),o=function(){if(aC)return sC;aC=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=mC(),n={},r=gC();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},sC=o}(),i=function(){};function a(){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){}}),lC=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return s(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+b(s)+"` 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 s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return v(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` 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."),a;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 "+x(o)+" at index "+t+"."),a}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=b(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=b(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(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,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` 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==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return b(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((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||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},lC}function bC(){if(hC)return Xw.exports;if(hC=1,"production"!==process.env.NODE_ENV){var e=fC();Xw.exports=vC()(e.isElement,!0)}else Xw.exports=function(){if(uC)return dC;uC=1;var e=mC();function t(){}function n(){}return n.resetWarningCache=t,dC=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}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},dC}()();return Xw.exports}var yC,xC={exports:{}};var wC,CC={},kC={};function SC(){if(wC)return kC;return wC=1,Object.defineProperty(kC,"__esModule",{value:!0}),kC.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},kC.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]},kC.int=function(e){return parseInt(e,10)},kC.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},kC.isNum=function(e){return"number"==typeof e&&!isNaN(e)},kC}var $C,EC,MC={};function jC(){if(EC)return CC;EC=1,Object.defineProperty(CC,"__esModule",{value:!0}),CC.addClassName=s,CC.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},CC.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&&s(e.body,"react-draggable-transparent-selection")},CC.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},CC.createSVGTransform=function(e,t){return o(e,t,"")},CC.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))},CC.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},CC.getTranslation=o,CC.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},CC.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},CC.matchesSelector=r,CC.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},CC.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}},CC.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},CC.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},CC.removeClassName=a,CC.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},CC.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=SC(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if($C)return MC;$C=1,Object.defineProperty(MC,"__esModule",{value:!0}),MC.browserPrefixToKey=n,MC.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},MC.default=void 0,MC.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return MC.default=t(),MC}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return CC}var TC,OC={};function LC(){if(TC)return OC;TC=1,Object.defineProperty(OC,"__esModule",{value:!0}),OC.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},OC.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},OC.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},OC.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}},OC.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},OC.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},OC.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=SC(),t=jC();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return OC}var AC,RC,NC,DC,IC={},PC={};function zC(){if(AC)return PC;return AC=1,Object.defineProperty(PC,"__esModule",{value:!0}),PC.default=function(){},PC}function VC(){if(RC)return IC;RC=1,Object.defineProperty(IC,"__esModule",{value:!0}),IC.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n),t=c(bC()),r=c(o),i=jC(),s=LC(),a=SC(),l=c(zC());function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=h,f=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,i.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:a,y:c}=o,d=(0,s.createCoreData)(this,a,c);(0,l.default)("DraggableCore: handleDragStart: %j",d),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=c,(0,i.addEvent)(n,p.move,this.handleDrag),(0,i.addEvent)(n,p.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,s.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,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.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,s.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,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,l.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(a.ownerDocument,p.move,this.handleDrag),(0,i.removeEvent)(a.ownerDocument,p.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(p=h,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(p=h,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(p=u,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(p=u,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,i.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,i.removeEvent)(t,h.move,this.handleDrag),(0,i.removeEvent)(t,u.move,this.handleDrag),(0,i.removeEvent)(t,h.stop,this.handleDragStop),(0,i.removeEvent)(t,u.stop,this.handleDragStop),(0,i.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return IC.default=f,d(f,"displayName","DraggableCore"),d(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),d(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),IC}function BC(){return NC||(NC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n),r=h(bC()),i=h(o),s=function(){if(yC)return xC.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return yC=1,xC.exports=t,xC.exports.clsx=t,xC.exports}(),a=jC(),l=LC(),c=SC(),d=h(VC()),u=h(zC());function h(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",((e,t)=>{(0,u.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),f(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),f(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:u,position:h,positionOffset:f,scale:m,...g}=this.props;let v={},b=null;const y=!Boolean(h)||this.state.dragging,x=h||o,w={x:(0,l.canDragX)(this)&&y?this.state.x:x.x,y:(0,l.canDragY)(this)&&y?this.state.y:x.y};this.state.isElementSVG?b=(0,a.createSVGTransform)(w,f):v=(0,a.createCSSTransform)(w,f);const C=(0,s.clsx)(r.props.className||"",i,{[c]:this.state.dragging,[u]:this.state.dragged});return t.createElement(d.default,p({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...v},transform:b}))}}e.default=m,f(m,"displayName","Draggable"),f(m,"propTypes",{...d.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(m,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Jw)),Jw}var _C=function(){if(DC)return Zw.exports;DC=1;const{default:e,DraggableCore:t}=BC();return Zw.exports=e,Zw.exports.default=e,Zw.exports.DraggableCore=t,Zw.exports}(),HC=lp(_C);const FC=(e="medium",t,n,r)=>{const o=t?u(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",s=r?u(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",a="unset"===s?"80vh":`min(${s}, 80vh)`;let l="auto";return n?l=u(n):"full-width"===e&&(l="90%"),i.css`
|
|
2537
|
+
*/function pC(){return eC||(eC=1,"production"===process.env.NODE_ENV?Xw.exports=function(){if(Kw)return Yw;Kw=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function x(e){return y(e)===c}return Yw.AsyncMode=l,Yw.ConcurrentMode=c,Yw.ContextConsumer=a,Yw.ContextProvider=s,Yw.Element=t,Yw.ForwardRef=d,Yw.Fragment=r,Yw.Lazy=f,Yw.Memo=p,Yw.Portal=n,Yw.Profiler=i,Yw.StrictMode=o,Yw.Suspense=u,Yw.isAsyncMode=function(e){return x(e)||y(e)===l},Yw.isConcurrentMode=x,Yw.isContextConsumer=function(e){return y(e)===a},Yw.isContextProvider=function(e){return y(e)===s},Yw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yw.isForwardRef=function(e){return y(e)===d},Yw.isFragment=function(e){return y(e)===r},Yw.isLazy=function(e){return y(e)===f},Yw.isMemo=function(e){return y(e)===p},Yw.isPortal=function(e){return y(e)===n},Yw.isProfiler=function(e){return y(e)===i},Yw.isStrictMode=function(e){return y(e)===o},Yw.isSuspense=function(e){return y(e)===u},Yw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},Yw.typeOf=y,Yw}():Xw.exports=(Qw||(Qw=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var x=l,w=c,C=a,k=s,S=t,$=d,E=r,M=f,j=p,T=n,O=i,L=o,A=u,R=!1;function N(e){return y(e)===c}hC.AsyncMode=x,hC.ConcurrentMode=w,hC.ContextConsumer=C,hC.ContextProvider=k,hC.Element=S,hC.ForwardRef=$,hC.Fragment=E,hC.Lazy=M,hC.Memo=j,hC.Portal=T,hC.Profiler=O,hC.StrictMode=L,hC.Suspense=A,hC.isAsyncMode=function(e){return R||(R=!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.")),N(e)||y(e)===l},hC.isConcurrentMode=N,hC.isContextConsumer=function(e){return y(e)===a},hC.isContextProvider=function(e){return y(e)===s},hC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},hC.isForwardRef=function(e){return y(e)===d},hC.isFragment=function(e){return y(e)===r},hC.isLazy=function(e){return y(e)===f},hC.isMemo=function(e){return y(e)===p},hC.isPortal=function(e){return y(e)===n},hC.isProfiler=function(e){return y(e)===i},hC.isStrictMode=function(e){return y(e)===o},hC.isSuspense=function(e){return y(e)===u},hC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},hC.typeOf=y}()),hC)),Xw.exports}function fC(){if(nC)return tC;nC=1;return tC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function mC(){return oC?rC:(oC=1,rC=Function.call.bind(Object.prototype.hasOwnProperty))}function gC(){if(lC)return aC;lC=1;var e=pC(),t=s,n=fC(),r=mC(),o=function(){if(sC)return iC;sC=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=fC(),n={},r=mC();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},iC=o}(),i=function(){};function a(){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){}}),aC=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+b(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return s(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+b(s)+"` 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 s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return v(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` 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."),a;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 "+x(o)+" at index "+t+"."),a}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=b(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=b(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(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,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` 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==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return b(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((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||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},aC}function vC(){if(uC)return Jw.exports;if(uC=1,"production"!==process.env.NODE_ENV){var e=pC();Jw.exports=gC()(e.isElement,!0)}else Jw.exports=function(){if(dC)return cC;dC=1;var e=fC();function t(){}function n(){}return n.resetWarningCache=t,cC=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}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},cC}()();return Jw.exports}var bC,yC={exports:{}};var xC,wC={},CC={};function kC(){if(xC)return CC;return xC=1,Object.defineProperty(CC,"__esModule",{value:!0}),CC.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},CC.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]},CC.int=function(e){return parseInt(e,10)},CC.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},CC.isNum=function(e){return"number"==typeof e&&!isNaN(e)},CC}var SC,$C,EC={};function MC(){if($C)return wC;$C=1,Object.defineProperty(wC,"__esModule",{value:!0}),wC.addClassName=s,wC.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},wC.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&&s(e.body,"react-draggable-transparent-selection")},wC.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},wC.createSVGTransform=function(e,t){return o(e,t,"")},wC.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))},wC.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},wC.getTranslation=o,wC.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},wC.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},wC.matchesSelector=r,wC.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},wC.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}},wC.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},wC.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},wC.removeClassName=a,wC.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},wC.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=kC(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if(SC)return EC;SC=1,Object.defineProperty(EC,"__esModule",{value:!0}),EC.browserPrefixToKey=n,EC.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},EC.default=void 0,EC.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return EC.default=t(),EC}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return wC}var jC,TC={};function OC(){if(jC)return TC;jC=1,Object.defineProperty(TC,"__esModule",{value:!0}),TC.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},TC.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},TC.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},TC.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}},TC.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},TC.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},TC.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=kC(),t=MC();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return TC}var LC,AC,RC,NC,DC={},IC={};function PC(){if(LC)return IC;return LC=1,Object.defineProperty(IC,"__esModule",{value:!0}),IC.default=function(){},IC}function zC(){if(AC)return DC;AC=1,Object.defineProperty(DC,"__esModule",{value:!0}),DC.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n),t=c(vC()),r=c(o),i=MC(),s=OC(),a=kC(),l=c(PC());function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=h,f=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,i.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:a,y:c}=o,d=(0,s.createCoreData)(this,a,c);(0,l.default)("DraggableCore: handleDragStart: %j",d),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=c,(0,i.addEvent)(n,p.move,this.handleDrag),(0,i.addEvent)(n,p.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,s.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,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.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,s.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,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,l.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(a.ownerDocument,p.move,this.handleDrag),(0,i.removeEvent)(a.ownerDocument,p.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(p=h,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(p=h,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(p=u,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(p=u,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,i.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,i.removeEvent)(t,h.move,this.handleDrag),(0,i.removeEvent)(t,u.move,this.handleDrag),(0,i.removeEvent)(t,h.stop,this.handleDragStop),(0,i.removeEvent)(t,u.stop,this.handleDragStop),(0,i.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return DC.default=f,d(f,"displayName","DraggableCore"),d(f,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),d(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),DC}function VC(){return RC||(RC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n),r=h(vC()),i=h(o),s=function(){if(bC)return yC.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return bC=1,yC.exports=t,yC.exports.clsx=t,yC.exports}(),a=MC(),l=OC(),c=kC(),d=h(zC()),u=h(PC());function h(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",((e,t)=>{(0,u.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),f(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),f(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:u,position:h,positionOffset:f,scale:m,...g}=this.props;let v={},b=null;const y=!Boolean(h)||this.state.dragging,x=h||o,w={x:(0,l.canDragX)(this)&&y?this.state.x:x.x,y:(0,l.canDragY)(this)&&y?this.state.y:x.y};this.state.isElementSVG?b=(0,a.createSVGTransform)(w,f):v=(0,a.createCSSTransform)(w,f);const C=(0,s.clsx)(r.props.className||"",i,{[c]:this.state.dragging,[u]:this.state.dragged});return t.createElement(d.default,p({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...v},transform:b}))}}e.default=m,f(m,"displayName","Draggable"),f(m,"propTypes",{...d.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(m,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Zw)),Zw}var BC=function(){if(NC)return Gw.exports;NC=1;const{default:e,DraggableCore:t}=VC();return Gw.exports=e,Gw.exports.default=e,Gw.exports.DraggableCore=t,Gw.exports}(),_C=lp(BC);const HC=(e="medium",t,n,r)=>{const o=t?u(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",s=r?u(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",a="unset"===s?"80vh":`min(${s}, 80vh)`;let l="auto";return n?l=u(n):"full-width"===e&&(l="90%"),i.css`
|
|
2535
2538
|
max-width: 100%;
|
|
2536
2539
|
width: ${o};
|
|
2537
2540
|
height: ${l};
|
|
@@ -2541,7 +2544,7 @@
|
|
|
2541
2544
|
border-radius: ${$(300)};
|
|
2542
2545
|
box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
|
|
2543
2546
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2544
|
-
`},
|
|
2547
|
+
`},FC=i.css`
|
|
2545
2548
|
height: 100%;
|
|
2546
2549
|
min-height: ${k(1e3)};
|
|
2547
2550
|
display: flex;
|
|
@@ -2550,29 +2553,29 @@
|
|
|
2550
2553
|
padding: ${k(200)};
|
|
2551
2554
|
border-bottom: ${E(100)} solid
|
|
2552
2555
|
${w("neutral",300)};
|
|
2553
|
-
`,
|
|
2556
|
+
`,qC=i.css`
|
|
2554
2557
|
top: ${k(300)};
|
|
2555
|
-
`,
|
|
2558
|
+
`,WC=i.css`
|
|
2556
2559
|
padding: ${k(300)};
|
|
2557
|
-
`,
|
|
2560
|
+
`,UC=e=>i.css`
|
|
2558
2561
|
height: 100%;
|
|
2559
2562
|
width: ${e||"20rem"};
|
|
2560
2563
|
background-color: ${w("neutral",100)};
|
|
2561
2564
|
box-shadow: 0 0.0625rem 0.125rem -0.0625rem #0000001a;
|
|
2562
2565
|
box-shadow: 0 0.0625rem 0.1875rem 0 #0000001a;
|
|
2563
2566
|
position: relative;
|
|
2564
|
-
`,
|
|
2567
|
+
`,KC=i.css`
|
|
2565
2568
|
border-right: ${E(100)} solid
|
|
2566
2569
|
${w("neutral",300)};
|
|
2567
|
-
`,
|
|
2570
|
+
`,GC=i.css`
|
|
2568
2571
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
2569
2572
|
border-radius: ${$(300)};
|
|
2570
|
-
`,
|
|
2573
|
+
`,ZC=i.css`
|
|
2571
2574
|
min-height: ${k(1200)};
|
|
2572
2575
|
width: 100%;
|
|
2573
2576
|
border-bottom: ${E(100)} solid
|
|
2574
2577
|
${w("neutral",300)};
|
|
2575
|
-
`,
|
|
2578
|
+
`,JC=(e,t)=>i.css`
|
|
2576
2579
|
height: ${((e,t)=>e&&t?`calc(100% - ${(e+t)/16}rem)`:e?`calc(100% - ${e/16}rem)`:t?`calc(100% - ${t/16}rem)`:"100%")(e,t)};
|
|
2577
2580
|
width: 100%;
|
|
2578
2581
|
overflow-y: auto;
|
|
@@ -2580,7 +2583,7 @@
|
|
|
2580
2583
|
&:focus-visible {
|
|
2581
2584
|
outline-color: ${w("primary",700)};
|
|
2582
2585
|
}
|
|
2583
|
-
`,
|
|
2586
|
+
`,XC=i.css`
|
|
2584
2587
|
min-height: ${k(1600)};
|
|
2585
2588
|
width: 100%;
|
|
2586
2589
|
display: flex;
|
|
@@ -2591,7 +2594,7 @@
|
|
|
2591
2594
|
left: 0;
|
|
2592
2595
|
border-top: ${E(100)} solid
|
|
2593
2596
|
${w("neutral",300)};
|
|
2594
|
-
`;var QC
|
|
2597
|
+
`;var YC,QC;!function(){if(QC)return YC;QC=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))}}YC=e}();var ek=tk()?n.useLayoutEffect:n.useEffect;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function tk(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var nk=function(e){var t,r=e.children,i=e.type,s=void 0===i?"reach-portal":i,a=n.useRef(null),l=n.useRef(null),c=(t=n.useState(Object.create(null))[1],n.useCallback((function(){t(Object.create(null))}),[]));return ek((function(){if(a.current){var e=a.current.ownerDocument;return l.current=null==e?void 0:e.createElement(s),e.body.appendChild(l.current),c(),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}}),[s,c]),l.current?o.createPortal(r,l.current):n.createElement("span",{ref:a})};"production"!==process.env.NODE_ENV&&(nk.displayName="Portal");
|
|
2595
2598
|
/*! *****************************************************************************
|
|
2596
2599
|
Copyright (c) Microsoft Corporation.
|
|
2597
2600
|
|
|
@@ -2605,16 +2608,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
2605
2608
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2606
2609
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2607
2610
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2608
|
-
***************************************************************************** */var ok,ik,sk=function(){return sk=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},sk.apply(this,arguments)};function ak(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 lk(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 ck(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s}function dk(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"}(ok||(ok={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ik||(ik={}));var uk=ok.Start,hk=ok.Stop,pk=ok.Raise,fk=ok.Send,mk=ok.Cancel,gk=ok.NullEvent,vk=ok.Assign;ok.After,ok.DoneState;var bk=ok.Log,yk=ok.Init,xk=ok.Invoke;ok.ErrorExecution;var wk,Ck=ok.ErrorPlatform,kk=ok.ErrorCustom,Sk=ok.Update,$k=ok.Choose,Ek=ok.Pure,Mk={},jk="xstate.guard",Tk="production"===process.env.NODE_ENV;function Ok(e,t,n){void 0===n&&(n=".");var r=Rk(e,n),o=Rk(t,n);return Zk(o)?!!Zk(r)&&o===r:Zk(r)?r in o:Object.keys(r).every((function(e){return e in o&&Ok(r[e],o[e])}))}function Lk(e){try{return Zk(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 Ak(e,t){try{return Kk(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Rk(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Kk(e)?Nk(e):"string"!=typeof e?e:Nk(Ak(e,t));var n}function Nk(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 Dk(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 Ik(e,t,n){var r,o,i={};try{for(var s=lk(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var Pk=function(e){return function(t){var n,r,o=t;try{for(var i=lk(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function zk(e){return e?Zk(e)?[[e]]:Vk(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?zk(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Vk(e){var t;return(t=[]).concat.apply(t,dk([],ck(e),!1))}function Bk(e){return Kk(e)?e:[e]}function _k(e){return void 0===e?[]:Bk(e)}function Hk(e,t,n){var r,o;if(Gk(e))return e(t,n.data);var i={};try{for(var s=lk(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];Gk(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function Fk(e){return e instanceof Promise||!(null===e||!Gk(e)&&"object"!=typeof e||!Gk(e.then))}function qk(e,t){return Dk(e.states,(function(e,n){if(e){var r=(Zk(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:qk(e,r)}}}))}function Wk(e,t,n,r){Tk||Uk(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(Gk(s))l=s(e,t.data,a);else try{for(var c=lk(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=Gk(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var Uk=function(){};function Kk(e){return Array.isArray(e)}function Gk(e){return"function"==typeof e}function Zk(e){return"string"==typeof e}function Jk(e,t){if(e)return Zk(e)?{type:jk,name:e,predicate:t?t[e]:void 0}:Gk(e)?{type:jk,name:e.name,predicate:e}:e}Tk||(Uk=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 Xk=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Yk(e){return!!e&&"__xstatenode"in e}function Qk(e,t){return Zk(e)||"number"==typeof e?sk({type:e},t):e}function eS(e,t){if(!Zk(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Qk(e);return sk({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function tS(e,t){return Bk(t).map((function(t){return void 0===t||"string"==typeof t||Yk(t)?{target:t,event:e}:sk(sk({},t),{event:e})}))}function nS(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===jk)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function rS(e){return"string"==typeof e?{type:e}:e}function oS(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 iS(e,t){return"".concat(e,":invocation[").concat(t,"]")}function sS(e){return(e.type===pk||e.type===fk&&e.to===ik.Internal)&&"number"!=typeof e.delay}(wk={})[Xk]=function(){return this},wk[Symbol.observable]=function(){return this};var aS=eS({type:yk});function lS(e,t){return t&&t[e]||void 0}function cS(e,t){var n;if(Zk(e)||"number"==typeof e)n=Gk(r=lS(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Gk(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Gk(r=lS(e.type,t)))n=sk(sk({},e),{exec:r});else if(r){var o=r.type||e.type;n=sk(sk(sk({},r),e),{type:o})}else n=e}return n}var dS=function(e,t){return e?(Kk(e)?e:[e]).map((function(e){return cS(e,t)})):[]};function uS(e){var t=cS(e);return sk(sk({id:Zk(e)?e:t.id},t),{type:t.type})}function hS(e,t){var n="".concat(ok.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function pS(e,t){var n="".concat(ok.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function fS(e,t){var n="".concat(ok.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function mS(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=lk(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==vk?a++:(r.push(s.actions[a]),s.actions.splice(a,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=a.length?Wk(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case pk:var h=function(e,t,n,r){var o,i={_event:n},s=eS(Gk(e.event)?e.event(t,n.data,i):e.event);if(Zk(e.delay)){var a=r&&r[e.delay];o=Gk(a)?a(t,n.data,i):a}else o=Gk(e.delay)?e.delay(t,n.data,i):e.delay;return sk(sk({},e),{type:pk,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case fk:var p=function(e,t,n,r){var o,i={_event:n},s=eS(Gk(e.event)?e.event(t,n.data,i):e.event);if(Zk(e.delay)){var a=r&&r[e.delay];o=Gk(a)?a(t,n.data,i):a}else o=Gk(e.delay)?e.delay(t,n.data,i):e.delay;var l=Gk(e.to)?e.to(t,n.data,i):e.to;return sk(sk({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!Tk){var f=a.delay;Uk(!Zk(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==ik.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case bk:var m=function(e,t,n){return sk(sk({},e),{value:Zk(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case $k:if(!(y=null===(u=a.conds.find((function(n){var o=Jk(n.cond,e.options.guards);return!o||nS(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=ck(mS(e,t,l,r,[{type:o,actions:dS(_k(y),e.options.actions)}],i,s),2),v=g[0],b=g[1];return l=b,null==c||c.push(l),v;case Ek:var y;if(!(y=a.get(l,r.data)))return[];var x=ck(mS(e,t,l,r,[{type:o,actions:dS(_k(y),e.options.actions)}],i,s),2),w=x[0],C=x[1];return l=C,null==c||c.push(l),w;case hk:m=function(e,t,n){var r=Gk(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:ok.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case vk:l=Wk(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=cS(a,e.options.actions),S=k.exec;if(i)i(k,l,r);else if(S&&c){var $=c.length-1,E=sk(sk({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];S.apply(void 0,dk([c[$]],ck(t),!1))}});k=E}return k}}var h=Vk(o.map((function(e){var t,n,o=[];try{for(var s=lk(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var gS=function(e,t){return t(e)};function vS(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[Xk]=function(){return this},t}function bS(e,t,n){var r=vS(t);if(r.deferred=!0,Yk(e)){var o=r.state=gS(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var yS=function(e){return"atomic"===e.type||"final"===e.type};function xS(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function wS(e){return xS(e).filter((function(e){return"history"!==e.type}))}function CS(e){var t=[e];return yS(e)?t:t.concat(Vk(wS(e).map(CS)))}function kS(e,t){var n,r,o,i,s,a,l,c,d=$S(new Set(e)),u=new Set(t);try{for(var h=lk(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=$S(u);try{for(var g=lk(u),v=g.next();!v.done;v=g.next()){if("compound"!==(k=v.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var b=(s=void 0,lk(wS(k))),y=b.next();!y.done;y=b.next()){var x=y.value;u.has(x)||(u.add(x),d.get(x)?d.get(x).forEach((function(e){return u.add(e)})):x.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var w=lk(u),C=w.next();!C.done;C=w.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return u}function SS(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(yS(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=SS(e,t)})),o}function $S(e){var t,n,r=new Map;try{for(var o=lk(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}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 ES(e,t){return SS(e,$S(kS([e],t)))}function MS(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function jS(e,t){return"compound"===t.type?wS(t).some((function(t){return"final"===t.type&&MS(e,t)})):"parallel"===t.type&&wS(t).every((function(t){return jS(e,t)}))}function TS(e){return new Set(Vk(e.map((function(e){return e.tags}))))}function OS(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Zk(e)||Zk(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return OS(e[n],t[n])}))}var LS=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Mk,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||Mk,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 dk([],ck(new Set(Vk(dk([],ck(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:aS,_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=aS;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="."),Zk(e))return[e];var r=Object.keys(e);return r.concat.apply(r,dk([],ck(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=ak(e,["configuration","transitions","tags","machine"]);return sk(sk({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Ok(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Tk&&Uk(!!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}(),AS={deferEvents:!1},RS=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=sk(sk({},AS),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}(),NS=new Map,DS=0,IS=function(){return"x:".concat(DS++)},PS=function(e,t){return NS.set(e,t),e},zS=function(e){return NS.get(e)},VS=function(e){NS.delete(e)};function BS(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Tk||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 _S(e){if(BS()){var t=function(){var e=BS();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function HS(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return sk(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[Xk]=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,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=oS(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var FS,qS={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(FS||(FS={}));var WS=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=FS.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Kk(e))return r.batch(e),r.state;var n=eS(Qk(e,t));if(r.status===FS.Stopped)return Tk||Uk(!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!==FS.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===ik.Parent||r.parent.id===t),s=i?r.parent:Zk(t)?t===ik.Internal?r:r.children.get(t)||zS(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==FS.Stopped||r.parent!==s||r.state.done){var a=sk(sk({},e),{name:e.name===kk?"".concat(fS(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Tk||Uk(!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||lS(e.type,o),s=Gk(i)?i:i?i.exec:e.exec;if(s)try{return s(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 pk:var a=e;r.defer(a);break;case fk:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===aS):r.send(l._event);break;case mk:r.cancel(e.sendId);break;case uk:if(r.status!==FS.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===ok.Invoke){var d=rS(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;Tk||Uk(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(Tk||Uk(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?Hk(p,t,n):void 0;if("string"==typeof u)return;var g=Gk(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var v=void 0;Yk(g)&&(g=m?g.withContext(m):g,v={autoForward:f}),r.spawn(g,h,v)}else r.spawnActivity(c);break;case hk:r.stopChild(e.activity.id);break;case bk:var b=e,y=b.label,x=b.value;y?r.logger(y,x):r.logger(x);break;default:Tk||Uk(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=sk(sk({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new RS({deferEvents:this.options.deferEvents}),this.sessionId=IS()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:gS(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Tk||Uk(this.status!==FS.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=lk(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,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,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==aS||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var h=lk(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=lk(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=lk(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){s={error:e}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var b=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=b&&b.doneData?Hk(b.doneData,e.context,t):void 0;this._doneEvent=pS(this.id,y);try{for(var x=lk(this.doneListeners),w=x.next();!w.done;w=x.next()){(0,w.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),VS(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===FS.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=oS(e,t,n);this.listeners.add(o.next),this.status!==FS.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===FS.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===FS.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===FS.Running)return this;this.machine._init(),PS(this.sessionId,this),this.initialized=!0,this.status=FS.Running;var n=void 0===e?this.initialState:gS(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(LS.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,aS)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Gk(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=lk(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var p=lk(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=lk(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var v=lk(this.doneListeners),b=v.next();!b.done;b=v.next()){h=b.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=FS.Stopped,this._initialState=void 0;try{for(var y=lk(Object.keys(this.delayedEventsMap)),x=y.next();!x.done;x=y.next()){var w=x.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new RS({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=eS({type:"xstate.stop"}),r=gS(e,(function(){var t=Vk(dk([],ck(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return dS(t.onExit,e.machine.options.actions)}))),r=ck(mS(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],s=new LS({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!sS(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),VS(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===FS.NotStarted&&this.options.deferEvents)Tk||Uk(!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!==FS.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,s=!1,a=[],l=function(e){var r=eS(e);t.forward(r),i=gS(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,dk([],ck(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return sk(sk({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=lk(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,eS(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=eS(e);if(0===r.name.indexOf(Ck)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Ck)})))throw r.data.data;return gS(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=lk(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.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),Gk(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==FS.Running)return bS(e,t);if(Fk(e))return this.spawnPromise(Promise.resolve(e),t);if(Gk(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&&Gk(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Yk(e))return this.spawnMachine(e,sk(sk({},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,sk(sk({},this.options),{parent:this,id:n.id||t.id})),i=sk(sk({},qS),n);i.sync&&o.onTransition((function(e){r.send(Sk,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(eS(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=HS(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(eS(pS(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=fS(t,e);try{o.send(eS(n,{origin:t}))}catch(r){!function(e,t,n){if(!Tk){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 s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=oS(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}})[Xk]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(eS(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(fS(t,e))}if(Fk(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=oS(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,Gk(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[Xk]=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(eS(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(eS(fS(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(eS(pS(t),{origin:t}))})),s=((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}}})[Xk]=function(){return this},n);return this.children.set(t,s),s},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 Tk||Uk(!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}}})[Xk]=function(){return this},n))},e.prototype.attachDev=function(){var e=BS();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(sk(sk({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:sk({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}_S(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Xk]=function(){return this},e.prototype.getSnapshot=function(){return this.status===FS.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=US,e}();function US(e,t){return new WS(e,t)}function KS(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function GS(e){return sk(sk({type:xk},e),{toJSON:function(){e.onDone,e.onError;var t=ak(e,["onDone","onError"]);return sk(sk({},t),{type:xk,src:KS(e.src)})}})}var ZS="",JS="*",XS={},YS=function(e){return"#"===e[0]},QS=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=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||dk([this.machine.key],ck(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,Tk||Uk(!("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?Dk(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,sk(((r={})[o.id]=o,r),o.idMap)),o})):XS;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=lk(xS(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===ZS})):ZS in this.config.on),this.strict=!!this.config.strict,this.onEntry=_k(this.config.entry||this.config.onEntry).map((function(e){return cS(e)})),this.onExit=_k(this.config.exit||this.config.onExit).map((function(e){return cS(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=_k(this.config.invoke).map((function(e,t){var n,r;if(Yk(e)){var o=iS(s.id,t);return s.machine.options.services=sk(((n={})[o]=e,n),s.machine.options.services),GS({src:o,id:o})}if(Zk(e.src)){o=e.id||iS(s.id,t);return GS(sk(sk({},e),{id:o,src:e.src}))}if(Yk(e.src)||Gk(e.src)){o=e.id||iS(s.id,t);return s.machine.options.services=sk(((r={})[o]=e.src,r),s.machine.options.services),GS(sk(sk({id:o},e),{src:o}))}var i=e.src;return GS(sk(sk({id:iS(s.id,t)},e),{src:i}))})),this.activities=_k(this.config.activities).concat(this.invoke).map((function(e){return uS(e)})),this.transition=this.transition.bind(this),this.tags=_k(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||CS(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:sk(sk({},o),t.actions),activities:sk(sk({},i),t.activities),guards:sk(sk({},s),t.guards),services:sk(sk({},a),t.services),delays:sk(sk({},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 Gk(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:Dk(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===ZS,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===JS}));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(ok.After,"(").concat(e,")").concat(n)}(Gk(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:fk,event:Gk(e)?e:Qk(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Gk(e)?e.name:Lk(e)}}(r,{delay:t})),e.onExit.push({type:mk,sendId:r}),r},r=Kk(t)?t.map((function(e,t){var r=n(e.delay,t);return sk(sk({},e),{event:r})})):Vk(Object.keys(t).map((function(e,r){var o=t[e],i=Zk(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return _k(i).map((function(e){return sk(sk({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return sk(sk({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof LS?e.value:Rk(e,this.delimiter);if(Zk(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),s=[this];return s.push.apply(s,dk([],ck(Vk(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=Lk(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof LS?e:LS.create(e),n=Array.from(kS([],this.getStateNodes(t.value)));return new LS(sk(sk({},t),{value:this.resolve(t.value),configuration:n,done:jS(n,this),tags:TS(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 s=lk(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=Vk(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=Vk(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:Vk(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:Vk(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return Zk(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,eS(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=lk(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||(Zk(p)&&YS(p)?e.matches(Rk(this.getStateNodeById(p).path,this.delimiter)):Ok(Rk(p,this.delimiter),Pk(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||nS(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,dk([],ck(u.actions),!1)),o=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var v=Vk(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:Vk(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:v,source:e,actions:a}}},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,s){var a,l,c,d,u=this,h=i?kS([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=lk(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!MS(h,b=m.value)||MS(n.exitSet,b)||b.parent&&p.has(b.parent))&&p.add(b)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=lk(h),v=g.next();!v.done;v=g.next()){var b;MS(e,b=v.value)&&!MS(n.exitSet,b.parent)||n.exitSet.push(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),x=new Set(n.exitSet),w=Vk(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(hS(e.id,e.doneData),hS(i.id,e.doneData?Hk(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&wS(s).every((function(e){return jS(n.configuration,e)}))&&t.push(hS(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=uS(e);return{type:ok.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:dS(s?dk(dk([],ck(t),!1),ck(n),!1):dk(dk([],ck(n),!1),ck(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:pk,event:"function"==typeof e?e:Qk(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(x).map((function(e){return{type:"exit",actions:dS(dk(dk([],ck(e.onExit),!1),ck(e.activities.map((function(e){return function(e){var t=Gk(e)?e:uS(e);return{type:ok.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:dS(n.actions,this.machine.options.actions)}).concat(C);if(t){var S=dS(Vk(dk([],ck(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!sS(e)}));return k.concat({type:"stop",actions:S})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=eS(t);if(e instanceof LS)o=void 0===n?e:this.resolveState(LS.from(e,n));else{var a=Zk(e)?this.resolve(Nk(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(LS.from(a,l))}if(!Tk&&s.name===JS)throw new Error("An event cannot have the wildcard type ('".concat(JS,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=kS([],this.getStateNodes(o.value)),u=c.configuration.length?kS(d,c.configuration):d;return c.configuration=dk([],ck(u),!1),this.resolveTransition(c,o,o.context,r,s)},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,dk([],ck(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=aS);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=jS(h,this),f=u?ES(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),v=t?sk({},t.activities):{};try{for(var b=lk(g),y=b.next();!y.done;y=b.next()){var x=y.value;try{for(var w=(a=void 0,lk(x.actions)),C=w.next();!C.done;C=w.next()){var k=C.value;k.type===uk?v[k.activity.id||k.activity.type]=k:k.type===hk&&(v[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=b.return)&&s.call(b)}finally{if(i)throw i.error}}var S,$,E=ck(mS(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),M=E[0],j=E[1],T=ck(function(e,t){var n,r,o=ck([[],[]],2),i=o[0],s=o[1];try{for(var a=lk(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(M,sS),2),O=T[0],L=T[1],A=M.filter((function(e){var t;return e.type===uk&&(null===(t=e.activity)||void 0===t?void 0:t.type)===xk})),R=A.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=rS(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?Hk(e.data,n,r):void 0,l=s?bS(s,e.id,a):vS(e.id);return l.meta=e,l}(t.activity,c.machine,j,o),e}),t?sk({},t.children):{}),N=new LS({value:f||t.value,context:j,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?(S=m,$=f,{current:$,states:qk(S,$)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?L:[],activities:f?v:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:TS(h),machine:this}),D=n!==j;N.changed=o.name===Sk||D;var I=N.history;I&&delete I.history;var P=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||P&&o.name!==ZS))return N;var z=N;if(!p)for(P&&(z=this.resolveRaisedTransition(z,{type:gk},o,r));O.length;){var V=O.shift();z=this.resolveRaisedTransition(z,V._event,o,r)}var B=z.changed||(I?!!z.actions.length||D||typeof I.value!=typeof z.value||!OS(z.value,I.value):void 0);return z.changed=B,z.history=I,z},e.prototype.getStateNode=function(e){if(YS(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=YS(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&&YS(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Ak(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||XS;switch(this.type){case"parallel":return Dk(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):XS}));case"compound":if(Zk(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Dk(e,(function(e,t){return e?n.getStateNode(t).resolve(e):XS})):this.initialStateValue||{};default:return e||XS}},e.prototype.getResolvedPath=function(e){if(YS(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 Ak(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=Ik(this.states,(function(e){return e.initialStateValue||XS}),(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=yS(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=Zk(t.target)&&YS(t.target)?Nk(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 yS(this)?[this]:"compound"!==this.type||this.initial?Vk(zk(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Tk||Uk(!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=ck(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:Ik(this.states,(function(t,n){if(!e)return t.historyValue();var r=Zk(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?Vk(zk(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=lk(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return Zk(s)?[n.getStateNode(s)]:Vk(zk(s).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=Vk(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 s=lk(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,lk(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}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(!Zk(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 _k(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Zk(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=sk(sk({},e),{actions:dS(_k(e.actions)),cond:Jk(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return sk(sk({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},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=JS,s=o[i],a=void 0===s?[]:s,l=ak(o,["*"]);n=Vk(Object.keys(l).map((function(e){Tk||e!==ZS||Uk(!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=tS(e,l[e]);return Tk||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Zk(e.target)||Yk(e.target))})),o=t===ZS?"the transient event":"event '".concat(t,"'");Uk(!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(tS(JS,a)))}else n=[];var c=this.config.always?tS("",this.config.always):[],d=this.config.onDone?tS(String(hS(this.id)),this.config.onDone):[];Tk||Uk(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Vk(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,dk([],ck(tS(String(pS(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,dk([],ck(tS(String(fS(e.id)),e.onError)),!1)),t}))),h=this.after,p=Vk(dk(dk(dk(dk([],ck(d),!1),ck(u),!1),ck(n),!1),ck(c),!1).map((function(e){return _k(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=lk(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var e$,t$=function(e){return{type:vk,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(e$||(e$={}));var n$="undefined"!=typeof document?n.useLayoutEffect:function(){};function r$(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}var o$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s},i$=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 s$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s},a$=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 l$(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function c$(e){var t=n.useRef([]),r=n.useRef([]);n$((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})),s=s$(function(e,t){var n,r,o=o$([[],[]],2),i=o[0],s=o[1];try{for(var a=i$(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===e$.Effect})),2),a=s[0],l=s[1];(n=t.current).push.apply(n,a$([],s$(a.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,a$([],s$(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),n$((function(){for(;r.current.length;){var e=s$(r.current.shift(),2);l$(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=s$(t.current.shift(),2);l$(e[0],e[1])}}))}var d$=function(){return d$=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},d$.apply(this,arguments)},u$=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},h$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s};var p$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s};function f$(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)&&a(e)}),[]),o=function(e,t,r){void 0===t&&(t={});var o=r$((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=h$(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 s=t.context,a=t.guards,l=t.actions,c=t.activities,d=t.services,u=t.delays,h=t.state,p=u$(t,["context","guards","actions","activities","services","delays","state"]),f=r$((function(){var e={context:s,guards:a,actions:l,activities:c,services:d,delays:u};return US(o.withConfig(e,(function(){return d$(d$({},o.context),s)})),d$({deferEvents:!0},p))}));return n$((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]),n$((function(){return f.start(h?LS.create(h):void 0),function(){f.stop()}}),[]),n$((function(){Object.assign(f.machine.options.actions,l),Object.assign(f.machine.options.guards,a),Object.assign(f.machine.options.activities,c),Object.assign(f.machine.options.services,d),Object.assign(f.machine.options.delays,u)}),[l,a,c,d,u]),c$(f),f}(e,t,r),i=p$(n.useState((function(){var e=o.machine.initialState;return t.state?LS.create(t.state):e})),2),s=i[0],a=i[1];return[s,o.send,o]}function m$(){return m$=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},m$.apply(null,arguments)}function g$(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 v$={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(v$.str(e)||v$.num(e))return e===t;if(v$.obj(e)&&v$.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!v$.und(n)||e===t}};function b$(e,t){return v$.und(e)||v$.nul(e)?t:e}function y$(e){return v$.und(e)?[]:v$.arr(e)?e:[e]}function x$(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 v$.fun(e)?e(...n):e}function w$(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,g$(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(v$.und(t))return m$({to:t},e);const n=Object.keys(e).reduce(((n,r)=>v$.und(t[r])?m$({},n,{[r]:e[r]}):n),{});return m$({to:t},n)}class C${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 k$ extends C${constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof C$&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof C$&&e.removeChild(this)))}}class S$ extends C${constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof C$&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof C$&&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 C$)&&(t[n]=r instanceof C$?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let $$,E$;let M$,j$=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let T$,O$=()=>Date.now();class L$ extends S${constructor(e,t){super(),this.update=void 0,this.payload=e.style?m$({},e,{style:T$(e.style)}):e,this.update=t,this.attach()}}let A$=!1;const R$=new Set,N$=()=>{if(!A$)return!1;let e=O$();for(let t of R$){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof C$,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.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[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(R$.delete(t),t.stop(!0))}return R$.size?j$(N$):A$=!1,A$};function D$(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return D$({range:e,output:t,extrapolate:n});if(M$&&"string"==typeof e.output[0])return M$(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=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,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(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,s,a,r.map)}}class I$ extends k${constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof k$&&!(e instanceof I$)?e.getPayload():Array.isArray(e)?e:[e],this.calc=D$(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=D$(e,t,n)}interpolate(e,t,n){return new I$(this,e,t,n)}}const P$=(e,t,n)=>e&&new I$(e,t,n);function z$(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>z$(e,t)))}class V$ extends C${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&&z$(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new I$(this,e,t,n)}}class B$ extends k${constructor(e){super(),this.payload=e.map((e=>new V$(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 I$(this,e,t)}}let _$=0,H$=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=_$++}update(e){if(!e)return this;const t=w$(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=g$(t,["delay","to"]);if(v$.arr(o)||v$.fun(o))this.queue.push(m$({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=m$({to:{[n]:o},delay:x$(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=m$({},e[s.delay],s,{to:m$({},a,s.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;v$.obj(n)&&(this.merged=m$({},n,this.merged)),v$.obj(o)&&(this.merged=m$({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=g$(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=v$.arr(s.to)||v$.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else v$.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,R$.has(t)||R$.add(t),A$||(A$=!0,j$(N$));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,R$.has(t)&&R$.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=g$(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(v$.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=m$({},r,w$(r.to[t]));v$.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(v$.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=m$({},r,w$(n));if(v$.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=m$({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=m$({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=v$.num(o),l=v$.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!E$[o],c=v$.arr(o),h=!s&&!c&&!l;let f=v$.und(r[n])?o:r[n],m=s||c||l?o:1,g=x$(a,n);p&&(m=p.animations[n].parent);let v,b=i.parent,y=i.interpolation,x=y$(p?m.getPayload():m),w=o;h&&(w=M$({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!v$.und(b)&&i.animatedValues.some((e=>!e.done)),S=!v$.equ(w,C),$=!v$.equ(w,i.previous),E=!v$.equ(g,i.config);if(d||$&&S||E){if(s||l)b=y=i.parent||new V$(f);else if(c)b=y=i.parent||new B$(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(b=i.parent,b.setValue(0,!1)):b=new V$(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=b.interpolate(t)}return x=y$(p?m.getPayload():m),v=y$(b.getPayload()),d&&!h&&b.setValue(f,!1),this.hasChanged=!0,v.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=O$(),e.done=!1,e.animatedStyles.clear()})),x$(u,n)&&b.setValue(h?m:o,!1),m$({},e,{[n]:m$({},i,{name:n,parent:b,interpolation:y,animatedValues:v,toValues:x,previous:w,config:g,fromValues:y$(b.getValue()),immediate:x$(u,n),initialVelocity:b$(g.velocity,0),clamp:b$(g.clamp,!1),precision:b$(g.precision,.01),tension:b$(g.tension,170),friction:b$(g.friction,26),mass:b$(g.mass,1),duration:g.duration,easing:b$(g.easing,(e=>e)),decay:g.decay})})}return S?e:(h&&(b.setValue(1,!1),y.updateConfig({output:[w,w]})),b.done=!0,this.hasChanged=!0,m$({},e,{[n]:m$({},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 F$=e=>{const t=v$.fun(e),r=((e,t)=>{const r=n.useRef(!1),o=n.useRef(),i=v$.fun(t),s=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 H$,s=i?x$(t,r,o):t[r];return 0===r&&(n=s.ref),o.update(s),n||o.start(),o})),n]}),[e]),a=s[0],l=s[1];o.current=a,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?x$(e,n,t):e[n]),l||t.start()}))),[e]);n.useEffect((()=>{r.current?i||c(t):l||o.current.forEach((e=>e.start()))})),n.useEffect((()=>(r.current=!0,()=>o.current.forEach((e=>e.destroy())))),[]);const d=o.current.map((e=>e.getValues()));return i?[d,c,e=>o.current.forEach((t=>t.pause(e)))]:d})(1,t?e:[e]),o=r[0],i=r[1],s=r[2];return t?[o[0],i,s]:o};class q$ extends S${constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof C$||(e=$$.transform(e)),this.payload=e}}const W$={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},U$="[-+]?\\d*\\.?\\d+",K$=U$+"%";function G$(){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 Z$=new RegExp("rgb"+G$(U$,U$,U$)),J$=new RegExp("rgba"+G$(U$,U$,U$,U$)),X$=new RegExp("hsl"+G$(U$,K$,K$)),Y$=new RegExp("hsla"+G$(U$,K$,K$,U$)),Q$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eE=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tE=/^#([0-9a-fA-F]{6})$/,nE=/^#([0-9a-fA-F]{8})$/;function rE(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 oE(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=rE(o,r,e+1/3),s=rE(o,r,e),a=rE(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function iE(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function sE(e){return(parseFloat(e)%360+360)%360/360}function aE(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function lE(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function cE(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=tE.exec(e))?parseInt(t[1]+"ff",16)>>>0:W$.hasOwnProperty(e)?W$[e]:(t=Z$.exec(e))?(iE(t[1])<<24|iE(t[2])<<16|iE(t[3])<<8|255)>>>0:(t=J$.exec(e))?(iE(t[1])<<24|iE(t[2])<<16|iE(t[3])<<8|aE(t[4]))>>>0:(t=Q$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=nE.exec(e))?parseInt(t[1],16)>>>0:(t=eE.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=X$.exec(e))?(255|oE(sE(t[1]),lE(t[2]),lE(t[3])))>>>0:(t=Y$.exec(e))?(oE(sE(t[1]),lE(t[2]),lE(t[3]))|aE(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 dE=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,uE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hE=new RegExp(`(${Object.keys(W$).join("|")})`,"g");let pE={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 fE=["Webkit","Ms","Moz","O"];function mE(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pE.hasOwnProperty(e)&&pE[e]?(""+t).trim():t+"px"}pE=Object.keys(pE).reduce(((e,t)=>(fE.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),pE);const gE={};var vE,bE;vE=e=>new q$(e),T$=vE,bE=e=>{const t=e.output.map((e=>e.replace(uE,cE))).map((e=>e.replace(hE,cE))),n=t[0].match(dE).map((()=>[]));t.forEach((e=>{e.match(dE).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(dE).map(((t,r)=>D$(m$({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(dE,(()=>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})`))}},M$=bE,E$=W$,function(e,t){$$={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=g$(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=mE(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:gE[t]||(gE[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var yE;const xE=(yE=e=>n.forwardRef(((t,r)=>{const o=function(){const e=n.useState(!1)[1];return n.useCallback((()=>e((e=>!e))),[])}(),i=n.useRef(!0),s=n.useRef(null),a=n.useRef(null),l=n.useCallback((e=>{const t=s.current;s.current=new L$(e,(()=>{let e=!1;a.current&&(e=$$.fn(a.current,s.current.getAnimatedValue())),a.current&&!1!==e||o()})),t&&t.detach()}),[]);n.useEffect((()=>()=>{i.current=!1,s.current&&s.current.detach()}),[]),n.useImperativeHandle(r,(()=>(e=>e.current)(a))),l(t);const c=s.current.getValue();c.scrollTop,c.scrollLeft;const d=g$(c,["scrollTop","scrollLeft"]),u=(h=e,!v$.fun(h)||h.prototype instanceof n.Component?e=>a.current=function(e,t){return t&&(v$.fun(t)?t(e):v$.obj(t)&&(t.current=e)),e}(e,r):void 0);var h;return n.createElement(e,m$({},d,{ref:u}))})),e=>(v$.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=yE(n),e}),yE))(["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 wE(e,t){return e.map((function(e,n){return e+t[n]}))}function CE(e,t){return e.map((function(e,n){return e-t[n]}))}function kE(e){return Math.hypot.apply(Math,e)}function SE(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function $E(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 EE(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?-$E(t-e,n-t,r)+t:e>n?+$E(e-n,n-t,r)+n:e}function ME(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 jE(){return jE=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},jE.apply(this,arguments)}function TE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function OE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LE(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 AE(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 LE(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)?LE(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 RE(){}function NE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?RE:1===t.length?t[0]:function(){for(var e,n,r=AE(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function DE(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 IE(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 PE(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=PE(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var zE=jE({},{threshold:function(e){return void 0===e&&(e=0),DE(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return DE(.15);case!1:return DE(0);default:return DE(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:DE(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 zE.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,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),VE="undefined"!=typeof window&&window.document&&window.document.createElement,BE={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=VE?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}}},_E=jE({},zE,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=DE(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),DE(e)},swipeDistance:function(e){return void 0===e&&(e=60),DE(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function HE(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"]),s=function(e){return void 0===e&&(e={}),PE(e,BE)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),PE(e,_E)}(i),s}function FE(e){return jE({_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:RE,canceled:!1,memo:void 0,args:void 0},e)}function qE(){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:FE({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:FE({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:FE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:FE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:FE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var WE=new Map,UE=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),s=2;s<o;s++)i[s-2]=arguments[s];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=jE({},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,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?KE(p[0],i[0]):d[0],m=!1===d[1]?KE(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return jE({},g,{_movement:p,delta:[0,0]});var v,b,y,x,w=g._intentional,C=p;(!1!==w[0]&&!1===d[0]&&(b=IE(n,this.state),v=IE(r,this.state),l[0]=b[0],a[0]=v[0]),!1!==w[1]&&!1===d[1])&&(b=null!=(y=b)?y:IE(n,this.state),v=null!=(x=v)?x:IE(r,this.state),l[1]=b[1],a[1]=v[1]);var k=[!1!==w[0]?p[0]-w[0]:l[0],!1!==w[1]?p[1]-w[1]:l[1]],S=wE(k,u),$=c?o:[0,0];return k=GE(a,wE(k,l),$),jE({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:k,values:e,offset:GE(a,S,$),delta:CE(k,h)})},t.clean=function(){this.clearTimeout()},ME(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 KE(e,t){return Math.abs(e)>=t&&SE(e)*t}function GE(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[EE(r,l,c,i),EE(o,u,h,s)]}function ZE(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function JE(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,jE({},t,{event:n})].concat(o))}}var XE=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,s=AE(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];eM(e,c[0],JE(c[1],jE({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=QE(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;nM(o,YE(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,NE.apply(void 0,d)])}tM(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=NE.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=QE(t.config),n=t.config.eventOptions;e&&nM(e,YE(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){nM(n,o[i],r)}e.windowListeners={}}(t)},this.state=qE(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function YE(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function QE(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function eM(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function tM(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=AE(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function nM(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=AE(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function rM(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(WE.get("drag"));e.wheel&&t.add(WE.get("wheel"));e.scroll&&t.add(WE.get("scroll"));e.move&&t.add(WE.get("move"));e.pinch&&t.add(WE.get("pinch"));e.hover&&t.add(WE.get("hover"));return t}(e),i=n.useMemo((function(){return new XE(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?oM:i.bind}function oM(){"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`.")}var iM=function(e){function t(){return e.apply(this,arguments)||this}TE(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return CE(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=kE(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:kE(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(UE);function sM(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function aM(e){var t="buttons"in e?e.buttons:0,n=sM(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 lM(e){var t=sM(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var cM=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&&(nM(r.window,o[t],r.eventOptions),tM(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(OE(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=aM(e);if(n.down){t.updateSharedState(n);var r=lM(e),o=t.getKinematics(r,e),i=ZE(OE(t),e),s=t.state._isTap,a=kE(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(jE({},i,o,{_isTap:s})),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],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],v=m[1],b=jE({},ZE(OE(t),e),t.getMovement(t.state.values)),y=[0,0];b.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=SE(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>v&&(y[1]=SE(i))),t.updateGestureState(jE({},b,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(OE(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(nM(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}TE(t,e);var n=t.prototype;return n.startDrag=function(e){var t=lM(e);this.updateSharedState(aM(e)),this.updateGestureState(jE({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return jE({},qE()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),ZE(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(eM(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&eM(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(iM);function dM(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(!dM(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(!dM(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||dM(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function uM(e,t){try{return dM(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 hM(e,t){void 0===t&&(t={}),WE.set("drag",cM);var r=n.useRef();return r.current||(r.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(HE,uM)),rM({drag:e},r.current(t))}
|
|
2611
|
+
***************************************************************************** */var rk,ok,ik=function(){return ik=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},ik.apply(this,arguments)};function sk(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 ak(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 lk(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s}function ck(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"}(rk||(rk={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ok||(ok={}));var dk=rk.Start,uk=rk.Stop,hk=rk.Raise,pk=rk.Send,fk=rk.Cancel,mk=rk.NullEvent,gk=rk.Assign;rk.After,rk.DoneState;var vk=rk.Log,bk=rk.Init,yk=rk.Invoke;rk.ErrorExecution;var xk,wk=rk.ErrorPlatform,Ck=rk.ErrorCustom,kk=rk.Update,Sk=rk.Choose,$k=rk.Pure,Ek={},Mk="xstate.guard",jk="production"===process.env.NODE_ENV;function Tk(e,t,n){void 0===n&&(n=".");var r=Ak(e,n),o=Ak(t,n);return Gk(o)?!!Gk(r)&&o===r:Gk(r)?r in o:Object.keys(r).every((function(e){return e in o&&Tk(r[e],o[e])}))}function Ok(e){try{return Gk(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 Lk(e,t){try{return Uk(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Ak(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Uk(e)?Rk(e):"string"!=typeof e?e:Rk(Lk(e,t));var n}function Rk(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 Nk(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 Dk(e,t,n){var r,o,i={};try{for(var s=ak(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var Ik=function(e){return function(t){var n,r,o=t;try{for(var i=ak(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Pk(e){return e?Gk(e)?[[e]]:zk(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Pk(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function zk(e){var t;return(t=[]).concat.apply(t,ck([],lk(e),!1))}function Vk(e){return Uk(e)?e:[e]}function Bk(e){return void 0===e?[]:Vk(e)}function _k(e,t,n){var r,o;if(Kk(e))return e(t,n.data);var i={};try{for(var s=ak(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];Kk(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function Hk(e){return e instanceof Promise||!(null===e||!Kk(e)&&"object"!=typeof e||!Kk(e.then))}function Fk(e,t){return Nk(e.states,(function(e,n){if(e){var r=(Gk(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:Fk(e,r)}}}))}function qk(e,t,n,r){jk||Wk(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(Kk(s))l=s(e,t.data,a);else try{for(var c=ak(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=Kk(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var Wk=function(){};function Uk(e){return Array.isArray(e)}function Kk(e){return"function"==typeof e}function Gk(e){return"string"==typeof e}function Zk(e,t){if(e)return Gk(e)?{type:Mk,name:e,predicate:t?t[e]:void 0}:Kk(e)?{type:Mk,name:e.name,predicate:e}:e}jk||(Wk=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 Jk=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Xk(e){return!!e&&"__xstatenode"in e}function Yk(e,t){return Gk(e)||"number"==typeof e?ik({type:e},t):e}function Qk(e,t){if(!Gk(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Yk(e);return ik({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function eS(e,t){return Vk(t).map((function(t){return void 0===t||"string"==typeof t||Xk(t)?{target:t,event:e}:ik(ik({},t),{event:e})}))}function tS(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===Mk)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function nS(e){return"string"==typeof e?{type:e}:e}function rS(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 oS(e,t){return"".concat(e,":invocation[").concat(t,"]")}function iS(e){return(e.type===hk||e.type===pk&&e.to===ok.Internal)&&"number"!=typeof e.delay}(xk={})[Jk]=function(){return this},xk[Symbol.observable]=function(){return this};var sS=Qk({type:bk});function aS(e,t){return t&&t[e]||void 0}function lS(e,t){var n;if(Gk(e)||"number"==typeof e)n=Kk(r=aS(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Kk(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Kk(r=aS(e.type,t)))n=ik(ik({},e),{exec:r});else if(r){var o=r.type||e.type;n=ik(ik(ik({},r),e),{type:o})}else n=e}return n}var cS=function(e,t){return e?(Uk(e)?e:[e]).map((function(e){return lS(e,t)})):[]};function dS(e){var t=lS(e);return ik(ik({id:Gk(e)?e:t.id},t),{type:t.type})}function uS(e,t){var n="".concat(rk.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function hS(e,t){var n="".concat(rk.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function pS(e,t){var n="".concat(rk.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function fS(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=ak(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==gk?a++:(r.push(s.actions[a]),s.actions.splice(a,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=a.length?qk(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case hk:var h=function(e,t,n,r){var o,i={_event:n},s=Qk(Kk(e.event)?e.event(t,n.data,i):e.event);if(Gk(e.delay)){var a=r&&r[e.delay];o=Kk(a)?a(t,n.data,i):a}else o=Kk(e.delay)?e.delay(t,n.data,i):e.delay;return ik(ik({},e),{type:hk,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case pk:var p=function(e,t,n,r){var o,i={_event:n},s=Qk(Kk(e.event)?e.event(t,n.data,i):e.event);if(Gk(e.delay)){var a=r&&r[e.delay];o=Kk(a)?a(t,n.data,i):a}else o=Kk(e.delay)?e.delay(t,n.data,i):e.delay;var l=Kk(e.to)?e.to(t,n.data,i):e.to;return ik(ik({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!jk){var f=a.delay;Wk(!Gk(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==ok.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case vk:var m=function(e,t,n){return ik(ik({},e),{value:Gk(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case Sk:if(!(y=null===(u=a.conds.find((function(n){var o=Zk(n.cond,e.options.guards);return!o||tS(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=lk(fS(e,t,l,r,[{type:o,actions:cS(Bk(y),e.options.actions)}],i,s),2),v=g[0],b=g[1];return l=b,null==c||c.push(l),v;case $k:var y;if(!(y=a.get(l,r.data)))return[];var x=lk(fS(e,t,l,r,[{type:o,actions:cS(Bk(y),e.options.actions)}],i,s),2),w=x[0],C=x[1];return l=C,null==c||c.push(l),w;case uk:m=function(e,t,n){var r=Kk(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:rk.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case gk:l=qk(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=lS(a,e.options.actions),S=k.exec;if(i)i(k,l,r);else if(S&&c){var $=c.length-1,E=ik(ik({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];S.apply(void 0,ck([c[$]],lk(t),!1))}});k=E}return k}}var h=zk(o.map((function(e){var t,n,o=[];try{for(var s=ak(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var mS=function(e,t){return t(e)};function gS(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[Jk]=function(){return this},t}function vS(e,t,n){var r=gS(t);if(r.deferred=!0,Xk(e)){var o=r.state=mS(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var bS=function(e){return"atomic"===e.type||"final"===e.type};function yS(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function xS(e){return yS(e).filter((function(e){return"history"!==e.type}))}function wS(e){var t=[e];return bS(e)?t:t.concat(zk(xS(e).map(wS)))}function CS(e,t){var n,r,o,i,s,a,l,c,d=SS(new Set(e)),u=new Set(t);try{for(var h=ak(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=SS(u);try{for(var g=ak(u),v=g.next();!v.done;v=g.next()){if("compound"!==(k=v.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var b=(s=void 0,ak(xS(k))),y=b.next();!y.done;y=b.next()){var x=y.value;u.has(x)||(u.add(x),d.get(x)?d.get(x).forEach((function(e){return u.add(e)})):x.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var w=ak(u),C=w.next();!C.done;C=w.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return u}function kS(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(bS(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=kS(e,t)})),o}function SS(e){var t,n,r=new Map;try{for(var o=ak(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}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 $S(e,t){return kS(e,SS(CS([e],t)))}function ES(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function MS(e,t){return"compound"===t.type?xS(t).some((function(t){return"final"===t.type&&ES(e,t)})):"parallel"===t.type&&xS(t).every((function(t){return MS(e,t)}))}function jS(e){return new Set(zk(e.map((function(e){return e.tags}))))}function TS(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Gk(e)||Gk(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return TS(e[n],t[n])}))}var OS=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ek,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||Ek,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 ck([],lk(new Set(zk(ck([],lk(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:sS,_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=sS;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="."),Gk(e))return[e];var r=Object.keys(e);return r.concat.apply(r,ck([],lk(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=sk(e,["configuration","transitions","tags","machine"]);return ik(ik({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Tk(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;jk&&Wk(!!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}(),LS={deferEvents:!1},AS=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ik(ik({},LS),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}(),RS=new Map,NS=0,DS=function(){return"x:".concat(NS++)},IS=function(e,t){return RS.set(e,t),e},PS=function(e){return RS.get(e)},zS=function(e){RS.delete(e)};function VS(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(jk||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 BS(e){if(VS()){var t=function(){var e=VS();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function _S(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return ik(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[Jk]=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,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=rS(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var HS,FS={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(HS||(HS={}));var qS=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=HS.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Uk(e))return r.batch(e),r.state;var n=Qk(Yk(e,t));if(r.status===HS.Stopped)return jk||Wk(!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!==HS.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===ok.Parent||r.parent.id===t),s=i?r.parent:Gk(t)?t===ok.Internal?r:r.children.get(t)||PS(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==HS.Stopped||r.parent!==s||r.state.done){var a=ik(ik({},e),{name:e.name===Ck?"".concat(pS(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));jk||Wk(!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||aS(e.type,o),s=Kk(i)?i:i?i.exec:e.exec;if(s)try{return s(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 hk:var a=e;r.defer(a);break;case pk:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===sS):r.send(l._event);break;case fk:r.cancel(e.sendId);break;case dk:if(r.status!==HS.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===rk.Invoke){var d=nS(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;jk||Wk(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(jk||Wk(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?_k(p,t,n):void 0;if("string"==typeof u)return;var g=Kk(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var v=void 0;Xk(g)&&(g=m?g.withContext(m):g,v={autoForward:f}),r.spawn(g,h,v)}else r.spawnActivity(c);break;case uk:r.stopChild(e.activity.id);break;case vk:var b=e,y=b.label,x=b.value;y?r.logger(y,x):r.logger(x);break;default:jk||Wk(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=ik(ik({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new AS({deferEvents:this.options.deferEvents}),this.sessionId=DS()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:mS(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return jk||Wk(this.status!==HS.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=ak(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,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,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==sS||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var h=ak(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=ak(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=ak(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){s={error:e}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var b=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=b&&b.doneData?_k(b.doneData,e.context,t):void 0;this._doneEvent=hS(this.id,y);try{for(var x=ak(this.doneListeners),w=x.next();!w.done;w=x.next()){(0,w.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),zS(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===HS.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=rS(e,t,n);this.listeners.add(o.next),this.status!==HS.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===HS.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===HS.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===HS.Running)return this;this.machine._init(),IS(this.sessionId,this),this.initialized=!0,this.status=HS.Running;var n=void 0===e?this.initialState:mS(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(OS.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,sS)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Kk(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=ak(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var p=ak(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=ak(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var v=ak(this.doneListeners),b=v.next();!b.done;b=v.next()){h=b.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=HS.Stopped,this._initialState=void 0;try{for(var y=ak(Object.keys(this.delayedEventsMap)),x=y.next();!x.done;x=y.next()){var w=x.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new AS({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=Qk({type:"xstate.stop"}),r=mS(e,(function(){var t=zk(ck([],lk(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return cS(t.onExit,e.machine.options.actions)}))),r=lk(fS(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],s=new OS({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!iS(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),zS(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===HS.NotStarted&&this.options.deferEvents)jk||Wk(!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!==HS.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,s=!1,a=[],l=function(e){var r=Qk(e);t.forward(r),i=mS(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,ck([],lk(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return ik(ik({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=ak(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,Qk(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=Qk(e);if(0===r.name.indexOf(wk)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(wk)})))throw r.data.data;return mS(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=ak(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.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),Kk(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==HS.Running)return vS(e,t);if(Hk(e))return this.spawnPromise(Promise.resolve(e),t);if(Kk(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&&Kk(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Xk(e))return this.spawnMachine(e,ik(ik({},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,ik(ik({},this.options),{parent:this,id:n.id||t.id})),i=ik(ik({},FS),n);i.sync&&o.onTransition((function(e){r.send(kk,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(Qk(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=_S(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(Qk(hS(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=pS(t,e);try{o.send(Qk(n,{origin:t}))}catch(r){!function(e,t,n){if(!jk){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 s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=rS(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}})[Jk]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(Qk(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(pS(t,e))}if(Hk(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=rS(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,Kk(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[Jk]=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(Qk(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(Qk(pS(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(Qk(hS(t),{origin:t}))})),s=((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}}})[Jk]=function(){return this},n);return this.children.set(t,s),s},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 jk||Wk(!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}}})[Jk]=function(){return this},n))},e.prototype.attachDev=function(){var e=VS();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(ik(ik({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:ik({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}BS(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Jk]=function(){return this},e.prototype.getSnapshot=function(){return this.status===HS.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=WS,e}();function WS(e,t){return new qS(e,t)}function US(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function KS(e){return ik(ik({type:yk},e),{toJSON:function(){e.onDone,e.onError;var t=sk(e,["onDone","onError"]);return ik(ik({},t),{type:yk,src:US(e.src)})}})}var GS="",ZS="*",JS={},XS=function(e){return"#"===e[0]},YS=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=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||ck([this.machine.key],lk(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,jk||Wk(!("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?Nk(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,ik(((r={})[o.id]=o,r),o.idMap)),o})):JS;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=ak(yS(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===GS})):GS in this.config.on),this.strict=!!this.config.strict,this.onEntry=Bk(this.config.entry||this.config.onEntry).map((function(e){return lS(e)})),this.onExit=Bk(this.config.exit||this.config.onExit).map((function(e){return lS(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Bk(this.config.invoke).map((function(e,t){var n,r;if(Xk(e)){var o=oS(s.id,t);return s.machine.options.services=ik(((n={})[o]=e,n),s.machine.options.services),KS({src:o,id:o})}if(Gk(e.src)){o=e.id||oS(s.id,t);return KS(ik(ik({},e),{id:o,src:e.src}))}if(Xk(e.src)||Kk(e.src)){o=e.id||oS(s.id,t);return s.machine.options.services=ik(((r={})[o]=e.src,r),s.machine.options.services),KS(ik(ik({id:o},e),{src:o}))}var i=e.src;return KS(ik(ik({id:oS(s.id,t)},e),{src:i}))})),this.activities=Bk(this.config.activities).concat(this.invoke).map((function(e){return dS(e)})),this.transition=this.transition.bind(this),this.tags=Bk(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||wS(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:ik(ik({},o),t.actions),activities:ik(ik({},i),t.activities),guards:ik(ik({},s),t.guards),services:ik(ik({},a),t.services),delays:ik(ik({},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 Kk(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:Nk(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===GS,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===ZS}));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(rk.After,"(").concat(e,")").concat(n)}(Kk(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:pk,event:Kk(e)?e:Yk(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Kk(e)?e.name:Ok(e)}}(r,{delay:t})),e.onExit.push({type:fk,sendId:r}),r},r=Uk(t)?t.map((function(e,t){var r=n(e.delay,t);return ik(ik({},e),{event:r})})):zk(Object.keys(t).map((function(e,r){var o=t[e],i=Gk(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return Bk(i).map((function(e){return ik(ik({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return ik(ik({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof OS?e.value:Ak(e,this.delimiter);if(Gk(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),s=[this];return s.push.apply(s,ck([],lk(zk(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=Ok(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof OS?e:OS.create(e),n=Array.from(CS([],this.getStateNodes(t.value)));return new OS(ik(ik({},t),{value:this.resolve(t.value),configuration:n,done:MS(n,this),tags:jS(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 s=ak(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=zk(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=zk(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:zk(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:zk(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return Gk(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,Qk(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=ak(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||(Gk(p)&&XS(p)?e.matches(Ak(this.getStateNodeById(p).path,this.delimiter)):Tk(Ak(p,this.delimiter),Ik(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||tS(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,ck([],lk(u.actions),!1)),o=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var v=zk(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:zk(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:v,source:e,actions:a}}},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,s){var a,l,c,d,u=this,h=i?CS([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=ak(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!ES(h,b=m.value)||ES(n.exitSet,b)||b.parent&&p.has(b.parent))&&p.add(b)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=ak(h),v=g.next();!v.done;v=g.next()){var b;ES(e,b=v.value)&&!ES(n.exitSet,b.parent)||n.exitSet.push(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),x=new Set(n.exitSet),w=zk(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(uS(e.id,e.doneData),uS(i.id,e.doneData?_k(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&xS(s).every((function(e){return MS(n.configuration,e)}))&&t.push(uS(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=dS(e);return{type:rk.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:cS(s?ck(ck([],lk(t),!1),lk(n),!1):ck(ck([],lk(n),!1),lk(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:hk,event:"function"==typeof e?e:Yk(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(x).map((function(e){return{type:"exit",actions:cS(ck(ck([],lk(e.onExit),!1),lk(e.activities.map((function(e){return function(e){var t=Kk(e)?e:dS(e);return{type:rk.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:cS(n.actions,this.machine.options.actions)}).concat(C);if(t){var S=cS(zk(ck([],lk(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!iS(e)}));return k.concat({type:"stop",actions:S})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=Qk(t);if(e instanceof OS)o=void 0===n?e:this.resolveState(OS.from(e,n));else{var a=Gk(e)?this.resolve(Rk(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(OS.from(a,l))}if(!jk&&s.name===ZS)throw new Error("An event cannot have the wildcard type ('".concat(ZS,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=CS([],this.getStateNodes(o.value)),u=c.configuration.length?CS(d,c.configuration):d;return c.configuration=ck([],lk(u),!1),this.resolveTransition(c,o,o.context,r,s)},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,ck([],lk(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=sS);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=MS(h,this),f=u?$S(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),v=t?ik({},t.activities):{};try{for(var b=ak(g),y=b.next();!y.done;y=b.next()){var x=y.value;try{for(var w=(a=void 0,ak(x.actions)),C=w.next();!C.done;C=w.next()){var k=C.value;k.type===dk?v[k.activity.id||k.activity.type]=k:k.type===uk&&(v[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=b.return)&&s.call(b)}finally{if(i)throw i.error}}var S,$,E=lk(fS(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),M=E[0],j=E[1],T=lk(function(e,t){var n,r,o=lk([[],[]],2),i=o[0],s=o[1];try{for(var a=ak(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(M,iS),2),O=T[0],L=T[1],A=M.filter((function(e){var t;return e.type===dk&&(null===(t=e.activity)||void 0===t?void 0:t.type)===yk})),R=A.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=nS(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?_k(e.data,n,r):void 0,l=s?vS(s,e.id,a):gS(e.id);return l.meta=e,l}(t.activity,c.machine,j,o),e}),t?ik({},t.children):{}),N=new OS({value:f||t.value,context:j,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?(S=m,$=f,{current:$,states:Fk(S,$)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?L:[],activities:f?v:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:jS(h),machine:this}),D=n!==j;N.changed=o.name===kk||D;var I=N.history;I&&delete I.history;var P=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||P&&o.name!==GS))return N;var z=N;if(!p)for(P&&(z=this.resolveRaisedTransition(z,{type:mk},o,r));O.length;){var V=O.shift();z=this.resolveRaisedTransition(z,V._event,o,r)}var B=z.changed||(I?!!z.actions.length||D||typeof I.value!=typeof z.value||!TS(z.value,I.value):void 0);return z.changed=B,z.history=I,z},e.prototype.getStateNode=function(e){if(XS(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=XS(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&&XS(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Lk(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||JS;switch(this.type){case"parallel":return Nk(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):JS}));case"compound":if(Gk(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Nk(e,(function(e,t){return e?n.getStateNode(t).resolve(e):JS})):this.initialStateValue||{};default:return e||JS}},e.prototype.getResolvedPath=function(e){if(XS(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 Lk(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=Dk(this.states,(function(e){return e.initialStateValue||JS}),(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=bS(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=Gk(t.target)&&XS(t.target)?Rk(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 bS(this)?[this]:"compound"!==this.type||this.initial?zk(Pk(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(jk||Wk(!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=lk(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:Dk(this.states,(function(t,n){if(!e)return t.historyValue();var r=Gk(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?zk(Pk(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=ak(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return Gk(s)?[n.getStateNode(s)]:zk(Pk(s).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=zk(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 s=ak(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,ak(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}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(!Gk(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 Bk(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Gk(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=ik(ik({},e),{actions:cS(Bk(e.actions)),cond:Zk(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return ik(ik({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},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=ZS,s=o[i],a=void 0===s?[]:s,l=sk(o,["*"]);n=zk(Object.keys(l).map((function(e){jk||e!==GS||Wk(!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=eS(e,l[e]);return jk||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Gk(e.target)||Xk(e.target))})),o=t===GS?"the transient event":"event '".concat(t,"'");Wk(!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(eS(ZS,a)))}else n=[];var c=this.config.always?eS("",this.config.always):[],d=this.config.onDone?eS(String(uS(this.id)),this.config.onDone):[];jk||Wk(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=zk(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,ck([],lk(eS(String(hS(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,ck([],lk(eS(String(pS(e.id)),e.onError)),!1)),t}))),h=this.after,p=zk(ck(ck(ck(ck([],lk(d),!1),lk(u),!1),lk(n),!1),lk(c),!1).map((function(e){return Bk(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=ak(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var QS,e$=function(e){return{type:gk,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(QS||(QS={}));var t$="undefined"!=typeof document?n.useLayoutEffect:function(){};function n$(e){var t=l.useRef();return t.current||(t.current={v:e()}),t.current.v}var r$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s},o$=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 i$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s},s$=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 a$(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function l$(e){var t=n.useRef([]),r=n.useRef([]);t$((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})),s=i$(function(e,t){var n,r,o=r$([[],[]],2),i=o[0],s=o[1];try{for(var a=o$(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===QS.Effect})),2),a=s[0],l=s[1];(n=t.current).push.apply(n,s$([],i$(a.map((function(t){return[t,e]}))),!1)),(o=r.current).push.apply(o,s$([],i$(l.map((function(t){return[t,e]}))),!1))}}));return function(){n.unsubscribe()}}),[]),t$((function(){for(;r.current.length;){var e=i$(r.current.shift(),2);a$(e[0],e[1])}})),n.useEffect((function(){for(;t.current.length;){var e=i$(t.current.shift(),2);a$(e[0],e[1])}}))}var c$=function(){return c$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c$.apply(this,arguments)},d$=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},u$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s};var h$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.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 s};function p$(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)&&a(e)}),[]),o=function(e,t,r){void 0===t&&(t={});var o=n$((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=u$(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 s=t.context,a=t.guards,l=t.actions,c=t.activities,d=t.services,u=t.delays,h=t.state,p=d$(t,["context","guards","actions","activities","services","delays","state"]),f=n$((function(){var e={context:s,guards:a,actions:l,activities:c,services:d,delays:u};return WS(o.withConfig(e,(function(){return c$(c$({},o.context),s)})),c$({deferEvents:!0},p))}));return t$((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]),t$((function(){return f.start(h?OS.create(h):void 0),function(){f.stop()}}),[]),t$((function(){Object.assign(f.machine.options.actions,l),Object.assign(f.machine.options.guards,a),Object.assign(f.machine.options.activities,c),Object.assign(f.machine.options.services,d),Object.assign(f.machine.options.delays,u)}),[l,a,c,d,u]),l$(f),f}(e,t,r),i=h$(n.useState((function(){var e=o.machine.initialState;return t.state?OS.create(t.state):e})),2),s=i[0],a=i[1];return[s,o.send,o]}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f$.apply(null,arguments)}function m$(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 g$={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(g$.str(e)||g$.num(e))return e===t;if(g$.obj(e)&&g$.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!g$.und(n)||e===t}};function v$(e,t){return g$.und(e)||g$.nul(e)?t:e}function b$(e){return g$.und(e)?[]:g$.arr(e)?e:[e]}function y$(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 g$.fun(e)?e(...n):e}function x$(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,m$(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(g$.und(t))return f$({to:t},e);const n=Object.keys(e).reduce(((n,r)=>g$.und(t[r])?f$({},n,{[r]:e[r]}):n),{});return f$({to:t},n)}class w${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 C$ extends w${constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof w$&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof w$&&e.removeChild(this)))}}class k$ extends w${constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof w$&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof w$&&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 w$)&&(t[n]=r instanceof w$?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let S$,$$;let E$,M$=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let j$,T$=()=>Date.now();class O$ extends k${constructor(e,t){super(),this.update=void 0,this.payload=e.style?f$({},e,{style:j$(e.style)}):e,this.update=t,this.attach()}}let L$=!1;const A$=new Set,R$=()=>{if(!L$)return!1;let e=T$();for(let t of A$){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof w$,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.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[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(A$.delete(t),t.stop(!0))}return A$.size?M$(R$):L$=!1,L$};function N$(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return N$({range:e,output:t,extrapolate:n});if(E$&&"string"==typeof e.output[0])return E$(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=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,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(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,s,a,r.map)}}class D$ extends C${constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof C$&&!(e instanceof D$)?e.getPayload():Array.isArray(e)?e:[e],this.calc=N$(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=N$(e,t,n)}interpolate(e,t,n){return new D$(this,e,t,n)}}const I$=(e,t,n)=>e&&new D$(e,t,n);function P$(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>P$(e,t)))}class z$ extends w${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&&P$(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new D$(this,e,t,n)}}class V$ extends C${constructor(e){super(),this.payload=e.map((e=>new z$(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 D$(this,e,t)}}let B$=0,_$=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=B$++}update(e){if(!e)return this;const t=x$(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=m$(t,["delay","to"]);if(g$.arr(o)||g$.fun(o))this.queue.push(f$({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=f$({to:{[n]:o},delay:y$(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=f$({},e[s.delay],s,{to:f$({},a,s.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;g$.obj(n)&&(this.merged=f$({},n,this.merged)),g$.obj(o)&&(this.merged=f$({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=m$(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=g$.arr(s.to)||g$.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else g$.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A$.has(t)||A$.add(t),L$||(L$=!0,M$(R$));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,A$.has(t)&&A$.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=m$(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(g$.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=f$({},r,x$(r.to[t]));g$.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(g$.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=f$({},r,x$(n));if(g$.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=f$({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=f$({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=g$.num(o),l=g$.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!$$[o],c=g$.arr(o),h=!s&&!c&&!l;let f=g$.und(r[n])?o:r[n],m=s||c||l?o:1,g=y$(a,n);p&&(m=p.animations[n].parent);let v,b=i.parent,y=i.interpolation,x=b$(p?m.getPayload():m),w=o;h&&(w=E$({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!g$.und(b)&&i.animatedValues.some((e=>!e.done)),S=!g$.equ(w,C),$=!g$.equ(w,i.previous),E=!g$.equ(g,i.config);if(d||$&&S||E){if(s||l)b=y=i.parent||new z$(f);else if(c)b=y=i.parent||new V$(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(b=i.parent,b.setValue(0,!1)):b=new z$(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=b.interpolate(t)}return x=b$(p?m.getPayload():m),v=b$(b.getPayload()),d&&!h&&b.setValue(f,!1),this.hasChanged=!0,v.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=T$(),e.done=!1,e.animatedStyles.clear()})),y$(u,n)&&b.setValue(h?m:o,!1),f$({},e,{[n]:f$({},i,{name:n,parent:b,interpolation:y,animatedValues:v,toValues:x,previous:w,config:g,fromValues:b$(b.getValue()),immediate:y$(u,n),initialVelocity:v$(g.velocity,0),clamp:v$(g.clamp,!1),precision:v$(g.precision,.01),tension:v$(g.tension,170),friction:v$(g.friction,26),mass:v$(g.mass,1),duration:g.duration,easing:v$(g.easing,(e=>e)),decay:g.decay})})}return S?e:(h&&(b.setValue(1,!1),y.updateConfig({output:[w,w]})),b.done=!0,this.hasChanged=!0,f$({},e,{[n]:f$({},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 H$=e=>{const t=g$.fun(e),r=((e,t)=>{const r=n.useRef(!1),o=n.useRef(),i=g$.fun(t),s=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 _$,s=i?y$(t,r,o):t[r];return 0===r&&(n=s.ref),o.update(s),n||o.start(),o})),n]}),[e]),a=s[0],l=s[1];o.current=a,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?y$(e,n,t):e[n]),l||t.start()}))),[e]);n.useEffect((()=>{r.current?i||c(t):l||o.current.forEach((e=>e.start()))})),n.useEffect((()=>(r.current=!0,()=>o.current.forEach((e=>e.destroy())))),[]);const d=o.current.map((e=>e.getValues()));return i?[d,c,e=>o.current.forEach((t=>t.pause(e)))]:d})(1,t?e:[e]),o=r[0],i=r[1],s=r[2];return t?[o[0],i,s]:o};class F$ extends k${constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof w$||(e=S$.transform(e)),this.payload=e}}const q$={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},W$="[-+]?\\d*\\.?\\d+",U$=W$+"%";function K$(){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 G$=new RegExp("rgb"+K$(W$,W$,W$)),Z$=new RegExp("rgba"+K$(W$,W$,W$,W$)),J$=new RegExp("hsl"+K$(W$,U$,U$)),X$=new RegExp("hsla"+K$(W$,U$,U$,W$)),Y$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Q$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eE=/^#([0-9a-fA-F]{6})$/,tE=/^#([0-9a-fA-F]{8})$/;function nE(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 rE(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=nE(o,r,e+1/3),s=nE(o,r,e),a=nE(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function oE(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function iE(e){return(parseFloat(e)%360+360)%360/360}function sE(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function aE(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function lE(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=eE.exec(e))?parseInt(t[1]+"ff",16)>>>0:q$.hasOwnProperty(e)?q$[e]:(t=G$.exec(e))?(oE(t[1])<<24|oE(t[2])<<16|oE(t[3])<<8|255)>>>0:(t=Z$.exec(e))?(oE(t[1])<<24|oE(t[2])<<16|oE(t[3])<<8|sE(t[4]))>>>0:(t=Y$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=tE.exec(e))?parseInt(t[1],16)>>>0:(t=Q$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=J$.exec(e))?(255|rE(iE(t[1]),aE(t[2]),aE(t[3])))>>>0:(t=X$.exec(e))?(rE(iE(t[1]),aE(t[2]),aE(t[3]))|sE(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 cE=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,dE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,uE=new RegExp(`(${Object.keys(q$).join("|")})`,"g");let hE={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 pE=["Webkit","Ms","Moz","O"];function fE(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||hE.hasOwnProperty(e)&&hE[e]?(""+t).trim():t+"px"}hE=Object.keys(hE).reduce(((e,t)=>(pE.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),hE);const mE={};var gE,vE;gE=e=>new F$(e),j$=gE,vE=e=>{const t=e.output.map((e=>e.replace(dE,lE))).map((e=>e.replace(uE,lE))),n=t[0].match(cE).map((()=>[]));t.forEach((e=>{e.match(cE).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(cE).map(((t,r)=>N$(f$({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(cE,(()=>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})`))}},E$=vE,$$=q$,function(e,t){S$={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=m$(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=fE(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:mE[t]||(mE[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var bE;const yE=(bE=e=>n.forwardRef(((t,r)=>{const o=function(){const e=n.useState(!1)[1];return n.useCallback((()=>e((e=>!e))),[])}(),i=n.useRef(!0),s=n.useRef(null),a=n.useRef(null),l=n.useCallback((e=>{const t=s.current;s.current=new O$(e,(()=>{let e=!1;a.current&&(e=S$.fn(a.current,s.current.getAnimatedValue())),a.current&&!1!==e||o()})),t&&t.detach()}),[]);n.useEffect((()=>()=>{i.current=!1,s.current&&s.current.detach()}),[]),n.useImperativeHandle(r,(()=>(e=>e.current)(a))),l(t);const c=s.current.getValue();c.scrollTop,c.scrollLeft;const d=m$(c,["scrollTop","scrollLeft"]),u=(h=e,!g$.fun(h)||h.prototype instanceof n.Component?e=>a.current=function(e,t){return t&&(g$.fun(t)?t(e):g$.obj(t)&&(t.current=e)),e}(e,r):void 0);var h;return n.createElement(e,f$({},d,{ref:u}))})),e=>(g$.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=bE(n),e}),bE))(["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 xE(e,t){return e.map((function(e,n){return e+t[n]}))}function wE(e,t){return e.map((function(e,n){return e-t[n]}))}function CE(e){return Math.hypot.apply(Math,e)}function kE(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function SE(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 $E(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?-SE(t-e,n-t,r)+t:e>n?+SE(e-n,n-t,r)+n:e}function EE(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 ME(){return ME=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},ME.apply(this,arguments)}function jE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function TE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OE(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 LE(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 OE(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)?OE(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 AE(){}function RE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?AE:1===t.length?t[0]:function(){for(var e,n,r=LE(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function NE(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 DE(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 IE(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=IE(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var PE=ME({},{threshold:function(e){return void 0===e&&(e=0),NE(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return NE(.15);case!1:return NE(0);default:return NE(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:NE(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 PE.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,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),zE="undefined"!=typeof window&&window.document&&window.document.createElement,VE={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=zE?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}}},BE=ME({},PE,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=NE(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),NE(e)},swipeDistance:function(e){return void 0===e&&(e=60),NE(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function _E(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"]),s=function(e){return void 0===e&&(e={}),IE(e,VE)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),IE(e,BE)}(i),s}function HE(e){return ME({_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:AE,canceled:!1,memo:void 0,args:void 0},e)}function FE(){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:HE({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:HE({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:HE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:HE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:HE({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var qE=new Map,WE=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),s=2;s<o;s++)i[s-2]=arguments[s];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=ME({},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,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?UE(p[0],i[0]):d[0],m=!1===d[1]?UE(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return ME({},g,{_movement:p,delta:[0,0]});var v,b,y,x,w=g._intentional,C=p;(!1!==w[0]&&!1===d[0]&&(b=DE(n,this.state),v=DE(r,this.state),l[0]=b[0],a[0]=v[0]),!1!==w[1]&&!1===d[1])&&(b=null!=(y=b)?y:DE(n,this.state),v=null!=(x=v)?x:DE(r,this.state),l[1]=b[1],a[1]=v[1]);var k=[!1!==w[0]?p[0]-w[0]:l[0],!1!==w[1]?p[1]-w[1]:l[1]],S=xE(k,u),$=c?o:[0,0];return k=KE(a,xE(k,l),$),ME({},g,{intentional:!1!==w[0]||!1!==w[1],_initial:l,_movement:C,movement:k,values:e,offset:KE(a,S,$),delta:wE(k,h)})},t.clean=function(){this.clearTimeout()},EE(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 UE(e,t){return Math.abs(e)>=t&&kE(e)*t}function KE(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[$E(r,l,c,i),$E(o,u,h,s)]}function GE(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function ZE(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,ME({},t,{event:n})].concat(o))}}var JE=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,s=LE(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];QE(e,c[0],ZE(c[1],ME({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=YE(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;tM(o,XE(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,RE.apply(void 0,d)])}eM(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=RE.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=YE(t.config),n=t.config.eventOptions;e&&tM(e,XE(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){tM(n,o[i],r)}e.windowListeners={}}(t)},this.state=FE(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function XE(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function YE(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function QE(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function eM(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=LE(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function tM(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=LE(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function nM(e,t,r){void 0===r&&(r={});var o=function(e){var t=new Set;e.drag&&t.add(qE.get("drag"));e.wheel&&t.add(qE.get("wheel"));e.scroll&&t.add(qE.get("scroll"));e.move&&t.add(qE.get("move"));e.pinch&&t.add(qE.get("pinch"));e.hover&&t.add(qE.get("hover"));return t}(e),i=n.useMemo((function(){return new JE(o)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=r,n.useEffect(i.effect,[]),i.config.domTarget?rM:i.bind}function rM(){"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`.")}var oM=function(e){function t(){return e.apply(this,arguments)||this}jE(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return wE(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=CE(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:CE(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(WE);function iM(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function sM(e){var t="buttons"in e?e.buttons:0,n=iM(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 aM(e){var t=iM(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var lM=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&&(tM(r.window,o[t],r.eventOptions),eM(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(TE(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=sM(e);if(n.down){t.updateSharedState(n);var r=aM(e),o=t.getKinematics(r,e),i=GE(TE(t),e),s=t.state._isTap,a=CE(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(ME({},i,o,{_isTap:s})),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],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],v=m[1],b=ME({},GE(TE(t),e),t.getMovement(t.state.values)),y=[0,0];b.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=kE(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>v&&(y[1]=kE(i))),t.updateGestureState(ME({},b,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(TE(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(tM(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}jE(t,e);var n=t.prototype;return n.startDrag=function(e){var t=aM(e);this.updateSharedState(sM(e)),this.updateGestureState(ME({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return ME({},FE()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),GE(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(QE(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&QE(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(oM);function cM(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(!cM(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(!cM(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||cM(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function dM(e,t){try{return cM(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 uM(e,t){void 0===t&&(t={}),qE.set("drag",lM);var r=n.useRef();return r.current||(r.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(_E,dM)),nM({drag:e},r.current(t))}
|
|
2609
2612
|
/*!
|
|
2610
2613
|
* tabbable 5.3.3
|
|
2611
2614
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2612
|
-
*/var
|
|
2615
|
+
*/var hM=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],pM=hM.join(","),fM="undefined"==typeof Element,mM=fM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gM=!fM&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},vM=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(pM));return t&&mM.call(e,pM)&&r.unshift(e),r=r.filter(n)},bM=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:s,candidates:l})}else{mM.call(s,pM)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),d=!r.shadowRootFilter||r.shadowRootFilter(s);if(c&&d){var u=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:s,candidates:u})}else i.unshift.apply(i,s.children)}}return o},yM=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},xM=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wM=function(e){return"INPUT"===e.tagName},CM=function(e){return function(e){return wM(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||gM(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)},kM=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},SM=function(e,t){return!(t.disabled||function(e){return wM(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=mM.call(e,"details>summary:first-of-type")?e.parentElement:e;if(mM.call(o,"details:not([open]) *"))return!0;var i=gM(e).host,s=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return kM(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=gM(e);if(l&&!l.shadowRoot&&!0===r(l))return kM(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(s)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!!mM.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},$M=function(e,t){return!(CM(t)||yM(t)<0||!SM(e,t))},EM=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},MM=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=yM(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(xM).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},jM=function(e,t){var n;return n=(t=t||{}).getShadowRoot?bM([e],t.includeContainer,{filter:$M.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:EM}):vM(e,t.includeContainer,$M.bind(null,t)),MM(n)},TM=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==mM.call(e,pM)&&$M(t,e)},OM=hM.concat("iframe").join(","),LM=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==mM.call(e,OM)&&SM(t,e)};
|
|
2613
2616
|
/*!
|
|
2614
2617
|
* focus-trap 6.9.4
|
|
2615
2618
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2616
2619
|
*/
|
|
2617
|
-
function RM(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 NM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach((function(t){DM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IM,PM=(IM=[],{activateTrap:function(e){if(IM.length>0){var t=IM[IM.length-1];t!==e&&t.pause()}var n=IM.indexOf(e);-1===n||IM.splice(n,1),IM.push(e)},deactivateTrap:function(e){var t=IM.indexOf(e);-1!==t&&IM.splice(t,1),IM.length>0&&IM[IM.length-1].unpause()}}),zM=function(e){return setTimeout(e,0)},VM=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},BM=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},_M=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},HM=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=NM({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=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),s=1;s<n;s++)i[s-1]=arguments[s];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 a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=TM(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?yM([t],n.includeContainer,{filter:$M.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):bM(t,n.includeContainer,$M.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 OM(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return OM(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=_M(e);a(t)>=0||(BM(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!AM(t,o.tabbableOptions)}):BM(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=_M(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==BM(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=_M(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=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=VM(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||AM(t,o.tabbableOptions)&&!OM(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=VM(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||AM(t,o.tabbableOptions)&&!OM(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=_M(e);a(t)>=0||BM(o.clickOutsideDeactivates,e)||BM(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return PM.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?zM((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},b=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),v(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=NM({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,b(),i.active=!1,i.paused=!1,PM.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){zM((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,b()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var FM=!1;if("undefined"!=typeof window){var qM={get passive(){FM=!0}};window.addEventListener("testPassive",null,qM),window.removeEventListener("testPassive",null,qM)}var WM,UM="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),KM=[],GM=!1,ZM=-1,JM=void 0,XM=void 0,YM=function(e){return KM.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},QM=function(e){var t=e||window.event;return!!YM(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},ej=function(e,t){if(e){if(!KM.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};KM=[].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)}(KM),[n]),UM?(e.ontouchstart=function(e){1===e.targetTouches.length&&(ZM=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-ZM;!YM(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?QM(e):e.stopPropagation())}(t,e)},GM||(document.addEventListener("touchmove",QM,FM?{passive:!1}:void 0),GM=!0)):function(e){if(void 0===XM){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(XM=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===JM&&(JM=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.")},tj=function(e){e?(KM=KM.filter((function(t){return t.targetElement!==e})),UM?(e.ontouchstart=null,e.ontouchmove=null,GM&&0===KM.length&&(document.removeEventListener("touchmove",QM,FM?{passive:!1}:void 0),GM=!1)):KM.length||(void 0!==XM&&(document.body.style.paddingRight=XM,XM=void 0),void 0!==JM&&(document.body.style.overflow=JM,JM=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},nj=[],rj="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"}(WM||(WM={}));var oj,ij=function(e){return Object.freeze(e)},sj=function(e,t){this.inlineSize=e,this.blockSize=t,ij(this)},aj=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,ij(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}(),lj=function(e){return e instanceof SVGElement&&"getBBox"in e},cj=function(e){if(lj(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},dj=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)},uj="undefined"!=typeof window?window:{},hj=new WeakMap,pj=/auto|scroll/,fj=/^tb|vertical/,mj=/msie|trident/i.test(uj.navigator&&uj.navigator.userAgent),gj=function(e){return parseFloat(e||"0")},vj=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new sj((n?t:e)||0,(n?e:t)||0)},bj=ij({devicePixelContentBoxSize:vj(),borderBoxSize:vj(),contentBoxSize:vj(),contentRect:new aj(0,0,0,0)}),yj=function(e,t){if(void 0===t&&(t=!1),hj.has(e)&&!t)return hj.get(e);if(cj(e))return hj.set(e,bj),bj;var n=getComputedStyle(e),r=lj(e)&&e.ownerSVGElement&&e.getBBox(),o=!mj&&"border-box"===n.boxSizing,i=fj.test(n.writingMode||""),s=!r&&pj.test(n.overflowY||""),a=!r&&pj.test(n.overflowX||""),l=r?0:gj(n.paddingTop),c=r?0:gj(n.paddingRight),d=r?0:gj(n.paddingBottom),u=r?0:gj(n.paddingLeft),h=r?0:gj(n.borderTopWidth),p=r?0:gj(n.borderRightWidth),f=r?0:gj(n.borderBottomWidth),m=u+c,g=l+d,v=(r?0:gj(n.borderLeftWidth))+p,b=h+f,y=a?e.offsetHeight-b-e.clientHeight:0,x=s?e.offsetWidth-v-e.clientWidth:0,w=o?m+v:0,C=o?g+b:0,k=r?r.width:gj(n.width)-w-x,S=r?r.height:gj(n.height)-C-y,$=k+m+x+v,E=S+g+y+b,M=ij({devicePixelContentBoxSize:vj(Math.round(k*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:vj($,E,i),contentBoxSize:vj(k,S,i),contentRect:new aj(u,l,k,S)});return hj.set(e,M),M},xj=function(e,t,n){var r=yj(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case WM.DEVICE_PIXEL_CONTENT_BOX:return s;case WM.BORDER_BOX:return o;default:return i}},wj=function(e){var t=yj(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=ij([t.borderBoxSize]),this.contentBoxSize=ij([t.contentBoxSize]),this.devicePixelContentBoxSize=ij([t.devicePixelContentBoxSize])},Cj=function(e){if(cj(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},kj=function(){var e=1/0,t=[];nj.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new wj(t.target),o=Cj(t.target);r.push(n),t.lastReportedSize=xj(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},Sj=function(e){nj.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Cj(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},$j=function(){var e=0;for(Sj(e);nj.some((function(e){return e.activeTargets.length>0}));)e=kj(),Sj(e);return nj.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:rj}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=rj),window.dispatchEvent(e)}(),e>0},Ej=[],Mj=function(e){if(!oj){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Ej.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),oj=function(){n.textContent="".concat(t?t--:t++)}}Ej.push(e),oj()},jj=0,Tj={attributes:!0,characterData:!0,childList:!0,subtree:!0},Oj=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Lj=function(e){return void 0===e&&(e=0),Date.now()+e},Aj=!1,Rj=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),!Aj){Aj=!0;var n,r=Lj(e);n=function(){var n=!1;try{n=$j()}finally{if(Aj=!1,e=r-Lj(),!jj)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Mj((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,Tj)};document.body?t():uj.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Oj.forEach((function(t){return uj.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Oj.forEach((function(t){return uj.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Nj=function(e){!jj&&e>0&&Rj.start(),!(jj+=e)&&Rj.stop()},Dj=function(){function e(e,t){this.target=e,this.observedBox=t||WM.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=xj(this.target,this.observedBox,!0);return function(e){return!lj(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}(),Ij=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Pj=new WeakMap,zj=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Vj=function(){function e(){}return e.connect=function(e,t){var n=new Ij(e,t);Pj.set(e,n)},e.observe=function(e,t,n){var r=Pj.get(e),o=0===r.observationTargets.length;zj(r.observationTargets,t)<0&&(o&&nj.push(r),r.observationTargets.push(new Dj(t,n&&n.box)),Nj(1),Rj.schedule())},e.unobserve=function(e,t){var n=Pj.get(e),r=zj(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&nj.splice(nj.indexOf(n),1),n.observationTargets.splice(r,1),Nj(-1))},e.disconnect=function(e){var t=this,n=Pj.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Bj=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.");Vj.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(!dj(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Vj.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(!dj(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Vj.unobserve(this,e)},e.prototype.disconnect=function(){Vj.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function _j(){return _j=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},_j.apply(this,arguments)}function Hj(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 Fj="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function qj(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 Wj(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Uj={box:"border-box"};function Kj(e,t){var r=t.label,o=t.enabled,i=t.resizeSourceRef,s=n.useState(0),a=s[0],l=s[1];n.useDebugValue(r+": "+a);var c=n.useCallback((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Fj((function(){if(e.current&&o){var t=new Bj(c);return t.observe(e.current,Uj),function(){t.disconnect()}}}),[e,c,o]),o?a:0}function Gj(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var Zj={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Jj={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Xj=function(e,t,n){return void 0===n&&(n=e.context),new QS(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:_j({},Zj,Jj)}}},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:_j({},Zj,Jj)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:_j({},{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:[t$({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(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Gj()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),Yj=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Qj=["velocity"],eT=["onRest","config"],tT={tension:170,friction:26},nT=tT.tension,rT=tT.friction,oT=n.forwardRef((function(e,t){var r=e.children,o=e.sibling,i=e.className,s=e.footer,a=e.header,l=e.open,c=e.initialState,d=e.lastSnapRef,u=e.initialFocusRef,h=e.onDismiss,p=e.maxHeight,f=e.defaultSnap,m=void 0===f?sT:f,g=e.snapPoints,v=void 0===g?aT:g,b=e.blocking,y=void 0===b||b,x=e.scrollLocking,w=void 0===x||x,C=e.style,k=e.onSpringStart,S=e.onSpringCancel,$=e.onSpringEnd,E=e.reserveScrollBarGap,M=void 0===E?y:E,j=e.expandOnContentDrag,T=void 0!==j&&j,O=Hj(e,Yj),L=function(){var e=n.useState(!1),t=e[0],r=e[1],o=n.useState({}),i=o[0],s=o[1],a=n.useCallback((function(e){return s((function(t){var n;return _j({},t,((n={})[e]=!1,n))})),function(){s((function(t){var n;return _j({},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:a}}(),A=L.ready,R=L.registerReady,N=n.useRef(!1),D=n.useRef(k),I=n.useRef(S),P=n.useRef($);n.useEffect((function(){D.current=k,I.current=S,P.current=$}),[S,k,$]);var z,V,B=F$((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),_=B[0],H=B[1],F=n.useRef(null),q=n.useRef(null),W=n.useRef(null),U=n.useRef(null),K=n.useRef(null),G=n.useRef(null),Z=n.useRef(0),J=n.useRef(),X=n.useRef(!1),Y=(z=n.useMemo((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=n.useRef(null==z?void 0:z.matches),n.useDebugValue(V.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Q=function(e){var t=e.targetRef,r=e.enabled,o=e.reserveScrollBarGap,i=n.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1;i.current={activate:function(){n||(n=!0,ej(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,tj(e))}}}),[r,t,o]),i}({targetRef:q,enabled:A&&w,reserveScrollBarGap:M}),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=[],s=[];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),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){n&&(n=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,r]),o}({targetRef:F,enabled:A&&y}),te=function(e){var t=e.targetRef,r=e.fallbackRef,o=e.initialFocusRef,i=e.enabled,s=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 s.current.deactivate(),void(s.current={activate:function(){},deactivate:function(){}});var e=r.current,n=HM(t.current,{onActivate:void 0,initialFocus:o?function(){return(null==o?void 0:o.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;s.current={activate:function(){try{return a?Promise.resolve():(a=!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(){a&&(a=!1,n.deactivate())}}}),[i,r,o,t]),s}({targetRef:F,fallbackRef:G,initialFocusRef:u||void 0,enabled:A&&y&&!1!==u}),ne=function(e){var t=e.getSnapPoints,r=e.heightRef,o=e.lastSnapRef,i=e.ready,s=function(e){var t=e.contentRef,r=e.controlledMaxHeight,o=e.footerEnabled,i=e.footerRef,s=e.headerEnabled,a=e.headerRef,l=e.registerReady,c=e.resizeSourceRef,d=n.useMemo((function(){return l("contentHeight")}),[l]),u=function(e,t,r){var o=n.useMemo((function(){return t("maxHeight")}),[t]),i=n.useState((function(){return Wj(e)||"undefined"!=typeof window?window.innerHeight:0})),s=i[0],a=i[1],l=s>0,c=n.useRef(0);return n.useDebugValue(e?"controlled":"auto"),n.useEffect((function(){l&&o()}),[l,o]),Fj((function(){if(e)return a(Wj(e)),void(r.current="maxheightprop");var t=function(){c.current||(c.current=requestAnimationFrame((function(){a(window.innerHeight),r.current="window",c.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),r.current="window",o(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(c.current)}}),[e,o,r]),s}(r,l,c),h=Kj(a,{label:"headerHeight",enabled:s,resizeSourceRef:c}),p=Kj(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=Kj(i,{label:"footerHeight",enabled:o,resizeSourceRef:c}),m=Math.min(u-h-f,p)+h+f;n.useDebugValue("minHeight: "+m);var g=p>0;return n.useEffect((function(){g&&d()}),[g,d]),{maxHeight:u,minHeight:m,headerHeight:h,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}),a=s.maxHeight,l=s.minHeight,c=s.headerHeight,d=s.footerHeight,u=function(e,t){var n=[].concat(e).map(Wj).reduce((function(e,n){return e.add(qj(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(i?t({height:r.current,footerHeight:d,headerHeight:c,minHeight:l,maxHeight:a}):[0],a),h=u.snapPoints,p=u.minSnap,f=u.maxSnap;return n.useDebugValue("minSnap: "+p+", maxSnap:"+f),{minSnap:p,maxSnap:f,findSnap:function(e){var t=Wj("function"==typeof e?e({footerHeight:d,headerHeight:c,height:r.current,minHeight:l,maxHeight:a,snapPoints:h,lastSnap:o.current}):e);return h.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:W,controlledMaxHeight:p,footerEnabled:!!s,footerRef:K,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Z,lastSnapRef:d,ready:A,registerReady:R,resizeSourceRef:J}),re=ne.minSnap,oe=ne.maxSnap,ie=ne.maxHeight,se=ne.findSnap,ae=n.useRef(ie),le=n.useRef(re),ce=n.useRef(oe),de=n.useRef(se),ue=n.useRef(0);Fj((function(){ae.current=ie,ce.current=oe,le.current=re,de.current=se,ue.current=se(m)}),[se,m,ie,oe,re]);var he=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=Hj(n,Qj),s=Hj(e,eT);return new Promise((function(e){return H(_j({},s,{config:_j({velocity:o},i,{mass:1,tension:nT,friction:Math.max(rT,rT+(rT-rT*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),pe=f$(Xj,{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:J.current})}),[]),onOpenEnd:n.useCallback((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:J.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:J.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:n.useCallback((function(e,t){try{return Promise.resolve(null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"RESIZE",source:J.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:n.useCallback((function(e,t){try{return Promise.resolve(he({y:ue.current,ready:0,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),activate:n.useCallback((function(e,t){try{return N.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(),N.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[ee,te,Q]),openImmediately:n.useCallback((function(){try{return Z.current=ue.current,Promise.resolve(he({y:ue.current,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),openSmoothly:n.useCallback((function(){try{return Promise.resolve(he({y:0,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){return Z.current=ue.current,Promise.resolve(he({y:ue.current,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:Y.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,Y]),snapSmoothly:n.useCallback((function(e,t){try{var n=de.current(e.y);return Z.current=n,d.current=n,Promise.resolve(he({y:n,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:le.current,immediate:Y.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,Y]),resizeSmoothly:n.useCallback((function(){try{var e=de.current(Z.current);return Z.current=e,d.current=e,Promise.resolve(he({y:e,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:le.current,immediate:"element"!==J.current||Y.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,Y]),closeSmoothly:n.useCallback((function(e,t){try{return he({minSnap:Z.current,immediate:!0}),Z.current=0,Promise.resolve(he({y:0,maxHeight:ae.current,maxSnap:ce.current,immediate:Y.current})).then((function(){return Promise.resolve(he({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,Y])}}),fe=pe[0],me=pe[1];n.useEffect((function(){A&&me(l?"OPEN":"CLOSE")}),[l,me,A]),Fj((function(){(ie||oe||re)&&me("RESIZE")}),[ie,oe,re,me]),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,s=void 0===i?"custom":i;me("SNAP",{payload:{y:de.current(e),velocity:o,source:s}})},get height(){return Z.current}}}),[me]),n.useEffect((function(){var e=q.current,t=function(e){X.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 T&&(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)}}),[T,q]);var ge=hM((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,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,u=e.last,p=e.memo,f=void 0===p?_.y.getValue():p,m=e.tap,g=e.velocity,v=-1*e.movement[1];if(!N.current)return a(),f;if(h&&o&&m)return a(),setTimeout((function(){return h()}),0),f;if(m)return f;var b=f+v,y=v*g,x=Math.max(le.current,Math.min(ce.current,b+2*y));if(!c&&h&&l>0&&b+y<le.current/2)return a(),h(),f;var w=c?h||le.current!==ce.current?EE(b,h?0:le.current,ce.current,.55):b<le.current?EE(b,le.current,2*ce.current,.55):EE(b,le.current/2,ce.current,.55):x;return T&&s?(w>=ce.current&&(w=ce.current),f===ce.current&&q.current.scrollTop>0&&(w=ce.current),X.current=w<ce.current):X.current=!1,d&&me("DRAG"),u?(me("SNAP",{payload:{y:w,velocity:g>.05?g:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:ae.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=P$([n.y,n.maxHeight],(function(e,t){return Math.round(qj(t-e,0,16))+"px"})),o=P$([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return qj(e,t,n)+"px"})),i=P$([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=P$([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=P$([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return qj((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=P$([n.y,n.minSnap],(function(e,t){return t?qj(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:_});return n.createElement(xE.div,_j({},O,{"data-rsbs-root":!0,"data-rsbs-state":iT.find(fe.matches),"data-rsbs-is-blocking":y,"data-rsbs-is-dismissable":!!h,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!s,className:i,ref:F,style:_j({},ve,C,{opacity:_.ready})}),o,y&&n.createElement("div",_j({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:G,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),h&&h())}},!1!==a&&n.createElement("div",_j({key:"header","data-rsbs-header":!0,ref:U},ge()),a),n.createElement("div",_j({key:"scroll","data-rsbs-scroll":!0,ref:q},T?ge({isContentDragging:!0}):{}),n.createElement("div",{"data-rsbs-content":!0,ref:W},r)),s&&n.createElement("div",_j({key:"footer",ref:K,"data-rsbs-footer":!0},ge()),s)))})),iT=["closed","opening","open","closing","dragging","snapping","resizing"];function sT(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function aT(e){return e.minHeight}var lT=["onSpringStart","onSpringEnd","skipInitialTransition"],cT=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,s=Hj(e,lT),a=n.useState(!1),l=a[0],c=a[1],d=n.useRef(),u=n.useRef(null),h=n.useRef(i&&s.open?"OPEN":"CLOSED");Fj((function(){if(s.open)return cancelAnimationFrame(d.current),c(!0),function(){h.current="CLOSED"}}),[s.open]);var p=n.useCallback((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(d.current)}))}),[r]),f=n.useCallback((function(e){return Promise.resolve(null==o?void 0:o(e)).then((function(){"CLOSE"===e.type&&(d.current=requestAnimationFrame((function(){return c(!1)})))}))}),[o]);return l?n.createElement(rk,{"data-rsbs-portal":!0},n.createElement(oT,_j({},s,{lastSnapRef:u,ref:t,initialState:h.current,onSpringStart:p,onSpringEnd:f}))):null}));const dT=i.css`
|
|
2620
|
+
function AM(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 RM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AM(Object(n),!0).forEach((function(t){NM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DM,IM=(DM=[],{activateTrap:function(e){if(DM.length>0){var t=DM[DM.length-1];t!==e&&t.pause()}var n=DM.indexOf(e);-1===n||DM.splice(n,1),DM.push(e)},deactivateTrap:function(e){var t=DM.indexOf(e);-1!==t&&DM.splice(t,1),DM.length>0&&DM[DM.length-1].unpause()}}),PM=function(e){return setTimeout(e,0)},zM=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},VM=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},BM=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},_M=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=RM({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=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),s=1;s<n;s++)i[s-1]=arguments[s];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 a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=jM(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?bM([t],n.includeContainer,{filter:SM.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):vM(t,n.includeContainer,SM.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 TM(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return TM(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=BM(e);a(t)>=0||(VM(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!LM(t,o.tabbableOptions)}):VM(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=BM(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==VM(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=BM(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=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=zM(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||LM(t,o.tabbableOptions)&&!TM(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=zM(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||LM(t,o.tabbableOptions)&&!TM(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=BM(e);a(t)>=0||VM(o.clickOutsideDeactivates,e)||VM(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(i.active)return IM.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?PM((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},b=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),v(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=RM({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,b(),i.active=!1,i.paused=!1,IM.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){PM((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,b()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var HM=!1;if("undefined"!=typeof window){var FM={get passive(){HM=!0}};window.addEventListener("testPassive",null,FM),window.removeEventListener("testPassive",null,FM)}var qM,WM="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),UM=[],KM=!1,GM=-1,ZM=void 0,JM=void 0,XM=function(e){return UM.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},YM=function(e){var t=e||window.event;return!!XM(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},QM=function(e,t){if(e){if(!UM.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};UM=[].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)}(UM),[n]),WM?(e.ontouchstart=function(e){1===e.targetTouches.length&&(GM=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-GM;!XM(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?YM(e):e.stopPropagation())}(t,e)},KM||(document.addEventListener("touchmove",YM,HM?{passive:!1}:void 0),KM=!0)):function(e){if(void 0===JM){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(JM=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===ZM&&(ZM=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.")},ej=function(e){e?(UM=UM.filter((function(t){return t.targetElement!==e})),WM?(e.ontouchstart=null,e.ontouchmove=null,KM&&0===UM.length&&(document.removeEventListener("touchmove",YM,HM?{passive:!1}:void 0),KM=!1)):UM.length||(void 0!==JM&&(document.body.style.paddingRight=JM,JM=void 0),void 0!==ZM&&(document.body.style.overflow=ZM,ZM=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},tj=[],nj="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"}(qM||(qM={}));var rj,oj=function(e){return Object.freeze(e)},ij=function(e,t){this.inlineSize=e,this.blockSize=t,oj(this)},sj=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,oj(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}(),aj=function(e){return e instanceof SVGElement&&"getBBox"in e},lj=function(e){if(aj(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},cj=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)},dj="undefined"!=typeof window?window:{},uj=new WeakMap,hj=/auto|scroll/,pj=/^tb|vertical/,fj=/msie|trident/i.test(dj.navigator&&dj.navigator.userAgent),mj=function(e){return parseFloat(e||"0")},gj=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new ij((n?t:e)||0,(n?e:t)||0)},vj=oj({devicePixelContentBoxSize:gj(),borderBoxSize:gj(),contentBoxSize:gj(),contentRect:new sj(0,0,0,0)}),bj=function(e,t){if(void 0===t&&(t=!1),uj.has(e)&&!t)return uj.get(e);if(lj(e))return uj.set(e,vj),vj;var n=getComputedStyle(e),r=aj(e)&&e.ownerSVGElement&&e.getBBox(),o=!fj&&"border-box"===n.boxSizing,i=pj.test(n.writingMode||""),s=!r&&hj.test(n.overflowY||""),a=!r&&hj.test(n.overflowX||""),l=r?0:mj(n.paddingTop),c=r?0:mj(n.paddingRight),d=r?0:mj(n.paddingBottom),u=r?0:mj(n.paddingLeft),h=r?0:mj(n.borderTopWidth),p=r?0:mj(n.borderRightWidth),f=r?0:mj(n.borderBottomWidth),m=u+c,g=l+d,v=(r?0:mj(n.borderLeftWidth))+p,b=h+f,y=a?e.offsetHeight-b-e.clientHeight:0,x=s?e.offsetWidth-v-e.clientWidth:0,w=o?m+v:0,C=o?g+b:0,k=r?r.width:mj(n.width)-w-x,S=r?r.height:mj(n.height)-C-y,$=k+m+x+v,E=S+g+y+b,M=oj({devicePixelContentBoxSize:gj(Math.round(k*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:gj($,E,i),contentBoxSize:gj(k,S,i),contentRect:new sj(u,l,k,S)});return uj.set(e,M),M},yj=function(e,t,n){var r=bj(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case qM.DEVICE_PIXEL_CONTENT_BOX:return s;case qM.BORDER_BOX:return o;default:return i}},xj=function(e){var t=bj(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=oj([t.borderBoxSize]),this.contentBoxSize=oj([t.contentBoxSize]),this.devicePixelContentBoxSize=oj([t.devicePixelContentBoxSize])},wj=function(e){if(lj(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Cj=function(){var e=1/0,t=[];tj.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new xj(t.target),o=wj(t.target);r.push(n),t.lastReportedSize=yj(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},kj=function(e){tj.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(wj(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Sj=function(){var e=0;for(kj(e);tj.some((function(e){return e.activeTargets.length>0}));)e=Cj(),kj(e);return tj.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:nj}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=nj),window.dispatchEvent(e)}(),e>0},$j=[],Ej=function(e){if(!rj){var t=0,n=document.createTextNode("");new MutationObserver((function(){return $j.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),rj=function(){n.textContent="".concat(t?t--:t++)}}$j.push(e),rj()},Mj=0,jj={attributes:!0,characterData:!0,childList:!0,subtree:!0},Tj=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Oj=function(e){return void 0===e&&(e=0),Date.now()+e},Lj=!1,Aj=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),!Lj){Lj=!0;var n,r=Oj(e);n=function(){var n=!1;try{n=Sj()}finally{if(Lj=!1,e=r-Oj(),!Mj)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Ej((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,jj)};document.body?t():dj.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Tj.forEach((function(t){return dj.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Tj.forEach((function(t){return dj.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Rj=function(e){!Mj&&e>0&&Aj.start(),!(Mj+=e)&&Aj.stop()},Nj=function(){function e(e,t){this.target=e,this.observedBox=t||qM.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=yj(this.target,this.observedBox,!0);return function(e){return!aj(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}(),Dj=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Ij=new WeakMap,Pj=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},zj=function(){function e(){}return e.connect=function(e,t){var n=new Dj(e,t);Ij.set(e,n)},e.observe=function(e,t,n){var r=Ij.get(e),o=0===r.observationTargets.length;Pj(r.observationTargets,t)<0&&(o&&tj.push(r),r.observationTargets.push(new Nj(t,n&&n.box)),Rj(1),Aj.schedule())},e.unobserve=function(e,t){var n=Ij.get(e),r=Pj(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&tj.splice(tj.indexOf(n),1),n.observationTargets.splice(r,1),Rj(-1))},e.disconnect=function(e){var t=this,n=Ij.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Vj=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.");zj.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(!cj(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zj.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(!cj(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zj.unobserve(this,e)},e.prototype.disconnect=function(){zj.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Bj(){return Bj=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},Bj.apply(this,arguments)}function _j(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 Hj="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Fj(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 qj(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Wj={box:"border-box"};function Uj(e,t){var r=t.label,o=t.enabled,i=t.resizeSourceRef,s=n.useState(0),a=s[0],l=s[1];n.useDebugValue(r+": "+a);var c=n.useCallback((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Hj((function(){if(e.current&&o){var t=new Vj(c);return t.observe(e.current,Wj),function(){t.disconnect()}}}),[e,c,o]),o?a:0}function Kj(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var Gj={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Zj={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Jj=function(e,t,n){return void 0===n&&(n=e.context),new YS(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:Bj({},Gj,Zj)}}},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:Bj({},Gj,Zj)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Bj({},{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:[e$({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(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Kj()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),Xj=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Yj=["velocity"],Qj=["onRest","config"],eT={tension:170,friction:26},tT=eT.tension,nT=eT.friction,rT=n.forwardRef((function(e,t){var r=e.children,o=e.sibling,i=e.className,s=e.footer,a=e.header,l=e.open,c=e.initialState,d=e.lastSnapRef,u=e.initialFocusRef,h=e.onDismiss,p=e.maxHeight,f=e.defaultSnap,m=void 0===f?iT:f,g=e.snapPoints,v=void 0===g?sT:g,b=e.blocking,y=void 0===b||b,x=e.scrollLocking,w=void 0===x||x,C=e.style,k=e.onSpringStart,S=e.onSpringCancel,$=e.onSpringEnd,E=e.reserveScrollBarGap,M=void 0===E?y:E,j=e.expandOnContentDrag,T=void 0!==j&&j,O=_j(e,Xj),L=function(){var e=n.useState(!1),t=e[0],r=e[1],o=n.useState({}),i=o[0],s=o[1],a=n.useCallback((function(e){return s((function(t){var n;return Bj({},t,((n={})[e]=!1,n))})),function(){s((function(t){var n;return Bj({},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:a}}(),A=L.ready,R=L.registerReady,N=n.useRef(!1),D=n.useRef(k),I=n.useRef(S),P=n.useRef($);n.useEffect((function(){D.current=k,I.current=S,P.current=$}),[S,k,$]);var z,V,B=H$((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),_=B[0],H=B[1],F=n.useRef(null),q=n.useRef(null),W=n.useRef(null),U=n.useRef(null),K=n.useRef(null),G=n.useRef(null),Z=n.useRef(0),J=n.useRef(),X=n.useRef(!1),Y=(z=n.useMemo((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=n.useRef(null==z?void 0:z.matches),n.useDebugValue(V.current?"reduce":"no-preference"),n.useEffect((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Q=function(e){var t=e.targetRef,r=e.enabled,o=e.reserveScrollBarGap,i=n.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return n.useDebugValue(r?"Enabled":"Disabled"),n.useEffect((function(){if(!r)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,n=!1;i.current={activate:function(){n||(n=!0,QM(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:o}))},deactivate:function(){n&&(n=!1,ej(e))}}}),[r,t,o]),i}({targetRef:q,enabled:A&&w,reserveScrollBarGap:M}),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=[],s=[];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),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){n&&(n=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,r]),o}({targetRef:F,enabled:A&&y}),te=function(e){var t=e.targetRef,r=e.fallbackRef,o=e.initialFocusRef,i=e.enabled,s=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 s.current.deactivate(),void(s.current={activate:function(){},deactivate:function(){}});var e=r.current,n=_M(t.current,{onActivate:void 0,initialFocus:o?function(){return(null==o?void 0:o.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;s.current={activate:function(){try{return a?Promise.resolve():(a=!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(){a&&(a=!1,n.deactivate())}}}),[i,r,o,t]),s}({targetRef:F,fallbackRef:G,initialFocusRef:u||void 0,enabled:A&&y&&!1!==u}),ne=function(e){var t=e.getSnapPoints,r=e.heightRef,o=e.lastSnapRef,i=e.ready,s=function(e){var t=e.contentRef,r=e.controlledMaxHeight,o=e.footerEnabled,i=e.footerRef,s=e.headerEnabled,a=e.headerRef,l=e.registerReady,c=e.resizeSourceRef,d=n.useMemo((function(){return l("contentHeight")}),[l]),u=function(e,t,r){var o=n.useMemo((function(){return t("maxHeight")}),[t]),i=n.useState((function(){return qj(e)||"undefined"!=typeof window?window.innerHeight:0})),s=i[0],a=i[1],l=s>0,c=n.useRef(0);return n.useDebugValue(e?"controlled":"auto"),n.useEffect((function(){l&&o()}),[l,o]),Hj((function(){if(e)return a(qj(e)),void(r.current="maxheightprop");var t=function(){c.current||(c.current=requestAnimationFrame((function(){a(window.innerHeight),r.current="window",c.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),r.current="window",o(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(c.current)}}),[e,o,r]),s}(r,l,c),h=Uj(a,{label:"headerHeight",enabled:s,resizeSourceRef:c}),p=Uj(t,{label:"contentHeight",enabled:!0,resizeSourceRef:c}),f=Uj(i,{label:"footerHeight",enabled:o,resizeSourceRef:c}),m=Math.min(u-h-f,p)+h+f;n.useDebugValue("minHeight: "+m);var g=p>0;return n.useEffect((function(){g&&d()}),[g,d]),{maxHeight:u,minHeight:m,headerHeight:h,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}),a=s.maxHeight,l=s.minHeight,c=s.headerHeight,d=s.footerHeight,u=function(e,t){var n=[].concat(e).map(qj).reduce((function(e,n){return e.add(Fj(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(i?t({height:r.current,footerHeight:d,headerHeight:c,minHeight:l,maxHeight:a}):[0],a),h=u.snapPoints,p=u.minSnap,f=u.maxSnap;return n.useDebugValue("minSnap: "+p+", maxSnap:"+f),{minSnap:p,maxSnap:f,findSnap:function(e){var t=qj("function"==typeof e?e({footerHeight:d,headerHeight:c,height:r.current,minHeight:l,maxHeight:a,snapPoints:h,lastSnap:o.current}):e);return h.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:W,controlledMaxHeight:p,footerEnabled:!!s,footerRef:K,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Z,lastSnapRef:d,ready:A,registerReady:R,resizeSourceRef:J}),re=ne.minSnap,oe=ne.maxSnap,ie=ne.maxHeight,se=ne.findSnap,ae=n.useRef(ie),le=n.useRef(re),ce=n.useRef(oe),de=n.useRef(se),ue=n.useRef(0);Hj((function(){ae.current=ie,ce.current=oe,le.current=re,de.current=se,ue.current=se(m)}),[se,m,ie,oe,re]);var he=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=_j(n,Yj),s=_j(e,Qj);return new Promise((function(e){return H(Bj({},s,{config:Bj({velocity:o},i,{mass:1,tension:tT,friction:Math.max(nT,nT+(nT-nT*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),pe=p$(Jj,{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:J.current})}),[]),onOpenEnd:n.useCallback((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapEnd:n.useCallback((function(e,t){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:n.useCallback((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:J.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:J.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:n.useCallback((function(e,t){try{return Promise.resolve(null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:n.useCallback((function(){try{return Promise.resolve(null==P.current?void 0:P.current({type:"RESIZE",source:J.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:n.useCallback((function(e,t){try{return Promise.resolve(he({y:ue.current,ready:0,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),activate:n.useCallback((function(e,t){try{return N.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(),N.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[ee,te,Q]),openImmediately:n.useCallback((function(){try{return Z.current=ue.current,Promise.resolve(he({y:ue.current,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),openSmoothly:n.useCallback((function(){try{return Promise.resolve(he({y:0,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:!0})).then((function(){return Z.current=ue.current,Promise.resolve(he({y:ue.current,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:ue.current,immediate:Y.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,Y]),snapSmoothly:n.useCallback((function(e,t){try{var n=de.current(e.y);return Z.current=n,d.current=n,Promise.resolve(he({y:n,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:le.current,immediate:Y.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,Y]),resizeSmoothly:n.useCallback((function(){try{var e=de.current(Z.current);return Z.current=e,d.current=e,Promise.resolve(he({y:e,ready:1,maxHeight:ae.current,maxSnap:ce.current,minSnap:le.current,immediate:"element"!==J.current||Y.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,Y]),closeSmoothly:n.useCallback((function(e,t){try{return he({minSnap:Z.current,immediate:!0}),Z.current=0,Promise.resolve(he({y:0,maxHeight:ae.current,maxSnap:ce.current,immediate:Y.current})).then((function(){return Promise.resolve(he({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,Y])}}),fe=pe[0],me=pe[1];n.useEffect((function(){A&&me(l?"OPEN":"CLOSE")}),[l,me,A]),Hj((function(){(ie||oe||re)&&me("RESIZE")}),[ie,oe,re,me]),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,s=void 0===i?"custom":i;me("SNAP",{payload:{y:de.current(e),velocity:o,source:s}})},get height(){return Z.current}}}),[me]),n.useEffect((function(){var e=q.current,t=function(e){X.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 T&&(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)}}),[T,q]);var ge=uM((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,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,u=e.last,p=e.memo,f=void 0===p?_.y.getValue():p,m=e.tap,g=e.velocity,v=-1*e.movement[1];if(!N.current)return a(),f;if(h&&o&&m)return a(),setTimeout((function(){return h()}),0),f;if(m)return f;var b=f+v,y=v*g,x=Math.max(le.current,Math.min(ce.current,b+2*y));if(!c&&h&&l>0&&b+y<le.current/2)return a(),h(),f;var w=c?h||le.current!==ce.current?$E(b,h?0:le.current,ce.current,.55):b<le.current?$E(b,le.current,2*ce.current,.55):$E(b,le.current/2,ce.current,.55):x;return T&&s?(w>=ce.current&&(w=ce.current),f===ce.current&&q.current.scrollTop>0&&(w=ce.current),X.current=w<ce.current):X.current=!1,d&&me("DRAG"),u?(me("SNAP",{payload:{y:w,velocity:g>.05?g:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:ae.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=I$([n.y,n.maxHeight],(function(e,t){return Math.round(Fj(t-e,0,16))+"px"})),o=I$([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Fj(e,t,n)+"px"})),i=I$([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=I$([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=I$([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Fj((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=I$([n.y,n.minSnap],(function(e,t){return t?Fj(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:_});return n.createElement(yE.div,Bj({},O,{"data-rsbs-root":!0,"data-rsbs-state":oT.find(fe.matches),"data-rsbs-is-blocking":y,"data-rsbs-is-dismissable":!!h,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!s,className:i,ref:F,style:Bj({},ve,C,{opacity:_.ready})}),o,y&&n.createElement("div",Bj({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:G,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),h&&h())}},!1!==a&&n.createElement("div",Bj({key:"header","data-rsbs-header":!0,ref:U},ge()),a),n.createElement("div",Bj({key:"scroll","data-rsbs-scroll":!0,ref:q},T?ge({isContentDragging:!0}):{}),n.createElement("div",{"data-rsbs-content":!0,ref:W},r)),s&&n.createElement("div",Bj({key:"footer",ref:K,"data-rsbs-footer":!0},ge()),s)))})),oT=["closed","opening","open","closing","dragging","snapping","resizing"];function iT(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function sT(e){return e.minHeight}var aT=["onSpringStart","onSpringEnd","skipInitialTransition"],lT=n.forwardRef((function(e,t){var r=e.onSpringStart,o=e.onSpringEnd,i=e.skipInitialTransition,s=_j(e,aT),a=n.useState(!1),l=a[0],c=a[1],d=n.useRef(),u=n.useRef(null),h=n.useRef(i&&s.open?"OPEN":"CLOSED");Hj((function(){if(s.open)return cancelAnimationFrame(d.current),c(!0),function(){h.current="CLOSED"}}),[s.open]);var p=n.useCallback((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(d.current)}))}),[r]),f=n.useCallback((function(e){return Promise.resolve(null==o?void 0:o(e)).then((function(){"CLOSE"===e.type&&(d.current=requestAnimationFrame((function(){return c(!1)})))}))}),[o]);return l?n.createElement(nk,{"data-rsbs-portal":!0},n.createElement(rT,Bj({},s,{lastSnapRef:u,ref:t,initialState:h.current,onSpringStart:p,onSpringEnd:f}))):null}));const cT=i.css`
|
|
2618
2621
|
width: ${k(1e3)};
|
|
2619
2622
|
border-radius: ${$(300)};
|
|
2620
2623
|
background: transparent;
|
|
@@ -2628,7 +2631,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2628
2631
|
margin: 0;
|
|
2629
2632
|
background: ${w("neutral",300)};
|
|
2630
2633
|
}
|
|
2631
|
-
`,
|
|
2634
|
+
`,dT=(e,t)=>i.css`
|
|
2632
2635
|
[data-rsbs-overlay] {
|
|
2633
2636
|
border-top-left-radius: ${$(500)};
|
|
2634
2637
|
border-top-right-radius: ${$(500)};
|
|
@@ -2654,7 +2657,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2654
2657
|
padding: 0;
|
|
2655
2658
|
min-height: ${k(1600)};
|
|
2656
2659
|
}
|
|
2657
|
-
`;!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
|
|
2660
|
+
`;!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 uT=(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},hT=e=>i.css`
|
|
2658
2661
|
a,
|
|
2659
2662
|
p {
|
|
2660
2663
|
font-size: ${C("small"===e?200:400)};
|
|
@@ -2686,19 +2689,19 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2686
2689
|
a:hover {
|
|
2687
2690
|
text-decoration: underline;
|
|
2688
2691
|
}
|
|
2689
|
-
`,
|
|
2692
|
+
`,pT=e=>i.css`
|
|
2690
2693
|
svg {
|
|
2691
2694
|
height: ${k("small"===e?200:300)};
|
|
2692
2695
|
width: ${k("small"===e?200:300)};
|
|
2693
2696
|
color: ${w("neutral",600)};
|
|
2694
2697
|
}
|
|
2695
|
-
`,
|
|
2698
|
+
`,fT=i.css`
|
|
2696
2699
|
cursor: pointer;
|
|
2697
2700
|
color: ${w("neutral",600)};
|
|
2698
2701
|
display: flex;
|
|
2699
2702
|
justify-content: center;
|
|
2700
2703
|
align-items: center;
|
|
2701
|
-
`,
|
|
2704
|
+
`,mT=(e,t)=>i.css`
|
|
2702
2705
|
min-height: ${k(1400)};
|
|
2703
2706
|
width: 100vw;
|
|
2704
2707
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2708,7 +2711,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2708
2711
|
border-top: ${E(100)} solid
|
|
2709
2712
|
${w("neutral",400)};
|
|
2710
2713
|
z-index: 101;
|
|
2711
|
-
`,
|
|
2714
|
+
`,gT=e=>i.css`
|
|
2712
2715
|
height: 100%;
|
|
2713
2716
|
width: 100%;
|
|
2714
2717
|
max-width: ${null!=e?u(e):"100%"};
|
|
@@ -2723,7 +2726,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2723
2726
|
flex-direction: column;
|
|
2724
2727
|
align-items: flex-start;
|
|
2725
2728
|
}
|
|
2726
|
-
`,
|
|
2729
|
+
`,vT=i.css`
|
|
2727
2730
|
display: flex;
|
|
2728
2731
|
align-items: center;
|
|
2729
2732
|
flex-wrap: wrap;
|
|
@@ -2736,7 +2739,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2736
2739
|
color: ${w("neutral",700)};
|
|
2737
2740
|
text-decoration: underline;
|
|
2738
2741
|
}
|
|
2739
|
-
`,
|
|
2742
|
+
`,bT=i.css`
|
|
2740
2743
|
width: 15rem;
|
|
2741
2744
|
font-size: ${C(300)};
|
|
2742
2745
|
line-height: ${S(500)};
|
|
@@ -2747,17 +2750,17 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2747
2750
|
@media screen and (max-width: 48rem) {
|
|
2748
2751
|
text-align: left;
|
|
2749
2752
|
}
|
|
2750
|
-
`,
|
|
2753
|
+
`,yT=i.css`
|
|
2751
2754
|
display: flex;
|
|
2752
2755
|
align-items: center;
|
|
2753
2756
|
gap: ${k(400)};
|
|
2754
|
-
`,
|
|
2757
|
+
`,xT=i.css`
|
|
2755
2758
|
width: 100%;
|
|
2756
2759
|
display: flex;
|
|
2757
2760
|
align-items: center;
|
|
2758
2761
|
height: ${k(1400)};
|
|
2759
2762
|
background-color: ${w("neutral",200)};
|
|
2760
|
-
`,
|
|
2763
|
+
`,wT=i.css`
|
|
2761
2764
|
height: ${k(1400)};
|
|
2762
2765
|
width: 99%;
|
|
2763
2766
|
background-color: ${w("neutral",200)};
|
|
@@ -2853,9 +2856,9 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2853
2856
|
opacity: 1;
|
|
2854
2857
|
}
|
|
2855
2858
|
}
|
|
2856
|
-
`,
|
|
2859
|
+
`,CT=i.css`
|
|
2857
2860
|
position: relative;
|
|
2858
|
-
`,
|
|
2861
|
+
`,kT=i.css`
|
|
2859
2862
|
position: absolute;
|
|
2860
2863
|
top: -0.3125rem;
|
|
2861
2864
|
right: -0.3125rem;
|
|
@@ -2870,7 +2873,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2870
2873
|
display: flex;
|
|
2871
2874
|
justify-content: center;
|
|
2872
2875
|
align-items: center;
|
|
2873
|
-
|
|
2876
|
+
`,ST=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),$T=(e,t,n,r,o)=>{let s="3rem";return e?s="6rem":o&&(s="1.75rem"),i.css`
|
|
2874
2877
|
max-height: ${s};
|
|
2875
2878
|
width: 100%;
|
|
2876
2879
|
background-color: ${n??w("neutral","dark"===r?800:100)};
|
|
@@ -2880,7 +2883,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2880
2883
|
z-index: 102;
|
|
2881
2884
|
border-bottom: ${E(100)} solid
|
|
2882
2885
|
${w("neutral",400)};
|
|
2883
|
-
`},
|
|
2886
|
+
`},ET=(e,t)=>i.css`
|
|
2884
2887
|
height: ${k(t?700:1200)};
|
|
2885
2888
|
width: 100%;
|
|
2886
2889
|
background-color: ${w("neutral","dark"===e?800:100)};
|
|
@@ -2891,7 +2894,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2891
2894
|
justify-content: flex-start;
|
|
2892
2895
|
gap: 0;
|
|
2893
2896
|
padding: ${t?0:`${k(200)} ${k(400)}`};
|
|
2894
|
-
`,
|
|
2897
|
+
`,MT=(e,t,n)=>i.css`
|
|
2895
2898
|
height: ${k(n?700:1200)};
|
|
2896
2899
|
width: 100%;
|
|
2897
2900
|
max-width: ${t?u(t):"100%"};
|
|
@@ -2902,13 +2905,13 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2902
2905
|
justify-content: space-between;
|
|
2903
2906
|
margin: 0 auto;
|
|
2904
2907
|
padding: ${n?0:`${k(200)} ${k(400)}`};
|
|
2905
|
-
`,
|
|
2908
|
+
`,jT=(e,t)=>i.css`
|
|
2906
2909
|
display: flex;
|
|
2907
2910
|
margin: ${t?"-0.0625rem":"0rem"};
|
|
2908
2911
|
justify-content: flex-start;
|
|
2909
2912
|
gap: ${k(300)};
|
|
2910
2913
|
color: ${w("neutral",e?100:900)};
|
|
2911
|
-
`,
|
|
2914
|
+
`,TT=i.css`
|
|
2912
2915
|
outline: none;
|
|
2913
2916
|
|
|
2914
2917
|
a {
|
|
@@ -2920,12 +2923,12 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2920
2923
|
outline-width: ${k(50)};
|
|
2921
2924
|
}
|
|
2922
2925
|
}
|
|
2923
|
-
`,
|
|
2926
|
+
`,OT=e=>i.css`
|
|
2924
2927
|
display: ${e?"none":"flex"};
|
|
2925
2928
|
align-items: center;
|
|
2926
2929
|
justify-content: flex-start;
|
|
2927
2930
|
gap: 0rem;
|
|
2928
|
-
`,
|
|
2931
|
+
`,LT=(e,t,n)=>i.css`
|
|
2929
2932
|
font-size: ${C(n?300:400)};
|
|
2930
2933
|
line-height: ${S(600)};
|
|
2931
2934
|
font-weight: 400;
|
|
@@ -2950,12 +2953,12 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2950
2953
|
font-weight: 700;
|
|
2951
2954
|
color: ${w("accessible","controls-on-neutral-lights")};
|
|
2952
2955
|
`:""}
|
|
2953
|
-
`,
|
|
2956
|
+
`,AT=e=>i.css`
|
|
2954
2957
|
height: ${k(e?700:1200)};
|
|
2955
2958
|
display: flex;
|
|
2956
2959
|
align-items: center;
|
|
2957
2960
|
justify-content: flex-end;
|
|
2958
|
-
`,
|
|
2961
|
+
`,RT=e=>i.css`
|
|
2959
2962
|
height: 100%;
|
|
2960
2963
|
font-size: ${C(400)};
|
|
2961
2964
|
line-height: ${S(600)};
|
|
@@ -2975,7 +2978,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2975
2978
|
}
|
|
2976
2979
|
}
|
|
2977
2980
|
`:""}
|
|
2978
|
-
`,
|
|
2981
|
+
`,NT=e=>i.css`
|
|
2979
2982
|
height: 100%;
|
|
2980
2983
|
display: flex;
|
|
2981
2984
|
align-items: center;
|
|
@@ -2984,7 +2987,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2984
2987
|
padding-left: ${k(400)};
|
|
2985
2988
|
border-left: ${E(100)} solid
|
|
2986
2989
|
${w("neutral",e?700:300)};
|
|
2987
|
-
`,
|
|
2990
|
+
`,DT=(e="light",t)=>i.css`
|
|
2988
2991
|
background-color: none;
|
|
2989
2992
|
border: none;
|
|
2990
2993
|
cursor: pointer;
|
|
@@ -3010,7 +3013,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3010
3013
|
outline-width: ${E(200)};
|
|
3011
3014
|
background-color: ${w("neutral",200)};
|
|
3012
3015
|
}
|
|
3013
|
-
`,
|
|
3016
|
+
`,IT=(e,t)=>i.css`
|
|
3014
3017
|
position: absolute;
|
|
3015
3018
|
top: ${k(t?700:1200)};
|
|
3016
3019
|
right: 0;
|
|
@@ -3025,10 +3028,10 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3025
3028
|
justify-content: flex-start;
|
|
3026
3029
|
gap: ${k(400)};
|
|
3027
3030
|
transition: width 0.5s ease-in-out;
|
|
3028
|
-
`,
|
|
3031
|
+
`,PT=i.css`
|
|
3029
3032
|
height: 100%;
|
|
3030
3033
|
width: 100%;
|
|
3031
|
-
`,
|
|
3034
|
+
`,zT=e=>i.css`
|
|
3032
3035
|
background-color: ${w("neutral","dark"===e?800:200)};
|
|
3033
3036
|
border-bottom: ${E(100)} solid
|
|
3034
3037
|
${w("neutral",300)};
|
|
@@ -3049,13 +3052,13 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3049
3052
|
margin-left: -${k(300)};
|
|
3050
3053
|
}
|
|
3051
3054
|
}
|
|
3052
|
-
`,
|
|
3055
|
+
`,VT=i.css`
|
|
3053
3056
|
background-color: ${w("neutral",100)};
|
|
3054
|
-
`,
|
|
3057
|
+
`,BT=i.css`
|
|
3055
3058
|
min-height: 100vh;
|
|
3056
3059
|
width: 100%;
|
|
3057
3060
|
overflow-y: scroll;
|
|
3058
|
-
`;i.css``;const
|
|
3061
|
+
`;i.css``;const _T=e=>i.css`
|
|
3059
3062
|
display: inline-block;
|
|
3060
3063
|
width: 100%;
|
|
3061
3064
|
padding: ${k(300)} ${k(400)};
|
|
@@ -3084,7 +3087,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3084
3087
|
outline-width: ${E(200)};
|
|
3085
3088
|
background-color: ${w("neutral",200)};
|
|
3086
3089
|
}
|
|
3087
|
-
`,
|
|
3090
|
+
`,HT=i.css`
|
|
3088
3091
|
width: 100%;
|
|
3089
3092
|
padding: ${k(300)} ${k(400)};
|
|
3090
3093
|
display: flex;
|
|
@@ -3108,7 +3111,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3108
3111
|
outline-width: ${E(200)};
|
|
3109
3112
|
background-color: ${w("neutral",200)};
|
|
3110
3113
|
}
|
|
3111
|
-
`,
|
|
3114
|
+
`,FT=e=>i.css`
|
|
3112
3115
|
position: absolute;
|
|
3113
3116
|
top: 0rem;
|
|
3114
3117
|
right: 0;
|
|
@@ -3120,7 +3123,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3120
3123
|
align-items: flex-start;
|
|
3121
3124
|
justify-content: flex-start;
|
|
3122
3125
|
transition: width 0.5s ease-in-out;
|
|
3123
|
-
`,
|
|
3126
|
+
`,qT=i.css`
|
|
3124
3127
|
height: ${k(1200)};
|
|
3125
3128
|
width: 100%;
|
|
3126
3129
|
display: flex;
|
|
@@ -3132,7 +3135,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3132
3135
|
position: relative;
|
|
3133
3136
|
top: 0;
|
|
3134
3137
|
left: 0;
|
|
3135
|
-
`,
|
|
3138
|
+
`,WT=i.css`
|
|
3136
3139
|
position: absolute;
|
|
3137
3140
|
bottom: 0;
|
|
3138
3141
|
left: 0;
|
|
@@ -3147,7 +3150,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3147
3150
|
button {
|
|
3148
3151
|
width: calc(48% - 1.5rem);
|
|
3149
3152
|
}
|
|
3150
|
-
`,
|
|
3153
|
+
`,UT=({theme:e="light",variant:t,navigationSection:o,utilitySection:i,actionsSection:s,linkRouter:a,isOpen:l,setIsOpen:c,pathname:d,resolvedLabels:u})=>{const h="condensed"===t,[p,f]=n.useState(void 0),[m,g]=n.useState(-1),v=n.useRef(null),b=n.useRef([]),y=a;return r.jsxs(r.Fragment,{children:[r.jsx("div",{css:IT(l,h),children:l&&r.jsxs("div",{css:PT,children:[r.jsxs("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[i?r.jsx("div",{css:zT(e),children:i?.map((e=>r.jsx("div",{className:"ds-utility-item",children:e})))}):null,o?r.jsx("div",{css:VT,children:o.map(((e,t)=>e.link?r.jsx(y,{to:e.link,href:e.link,onClick:()=>{f(void 0),g(-1),c(!1)},css:_T(d===e.link),children:e.label},e.label):r.jsxs("button",{css:HT,type:"button",ref:e=>{b.current[t]=e},onClick:()=>{e.items&&(f(e),g(t),setTimeout((()=>{v.current?.focus()}),100))},children:[e.label,e.items?r.jsx(If,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),s?r.jsx("div",{css:WT,children:s.map((e=>r.jsx(jf,{...e,onClick:t=>{e?.onClick?.(t),f(void 0),g(-1),c(!1)}},e.ariaLabel)))}):null]})}),r.jsx("div",{css:FT(!!p?.items),children:p?.items?r.jsxs(r.Fragment,{children:[r.jsxs("div",{css:qT,children:[r.jsxs("button",{type:"button",onClick:()=>{f(void 0),g(-1),b.current[m]?.focus()},"aria-label":u.goBackLabel,css:DT(e),ref:v,children:[r.jsx(If,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),p?.label]}),r.jsxs("button",{type:"button",onClick:()=>{f(void 0),g(-1),c(!1)},"aria-label":u.closeMenuLabel,css:DT(e),children:[u.closeButtonText,r.jsx(zf,{height:"1rem",width:"1rem"})]})]}),r.jsx("div",{css:BT,children:p?.items?.map((e=>r.jsx(y,{to:e.link,href:e.link,css:_T(),onClick:()=>{f(void 0),g(-1),c(!1)},children:e.label},e.label)))})]}):null})]})},KT=1023,GT=i.css`
|
|
3151
3154
|
width: ${k(1600)};
|
|
3152
3155
|
height: 100%;
|
|
3153
3156
|
z-index: 100;
|
|
@@ -3157,7 +3160,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3157
3160
|
display: flex;
|
|
3158
3161
|
flex-direction: column;
|
|
3159
3162
|
justify-content: space-between;
|
|
3160
|
-
`,
|
|
3163
|
+
`,ZT=i.css`
|
|
3161
3164
|
width: ${k(1600)};
|
|
3162
3165
|
height: ${k(1600)};
|
|
3163
3166
|
background-color: ${w("neutral",200)};
|
|
@@ -3248,7 +3251,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3248
3251
|
}
|
|
3249
3252
|
}
|
|
3250
3253
|
}
|
|
3251
|
-
`,
|
|
3254
|
+
`,JT=i.css`
|
|
3252
3255
|
display: flex;
|
|
3253
3256
|
justify-content: center;
|
|
3254
3257
|
align-items: center;
|
|
@@ -3261,7 +3264,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3261
3264
|
fill: ${w("neutral",600)};
|
|
3262
3265
|
}
|
|
3263
3266
|
}
|
|
3264
|
-
`,
|
|
3267
|
+
`,XT=i.css`
|
|
3265
3268
|
width: ${k(1600)};
|
|
3266
3269
|
height: ${k(1600)};
|
|
3267
3270
|
background-color: ${w("neutral",200)};
|
|
@@ -3299,7 +3302,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3299
3302
|
text-align: center;
|
|
3300
3303
|
color: ${w("neutral",600)};
|
|
3301
3304
|
}
|
|
3302
|
-
`,
|
|
3305
|
+
`,YT=i.css`
|
|
3303
3306
|
width: 20rem;
|
|
3304
3307
|
height: 100%;
|
|
3305
3308
|
z-index: 100;
|
|
@@ -3309,7 +3312,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3309
3312
|
overflow-x: hidden;
|
|
3310
3313
|
border-right: ${E(100)} solid
|
|
3311
3314
|
${w("neutral",300)};
|
|
3312
|
-
`,
|
|
3315
|
+
`,QT=e=>i.css`
|
|
3313
3316
|
width: 100%;
|
|
3314
3317
|
display: flex;
|
|
3315
3318
|
align-items: center;
|
|
@@ -3318,7 +3321,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3318
3321
|
${"view"===e&&`\n border: ${E(100)} solid ${w("neutral",400)};\n background-color: ${w("neutral",200)};\n border-radius: ${$(300)};\n padding: ${k(100)};\n `}
|
|
3319
3322
|
|
|
3320
3323
|
${"transparent"===e&&`\n border: none;\n background-color: transparent;\n border-radius: ${$(300)};\n padding: 0 ${k(400)};\n\n .chakra-tabs__list {\n gap: ${k(800)};\n }\n `}
|
|
3321
|
-
`,
|
|
3324
|
+
`,eO=i.css`
|
|
3322
3325
|
width: 99%;
|
|
3323
3326
|
height: ${k(1e3)};
|
|
3324
3327
|
padding: ${k(200)} ${k(400)};
|
|
@@ -3334,7 +3337,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3334
3337
|
&:focus-visible {
|
|
3335
3338
|
box-shadow: none;
|
|
3336
3339
|
}
|
|
3337
|
-
`,
|
|
3340
|
+
`,tO=i.css`
|
|
3338
3341
|
background-color: ${w("neutral",200)};
|
|
3339
3342
|
color: ${w("neutral",700)};
|
|
3340
3343
|
|
|
@@ -3391,11 +3394,11 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3391
3394
|
opacity: 1;
|
|
3392
3395
|
}
|
|
3393
3396
|
}
|
|
3394
|
-
`,
|
|
3397
|
+
`,nO=i.css`
|
|
3395
3398
|
width: ${k(100)};
|
|
3396
3399
|
height: ${k(600)};
|
|
3397
3400
|
background-color: ${w("neutral",400)};
|
|
3398
|
-
`,
|
|
3401
|
+
`,rO=i.css`
|
|
3399
3402
|
height: ${k(800)};
|
|
3400
3403
|
border-radius: ${$(200)};
|
|
3401
3404
|
background-color: ${w("neutral",200)};
|
|
@@ -3470,7 +3473,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3470
3473
|
opacity: 1;
|
|
3471
3474
|
}
|
|
3472
3475
|
}
|
|
3473
|
-
`,
|
|
3476
|
+
`,oO=i.css`
|
|
3474
3477
|
background-color: transparent;
|
|
3475
3478
|
color: ${w("neutral",600)};
|
|
3476
3479
|
width: auto;
|
|
@@ -3547,7 +3550,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3547
3550
|
}
|
|
3548
3551
|
}
|
|
3549
3552
|
}
|
|
3550
|
-
`,
|
|
3553
|
+
`,iO=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),sO=e=>1===e?"none":2===e?"left":"right",aO=({text:e,query:n})=>{if(!n)return e;const r=new RegExp(`(${n})`,"ig"),o=e.split(r);return t.jsx(t.Fragment,{children:o.map((e=>r.test(e)?t.jsx("strong",{children:e},e):t.jsx("span",{children:e},e)))})},lO=({items:r,query:o,onSelect:i,highlightedIndex:s})=>{const a=n.useRef(null);return n.useEffect((()=>{if(!a.current)return;const e=a.current.children[s];e&&e.scrollIntoView({block:"nearest"})}),[s]),t.jsx(e.Box,{padding:"0.5rem",children:r.map(((n,r)=>t.jsx(e.Box,{ref:a,padding:"0.375rem 0.5rem",borderRadius:"md",cursor:"pointer",bg:r===s?"gray.100":void 0,_hover:{background:"gray.50"},onClick:()=>i(n.id||n.label),children:t.jsx(aO,{text:n.label,query:o})},n.id)))})},cO={small:k(400),medium:k(600),large:k(1e3),default:k(400)};function dO(e,t,n,r){const o=function(e,t){return null!=t&&""!==t?u(t):e&&cO[e]?cO[e]:cO.default}(e,t),s=n?w("neutral",200):w("primary",300),a=r??s,l=r&&n?"opacity: 0.7;":"",c=w("neutral",n?400:800);return i.css`
|
|
3551
3554
|
height: ${o};
|
|
3552
3555
|
width: ${o};
|
|
3553
3556
|
border-radius: 50%;
|
|
@@ -3582,17 +3585,17 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3582
3585
|
background-color: ${w("primary",500)};
|
|
3583
3586
|
}
|
|
3584
3587
|
}
|
|
3585
|
-
`}const
|
|
3588
|
+
`}const uO=e=>i.css`
|
|
3586
3589
|
width: ${e||k(400)};
|
|
3587
3590
|
position: absolute;
|
|
3588
3591
|
top: -${k(200)};
|
|
3589
3592
|
left: 0.9375rem;
|
|
3590
|
-
`,
|
|
3593
|
+
`,hO=i.css`
|
|
3591
3594
|
font-size: ${C(200)};
|
|
3592
3595
|
line-height: ${S(400)};
|
|
3593
3596
|
font-weight: 700;
|
|
3594
3597
|
color: ${w("primary",800)};
|
|
3595
|
-
`,
|
|
3598
|
+
`,pO=n.forwardRef((({name:t,ariaLabel:n,size:o="medium",customSize:s,src:a,srcSet:l,onClick:c,notificationCount:d,disabled:u=!0,customBackgroundColor:h=""},p)=>{const f=()=>{u||c?.()},m=(()=>{let e="";return d&&d>0&&(e=`${d>99?"99+":d}`),e})();let g="1rem";d&&d>99?g="1.75rem":d&&d>9&&(g="1.375rem");const v=!!a||!!l,b=c&&!u;return r.jsxs(e.Avatar.Root,{"aria-label":n||t,ref:p,css:dO(o,s,u,h),onClick:f,onKeyDown:e=>{u||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},role:b?"button":"img",tabIndex:b?0:void 0,"aria-disabled":b?u:void 0,children:[v&&r.jsx(e.Avatar.Image,{src:a,srcSet:l,alt:n||t||"Avatar image"}),!v&&t&&r.jsx(e.Avatar.Fallback,{name:t,css:hO}),!v&&!t&&r.jsx(cm,{size:"100%",style:{padding:"15%",color:u?w("neutral",400):void 0}}),m.length>0?r.jsx("div",{css:uO(g),children:r.jsx("div",{css:i.css`
|
|
3596
3599
|
height: ${k(400)};
|
|
3597
3600
|
width: auto;
|
|
3598
3601
|
background-color: ${w("error",500)};
|
|
@@ -3605,16 +3608,16 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3605
3608
|
line-height: ${S(400)};
|
|
3606
3609
|
font-weight: 700;
|
|
3607
3610
|
color: ${w("error",100)};
|
|
3608
|
-
`,children:r.jsx("p",{"aria-label":`${d} unread message`,children:m})})}):null]})})),
|
|
3611
|
+
`,children:r.jsx("p",{"aria-label":`${d} unread message`,children:m})})}):null]})})),fO=i.css`
|
|
3609
3612
|
display: flex;
|
|
3610
3613
|
justify-content: flex-start;
|
|
3611
3614
|
align-items: center;
|
|
3612
3615
|
gap: ${k(200)};
|
|
3613
|
-
`,
|
|
3616
|
+
`,mO=e=>i.css`
|
|
3614
3617
|
width: ${e||k(400)};
|
|
3615
3618
|
position: relative;
|
|
3616
3619
|
display: flex;
|
|
3617
|
-
`,
|
|
3620
|
+
`,gO=i.css`
|
|
3618
3621
|
height: ${k(100)};
|
|
3619
3622
|
width: ${k(100)};
|
|
3620
3623
|
background-color: ${w("error",500)};
|
|
@@ -3622,7 +3625,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3622
3625
|
position: absolute;
|
|
3623
3626
|
top: 0rem;
|
|
3624
3627
|
right: 0rem;
|
|
3625
|
-
`,
|
|
3628
|
+
`,vO=i.css`
|
|
3626
3629
|
height: 0.625rem;
|
|
3627
3630
|
background-color: ${w("error",500)};
|
|
3628
3631
|
padding: 0 0.1875rem 0.0625rem 0.1875rem;
|
|
@@ -3633,12 +3636,12 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3633
3636
|
position: absolute;
|
|
3634
3637
|
top: -${k(50)};
|
|
3635
3638
|
left: 0.5625rem;
|
|
3636
|
-
`,
|
|
3639
|
+
`,bO=i.css`
|
|
3637
3640
|
font-size: ${C(200)};
|
|
3638
3641
|
line-height: ${S(400)};
|
|
3639
3642
|
font-weight: 700;
|
|
3640
3643
|
color: ${w("error",100)};
|
|
3641
|
-
`,
|
|
3644
|
+
`,yO=i.css`
|
|
3642
3645
|
height: ${k(400)};
|
|
3643
3646
|
min-width: ${k(400)};
|
|
3644
3647
|
background-color: ${w("error",500)};
|
|
@@ -3647,12 +3650,12 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3647
3650
|
justify-content: center;
|
|
3648
3651
|
align-items: center;
|
|
3649
3652
|
padding: 0rem ${k(100)} 0.0625rem ${k(100)};
|
|
3650
|
-
`,
|
|
3653
|
+
`,xO=i.css`
|
|
3651
3654
|
font-size: ${C(400)};
|
|
3652
3655
|
line-height: ${S(600)};
|
|
3653
3656
|
font-weight: 700;
|
|
3654
3657
|
color: ${w("error",100)};
|
|
3655
|
-
`,
|
|
3658
|
+
`,wO=(e,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),i.css`
|
|
3656
3659
|
width: 100%;
|
|
3657
3660
|
max-width: ${n};
|
|
3658
3661
|
border-radius: ${$(300)};
|
|
@@ -3666,7 +3669,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3666
3669
|
button {
|
|
3667
3670
|
margin-left: ${t?0:k(600)};
|
|
3668
3671
|
}
|
|
3669
|
-
`},
|
|
3672
|
+
`},CO=i.css`
|
|
3670
3673
|
display: flex;
|
|
3671
3674
|
align-items: flex-start;
|
|
3672
3675
|
gap: ${k(200)};
|
|
@@ -3674,14 +3677,14 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3674
3677
|
svg {
|
|
3675
3678
|
margin-top: 0.1875rem;
|
|
3676
3679
|
}
|
|
3677
|
-
`,
|
|
3680
|
+
`,kO=e=>i.css`
|
|
3678
3681
|
max-width: 45rem;
|
|
3679
3682
|
color: ${w("neutral",800)};
|
|
3680
3683
|
font-size: ${C("small"===e?300:500)};
|
|
3681
3684
|
line-height: ${S("small"===e?500:700)};
|
|
3682
3685
|
font-weight: 400;
|
|
3683
3686
|
text-align: left;
|
|
3684
|
-
|
|
3687
|
+
`,SO=(e,t)=>i.css`
|
|
3685
3688
|
max-width: 45rem;
|
|
3686
3689
|
color: ${w("neutral",700)};
|
|
3687
3690
|
font-size: ${C("small"===e?200:400)};
|
|
@@ -3689,7 +3692,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3689
3692
|
font-weight: 400;
|
|
3690
3693
|
margin-left: ${t?k(600):"0"};
|
|
3691
3694
|
text-align: left;
|
|
3692
|
-
|
|
3695
|
+
`,$O=(e,t)=>i.css`
|
|
3693
3696
|
max-width: 45rem;
|
|
3694
3697
|
color: ${w("neutral",700)};
|
|
3695
3698
|
font-size: ${C("small"===e?200:400)};
|
|
@@ -3697,15 +3700,15 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3697
3700
|
font-weight: 400;
|
|
3698
3701
|
margin-left: ${t?k(600):"0"};
|
|
3699
3702
|
text-align: left;
|
|
3700
|
-
`,
|
|
3703
|
+
`,EO=i.css`
|
|
3701
3704
|
background-color: ${w("neutral",100)};
|
|
3702
3705
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
3703
3706
|
color: ${w("neutral",700)};
|
|
3704
|
-
`,
|
|
3707
|
+
`,MO=i.css`
|
|
3705
3708
|
background-color: ${w("neutral",200)};
|
|
3706
3709
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
3707
3710
|
color: ${w("neutral",700)};
|
|
3708
|
-
`,
|
|
3711
|
+
`,jO=i.css`
|
|
3709
3712
|
background-color: ${w("success",100)};
|
|
3710
3713
|
border: ${E(100)} solid ${w("success",300)};
|
|
3711
3714
|
color: ${w("success",500)};
|
|
@@ -3713,7 +3716,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3713
3716
|
p {
|
|
3714
3717
|
color: ${w("success",900)};
|
|
3715
3718
|
}
|
|
3716
|
-
`,
|
|
3719
|
+
`,TO=i.css`
|
|
3717
3720
|
background-color: ${w("warning",100)};
|
|
3718
3721
|
border: ${E(100)} solid ${w("warning",300)};
|
|
3719
3722
|
color: ${w("warning",500)};
|
|
@@ -3721,7 +3724,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3721
3724
|
p {
|
|
3722
3725
|
color: ${w("warning",900)};
|
|
3723
3726
|
}
|
|
3724
|
-
`,
|
|
3727
|
+
`,OO=i.css`
|
|
3725
3728
|
background-color: ${w("error",100)};
|
|
3726
3729
|
border: ${E(100)} solid ${w("error",300)};
|
|
3727
3730
|
color: ${w("error",500)};
|
|
@@ -3729,39 +3732,39 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3729
3732
|
p {
|
|
3730
3733
|
color: ${w("error",900)};
|
|
3731
3734
|
}
|
|
3732
|
-
`,
|
|
3735
|
+
`,LO=e=>{let t="",n="",r="";return"success"===e?(t=w("success",100),n=w("success",500),r=w("success",300)):"warning"===e?(t=w("warning",100),n=w("warning",500),r=w("warning",300)):"error"===e?(t=w("error",100),n=w("error",500),r=w("error",300)):"information"===e?(t=w("secondary",100),n=w("secondary",500),r=w("secondary",200)):"general-grey"===e?(t=w("neutral",200),n=w("neutral",700),r=w("neutral",300)):(t=w("neutral",100),n=w("neutral",700),r=w("neutral",300)),i.css`
|
|
3733
3736
|
display: flex;
|
|
3734
3737
|
color: ${n};
|
|
3735
3738
|
align-items: center;
|
|
3736
3739
|
background-color: ${t};
|
|
3737
3740
|
border-bottom: ${E(100)} solid ${r};
|
|
3738
3741
|
border-radius: 0;
|
|
3739
|
-
`},
|
|
3742
|
+
`},AO=l.forwardRef((({title:t,children:n,icon:o,variant:i,onClose:s},a)=>{const[c,d]=l.useState(!0),u="success"===i?r.jsx(Hf,{}):"warning"===i?r.jsx(Ff,{}):r.jsx(Df,{});return c?r.jsxs(e.Alert.Root,{css:LO(i),children:[r.jsx(e.Alert.Indicator,{children:o||u}),n?r.jsx(e.Alert.Content,{children:r.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[r.jsx(e.Alert.Title,{children:t}),r.jsx(e.Alert.Description,{children:n})]})}):r.jsx(e.Alert.Title,{flex:"1",children:t}),r.jsx(e.CloseButton,{"aria-label":"Close alert",pos:"absolute",insetEnd:"2",_hover:{bg:"gray.200"},onClick:()=>{d(!1),s?.()}})]}):null})),RO=i.css`
|
|
3740
3743
|
height: ${k(200)};
|
|
3741
3744
|
width: 100%;
|
|
3742
3745
|
background-color: ${w("neutral",300)};
|
|
3743
3746
|
display: flex;
|
|
3744
3747
|
align-items: center;
|
|
3745
3748
|
justify-content: flex-start;
|
|
3746
|
-
`,
|
|
3749
|
+
`,NO=e=>i.css`
|
|
3747
3750
|
height: 100%;
|
|
3748
3751
|
width: ${e}%;
|
|
3749
3752
|
background-color: ${w("primary",500)};
|
|
3750
3753
|
transition: width 0.5s ease-in-out;
|
|
3751
|
-
`,
|
|
3754
|
+
`,DO=i.css`
|
|
3752
3755
|
width: 100%;
|
|
3753
3756
|
display: flex;
|
|
3754
3757
|
align-items: center;
|
|
3755
3758
|
justify-content: space-between;
|
|
3756
3759
|
position: relative;
|
|
3757
|
-
`,
|
|
3760
|
+
`,IO=i.css`
|
|
3758
3761
|
height: 3.75rem;
|
|
3759
3762
|
width: ${k(2e3)};
|
|
3760
3763
|
display: flex;
|
|
3761
3764
|
flex-direction: column;
|
|
3762
3765
|
align-items: center;
|
|
3763
3766
|
justify-content: space-between;
|
|
3764
|
-
`,
|
|
3767
|
+
`,PO=(e,t)=>i.css`
|
|
3765
3768
|
height: ${k(800)};
|
|
3766
3769
|
width: ${k(800)};
|
|
3767
3770
|
display: flex;
|
|
@@ -3797,12 +3800,12 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3797
3800
|
}
|
|
3798
3801
|
|
|
3799
3802
|
${t?`\n background-color: ${w("neutral",300)};\n \n &:hover {\n background-color: ${w("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3800
|
-
`,
|
|
3803
|
+
`,zO=e=>i.css`
|
|
3801
3804
|
color: ${w("neutral",e?800:600)};
|
|
3802
3805
|
font-size: ${C(300)};
|
|
3803
3806
|
line-height: ${S(500)};
|
|
3804
3807
|
font-weight: 400;
|
|
3805
|
-
`,
|
|
3808
|
+
`,VO=i.css`
|
|
3806
3809
|
height: ${E(100)};
|
|
3807
3810
|
width: 100%;
|
|
3808
3811
|
padding: 0 1.875rem;
|
|
@@ -3810,11 +3813,11 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3810
3813
|
top: ${k(400)};
|
|
3811
3814
|
left: 0;
|
|
3812
3815
|
z-index: -1;
|
|
3813
|
-
`,
|
|
3816
|
+
`,BO=i.css`
|
|
3814
3817
|
height: ${E(100)};
|
|
3815
3818
|
width: 100%;
|
|
3816
3819
|
background-color: ${w("neutral",400)};
|
|
3817
|
-
`,
|
|
3820
|
+
`,_O=i.css`
|
|
3818
3821
|
justify-content: space-between;
|
|
3819
3822
|
align-items: center;
|
|
3820
3823
|
gap: ${k(200)};
|
|
@@ -3857,21 +3860,21 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3857
3860
|
color: ${w("error",900)};
|
|
3858
3861
|
}
|
|
3859
3862
|
}
|
|
3860
|
-
`,
|
|
3863
|
+
`,HO=i.css`
|
|
3861
3864
|
font-size: ${C(500)};
|
|
3862
3865
|
line-height: ${S(700)};
|
|
3863
3866
|
font-weight: 400;
|
|
3864
3867
|
color: ${w("neutral",800)};
|
|
3865
|
-
`,
|
|
3868
|
+
`,FO=i.css`
|
|
3866
3869
|
font-size: ${C(400)};
|
|
3867
3870
|
line-height: ${S(600)};
|
|
3868
3871
|
font-weight: 400;
|
|
3869
3872
|
color: ${w("neutral",700)};
|
|
3870
|
-
`,
|
|
3873
|
+
`,qO=i.css`
|
|
3871
3874
|
padding: 0.375rem;
|
|
3872
|
-
`,
|
|
3875
|
+
`,WO=i.css`
|
|
3873
3876
|
padding: 0.375rem;
|
|
3874
|
-
`,
|
|
3877
|
+
`,UO={pauseOnPageIdle:!0,offsets:"1.5rem"},KO={"top-start":e.createToaster({placement:"top-start",...UO}),top:e.createToaster({placement:"top",...UO}),"top-end":e.createToaster({placement:"top-end",...UO}),"bottom-start":e.createToaster({placement:"bottom-start",...UO}),bottom:e.createToaster({placement:"bottom",...UO}),"bottom-end":e.createToaster({placement:"bottom-end",...UO})};exports.AlertBanner=AO,exports.AnalysisWidget=({children:t,header:o,footer:i,expanded:s=!0,collapsible:a=!0,actions:l,showFooterOnCollapsed:c=!1,labels:d})=>{Mf("AnalysisWidget",d);const u="analysis-widget-item",[h,p]=n.useState(s),f=`analysis-widget-header-${u}`;return r.jsx(e.Box,{as:"section","aria-labelledby":f,css:Fw,children:r.jsxs(e.Accordion.Root,{multiple:!0,value:a?void 0:[u],defaultValue:s?[u]:[],children:[r.jsxs(e.Accordion.Item,{css:Ww,value:u,children:[o&&r.jsx(e.Accordion.ItemTrigger,{id:f,"aria-expanded":h,css:qw,pointerEvents:a?"auto":"none",onClick:a?()=>{p(!h)}:void 0,children:r.jsxs(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[o,l&&l.map((e=>r.jsx(jf,{variant:"secondary",size:"small",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},leftIcon:e?.icon},e.label))),a&&r.jsx(e.Accordion.ItemIndicator,{height:"1rem",marginTop:"0.5rem",display:"flex",children:r.jsx(If,{"aria-hidden":"true",color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]})}),r.jsxs("div",{className:h?"item-content-open":"item-content-closed","aria-hidden":!h,children:[t,!c&&i&&r.jsx(e.Box,{css:Uw,children:i})]})]}),c&&i&&r.jsx(e.Box,{css:Uw,children:i})]})})},exports.Avatar=pO,exports.Badge=({hasNotification:e,notificationCount:t,label:o})=>{const[i,s]=n.useState(!1);n.useEffect((()=>{const e=()=>{window.innerWidth<1024?s(!0):s(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const a=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let l="1rem";return t&&t>99?l="1.75rem":t&&t>9&&(l="1.375rem"),i?r.jsxs("div",{css:fO,role:"status","aria-live":"polite",children:[r.jsxs("div",{css:mO(),children:[r.jsx(Uf,{color:"currentColor",height:"1rem",width:"1rem"}),!e||t||o?null:r.jsx("div",{css:gO,"aria-hidden":!0})]}),o?r.jsx("p",{children:o}):null,a.length>0?r.jsx("div",{css:yO,children:r.jsx("p",{css:xO,"aria-label":`${t} unread message`,children:a})}):null]}):r.jsxs("div",{css:fO,role:"status","aria-live":"polite",children:[o?r.jsx("p",{children:o}):null,r.jsxs("div",{css:mO(l),children:[a.length>0?r.jsx("div",{css:vO,children:r.jsx("p",{css:bO,"aria-label":`${t} unread message`,children:a})}):null,e&&!t?r.jsx("div",{css:gO,"aria-hidden":!0}):null,r.jsx(Uf,{color:"currentColor",height:"1rem",width:"1rem"})]})]})},exports.BaseMap=({title:e,caption:t,additionalSettings:o,options:s,onOptionSelected:a,maxHeight:l="25rem",maxWidth:c="16.25rem",labels:d})=>{const u=Mf("BaseMap",d),h=n.useRef(null),p=n.useRef(null);return n.useEffect((()=>{const e=h.current,t=p.current;if(!e||!t)return;const n=()=>{e.focus()};if("undefined"!=typeof IntersectionObserver){let e=!1;const r=new IntersectionObserver((([t])=>{t?.isIntersecting?(e||n(),e=!0):e=!1}),{threshold:.01});return r.observe(t),()=>r.disconnect()}const r=window.setTimeout(n,0);return()=>window.clearTimeout(r)}),[]),r.jsx("div",{ref:p,css:tb(l,c),children:r.jsxs("div",{className:"ds-base-map-scroll-content",children:[r.jsxs("div",{css:nb,children:[r.jsx("h2",{ref:h,className:"ds-base-map-header-title",tabIndex:-1,children:e}),r.jsx("p",{className:"ds-base-map-header-caption",children:t})]}),r.jsxs("div",{css:rb,children:[o?r.jsx("div",{css:ob,children:o.map((e=>r.jsxs("div",{children:[r.jsx(cg,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?r.jsx("div",{css:ib,children:e.children}):null]},e.label)))}):null,s?r.jsx("div",{css:sb,children:s.map((e=>{return r.jsxs("div",{css:ab(e.active),role:"button","aria-label":`${e.label}${e.caption?`, ${e.caption}`:""}`,onClick:()=>a?.(e),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),a?.(e))},children:[r.jsx("div",{css:(t=e.imageUrl,i.css`
|
|
3875
3878
|
height: ${k(800)};
|
|
3876
3879
|
width: ${k(800)};
|
|
3877
3880
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
@@ -3879,29 +3882,29 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3879
3882
|
background-image: url(${t});
|
|
3880
3883
|
background-size: cover;
|
|
3881
3884
|
background-position: center;
|
|
3882
|
-
`)}),r.jsxs("div",{css:
|
|
3885
|
+
`)}),r.jsxs("div",{css:lb,children:[r.jsxs("div",{className:"ds-base-map-title-container",children:[r.jsx("p",{className:"ds-base-map-title",children:e.label}),e.active?r.jsx(Mv,{label:u.activeLabel,variant:"warning",size:"small",icon:r.jsx(Rf,{})}):null]}),r.jsx("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?r.jsx("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})})},exports.Breadcrumb=({links:t,separator:o,maxItems:i=99,linkRouter:s,size:a="default"})=>{const[l,c]=n.useState(t.length>i);n.useEffect((()=>{c(t.length>i)}),[t.length]);const d=s;return r.jsx(e.Breadcrumb.Root,{children:r.jsx(e.Breadcrumb.List,{gap:"small"===a?"0.375rem":"0.625rem",children:l?r.jsxs(r.Fragment,{children:[r.jsx(e.Breadcrumb.Item,{css:hT(a),children:r.jsxs(d,{to:t[0].link,href:t[0].link,children:[t[0].icon,t[0].label]})}),r.jsx(e.Breadcrumb.Separator,{css:pT(a),children:o||r.jsx(If,{rotate:"270"})}),r.jsx("li",{className:"chakra-breadcrumb__item",children:r.jsx("button",{css:fT,type:"button",onClick:()=>c(!1),children:"..."})}),r.jsx(e.Breadcrumb.Separator,{css:pT(a),children:o||r.jsx(If,{rotate:"270"})}),r.jsx(e.Breadcrumb.Item,{css:hT(a),children:r.jsxs("p",{"aria-current":"page","aria-label":t[t.length-1].label,children:[t[t.length-1].icon,t[t.length-1].label]})})]}):t.map(((i,s)=>i?.label?r.jsxs(n.Fragment,{children:[r.jsx(e.Breadcrumb.Item,{css:hT(a),children:s<t.length-1?r.jsxs(d,{to:i.link,href:i.link,children:[i.icon,i.label]}):r.jsxs("p",{"aria-current":"page","aria-label":i.label,children:[i.label&&i.icon?i.icon:"",i.label]})}),s<t.length-1?r.jsx(e.Breadcrumb.Separator,{css:pT(a),children:o||r.jsx(If,{rotate:"270"})}):null]},i.label):null))})})},exports.Button=jf,exports.Checkbox=cg,exports.CheckboxList=({label:t,caption:o,checkboxes:s,defaultValues:a,onCheckedChange:l,errorMessage:c,horizontal:d,required:u,hideCheckedCounter:h=!1,hideExpandToggle:p=!1,labels:f})=>{const m=Mf("CheckboxList",f),g=Array.isArray(a)?a:[],v=n.useMemo((()=>new Set(g)),[g]),[b,y]=n.useState((()=>s.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:v.has(n),e}),{}))),[x,w]=n.useState(!0);n.useEffect((()=>{y((e=>{const t=s.filter((e=>e.name)).reduce(((t,n)=>{const r=n.name;return t[r]="boolean"==typeof n.checked?n.checked:e[r]??v.has(r),t}),{});return Object.keys(e).length===Object.keys(t).length&&Object.entries(t).every((([t,n])=>e[t]===n))?e:t}))}),[s,v]);const C="string"!=typeof t,k=s.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:!!b[n],e}),{}),S=s.length>0&&s.every((e=>e.name&&k[e.name])),$=s.some((e=>e.name&&k[e.name]))&&!S,E=s.length,M=`${s.filter((e=>e?.name&&k[e.name])).length} / ${E}`,j=o?`${o}.`:"",T=u?m.requiredLabel:m.optionalLabel,O=c?`${m.errorPrefix} ${c}.`:"",L=`${C?t.label:t}. ${j} ${T} ${O} `;return r.jsxs(e.Group,{css:zg,"aria-label":L,children:[c?r.jsx("div",{css:Hg}):null,r.jsxs("div",{css:(A=!!c,i.css`
|
|
3883
3886
|
margin-left: ${A?"1.1875rem":"0"};
|
|
3884
3887
|
width: 100%;
|
|
3885
|
-
`),children:[r.jsx("div",{css:
|
|
3888
|
+
`),children:[r.jsx("div",{css:Vg,children:"string"==typeof t?r.jsxs(r.Fragment,{children:[u&&r.jsx("span",{id:"required-symbol","aria-label":m.requiredSymbolLabel,children:"*"}),t]}):r.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[r.jsxs(cg,{checked:S,indeterminate:$,onCheckedChange:e=>(e=>{const t=s.filter((e=>void 0!==e.name)).reduce(((t,n)=>(t[n.name]=e,t)),{});y(t),l?.(t)})(!!e.checked),children:[t.label," ",!h&&r.jsx("span",{"aria-hidden":"true",css:qg,children:M})]}),!p&&r.jsxs("button",{type:"button",onClick:()=>w((e=>!e)),"aria-expanded":x,"aria-controls":"checkbox-list",css:Wg,children:[x?m.hideLabel:m.expandLabel,r.jsx("span",{"aria-hidden":"true",children:x?r.jsx(If,{style:{transform:"rotate(180deg)"}}):r.jsx(If,{})})]})]})}),r.jsx("p",{css:Bg,"aria-label":o,children:o}),c?r.jsx("p",{css:Fg,"aria-label":c,children:c}):null,r.jsx("div",{id:"checkbox-list",css:_g(d,x),children:s.map((e=>{const{onCheckedChange:t,...n}=e;return r.jsx(cg,{ms:C&&!d?"6":"",css:{},checked:!!e?.name&&!!k[e.name],onCheckedChange:({checked:n})=>{((e,t)=>{const n={...b};t&&(n[t]=e,y(n)),l&&l(n)})(n,e.name),t?.({checked:!!n})},...n},e.name)}))})]})]});var A},exports.CheckboxOptionCard=({defaultValue:t,items:n,onValueChange:o})=>r.jsx(e.CheckboxGroup,{defaultValue:t,onValueChange:o,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"0.75rem",children:n.map((n=>{return r.jsxs(e.CheckboxCard.Root,{css:dg,defaultChecked:-1!==t?.indexOf(n.value),disabled:n.disabled,value:n.value,children:[r.jsx(e.CheckboxCard.HiddenInput,{}),r.jsxs(e.CheckboxCard.Control,{css:ug,children:[r.jsxs(e.CheckboxCard.Content,{css:(s=n.variant,i.css`
|
|
3886
3889
|
width: 100%;
|
|
3887
3890
|
display: flex;
|
|
3888
3891
|
flex-direction: ${"centered"===s?"column":"row"};
|
|
3889
3892
|
align-items: center;
|
|
3890
3893
|
gap: ${k(300)};
|
|
3891
|
-
`),children:[r.jsx("div",{css:
|
|
3894
|
+
`),children:[r.jsx("div",{css:hg,children:n.icon}),r.jsxs("div",{style:{width:"100%"},children:[r.jsx(e.CheckboxCard.Label,{css:pg(n.variant,n.disabled),children:n.label}),n.caption?r.jsx(e.CheckboxCard.Description,{css:fg(n.variant,n.disabled),children:n.caption}):null]})]}),r.jsx(e.CheckboxCard.Indicator,{css:mg(n.variant)})]}),n.children&&"expanded"===n.variant?r.jsx(e.CheckboxCard.Addon,{css:(o=n.disabled,i.css`
|
|
3892
3895
|
width: 100%;
|
|
3893
3896
|
border-color: ${w("neutral",300)};
|
|
3894
3897
|
margin-top: ${k(300)};
|
|
3895
3898
|
padding: 0;
|
|
3896
3899
|
padding-top: ${k(200)};
|
|
3897
3900
|
color: ${o?w("neutral",500):"inherit"};
|
|
3898
|
-
`),children:n.children}):null]},`${n.label}-${n.value}`);var o,s}))})}),exports.CloseButton=Km,exports.ClusterPoint=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:s="cluster"})=>t.jsx(ub,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:s}),exports.Combobox=({label:t,required:o,caption:i,errorMessage:s,size:a,disabled:l,placeholder:c,labels:d,noMarginBottom:u,initialItems:h=[],multiple:p=!1,showSelectedItems:f=!1})=>{const[m,g]=n.useState([]),v=Mf("TextInput",d),{contains:b}=e.useFilter({sensitivity:"base"}),{collection:y,filter:x}=e.useListCollection({initialItems:h,filter:b});return r.jsxs("div",{css:Qg(a,u),className:"ds-text-input-container",children:[s?r.jsx("div",{css:ev}):null,r.jsxs(e.Field.Root,{required:o,invalid:!!s,gap:"0",style:{marginLeft:s?"1.1875rem":"0px"},children:[t?r.jsxs(e.Field.Label,{css:tv(a,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":v.requiredSymbolLabel}),t,o?"":r.jsx("span",{children:v.optionalSuffix})]}):null,i?r.jsx(e.Field.HelperText,{css:nv(a,l),"aria-label":i,children:i}):null,s?r.jsx(e.Field.ErrorText,{css:rv(a),"aria-label":s,children:s}):null,r.jsxs(e.Combobox.Root,{multiple:p,onValueChange:e=>{g(e.items.map((e=>({label:e.label,value:e.value}))))},value:m.map((e=>e.value)),collection:y,onInputValueChange:e=>x(e.inputValue),width:"20rem",size:"small"===a?"sm":"md",children:[r.jsxs(e.Combobox.Control,{children:[r.jsx(e.Combobox.Input,{placeholder:c,css:ov(a),disabled:l,"aria-label":t||c||"Combobox input"}),r.jsxs(e.Combobox.IndicatorGroup,{children:[r.jsx(e.Combobox.ClearTrigger,{"aria-label":"Clear selection"}),r.jsx(e.Combobox.Trigger,{"aria-label":"Toggle options"})]})]}),r.jsx(e.Portal,{children:r.jsx(e.Combobox.Positioner,{children:r.jsxs(e.Combobox.Content,{children:[r.jsx(e.Combobox.Empty,{children:"No items found"}),y.items.map((t=>r.jsxs(e.Combobox.Item,{item:t,children:[t.label,r.jsx(e.Combobox.ItemIndicator,{})]},t.value)))]})})}),r.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.25rem",paddingTop:"0.5rem"},children:f&&m.map((e=>r.jsx(jv,{label:e.label,variant:"info-white",onClose:()=>g((t=>t.filter((t=>t.value!==e.value)))),closable:!0},e.value)))})]})]})]})},exports.DesignSystemLocaleProvider=({labels:e,children:r})=>{const o=n.useMemo((()=>({labels:e})),[e]);return t.jsx(M.Provider,{value:o,children:r})},exports.ExtendableCard=({children:t,header:n,footer:o})=>r.jsx(e.Box,{css:Hw,children:r.jsx(e.Accordion.Root,{multiple:!0,children:r.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[r.jsxs(e.Accordion.ItemTrigger,{css:Fw,alignItems:"center",children:[r.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:n}),r.jsx(e.Accordion.ItemIndicator,{children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsxs(e.Accordion.ItemContent,{children:[t,o]})]})})}),exports.Footer=({children:e,label:t="© World Resources Institute",fixed:n,filled:o,maxWidth:i,additionalLogos:s})=>{const a=(new Date).getFullYear();return r.jsx("footer",{css:gT(n,o),children:r.jsxs("div",{css:vT(i),children:[r.jsxs("div",{css:xT,children:[r.jsx(Wf,{height:"2rem",width:"5.6875rem"}),s&&s.map(((e,t)=>r.jsx("div",{children:e},t)))]}),r.jsx("div",{css:bT,children:e}),r.jsx("div",{children:r.jsxs("p",{css:yT,children:[t," ",a]})})]})})},exports.FormContainer=({label:e,error:t,children:o})=>{const i=n.useId(),s=e?`${i}-label`:void 0,a=t?`${i}-error`:void 0;return r.jsxs("div",{css:ig,role:"group","aria-labelledby":s,"aria-describedby":a,children:[t?r.jsx("div",{css:ag}):null,r.jsxs("div",{children:[e?r.jsx("p",{id:s,css:sg,children:e}):null,t?r.jsx("p",{id:a,css:lg,children:t}):null,o]})]})},exports.IconButton=Of,exports.InlineMessage=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(Df,{height:"1rem",width:"1rem"}),onActionClick:s,actionLabel:a,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=Mf("InlineMessage",u);let p=MO;"info-grey"===n?p=jO:"success"===n?p=TO:"warning"===n?p=OO:"error"===n&&(p=LO);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return r.jsxs("div",{css:[CO(o,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[r.jsxs("div",{children:[r.jsxs("div",{css:kO,children:[i,r.jsx("p",{css:SO(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:$O(o,!!i),children:t}):t?r.jsx("div",{css:EO(o,!!i),children:t}):null]}),a?r.jsx(jf,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:s,leftIcon:c,rightIcon:d}):null]})},exports.InputWithUnits=({label:t,caption:o,errorMessage:i,units:s,unitsPosition:a="end",defaultUnit:l="",defaultValue:c="",onChange:d,required:u,disabled:h})=>{const[p,f]=n.useState(c),[m,g]=n.useState(l?[l]:[s[0].value]),v=(e,t)=>{d&&d("end"===a?""+(t?`${p} ${e}`:`${e} ${m}`):""+(t?`${e} ${p}`:`${m} ${e}`))};return r.jsxs("div",{css:Kg,children:[i?r.jsx("div",{css:Jg}):null,r.jsxs("div",{style:{marginLeft:i?"1.1875rem":"0px"},children:[r.jsxs("p",{css:Gg(h),"aria-label":t,children:[u?r.jsx("span",{children:"*"}):null,t]}),r.jsx("p",{css:Zg(h),"aria-label":o,children:o}),i?r.jsx("p",{css:Xg,"aria-label":i,children:i}):null,r.jsxs(e.Group,{css:Yg(!!i,a),attached:!0,children:["start"===a?r.jsx(Lv,{placeholder:"","aria-label":`${t} unit`,value:m,items:s,disabled:h,onChange:e=>{g(e),v(e?.[0],!0)}}):null,r.jsx(iv,{type:"number","aria-label":`${t} value`,value:p,disabled:h,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===a?r.jsx(Lv,{placeholder:"","aria-label":`${t} unit`,value:m,items:s,disabled:h,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=mw,exports.LayerGroup=({label:t,caption:o,value:i,layerItems:s,onChangeForRadioVariant:a,labels:l})=>{const c=Mf("LayerGroup",l),[d,u]=n.useState({}),[h]=n.useState((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(s));n.useEffect((()=>{let e={...d};s.forEach((n=>{n.isDefaultSelected&&(e={...e,["radio"===n.variant?t:n.name]:n.isDefaultSelected})})),u(e)}),[]);const p=(e,t,n,r)=>{const o={...d,[e]:t};u(o),n&&n(e,t,r)},f=Object.values(d).filter((e=>!0===e)).length,m=c.groupAriaLabel(t,f,o);return r.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[r.jsxs(e.Accordion.ItemTrigger,{css:jx,alignItems:"flex-start","aria-label":m,children:[r.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[r.jsxs("span",{css:Tx,children:[t,r.jsx(jv,{label:c.activeTagLabel(f),size:"small",variant:f>0?"success":"info-grey"})]}),r.jsx("div",{css:Ox,children:o})]}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsx(e.Accordion.ItemContent,{paddingLeft:"1rem",paddingRight:"1rem",children:r.jsx(Mg,{name:t,value:h,customGap:"0",onChange:(e,t)=>p(e,!!t,a,t),children:s.map((e=>r.jsx(Ix,{...e,onChange:(t,n)=>p(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:t,defaultValue:n,...o})=>r.jsx("div",{css:Mx,style:{width:"100%"},children:r.jsx(e.Accordion.Root,{css:{},defaultValue:n,multiple:!0,...o,children:t})}),exports.LayerItem=Ix,exports.LayerParameters=({label:t,children:o,openedByDefault:i})=>r.jsx("div",{children:r.jsx(e.Accordion.Root,{defaultValue:i?[t]:[],multiple:!0,children:r.jsxs(e.Accordion.Item,{css:Px,value:t,children:[r.jsxs(e.Accordion.ItemTrigger,{css:zx,children:[r.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:r.jsx("p",{css:Vx,children:t})}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsx(e.Accordion.ItemContent,{css:Bx,children:n.Children.map(o,(e=>r.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:t,onDrag:n,onUpClick:o,onDownClick:i,onRemoveClick:s,children:a,onInfoClick:l,onOpacityChanged:c,labels:d})=>{const u=Mf("LegendItem",d);return r.jsxs("div",{css:_x,children:[r.jsx("div",{css:Hx,children:r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[r.jsx(Of,{icon:r.jsx(If,{rotate:"180"}),"aria-label":u.upLabel,onClick:o}),r.jsx(Of,{icon:r.jsx(If,{}),"aria-label":u.downLabel,onClick:i})]})}),r.jsxs("div",{style:{width:"100%"},children:[r.jsxs("div",{css:Fx,children:[r.jsxs("div",{children:[r.jsx("h3",{css:qx,children:e}),r.jsx("p",{css:Wx,children:t})]}),r.jsx(jf,{label:u.removeLabel,size:"small",variant:"secondary",rightIcon:r.jsx(zf,{}),onClick:s})]}),a,r.jsxs("div",{css:Ux,children:[r.jsx(jf,{label:u.aboutDataLabel,size:"small",variant:"secondary",leftIcon:r.jsx(Df,{}),onClick:l}),r.jsx(Xx,{defaultValue:80,onOpacityChanged:c})]})]})]})},exports.List=Sw,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:n,onExpandClick:r,onShareClick:o,onPrintClick:i,onSettingsClick:s,onQuestionClick:a,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u,labels:h})=>{const p=Mf("MapControlsToolbar",h),f=[{icon:t.jsx(Kf,{}),label:p.zoomInLabel,ariaLabel:p.zoomInAriaLabel,onClick:e},{icon:t.jsx(Gf,{}),label:p.zoomOutLabel,ariaLabel:p.zoomOutAriaLabel,onClick:n,gap:!0},{icon:t.jsx(Zf,{}),label:p.expandLabel,ariaLabel:p.expandAriaLabel,onClick:r,gap:!0},{icon:t.jsx(Jf,{}),label:p.shareLabel,ariaLabel:p.shareAriaLabel,onClick:o,gap:!0},{icon:t.jsx(Xf,{}),label:p.printLabel,ariaLabel:p.printAriaLabel,onClick:i,gap:!0},{icon:t.jsx(Yf,{}),label:p.settingsLabel,ariaLabel:p.settingsAriaLabel,onClick:s,gap:!0},{icon:t.jsx(Qf,{}),label:p.helpLabel,ariaLabel:p.helpAriaLabel,onClick:a}];return t.jsx(Ym,{items:f,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u||p.toolbarAriaLabel})},exports.MapMarker=ub,exports.MapMarkers=hb,exports.MapPopUp=({open:e,onOpenChange:t,anchorRef:o,header:i,content:s,footer:a,placement:c="bottom",offset:d=30,closeOnEscape:u=!0,closeOnOutsideClick:h=!1,labels:p})=>{const f=Mf("MapPopUp",p),m=n.useRef(null),{refs:g,floatingStyles:v,context:b,middlewareData:y,placement:x}=bx({open:e,onOpenChange:t,placement:c,whileElementsMounted:By,middleware:[Yy(d),(w={fallbackAxisSideDirection:"start"},{...Fy(w),options:[w,C]}),Qy({padding:8}),ex({element:m})]});var w,C;n.useEffect((()=>{o?.current&&g.setReference(o.current)}),[o,g]);const k=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:m}=t,g=px(),v=yy("function"==typeof c?c:()=>!1),b="function"==typeof c?v:c,y=l.useRef(!1),{escapeKey:x,outsidePress:w}=gx(f),{escapeKey:C,outsidePress:k}=gx(m),S=l.useRef(!1),$=yy((e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=g?gy(g.nodesRef.current,o):[];if(!x&&(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")})),E=yy((e=>{var t;const n=()=>{var t;$(e),null==(t=py(e))||t.removeEventListener("keydown",n)};null==(t=py(e))||t.addEventListener("keydown",n)})),M=yy((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const s=y.current;if(y.current=!1,"click"===d&&s)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=py(e),l="[data-floating-ui-inert]",c=my(o.floating).querySelectorAll(l);let u=bb(a)?a:null;for(;u&&!Rb(u);){const e=Ib(u);if(Rb(e)||!bb(e))break;u=e}if(c.length&&bb(a)&&!a.matches("html,body")&&!hy(a,o.floating)&&Array.from(c).every((e=>!hy(u,e))))return;if(yb(a)&&O){const t=Rb(a),n=Nb(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(d||u)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=g&&gy(g.nodesRef.current,h).some((t=>{var n;return fy(e,null==(n=t.context)?void 0:n.elements.floating)}));if(fy(e,o.floating)||fy(e,o.domReference)||p)return;const f=g?gy(g.nodesRef.current,h):[];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")})),j=yy((e=>{var t;const n=()=>{var t;M(e),null==(t=py(e))||t.removeEventListener(d,n)};null==(t=py(e))||t.addEventListener(d,n)}));l.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),Lb()?5:0)}const u=my(o.floating);a&&(u.addEventListener("keydown",C?E:$,C),u.addEventListener("compositionstart",l),u.addEventListener("compositionend",c)),b&&u.addEventListener(d,k?j:M,k);let h=[];return p&&(bb(o.domReference)&&(h=zb(o.domReference)),bb(o.floating)&&(h=h.concat(zb(o.floating))),!bb(o.reference)&&o.reference&&o.reference.contextElement&&(h=h.concat(zb(o.reference.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(u.removeEventListener("keydown",C?E:$,C),u.removeEventListener("compositionstart",l),u.removeEventListener("compositionend",c)),b&&u.removeEventListener(d,k?j:M,k),h.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,a,b,d,n,r,p,s,x,w,$,C,E,M,k,j]),l.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,d]);const T=l.useMemo((()=>({onKeyDown:$,...u&&{[fx[h]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==h&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,u,h]),O=l.useMemo((()=>({onKeyDown:$,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[mx[d]]:()=>{i.current.insideReactTree=!0}})),[$,d,i]);return l.useMemo((()=>s?{reference:T,floating:O}:{}),[s,T,O])}(b,{escapeKey:u,outsidePress:h}),S=wx(b,{role:"dialog"}),{getFloatingProps:$}=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=>yx(t,e,"reference")),t),i=l.useCallback((t=>yx(t,e,"floating")),n),s=l.useCallback((t=>yx(t,e,"item")),r);return l.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([k,S]),{x:E,y:M}=y.arrow??{x:null,y:null},j={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]];if(!e)return null;let T=d-1,O=4;return"left"!==j&&"right"!==j||(T=4,O=d-1),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:g.setFloating,style:v,"aria-label":"Map popup dialog","aria-modal":!0,...$(),css:Cx,children:[r.jsxs("div",{css:kx,children:[i,r.jsx(Km,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":f.closeLabel})]}),r.jsx("div",{css:Sx,children:s}),a?r.jsx("div",{css:$x,children:a}):null,r.jsx("div",{ref:m,css:Ex(T,O,E,M,j,d)})]}),r.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>h&&t(!1)})]})},exports.Menu=Cm,exports.MobileTabBar=({defaultValue:t,tabs:o,onTabClick:i,hideLabels:s,activationMode:a="manual"})=>{const l=o.length,[c,d]=n.useState((()=>$T(o,t)));return r.jsx("div",{css:wT,children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:t||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=$T(o,e);d(t),i&&i(e)})(e),activationMode:a,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((t,n)=>{const{label:o,icon:i,bagdeCount:a,"aria-label":d,"aria-describedby":u,disabled:h,...p}=t,f=`${t.value}-str-status`,m=[`tab ${n+1} of ${l}`,c===n?"selected":"not selected"];h&&m.push("disabled");const g=[u,f].filter(Boolean).join(" ")||void 0;return r.jsxs(e.Tabs.Trigger,{css:CT,"aria-label":d||o,"aria-disabled":!!h||void 0,"aria-describedby":g,disabled:h,...p,children:[r.jsxs("div",{css:kT,children:[i,a?r.jsx("div",{css:ST,className:"ds-badge-count",children:a}):null]}),s?null:r.jsx("p",{children:o}),r.jsx(e.VisuallyHidden,{id:f,children:m.join(", ")})]},t.value)}))})})})},exports.Modal=({header:t,content:o,footer:i,size:s="medium",width:a,height:l,maxHeight:c,draggable:d,blocking:u,open:h,onClose:p})=>{const f=n.useRef(null);return h?r.jsx(e.Dialog.Root,{open:h,onOpenChange:p,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!d&&!u,preventScroll:!d&&!u,closeOnEscape:!u,defaultOpen:!0,children:r.jsxs(e.Portal,{children:[d?null:r.jsx(e.Dialog.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),r.jsx(HC,{disabled:!d,nodeRef:f,children:r.jsx(e.Dialog.Positioner,{ref:f,children:r.jsxs(e.Dialog.Content,{"aria-label":"Modal dialog",css:FC(s,a,l,c),children:[r.jsxs(e.Dialog.Header,{css:qC,children:[t,u?null:r.jsx(e.Dialog.CloseTrigger,{css:WC,asChild:!0,children:r.jsx(Km,{})})]}),r.jsx(e.Dialog.Body,{css:UC,children:o}),i?r.jsx(e.Dialog.Footer,{padding:"0.75rem",children:i}):null]})})})]})}):null},exports.MultiActionButton=({variant:t="primary",size:o="default",mainActionLabel:i,mainActionOnClick:s=()=>{},otherActions:a=[],disabled:l,mainActionLeftIcon:c,mainActionRightIcon:d,...u})=>{const[h,p]=n.useState(!1),f=l?`${i} action button with menu, disabled`:void 0;return r.jsxs(e.Group,{css:ng,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":f,role:"group",children:[r.jsx(jf,{css:{},label:i,variant:t,size:o,onClick:s,disabled:l,leftIcon:c,rightIcon:d,...u}),r.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>p(e),positioning:{placement:"bottom-end"},children:[r.jsx(e.Menu.Trigger,{css:eg(t),"data-group-item":!0,"data-last":!0,asChild:!0,children:r.jsx(jf,{style:rg,"aria-label":`Open ${i} options`,"aria-haspopup":"menu","aria-expanded":h,variant:t,size:o,leftIcon:r.jsx(If,{"aria-hidden":"true",rotate:h?"180":"0",color:w("accessible","text-on-primary-mids")||w("primary",900)}),disabled:l})}),r.jsx(og,{children:a.map((({label:t,value:n,onClick:i})=>r.jsx(e.Menu.Item,{css:tg(o),onClick:i,value:n,children:t},n)))})]})]})},exports.Navbar=({variant:e="default",theme:t="light",logo:o,linkRouter:i,pathname:s,navigationSection:a,utilitySection:l,actionsSection:c,maxWidth:d,fixed:u,onNavbarHeightChange:h,backgroundColor:p,labels:f})=>{const m=Mf("Navbar",f),g=n.useRef(null),v=n.useRef(null),b=n.useRef(null),[y,x]=n.useState(!1),[w,C]=n.useState(-1),[k,S]=n.useState("undefined"!=typeof window&&window?.innerWidth<=GT),[$,E]=n.useState(!1),M=i,j=n.useCallback((()=>{if(v.current&&g.current&&b.current){const e=g.current.getBoundingClientRect(),t=v.current.getBoundingClientRect(),n=b.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=GT||window.innerWidth<=w?(h?.(96),x(!0)):window.innerWidth>GT&&window.innerWidth<=1440?e.right>=t.left?(h?.(96),x(!0),C(window.innerWidth)):window.innerWidth>w&&(h?.(48),x(!1),C(-1)):(h?.(48),x(!1),C(-1)),y&&(window.innerWidth<=GT||n.right>=t.left?(S(!0),h?.(48)):(S(!1),h?.(96)))}}),[w,y]);n.useEffect((()=>(j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)})),[j]);const T="condensed"===e;return r.jsxs("nav",{css:ET(y&&!k,u,p,t,T),children:[r.jsxs("div",{css:jT(y&&!k,d,T),children:[r.jsxs("div",{css:TT(y&&!k||"dark"===t,T),ref:g,children:[o?r.jsx("div",{ref:b,css:OT,children:o}):null,r.jsx("div",{css:LT(y),children:a?.map((e=>e.link?r.jsx(M,{to:e.link,href:e.link,css:AT(s===e.link,t,T),children:e.label},e.label):r.jsx(Cm,{theme:t,label:e.label,fontSize:T?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),r.jsx("div",{css:RT(T),ref:v,children:k?r.jsxs("button",{type:"button",onClick:()=>E(!$),"aria-label":m.openMenuLabel,css:IT(t),children:[$?m.closeLabel:m.menuLabel,$?r.jsx(zf,{height:T?"0.75rem":"1rem",width:T?"0.75rem":"1rem"}):r.jsx(lm,{height:T?"0.75rem":"1rem",width:T?"0.75rem":"1rem"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{css:RT(T),children:l?.map(((e,t)=>r.jsx("div",{css:NT(y),children:e},t)))}),c?.length?r.jsx("div",{css:DT(y),children:c.map((e=>r.jsx(jf,{...e},e.ariaLabel)))}):null]})})]}),y&&!k?r.jsx("div",{css:MT(t,T),children:a?.map((e=>e.link?r.jsx(M,{to:e.link,href:e.link,css:AT(s===e.link,t,T),children:e.label},e.label):r.jsx(Cm,{theme:t,label:e.label,fontSize:T?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,k?r.jsx(KT,{theme:t,variant:e,navigationSection:a,utilitySection:l,actionsSection:c,linkRouter:i,isOpen:$,setIsOpen:E,pathname:s,resolvedLabels:m}):null]})},exports.NavigationRail=({tabs:t=[],defaultValue:o,onTabClick:i,children:s,onOpenChange:a,labels:l})=>{const c=Mf("NavigationRail",l),[d,u]=n.useState(!1),[h,p]=n.useState(o||t?.[0]?.value),f=e=>{p(e),i&&i(e)},[m]=e.useMediaQuery(["(max-width: 48rem)"]);return m?r.jsxs(e.Tabs.Root,{defaultValue:h,onValueChange:({value:e})=>f(e),children:[r.jsx(e.Tabs.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"0.5rem",gap:"0.5rem"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{value:t.value,css:{"--indicator-color":w("primary",500),flexShrink:0,padding:"0.625rem 1rem",color:w("neutral",600),"&[data-selected]":{color:w("neutral",800),fontWeight:600}},children:t.label},t.value)))}),t.map((t=>r.jsx(e.Tabs.Content,{value:t.value,children:s},t.value)))]}):r.jsxs("div",{style:{height:"calc(100vh - 3rem - 3.5rem)",position:"fixed",top:"3rem",left:0,display:"flex"},children:[r.jsxs("div",{css:ZT,children:[r.jsx(e.Tabs.Root,{defaultValue:o||t?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{f(e)},children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{css:JT,"aria-label":t["aria-label"]||t.label,...t,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:"0.3125rem",className:"ds-tab-label",children:[t.icon?r.jsx("div",{css:XT,children:t.icon}):null,r.jsx("p",{children:t.label})]})},t.label)))})}),s?r.jsx(e.Collapsible.Root,{onOpenChange:({open:e})=>{u(e),a&&a(!e)},children:r.jsxs(e.Collapsible.Trigger,{css:YT,children:[r.jsx("div",{css:XT,children:d?r.jsx(Af,{}):r.jsx(Lf,{})}),r.jsxs("div",{className:"ds-tab-label",children:[r.jsx("p",{children:d?c.showLabel:c.hideLabel}),r.jsx("p",{children:c.sidebarLabel})]})]})}):null]}),s?r.jsx(e.Collapsible.Root,{defaultOpen:!0,open:!d,children:r.jsx(e.Collapsible.Content,{height:"100%",children:r.jsx("div",{css:QT,role:"tabpanel","aria-labelledby":h,children:s})})}):null]})},exports.OptionCard=({defaultValue:t,items:n,onValueChange:o})=>r.jsx(e.RadioCard.Root,{defaultValue:t,onValueChange:o,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"0.75rem",children:n.map((t=>{return r.jsxs(e.RadioCard.Item,{css:vg,value:t.value,disabled:t.disabled,children:[r.jsx(e.RadioCard.ItemHiddenInput,{}),r.jsxs(e.RadioCard.ItemControl,{css:bg,children:[r.jsxs("div",{css:(o=t.variant,i.css`
|
|
3901
|
+
`),children:n.children}):null]},`${n.label}-${n.value}`);var o,s}))})}),exports.CloseButton=Um,exports.ClusterPoint=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:s="cluster"})=>t.jsx(db,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:s}),exports.Combobox=({label:t,required:o,caption:i,errorMessage:s,size:a,disabled:l,placeholder:c,labels:d,noMarginBottom:u,initialItems:h=[],multiple:p=!1,showSelectedItems:f=!1})=>{const[m,g]=n.useState([]),v=Mf("TextInput",d),{contains:b}=e.useFilter({sensitivity:"base"}),{collection:y,filter:x}=e.useListCollection({initialItems:h,filter:b});return r.jsxs("div",{css:Yg(a,u),className:"ds-text-input-container",children:[s?r.jsx("div",{css:Qg}):null,r.jsxs(e.Field.Root,{required:o,invalid:!!s,gap:"0",style:{marginLeft:s?"1.1875rem":"0px"},children:[t?r.jsxs(e.Field.Label,{css:ev(a,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":v.requiredSymbolLabel}),t,o?"":r.jsx("span",{children:v.optionalSuffix})]}):null,i?r.jsx(e.Field.HelperText,{css:tv(a,l),"aria-label":i,children:i}):null,s?r.jsx(e.Field.ErrorText,{css:nv(a),"aria-label":s,children:s}):null,r.jsxs(e.Combobox.Root,{multiple:p,onValueChange:e=>{g(e.items.map((e=>({label:e.label,value:e.value}))))},value:m.map((e=>e.value)),collection:y,onInputValueChange:e=>x(e.inputValue),width:"20rem",size:"small"===a?"sm":"md",children:[r.jsxs(e.Combobox.Control,{children:[r.jsx(e.Combobox.Input,{placeholder:c,css:rv(a),disabled:l,"aria-label":t||c||"Combobox input"}),r.jsxs(e.Combobox.IndicatorGroup,{children:[r.jsx(e.Combobox.ClearTrigger,{"aria-label":"Clear selection"}),r.jsx(e.Combobox.Trigger,{"aria-label":"Toggle options"})]})]}),r.jsx(e.Portal,{children:r.jsx(e.Combobox.Positioner,{children:r.jsxs(e.Combobox.Content,{children:[r.jsx(e.Combobox.Empty,{children:"No items found"}),y.items.map((t=>r.jsxs(e.Combobox.Item,{item:t,children:[t.label,r.jsx(e.Combobox.ItemIndicator,{})]},t.value)))]})})}),r.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.25rem",paddingTop:"0.5rem"},children:f&&m.map((e=>r.jsx(Mv,{label:e.label,variant:"info-white",onClose:()=>g((t=>t.filter((t=>t.value!==e.value)))),closable:!0},e.value)))})]})]})]})},exports.DesignSystemLocaleProvider=({labels:e,children:r})=>{const o=n.useMemo((()=>({labels:e})),[e]);return t.jsx(M.Provider,{value:o,children:r})},exports.ExtendableCard=({children:t,header:n,footer:o})=>r.jsx(e.Box,{css:_w,children:r.jsx(e.Accordion.Root,{multiple:!0,children:r.jsxs(e.Accordion.Item,{value:"extendable-card-item",children:[r.jsxs(e.Accordion.ItemTrigger,{css:Hw,alignItems:"center",children:[r.jsx(e.Flex,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:n}),r.jsx(e.Accordion.ItemIndicator,{children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsxs(e.Accordion.ItemContent,{children:[t,o]})]})})}),exports.Footer=({children:e,label:t="© World Resources Institute",fixed:n,filled:o,maxWidth:i,additionalLogos:s})=>{const a=(new Date).getFullYear();return r.jsx("footer",{css:mT(n,o),children:r.jsxs("div",{css:gT(i),children:[r.jsxs("div",{css:yT,children:[r.jsx(Wf,{height:"2rem",width:"5.6875rem"}),s&&s.map(((e,t)=>r.jsx("div",{children:e},t)))]}),r.jsx("div",{css:vT,children:e}),r.jsx("div",{children:r.jsxs("p",{css:bT,children:[t," ",a]})})]})})},exports.FormContainer=({label:e,error:t,children:o})=>{const i=n.useId(),s=e?`${i}-label`:void 0,a=t?`${i}-error`:void 0;return r.jsxs("div",{css:og,role:"group","aria-labelledby":s,"aria-describedby":a,children:[t?r.jsx("div",{css:sg}):null,r.jsxs("div",{children:[e?r.jsx("p",{id:s,css:ig,children:e}):null,t?r.jsx("p",{id:a,css:ag,children:t}):null,o]})]})},exports.IconButton=Of,exports.InlineMessage=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(Df,{height:"1rem",width:"1rem"}),onActionClick:s,actionLabel:a,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=Mf("InlineMessage",u);let p=EO;"info-grey"===n?p=MO:"success"===n?p=jO:"warning"===n?p=TO:"error"===n&&(p=OO);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return r.jsxs("div",{css:[wO(o,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[r.jsxs("div",{children:[r.jsxs("div",{css:CO,children:[i,r.jsx("p",{css:kO(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:SO(o,!!i),children:t}):t?r.jsx("div",{css:$O(o,!!i),children:t}):null]}),a?r.jsx(jf,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:s,leftIcon:c,rightIcon:d}):null]})},exports.InputWithUnits=({label:t,caption:o,errorMessage:i,units:s,unitsPosition:a="end",defaultUnit:l="",defaultValue:c="",onChange:d,required:u,disabled:h})=>{const[p,f]=n.useState(c),[m,g]=n.useState(l?[l]:[s[0].value]),v=(e,t)=>{d&&d("end"===a?""+(t?`${p} ${e}`:`${e} ${m}`):""+(t?`${e} ${p}`:`${m} ${e}`))};return r.jsxs("div",{css:Ug,children:[i?r.jsx("div",{css:Zg}):null,r.jsxs("div",{style:{marginLeft:i?"1.1875rem":"0px"},children:[r.jsxs("p",{css:Kg(h),"aria-label":t,children:[u?r.jsx("span",{children:"*"}):null,t]}),r.jsx("p",{css:Gg(h),"aria-label":o,children:o}),i?r.jsx("p",{css:Jg,"aria-label":i,children:i}):null,r.jsxs(e.Group,{css:Xg(!!i,a),attached:!0,children:["start"===a?r.jsx(Ov,{placeholder:"","aria-label":`${t} unit`,value:m,items:s,disabled:h,onChange:e=>{g(e),v(e?.[0],!0)}}):null,r.jsx(ov,{type:"number","aria-label":`${t} value`,value:p,disabled:h,onChange:e=>{f(e.target.value),v(e.target.value)}}),"end"===a?r.jsx(Ov,{placeholder:"","aria-label":`${t} unit`,value:m,items:s,disabled:h,onChange:e=>{g(e),v(e?.[0],!0)}}):null]})]})]})},exports.ItemCount=fw,exports.LayerGroup=({label:t,caption:o,value:i,layerItems:s,onChangeForRadioVariant:a,labels:l})=>{const c=Mf("LayerGroup",l),[d,u]=n.useState({}),[h]=n.useState((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(s));n.useEffect((()=>{let e={...d};s.forEach((n=>{n.isDefaultSelected&&(e={...e,["radio"===n.variant?t:n.name]:n.isDefaultSelected})})),u(e)}),[]);const p=(e,t,n,r)=>{const o={...d,[e]:t};u(o),n&&n(e,t,r)},f=Object.values(d).filter((e=>!0===e)).length,m=c.groupAriaLabel(t,f,o);return r.jsxs(e.Accordion.Item,{value:i,width:"100%",children:[r.jsxs(e.Accordion.ItemTrigger,{css:Mx,alignItems:"flex-start","aria-label":m,children:[r.jsxs(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[r.jsxs("span",{css:jx,children:[t,r.jsx(Mv,{label:c.activeTagLabel(f),size:"small",variant:f>0?"success":"info-grey"})]}),r.jsx("div",{css:Tx,children:o})]}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsx(e.Accordion.ItemContent,{paddingLeft:"1rem",paddingRight:"1rem",children:r.jsx(Eg,{name:t,value:h,customGap:"0",onChange:(e,t)=>p(e,!!t,a,t),children:s.map((e=>r.jsx(Dx,{...e,onChange:(t,n)=>p(t,n,e.onChange)},e.label)))})})]})},exports.LayerGroupContainer=({children:t,defaultValue:n,...o})=>r.jsx("div",{css:Ex,style:{width:"100%"},children:r.jsx(e.Accordion.Root,{css:{},defaultValue:n,multiple:!0,...o,children:t})}),exports.LayerItem=Dx,exports.LayerParameters=({label:t,children:o,openedByDefault:i})=>r.jsx("div",{children:r.jsx(e.Accordion.Root,{defaultValue:i?[t]:[],multiple:!0,children:r.jsxs(e.Accordion.Item,{css:Ix,value:t,children:[r.jsxs(e.Accordion.ItemTrigger,{css:Px,children:[r.jsx(e.Box,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:r.jsx("p",{css:zx,children:t})}),r.jsx(e.Accordion.ItemIndicator,{display:"flex",children:r.jsx(If,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),r.jsx(e.Accordion.ItemContent,{css:Vx,children:n.Children.map(o,(e=>r.jsx("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),exports.LegendItem=({layerName:e,dataUnit:t,onDrag:n,onUpClick:o,onDownClick:i,onRemoveClick:s,children:a,onInfoClick:l,onOpacityChanged:c,labels:d})=>{const u=Mf("LegendItem",d);return r.jsxs("div",{css:Bx,children:[r.jsx("div",{css:_x,children:r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[r.jsx(Of,{icon:r.jsx(If,{rotate:"180"}),"aria-label":u.upLabel,onClick:o}),r.jsx(Of,{icon:r.jsx(If,{}),"aria-label":u.downLabel,onClick:i})]})}),r.jsxs("div",{style:{width:"100%"},children:[r.jsxs("div",{css:Hx,children:[r.jsxs("div",{children:[r.jsx("h3",{css:Fx,children:e}),r.jsx("p",{css:qx,children:t})]}),r.jsx(jf,{label:u.removeLabel,size:"small",variant:"secondary",rightIcon:r.jsx(zf,{}),onClick:s})]}),a,r.jsxs("div",{css:Wx,children:[r.jsx(jf,{label:u.aboutDataLabel,size:"small",variant:"secondary",leftIcon:r.jsx(Df,{}),onClick:l}),r.jsx(Jx,{defaultValue:80,onOpacityChanged:c})]})]})]})},exports.List=kw,exports.MapControlsToolbar=({onZoomInClick:e,onZoomOutClick:n,onExpandClick:r,onShareClick:o,onPrintClick:i,onSettingsClick:s,onQuestionClick:a,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u,labels:h})=>{const p=Mf("MapControlsToolbar",h),f=[{icon:t.jsx(Kf,{}),label:p.zoomInLabel,ariaLabel:p.zoomInAriaLabel,onClick:e},{icon:t.jsx(Gf,{}),label:p.zoomOutLabel,ariaLabel:p.zoomOutAriaLabel,onClick:n,gap:!0},{icon:t.jsx(Zf,{}),label:p.expandLabel,ariaLabel:p.expandAriaLabel,onClick:r,gap:!0},{icon:t.jsx(Jf,{}),label:p.shareLabel,ariaLabel:p.shareAriaLabel,onClick:o,gap:!0},{icon:t.jsx(Xf,{}),label:p.printLabel,ariaLabel:p.printAriaLabel,onClick:i,gap:!0},{icon:t.jsx(Yf,{}),label:p.settingsLabel,ariaLabel:p.settingsAriaLabel,onClick:s,gap:!0},{icon:t.jsx(Qf,{}),label:p.helpLabel,ariaLabel:p.helpAriaLabel,onClick:a}];return t.jsx(Xm,{items:f,vertical:l,expanded:c,showExpandedToggle:d,ariaLabel:u||p.toolbarAriaLabel})},exports.MapMarker=db,exports.MapMarkers=ub,exports.MapPopUp=({open:e,onOpenChange:t,anchorRef:o,header:i,content:s,footer:a,placement:c="bottom",offset:d=30,closeOnEscape:u=!0,closeOnOutsideClick:h=!1,labels:p})=>{const f=Mf("MapPopUp",p),m=n.useRef(null),{refs:g,floatingStyles:v,context:b,middlewareData:y,placement:x}=vx({open:e,onOpenChange:t,placement:c,whileElementsMounted:Vy,middleware:[Xy(d),(w={fallbackAxisSideDirection:"start"},{...Hy(w),options:[w,C]}),Yy({padding:8}),Qy({element:m})]});var w,C;n.useEffect((()=>{o?.current&&g.setReference(o.current)}),[o,g]);const k=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:m}=t,g=hx(),v=by("function"==typeof c?c:()=>!1),b="function"==typeof c?v:c,y=l.useRef(!1),{escapeKey:x,outsidePress:w}=mx(f),{escapeKey:C,outsidePress:k}=mx(m),S=l.useRef(!1),$=by((e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=g?my(g.nodesRef.current,o):[];if(!x&&(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")})),E=by((e=>{var t;const n=()=>{var t;$(e),null==(t=hy(e))||t.removeEventListener("keydown",n)};null==(t=hy(e))||t.addEventListener("keydown",n)})),M=by((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const s=y.current;if(y.current=!1,"click"===d&&s)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=hy(e),l="[data-floating-ui-inert]",c=fy(o.floating).querySelectorAll(l);let u=vb(a)?a:null;for(;u&&!Ab(u);){const e=Db(u);if(Ab(e)||!vb(e))break;u=e}if(c.length&&vb(a)&&!a.matches("html,body")&&!uy(a,o.floating)&&Array.from(c).every((e=>!uy(u,e))))return;if(bb(a)&&O){const t=Ab(a),n=Rb(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(d||u)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=g&&my(g.nodesRef.current,h).some((t=>{var n;return py(e,null==(n=t.context)?void 0:n.elements.floating)}));if(py(e,o.floating)||py(e,o.domReference)||p)return;const f=g?my(g.nodesRef.current,h):[];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")})),j=by((e=>{var t;const n=()=>{var t;M(e),null==(t=hy(e))||t.removeEventListener(d,n)};null==(t=hy(e))||t.addEventListener(d,n)}));l.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),Ob()?5:0)}const u=fy(o.floating);a&&(u.addEventListener("keydown",C?E:$,C),u.addEventListener("compositionstart",l),u.addEventListener("compositionend",c)),b&&u.addEventListener(d,k?j:M,k);let h=[];return p&&(vb(o.domReference)&&(h=Pb(o.domReference)),vb(o.floating)&&(h=h.concat(Pb(o.floating))),!vb(o.reference)&&o.reference&&o.reference.contextElement&&(h=h.concat(Pb(o.reference.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(u.removeEventListener("keydown",C?E:$,C),u.removeEventListener("compositionstart",l),u.removeEventListener("compositionend",c)),b&&u.removeEventListener(d,k?j:M,k),h.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,a,b,d,n,r,p,s,x,w,$,C,E,M,k,j]),l.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,d]);const T=l.useMemo((()=>({onKeyDown:$,...u&&{[px[h]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==h&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,u,h]),O=l.useMemo((()=>({onKeyDown:$,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[fx[d]]:()=>{i.current.insideReactTree=!0}})),[$,d,i]);return l.useMemo((()=>s?{reference:T,floating:O}:{}),[s,T,O])}(b,{escapeKey:u,outsidePress:h}),S=xx(b,{role:"dialog"}),{getFloatingProps:$}=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=>bx(t,e,"reference")),t),i=l.useCallback((t=>bx(t,e,"floating")),n),s=l.useCallback((t=>bx(t,e,"item")),r);return l.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([k,S]),{x:E,y:M}=y.arrow??{x:null,y:null},j={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]];if(!e)return null;let T=d-1,O=4;return"left"!==j&&"right"!==j||(T=4,O=d-1),r.jsxs(r.Fragment,{children:[r.jsxs("div",{ref:g.setFloating,style:v,"aria-label":"Map popup dialog","aria-modal":!0,...$(),css:wx,children:[r.jsxs("div",{css:Cx,children:[i,r.jsx(Um,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":f.closeLabel})]}),r.jsx("div",{css:kx,children:s}),a?r.jsx("div",{css:Sx,children:a}):null,r.jsx("div",{ref:m,css:$x(T,O,E,M,j,d)})]}),r.jsx("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>h&&t(!1)})]})},exports.Menu=wm,exports.MobileTabBar=({defaultValue:t,tabs:o,onTabClick:i,hideLabels:s,activationMode:a="manual"})=>{const l=o.length,[c,d]=n.useState((()=>ST(o,t)));return r.jsx("div",{css:xT,children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:t||o?.[0]?.value,onValueChange:({value:e})=>(e=>{const t=ST(o,e);d(t),i&&i(e)})(e),activationMode:a,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:o.map(((t,n)=>{const{label:o,icon:i,bagdeCount:a,"aria-label":d,"aria-describedby":u,disabled:h,...p}=t,f=`${t.value}-str-status`,m=[`tab ${n+1} of ${l}`,c===n?"selected":"not selected"];h&&m.push("disabled");const g=[u,f].filter(Boolean).join(" ")||void 0;return r.jsxs(e.Tabs.Trigger,{css:wT,"aria-label":d||o,"aria-disabled":!!h||void 0,"aria-describedby":g,disabled:h,...p,children:[r.jsxs("div",{css:CT,children:[i,a?r.jsx("div",{css:kT,className:"ds-badge-count",children:a}):null]}),s?null:r.jsx("p",{children:o}),r.jsx(e.VisuallyHidden,{id:f,children:m.join(", ")})]},t.value)}))})})})},exports.Modal=({header:t,content:o,footer:i,size:s="medium",width:a,height:l,maxHeight:c,draggable:d,blocking:u,open:h,onClose:p})=>{const f=n.useRef(null);return h?r.jsx(e.Dialog.Root,{open:h,onOpenChange:p,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!d&&!u,preventScroll:!d&&!u,closeOnEscape:!u,defaultOpen:!0,children:r.jsxs(e.Portal,{children:[d?null:r.jsx(e.Dialog.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),r.jsx(_C,{disabled:!d,nodeRef:f,children:r.jsx(e.Dialog.Positioner,{ref:f,children:r.jsxs(e.Dialog.Content,{"aria-label":"Modal dialog",css:HC(s,a,l,c),children:[r.jsxs(e.Dialog.Header,{css:FC,children:[t,u?null:r.jsx(e.Dialog.CloseTrigger,{css:qC,asChild:!0,children:r.jsx(Um,{})})]}),r.jsx(e.Dialog.Body,{css:WC,children:o}),i?r.jsx(e.Dialog.Footer,{padding:"0.75rem",children:i}):null]})})})]})}):null},exports.MultiActionButton=({variant:t="primary",size:o="default",mainActionLabel:i,mainActionOnClick:s=()=>{},otherActions:a=[],disabled:l,mainActionLeftIcon:c,mainActionRightIcon:d,...u})=>{const[h,p]=n.useState(!1),f=l?`${i} action button with menu, disabled`:void 0;return r.jsxs(e.Group,{css:tg,attached:!0,tabIndex:l?0:void 0,"aria-disabled":l,"aria-label":f,role:"group",children:[r.jsx(jf,{css:{},label:i,variant:t,size:o,onClick:s,disabled:l,leftIcon:c,rightIcon:d,...u}),r.jsxs(e.Menu.Root,{onOpenChange:({open:e})=>p(e),positioning:{placement:"bottom-end"},children:[r.jsx(e.Menu.Trigger,{css:Qm(t),"data-group-item":!0,"data-last":!0,asChild:!0,children:r.jsx(jf,{style:ng,"aria-label":`Open ${i} options`,"aria-haspopup":"menu","aria-expanded":h,variant:t,size:o,leftIcon:r.jsx(If,{"aria-hidden":"true",rotate:h?"180":"0",color:w("accessible","text-on-primary-mids")||w("primary",900)}),disabled:l})}),r.jsx(rg,{children:a.map((({label:t,value:n,onClick:i})=>r.jsx(e.Menu.Item,{css:eg(o),onClick:i,value:n,children:t},n)))})]})]})},exports.Navbar=({variant:e="default",theme:t="light",logo:o,linkRouter:i,pathname:s,navigationSection:a,utilitySection:l,actionsSection:c,maxWidth:d,fixed:u,onNavbarHeightChange:h,backgroundColor:p,labels:f})=>{const m=Mf("Navbar",f),g=n.useRef(null),v=n.useRef(null),b=n.useRef(null),[y,x]=n.useState(!1),[w,C]=n.useState(-1),[k,S]=n.useState("undefined"!=typeof window&&window?.innerWidth<=KT),[$,E]=n.useState(!1),M=i,j=n.useCallback((()=>{if(v.current&&g.current&&b.current){const e=g.current.getBoundingClientRect(),t=v.current.getBoundingClientRect(),n=b.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=KT||window.innerWidth<=w?(h?.(96),x(!0)):window.innerWidth>KT&&window.innerWidth<=1440?e.right>=t.left?(h?.(96),x(!0),C(window.innerWidth)):window.innerWidth>w&&(h?.(48),x(!1),C(-1)):(h?.(48),x(!1),C(-1)),y&&(window.innerWidth<=KT||n.right>=t.left?(S(!0),h?.(48)):(S(!1),h?.(96)))}}),[w,y]);n.useEffect((()=>(j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)})),[j]);const T="condensed"===e;return r.jsxs("nav",{css:$T(y&&!k,u,p,t,T),children:[r.jsxs("div",{css:MT(y&&!k,d,T),children:[r.jsxs("div",{css:jT(y&&!k||"dark"===t,T),ref:g,children:[o?r.jsx("div",{ref:b,css:TT,children:o}):null,r.jsx("div",{css:OT(y),children:a?.map((e=>e.link?r.jsx(M,{to:e.link,href:e.link,css:LT(s===e.link,t,T),children:e.label},e.label):r.jsx(wm,{theme:t,label:e.label,fontSize:T?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),r.jsx("div",{css:AT(T),ref:v,children:k?r.jsxs("button",{type:"button",onClick:()=>E(!$),"aria-label":m.openMenuLabel,css:DT(t),children:[$?m.closeLabel:m.menuLabel,$?r.jsx(zf,{height:T?"0.75rem":"1rem",width:T?"0.75rem":"1rem"}):r.jsx(lm,{height:T?"0.75rem":"1rem",width:T?"0.75rem":"1rem"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{css:AT(T),children:l?.map(((e,t)=>r.jsx("div",{css:RT(y),children:e},t)))}),c?.length?r.jsx("div",{css:NT(y),children:c.map((e=>r.jsx(jf,{...e},e.ariaLabel)))}):null]})})]}),y&&!k?r.jsx("div",{css:ET(t,T),children:a?.map((e=>e.link?r.jsx(M,{to:e.link,href:e.link,css:LT(s===e.link,t,T),children:e.label},e.label):r.jsx(wm,{theme:t,label:e.label,fontSize:T?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,k?r.jsx(UT,{theme:t,variant:e,navigationSection:a,utilitySection:l,actionsSection:c,linkRouter:i,isOpen:$,setIsOpen:E,pathname:s,resolvedLabels:m}):null]})},exports.NavigationRail=({tabs:t=[],defaultValue:o,onTabClick:i,children:s,onOpenChange:a,labels:l})=>{const c=Mf("NavigationRail",l),[d,u]=n.useState(!1),[h,p]=n.useState(o||t?.[0]?.value),f=e=>{p(e),i&&i(e)},[m]=e.useMediaQuery(["(max-width: 48rem)"]);return m?r.jsxs(e.Tabs.Root,{defaultValue:h,onValueChange:({value:e})=>f(e),children:[r.jsx(e.Tabs.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"0.5rem",gap:"0.5rem"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{value:t.value,css:{"--indicator-color":w("primary",500),flexShrink:0,padding:"0.625rem 1rem",color:w("neutral",600),"&[data-selected]":{color:w("neutral",800),fontWeight:600}},children:t.label},t.value)))}),t.map((t=>r.jsx(e.Tabs.Content,{value:t.value,children:s},t.value)))]}):r.jsxs("div",{style:{height:"calc(100vh - 3rem - 3.5rem)",position:"fixed",top:"3rem",left:0,display:"flex"},children:[r.jsxs("div",{css:GT,children:[r.jsx(e.Tabs.Root,{defaultValue:o||t?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{f(e)},children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:t.map((t=>r.jsx(e.Tabs.Trigger,{css:ZT,"aria-label":t["aria-label"]||t.label,...t,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:"0.3125rem",className:"ds-tab-label",children:[t.icon?r.jsx("div",{css:JT,children:t.icon}):null,r.jsx("p",{children:t.label})]})},t.label)))})}),s?r.jsx(e.Collapsible.Root,{onOpenChange:({open:e})=>{u(e),a&&a(!e)},children:r.jsxs(e.Collapsible.Trigger,{css:XT,children:[r.jsx("div",{css:JT,children:d?r.jsx(Af,{}):r.jsx(Lf,{})}),r.jsxs("div",{className:"ds-tab-label",children:[r.jsx("p",{children:d?c.showLabel:c.hideLabel}),r.jsx("p",{children:c.sidebarLabel})]})]})}):null]}),s?r.jsx(e.Collapsible.Root,{defaultOpen:!0,open:!d,children:r.jsx(e.Collapsible.Content,{height:"100%",children:r.jsx("div",{css:YT,role:"tabpanel","aria-labelledby":h,children:s})})}):null]})},exports.OptionCard=({defaultValue:t,items:n,onValueChange:o})=>r.jsx(e.RadioCard.Root,{defaultValue:t,onValueChange:o,children:r.jsx(e.HStack,{alignItems:"flex-start",flexWrap:"wrap",gap:"0.75rem",children:n.map((t=>{return r.jsxs(e.RadioCard.Item,{css:gg,value:t.value,disabled:t.disabled,children:[r.jsx(e.RadioCard.ItemHiddenInput,{}),r.jsxs(e.RadioCard.ItemControl,{css:vg,children:[r.jsxs("div",{css:(o=t.variant,i.css`
|
|
3899
3902
|
width: 100%;
|
|
3900
3903
|
display: flex;
|
|
3901
3904
|
flex-direction: ${"centered"===o?"column":"row"};
|
|
3902
3905
|
align-items: center;
|
|
3903
3906
|
gap: ${k(300)};
|
|
3904
|
-
`),children:[r.jsx("div",{css:
|
|
3907
|
+
`),children:[r.jsx("div",{css:bg,children:t.icon}),r.jsxs("div",{style:{width:"100%"},children:[r.jsx("p",{css:yg(t.variant,t.disabled),"aria-label":t.label,"aria-disabled":t.disabled,children:t.label}),r.jsx("p",{css:xg(t.variant,t.disabled),"aria-label":t.caption,"aria-disabled":t.disabled,children:t.caption})]})]}),r.jsx(e.RadioCard.ItemIndicator,{css:wg(t.variant)})]}),t.children&&"expanded"===t.variant?r.jsx(e.RadioCard.ItemAddon,{css:(n=t.disabled,i.css`
|
|
3905
3908
|
width: 100%;
|
|
3906
3909
|
border-top: ${E(100)} solid
|
|
3907
3910
|
${w("neutral",300)};
|
|
@@ -3909,7 +3912,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3909
3912
|
padding: 0;
|
|
3910
3913
|
padding-top: ${k(200)};
|
|
3911
3914
|
color: ${n?w("neutral",500):"inherit"};
|
|
3912
|
-
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,o}))})}),exports.Pagination=
|
|
3915
|
+
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,o}))})}),exports.Pagination=jw,exports.Panel=({header:e,content:t,footer:o,variant:i="fixed",width:s})=>{const a=n.useId(),[l,c]=n.useState(void 0),[d,u]=n.useState(void 0),h=n.useRef(null),p=n.useRef(null);n.useEffect((()=>{c(h?.current?.getBoundingClientRect()?.height),u(p?.current?.getBoundingClientRect()?.height)}),[e,o]);return r.jsxs("div",{role:"region","aria-labelledby":e?a:void 0,css:[UC(s),"fixed"===i?KC:GC],children:[e?r.jsx("div",{id:a,css:ZC,ref:h,children:e}):null,r.jsx("div",{css:JC(l,d),children:t}),o?r.jsx("div",{css:XC,ref:p,children:o}):null]})},exports.Password=({label:e,caption:t,required:o,disabledRules:s,onChange:a,minLength:l=8,hideValidations:c,labels:d})=>{const u=Mf("Password",d),[h,p]=n.useState(!1),[f,m]=n.useState(""),[g,v]=n.useState({strength:"very-weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1}),b={"very-weak":u.strengthVeryWeak,weak:u.strengthWeak,medium:u.strengthMedium,strong:u.strengthStrong,"very-strong":u.strengthVeryStrong};return r.jsxs("div",{css:Lv,children:[r.jsxs("p",{css:Av,"aria-label":e,children:[o?r.jsx("span",{children:"*"}):null,e]}),r.jsx("p",{css:Rv,"aria-label":t,children:t}),r.jsxs("div",{css:Nv,children:[r.jsx(ov,{type:h?"text":"password","aria-label":e,value:f,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...g};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"),m(e),v(t),a&&a({...t,password:e})})(e.target.value)}),r.jsx(jf,{label:h?u.hideLabel:u.showLabel,variant:"secondary",leftIcon:h?r.jsx(_f,{}):r.jsx(Bf,{}),"aria-label":h?u.hidePasswordLabel:u.showPasswordLabel,onClick:()=>p(!h),type:"button"})]}),f&&!c?r.jsxs("div",{id:"password-guidelines",css:Dv,"aria-live":"polite",children:[r.jsxs("p",{css:(y=g.strength,i.css`
|
|
3913
3916
|
font-size: ${C(400)};
|
|
3914
3917
|
line-height: ${S(600)};
|
|
3915
3918
|
font-weight: 400;
|
|
@@ -3920,13 +3923,13 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3920
3923
|
font-weight: 700;
|
|
3921
3924
|
color: ${w("medium"===y?"warning":"strong"===y||"very-strong"===y?"success":"error",900)};
|
|
3922
3925
|
}
|
|
3923
|
-
`),"aria-live":"polite",role:"status",children:[u.strengthPrefix," ",r.jsx("span",{children:b[g.strength]})]}),r.jsx("div",{css:
|
|
3926
|
+
`),"aria-live":"polite",role:"status",children:[u.strengthPrefix," ",r.jsx("span",{children:b[g.strength]})]}),r.jsx("div",{css:Iv(g.strength),children:r.jsx("div",{})}),r.jsxs("div",{css:Pv(g.length),"aria-label":`${u.minLengthRule(l)}. ${g.length?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:g.length?r.jsx(Rf,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):r.jsx(zf,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),r.jsx("p",{children:u.minLengthRule(l)})]}),s?.uppercase?null:r.jsxs("div",{css:Pv(g.uppercase),"aria-label":`${u.uppercaseRule}. ${g.uppercase?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:g.uppercase?r.jsx(Rf,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):r.jsx(zf,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),r.jsx("p",{children:u.uppercaseRule})]}),s?.lowercase?null:r.jsxs("div",{css:Pv(g.lowercase),"aria-label":`${u.lowercaseRule}. ${g.lowercase?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:g.lowercase?r.jsx(Rf,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):r.jsx(zf,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),r.jsx("p",{children:u.lowercaseRule})]}),s?.numbers?null:r.jsxs("div",{css:Pv(g.numbers),"aria-label":`${u.numberRule}. ${g.numbers?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:g.numbers?r.jsx(Rf,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):r.jsx(zf,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),r.jsx("p",{children:u.numberRule})]}),s?.specialCharacters?null:r.jsxs("div",{css:Pv(g.specialCharacters),"aria-label":`${u.specialCharRule}. ${g.specialCharacters?u.requirementMet:u.requirementNotMet}`,children:[r.jsx("div",{children:g.specialCharacters?r.jsx(Rf,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):r.jsx(zf,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),r.jsx("p",{children:u.specialCharRule})]})]}):null]});var y},exports.ProgressBar=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),r.jsx("div",{css:RO,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:r.jsx("div",{css:NO(t)})})},exports.QualitativeAttribute=({type:e,label:t,caption:o,color:i,onActionClick:s,showActionButton:a,pointIcon:l=r.jsx(em,{color:"#006D2C"}),ariaLabelType:c="",labels:d})=>{const u=Mf("QualitativeAttribute",d),[h,p]=n.useState(!0),f=n.useId(),m=n.useId(),g="raster"===e,v="line"===e,b="point"===e,y=n.useId(),x=n.useMemo((()=>{const e=h?u.visibleText:u.hiddenText;let n=c??`${c},`;return v&&(n=u.linePrefix),u.currentlyTemplate(String(t),o,n,e)}),[h,e,t,o,c,u]),w=h?u.hideLabel:u.showLabel;return r.jsxs("div",{css:ew,children:[r.jsx("p",{id:y,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:x}),r.jsxs("div",{css:tw,children:[r.jsxs("div",{children:[g&&r.jsx("div",{css:Xx(i)}),v&&r.jsx("div",{css:Yx(i)}),b&&r.jsx("div",{css:Qx(i),children:l})]}),r.jsxs("div",{children:[r.jsx("p",{id:f,css:nw,children:t}),o?r.jsx("p",{id:m,css:rw,children:o}):null]})]}),s&&a?r.jsx("div",{css:ow,children:r.jsx(jf,{type:"button",variant:"borderless",label:String(w),rightIcon:h?r.jsx(_f,{}):r.jsx(Bf,{}),"aria-pressed":h,"aria-labelledby":`${y} ${f}`,onClick:()=>{p((e=>!e)),s?.()}})}):null]})},exports.Radio=$g,exports.RadioGroup=Eg,exports.RadioList=({label:t,caption:n,name:o,radios:s,defaultValue:a,onCheckedChange:l,errorMessage:c,horizontal:d,variant:u="default",required:h,labels:p})=>{const f=Mf("RadioList",p),m=`${t}. ${n?`${n}.`:""} ${h?f.requiredLabel:f.optionalLabel} ${c?`${f.errorPrefix} ${c}.`:""} `;return r.jsxs(e.Group,{css:zv,"aria-roledescription":"group","aria-label":m,children:[c?r.jsx("div",{css:Hv}):null,r.jsxs("div",{css:(g=!!c,i.css`
|
|
3924
3927
|
margin-left: ${g?"1.1875rem":"0"};
|
|
3925
|
-
`),children:[r.jsxs("p",{css:
|
|
3928
|
+
`),children:[r.jsxs("p",{css:Vv,"aria-label":t,children:[h&&r.jsx("span",{"aria-label":f.requiredSymbolLabel,children:"*"}),t]}),r.jsx("p",{css:Bv,"aria-label":n,children:n}),c?r.jsx("p",{css:Fv,"aria-label":c,children:c}):null,r.jsx("div",{css:_v,children:r.jsx(Eg,{name:o,value:a,onChange:l,horizontal:d&&"card"!==u,children:s.map((e=>r.jsx($g,{css:"card"===u?qv:{},...e},e.value)))})})]})]});var g},exports.RichTextEditor=({defaultValue:e="",disabled:t=!1,ariaLabel:n,placeholder:o,minHeight:i,visibleControls:s=Fm,onChange:a,labels:c})=>{const d=Mf("RichTextEditor",c),u=n||d.editorAriaLabel,h=o||d.placeholder,p=i,f=pf({extensions:[ap.configure({link:!1}),ru.configure({openOnClick:!1,autolink:!0,defaultProtocol:"https"}),oc,ip,qu.configure({placeholder:h,emptyEditorClass:"is-editor-empty"}),Wu,Uu,Ku.configure({types:["paragraph","heading"]}),th],content:e,editable:!t,shouldRerenderOnTransaction:!0,immediatelyRender:!1,onUpdate:({editor:e})=>{a?.(e.getHTML())},editorProps:{attributes:{"aria-label":u}}},[h,u]);return l.useEffect((()=>{f&&f.setEditable(!t)}),[f,t]),r.jsxs(Hm.Root,{editor:f,disabled:t,css:{"& .ProseMirror":{minHeight:p||0}},children:[r.jsx(Hm.Toolbar,{children:r.jsxs(Hm.ControlGroup,{children:[s.includes("undo")?r.jsx(zm,{label:d.undoTooltip}):null,s.includes("redo")?r.jsx(Vm,{label:d.redoTooltip}):null,s.includes("fontFamily")?r.jsx(jm,{label:d.fontFamilyTooltip}):null,s.includes("fontSize")?r.jsx(Tm,{label:d.fontSizeTooltip}):null,s.includes("bold")?r.jsx(Om,{label:d.boldTooltip}):null,s.includes("italic")?r.jsx(Lm,{label:d.italicTooltip}):null,s.includes("underline")?r.jsx(Am,{label:d.underlineTooltip}):null,s.includes("strikethrough")?r.jsx(Rm,{label:d.strikethroughTooltip}):null,s.includes("bulletList")?r.jsx(Nm,{label:d.bulletListTooltip}):null,s.includes("orderedList")?r.jsx(Dm,{label:d.orderedListTooltip}):null,s.includes("link")?r.jsx(Im,{label:d.linkTooltip}):null,s.includes("image")?r.jsx(Pm,{label:d.imageTooltip}):null]})}),r.jsx(Hm.Content,{})]})},exports.SSOButtons=qm,exports.ScaleBar=({colors:e,values:t,subLabels:n,isGradient:o})=>{return r.jsxs("div",{css:iw,children:[o?r.jsx("div",{css:(s=dw(e),i.css`
|
|
3926
3929
|
height: ${k(500)};
|
|
3927
3930
|
width: 100%;
|
|
3928
3931
|
margin-bottom: ${k(200)};
|
|
3929
3932
|
border: ${E(100)} solid ${w("neutral",300)};
|
|
3930
3933
|
border-radius: ${$(300)};
|
|
3931
3934
|
${s?`background: ${s};`:""}
|
|
3932
|
-
`)}):r.jsx("div",{css:aw,children:e?.map(((e,n)=>r.jsx("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),r.jsx("div",{css:lw,children:t?.map((e=>r.jsx("div",{style:{width:o?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:cw,children:e})},e)))}),n&&n.length?r.jsx("div",{css:lw,children:n.map((e=>r.jsx("div",{style:{width:o?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:dw,style:{width:"100%"},children:e})},e)))}):null]});var s},exports.Search=({placeholder:t,disabled:o,size:i="default",options:s=[],resultsMaxHeight:a=50,isLoading:l=!1,displayResults:c="text",onSelect:d,onQueryChange:h,onClear:p,renderResults:f,labels:m})=>{const g=Mf("Search",m),[v,b]=n.useState(""),{open:y,onOpen:x,onClose:C}=e.useDisclosure(),[k,S]=n.useState(s),[$,E]=n.useState(-1),[M,j]=n.useState(!1),T=n.useRef(null),O=`search-results-${n.useId()}`,L=e=>{const t=s.find((t=>t.id===e||t.label===e));t&&(d?.(t),b(""),C())};n.useEffect((()=>{if(h?.(v),!v)return void S(s);const e=s.filter((e=>e.id?.toLowerCase().includes(v.toLowerCase())||e.label.toLowerCase().includes(v.toLowerCase())||e.caption?.toLowerCase().includes(v.toLowerCase()))).map((e=>({id:e.id,label:e.label,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>L(e.id||e.label)})));S(e),x()}),[v]),n.useEffect((()=>{function e(e){y&&T.current&&!T.current.contains(e.target)&&C()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[y]);const A=v.length?r.jsx(Km,{onClick:()=>{b(""),p?.()}}):null,R="none"!==c&&!!v.length&&k.length>0&&y;let N=w("neutral",500);o?N=w("neutral",500):M&&(N=w("primary",700));const D="small"===i?"1rem":"1.25rem",I=u(a);return r.jsxs("div",{ref:T,style:{position:"relative",width:"100%"},children:[r.jsx(e.InputGroup,{startElement:r.jsx(hm,{width:D,height:D,fill:N}),endElement:A,children:r.jsx(iv,{autoComplete:"off",placeholder:t||g.filterPlaceholder,onChange:e=>{const{value:t}=e.target;b(t)},onFocus:()=>j(!0),onBlur:()=>j(!1),value:v,label:"",style:{paddingLeft:"2.5rem"},type:"search","aria-label":t||g.filterAriaLabel,"aria-expanded":R,"aria-controls":O,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,noMarginBottom:!0,onKeyDown:e=>{if(R){if("ArrowDown"===e.key&&(e.preventDefault(),E((e=>Math.min(e+1,k.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),E((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=k[$];L(e.id||e.label)}"Escape"===e.key&&C()}}})}),(R||l&&!!v.length)&&"custom"===c&&f&&!l&&f({items:k,highlightedIndex:$,query:v,onSelect:L}),(R||l&&!!v.length)&&r.jsx(e.Portal,{container:T,children:r.jsxs(e.Box,{position:"absolute",width:"100%",backgroundColor:"white",border:"custom"===c?"none":"0.0625rem solid",borderColor:"gray.200",borderRadius:"md",zIndex:1e3,overflowY:"auto",maxHeight:I,children:[l&&r.jsx(e.Box,{padding:"1rem",children:r.jsx(e.Spinner,{})}),"text"===c&&!l&&r.jsx(cO,{highlightedIndex:$,items:k,query:v,onSelect:L}),"list"===c&&!l&&r.jsx(Sw,{items:k,highlightedIndex:$})]})})]})},exports.Select=Lv,exports.Sheet=({header:e,content:t,footer:o,open:i=!1,onClose:s,minimizedHeight:a,midHeight:l=200,maxFullHeight:c,defaultSnap:d="minimized",className:u,blocking:h,zIndex:p=1e3})=>{const f=n.useRef(null),m=n.useRef([]),[g,v]=n.useState(null),b=window.innerWidth>768,y=m.current;let x="Expand sheet";if(null!=g){const e=hT(g,y);e>0&&e<y.length-1?x="Make full screen":e===y.length-1&&(x="Expanded sheet")}const w=!(null==g||!y.length||hT(g,y)!==y.length-1);return r.jsx(cT,{ref:f,css:uT(!!e,p),className:u,open:i,onDismiss:s,header:r.jsxs("div",{children:[r.jsx("button",{type:"button",disabled:w,"aria-label":x,css:dT,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=y[y.length-1];if(b)return void f.current?.snapTo?.((()=>t));const n=g??y[0];let r=y.findIndex((e=>e>n));-1===r&&(r=y.length-1);const o=y[r];f.current?.snapTo?.((()=>o))},children:r.jsx("div",{})}),r.jsx("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:x}),e]}),footer:o,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:n})=>{const r=[20,a||e,l+(o?n:0),c||t-t/6];return m.current=r,r},onSpringEnd:()=>{const e=f.current?.height;e&&v(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:n})=>{let r=20;return"minimized"===d?r=a||e:"mid"===d?r=l+(o?n:0):"full"===d&&(r=c||t-t/6),r},blocking:h,children:i?t:null})},exports.SimpleMapPin=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:s="simple-pin"})=>t.jsx(ub,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:s}),exports.Slider=Ig,exports.SliderInput=({label:e,caption:t,size:o="default",sliderItem:i,required:s,onChange:a})=>{const[l,c]=n.useState(i.value||[]),d=(e,t)=>{const n=e.target.value,r=[...l];let o=n?parseInt(n,10):n;const s=i.min||0,a=i.max||100;o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>a?a:o,r[t]=o,c(r)},u=(e,t)=>{const n=e.target.value||"0",r=[...l];let o=parseInt(n,10);const s=i.min||0,d=i.max||100;if(o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>d?d:o,2===l?.length){o=Number.isNaN(o)?s:o;const e=l[0],n=l[1];0===t?(o=o<s?s:o,o=o>n?n:o):1===t&&(o=o<e?e:o,o=o>d?d:o)}r[t]=o,c(r),a&&a(r)};return r.jsxs("div",{children:[r.jsxs("p",{css:Uv(o),"aria-label":e,children:[s?r.jsx("span",{children:"*"}):null,e]}),t?r.jsx("p",{css:Kv(o),"aria-label":t,children:t}):null,r.jsxs("div",{css:Gv,children:[i.step&&i.marks?r.jsx(Lv,{items:i.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"5.625rem"},value:[`${l?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));c(t),a&&a(t)}}):r.jsx(iv,{"aria-label":e,min:i.min,max:i.max,value:l?.[0],type:"number",onChange:e=>d(e,0),onBlur:e=>u(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx(Ig,{css:{},...i,value:l,"aria-label":2===l?.length?[`${e} minimum`,`${e} maximum`]:[e],onValueChangeEnd:e=>{c(e.value),a&&a(e.value)}}),2===l?.length?r.jsx(iv,{"aria-label":e,min:i.min,max:i.max,value:l?.[1],type:"number",onChange:e=>d(e,1),onBlur:e=>u(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},exports.StepProgressIndicator=({steps:e,currentStep:t,labels:n})=>{const o=Mf("StepProgressIndicator",n);return r.jsxs("div",{css:IO,children:[e.map(((e,n)=>r.jsxs("div",{css:PO,children:[r.jsx("button",{css:zO(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":o.currentStepLabel(n+1,e.label||"",t>n+1),"data-active":t>=n+1,children:t>n+1?r.jsx(Rf,{height:"1rem",width:"1rem"}):n+1}),e.label?r.jsx("p",{css:VO(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),r.jsx("div",{css:BO,children:r.jsx("div",{css:_O})})]})},exports.Switch=zg,exports.TabBar=({variant:t="panel",defaultValue:o,tabs:i,onTabClick:s,activationMode:a="manual"})=>{const[l,c]=n.useState(sO(i,o)||0);return r.jsx("div",{css:eO(t),children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c(sO(i,t=e)),void(s&&s(t));var t},activationMode:a,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((o,i)=>r.jsxs(n.Fragment,{children:["view"===t&&1===i&&"left"===aO(l)?r.jsx("div",{css:rO}):null,r.jsx(e.Tabs.Trigger,{css:[tO,"view"===t&&oO,"panel"===t&&nO,"transparent"===t&&iO],"aria-label":o["aria-label"]||o.label,...o,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"0.3125rem",children:[o.icon,o.label]})},o.label),"view"===t&&1===i&&"right"===aO(l)?r.jsx("div",{css:rO}):null]},o.label)))})})})},exports.Table=({columns:t,data:o=[],renderRow:i,striped:s,stickyHeader:a,pagination:l,selectable:c,selectedRows:d,variant:u="default",onSortColumn:h,onPageSizeChange:p,onPageChange:f,onAllItemsSelected:m,loading:g,height:v,labels:b})=>{const y=Mf("Table",b),[x,C]=n.useState({key:"",order:""}),k=n.useRef({}),[S,$]=n.useState({}),{totalItems:E=o.length,currentPage:M=1,pageSize:j=10,showItemCount:T,showItemCountText:O}=l||{},L=(e,t)=>{C({key:e,order:t}),h&&h({key:e,order:t})},A=d?.length===o?.length,R=d&&d.length>0&&!A,N=n.useMemo((()=>t.reduce(((e,t)=>(e[t.key]=t,e)),{})),[t]),D=t.filter((e=>e.sticky)).map((e=>e.key)),I=D.length>0?D[D.length-1]:void 0,P=n.useCallback((()=>{const e={};let n=0;t.filter((e=>e.sticky)).forEach((t=>{e[t.key]=n,n+=k.current[t.key]?.offsetWidth||0})),$(e)}),[t]);n.useEffect((()=>{P()}),[P,o.length]),n.useEffect((()=>{const e=()=>{P()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[P]);const z=e=>{const t=N[e]?.width;return t?{width:t,minWidth:t}:{}},V=e=>{const t=S[e.key];return void 0===t?{}:{"data-sticky":"start","data-sticky-last":e.key===I?"true":void 0,left:`${t}px`}},B=e=>{const t=z(e),n=S[e];return void 0===n?t:{...t,"data-sticky":"start","data-sticky-last":e===I?"true":void 0,left:`${n}px`}};return r.jsxs("div",{children:[r.jsx("div",{css:v?zw(v):void 0,children:r.jsxs(e.Table.Root,{css:Ow(u,a),striped:s,stickyHeader:a,interactive:!0,children:[r.jsx(e.Table.Header,{css:Lw(u),children:r.jsxs(e.Table.Row,{children:[c?r.jsx(e.Table.ColumnHeader,{children:r.jsx(dg,{name:"header-checkbox","aria-label":"Select all rows",checked:A,indeterminate:R,onCheckedChange:({checked:e})=>{m&&m(e)}})}):null,t.map((t=>r.jsx(e.Table.ColumnHeader,{ref:e=>{k.current[t.key]=e},...z(t.key),role:t.sortable?"columnheader":void 0,"aria-sort":t.sortable&&"asc"===x.order?"ascending":t.sortable&&"desc"===x.order?"descending":void 0,...V(t),children:r.jsxs("div",{css:Aw,children:[t.label,t.sortable?r.jsxs("div",{css:Rw,children:[r.jsx(Of,{css:Nw(x.key===t.key&&"asc"===x.order),icon:r.jsx(If,{style:{transform:"rotate(180deg)"}}),onClick:()=>L(t.key,"asc"),"aria-label":y.ascendingLabel}),r.jsx(Of,{css:Nw(x.key===t.key&&"desc"===x.order),icon:r.jsx(If,{}),onClick:()=>L(t.key,"desc"),"aria-label":y.descendingLabel})]}):null]})},t.key)))]})}),r.jsx(e.Table.Body,{css:Pw,children:o.map((e=>r.jsx(n.Fragment,{children:i(e,{className:d?.some((t=>t.id===e.id))?"selected":void 0,getCellProps:B})},e.id)))})]})}),g?r.jsx("div",{css:Vw,children:r.jsx(e.Spinner,{size:"lg",color:w("primary",500)})}):null,r.jsxs("div",{css:Dw,children:[r.jsx("div",{children:T?r.jsx(mw,{pageSize:j,currentPage:M,totalItems:E,onPageSizeChange:p,showItemCountText:O}):null}),l?r.jsx("div",{css:Iw,children:r.jsx(Tw,{totalItems:E,pageSize:j,currentPage:M,onPageChange:f})}):null]})]})},exports.TableCell=_w,exports.TableRow=Bw,exports.Tag=jv,exports.TextInput=iv,exports.Textarea=({label:t,caption:o,placeholder:i,errorMessage:s,required:a,disabled:l,size:c="default",defaultValue:d="",onChange:u,minLength:h,maxLength:p,labels:f,...m})=>{const g=Mf("Textarea",f),[v,b]=n.useState(d),[y,x]=n.useState(!1),[w,C]=n.useState(!1),[k,S]=n.useState(""),$=n.useId(),E=n.useId(),M=n.useId();n.useEffect((()=>{const{length:e}=d;h&&e<h&&e>0?(x(e<h),C(!1),S(g.enterAtLeastChars(h-e))):h&&0===e&&S(g.minChars(h)),p&&e>0?(x(!1),C(e>p),S(g.charsRemaining(p-e))):p&&0===e&&S(g.maxChars(p))}),[]);const j=!!s||y||w,T=[o?$:null,j?E:null,k?M:null].filter(Boolean).join(" ")||void 0;return r.jsxs("div",{css:Zv(c),children:[j?r.jsx("div",{css:Jv}):null,r.jsxs(e.Field.Root,{required:a,invalid:j,gap:"0",style:{marginLeft:j?"1.1875rem":"0px"},children:[t?r.jsxs(e.Field.Label,{css:Xv(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":g.requiredSymbolLabel}),t,a?"":r.jsx("span",{children:g.optionalSuffix})]}):null,o?r.jsx(e.Field.HelperText,{id:$,css:Yv(c,l),children:o}):null,s?r.jsx(e.Field.ErrorText,{id:E,css:eb,"aria-label":`${g.errorPrefix} ${s}`,"aria-live":"polite",children:s}):null,r.jsx(e.Textarea,{placeholder:i,disabled:l,css:tb(c,v,d),onChange:e=>{b(e.target.value);const{length:t}=e.target.value;h&&p?(x(t<h),C(t>p),S(g.charsRemaining(p-t))):h?(x(t<h),C(!1),S(t<h?g.enterAtLeastChars(h-t):"")):p&&(C(t>p),x(!1),S(g.charsRemaining(p-t))),u&&u(e)},value:v,"aria-label":t||i,"aria-describedby":T,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...m}),y&&h?r.jsx(e.Field.ErrorText,{id:E,css:eb,style:{marginTop:"0.5rem",fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:g.needMoreChars(h-v.length)}):null,w&&p?r.jsx(e.Field.ErrorText,{id:E,css:eb,style:{marginTop:"0.5rem",fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:g.tooManyChars(v.length-p)}):null,!k||w||y?null:r.jsx(e.Field.HelperText,{id:M,css:Qv,"aria-live":"polite",children:k})]})]})},exports.Toast=({labels:t})=>{const n=Mf("Toast",t);return Object.keys(GO).map((t=>r.jsx(e.Portal,{children:r.jsx(e.Toaster,{toaster:GO[t],insetInline:{mdDown:"4"},children:o=>r.jsxs(e.Toast.Root,{css:HO,width:{md:"sm"},children:[r.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Df,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===o.type?r.jsx(e.Spinner,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-500)"}):null,"success"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Hf,{color:"var(--chakra-colors-success-500)"}):null,"warning"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Ff,{color:"var(--chakra-colors-warning-500)"}):null,"error"===o.type?o.meta?.icon?o.meta.icon:r.jsx(qf,{color:"var(--chakra-colors-error-500)"}):null,r.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[r.jsx(e.Toast.Title,{css:FO,"aria-label":`${o.title}`,children:o.title}),o.description?r.jsx(e.Toast.Title,{css:qO,"aria-label":`${o.description}`,children:o.description}):null]})]}),o.action||o.meta?.closable?r.jsxs(e.Stack,{flexDirection:"row",children:[o.action?r.jsx(jf,{css:WO,label:o.action.label,size:"small",variant:"info"===o.type?"primary":"secondary",onClick:()=>{o?.action?.onClick&&o.action.onClick(),GO[t].dismiss()}}):null,o.meta?.closable?r.jsx(jf,{css:UO,label:o.meta.closableLabel,"aria-label":o.meta?.closableLabel||n.dismissLabel,leftIcon:r.jsx(zf,{height:"0.625rem!",width:"0.625rem!"}),size:"small",variant:"secondary",onClick:()=>{o.meta?.onClose&&o.meta.onClose(),GO[t].dismiss()}}):null]}):null]})})},t)))},exports.Toolbar=Ym,exports.Tooltip=$m,exports.designSystemStyles=x,exports.designSystemStylesForTailwind=y,exports.getThemedBorderWidth=E,exports.getThemedColor=w,exports.getThemedFontSize=C,exports.getThemedLineHeight=S,exports.getThemedRadius=$,exports.getThemedSpacing=k,exports.showToast=e=>{GO[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel,onClose:e.onClose},...e})};
|
|
3935
|
+
`)}):r.jsx("div",{css:sw,children:e?.map(((e,n)=>r.jsx("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),r.jsx("div",{css:aw,children:t?.map((e=>r.jsx("div",{style:{width:o?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:lw,children:e})},e)))}),n&&n.length?r.jsx("div",{css:aw,children:n.map((e=>r.jsx("div",{style:{width:o?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:r.jsx("p",{css:cw,style:{width:"100%"},children:e})},e)))}):null]});var s},exports.Search=({placeholder:t,disabled:o,size:i="default",options:s=[],resultsMaxHeight:a=50,isLoading:l=!1,displayResults:c="text",onSelect:d,onQueryChange:h,onClear:p,renderResults:f,labels:m})=>{const g=Mf("Search",m),[v,b]=n.useState(""),{open:y,onOpen:x,onClose:C}=e.useDisclosure(),[k,S]=n.useState(s),[$,E]=n.useState(-1),[M,j]=n.useState(!1),T=n.useRef(null),O=`search-results-${n.useId()}`,L=e=>{const t=s.find((t=>t.id===e||t.label===e));t&&(d?.(t),b(""),C())};n.useEffect((()=>{if(h?.(v),!v)return void S(s);const e=s.filter((e=>e.id?.toLowerCase().includes(v.toLowerCase())||e.label.toLowerCase().includes(v.toLowerCase())||e.caption?.toLowerCase().includes(v.toLowerCase()))).map((e=>({id:e.id,label:e.label,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>L(e.id||e.label)})));S(e),x()}),[v]),n.useEffect((()=>{function e(e){y&&T.current&&!T.current.contains(e.target)&&C()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[y]);const A=v.length?r.jsx(Um,{onClick:()=>{b(""),p?.()}}):null,R="none"!==c&&!!v.length&&k.length>0&&y;let N=w("neutral",500);o?N=w("neutral",500):M&&(N=w("primary",700));const D="small"===i?"1rem":"1.25rem",I=u(a);return r.jsxs("div",{ref:T,style:{position:"relative",width:"100%"},children:[r.jsx(e.InputGroup,{startElement:r.jsx(hm,{width:D,height:D,fill:N}),endElement:A,children:r.jsx(ov,{autoComplete:"off",placeholder:t||g.filterPlaceholder,onChange:e=>{const{value:t}=e.target;b(t)},onFocus:()=>j(!0),onBlur:()=>j(!1),value:v,label:"",style:{paddingLeft:"2.5rem"},type:"search","aria-label":t||g.filterAriaLabel,"aria-expanded":R,"aria-controls":O,role:"combobox","aria-autocomplete":"list",disabled:o,size:i,noMarginBottom:!0,onKeyDown:e=>{if(R){if("ArrowDown"===e.key&&(e.preventDefault(),E((e=>Math.min(e+1,k.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),E((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=k[$];L(e.id||e.label)}"Escape"===e.key&&C()}}})}),(R||l&&!!v.length)&&"custom"===c&&f&&!l&&f({items:k,highlightedIndex:$,query:v,onSelect:L}),(R||l&&!!v.length)&&r.jsx(e.Portal,{container:T,children:r.jsxs(e.Box,{position:"absolute",width:"100%",backgroundColor:"white",border:"custom"===c?"none":"0.0625rem solid",borderColor:"gray.200",borderRadius:"md",zIndex:1e3,overflowY:"auto",maxHeight:I,children:[l&&r.jsx(e.Box,{padding:"1rem",children:r.jsx(e.Spinner,{})}),"text"===c&&!l&&r.jsx(lO,{highlightedIndex:$,items:k,query:v,onSelect:L}),"list"===c&&!l&&r.jsx(kw,{items:k,highlightedIndex:$})]})})]})},exports.Select=Ov,exports.Sheet=({header:e,content:t,footer:o,open:i=!1,onClose:s,minimizedHeight:a,midHeight:l=200,maxFullHeight:c,defaultSnap:d="minimized",className:u,blocking:h,zIndex:p=1e3})=>{const f=n.useRef(null),m=n.useRef([]),[g,v]=n.useState(null),b=window.innerWidth>768,y=m.current;let x="Expand sheet";if(null!=g){const e=uT(g,y);e>0&&e<y.length-1?x="Make full screen":e===y.length-1&&(x="Expanded sheet")}const w=!(null==g||!y.length||uT(g,y)!==y.length-1);return r.jsx(lT,{ref:f,css:dT(!!e,p),className:u,open:i,onDismiss:s,header:r.jsxs("div",{children:[r.jsx("button",{type:"button",disabled:w,"aria-label":x,css:cT,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=y[y.length-1];if(b)return void f.current?.snapTo?.((()=>t));const n=g??y[0];let r=y.findIndex((e=>e>n));-1===r&&(r=y.length-1);const o=y[r];f.current?.snapTo?.((()=>o))},children:r.jsx("div",{})}),r.jsx("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:x}),e]}),footer:o,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:n})=>{const r=[20,a||e,l+(o?n:0),c||t-t/6];return m.current=r,r},onSpringEnd:()=>{const e=f.current?.height;e&&v(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:n})=>{let r=20;return"minimized"===d?r=a||e:"mid"===d?r=l+(o?n:0):"full"===d&&(r=c||t-t/6),r},blocking:h,children:i?t:null})},exports.SimpleMapPin=({onClick:e,triggerRef:n,showFocusState:r,count:o,mode:i,variant:s="simple-pin"})=>t.jsx(db,{count:o,mode:i,onClick:e,ref:n,showFocusState:r,variant:s}),exports.Slider=Dg,exports.SliderInput=({label:e,caption:t,size:o="default",sliderItem:i,required:s,onChange:a})=>{const[l,c]=n.useState(i.value||[]),d=(e,t)=>{const n=e.target.value,r=[...l];let o=n?parseInt(n,10):n;const s=i.min||0,a=i.max||100;o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>a?a:o,r[t]=o,c(r)},u=(e,t)=>{const n=e.target.value||"0",r=[...l];let o=parseInt(n,10);const s=i.min||0,d=i.max||100;if(o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>d?d:o,2===l?.length){o=Number.isNaN(o)?s:o;const e=l[0],n=l[1];0===t?(o=o<s?s:o,o=o>n?n:o):1===t&&(o=o<e?e:o,o=o>d?d:o)}r[t]=o,c(r),a&&a(r)};return r.jsxs("div",{children:[r.jsxs("p",{css:Wv(o),"aria-label":e,children:[s?r.jsx("span",{children:"*"}):null,e]}),t?r.jsx("p",{css:Uv(o),"aria-label":t,children:t}):null,r.jsxs("div",{css:Kv,children:[i.step&&i.marks?r.jsx(Ov,{items:i.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"5.625rem"},value:[`${l?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));c(t),a&&a(t)}}):r.jsx(ov,{"aria-label":e,min:i.min,max:i.max,value:l?.[0],type:"number",onChange:e=>d(e,0),onBlur:e=>u(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),r.jsx(Dg,{css:{},...i,value:l,"aria-label":2===l?.length?[`${e} minimum`,`${e} maximum`]:[e],onValueChangeEnd:e=>{c(e.value),a&&a(e.value)}}),2===l?.length?r.jsx(ov,{"aria-label":e,min:i.min,max:i.max,value:l?.[1],type:"number",onChange:e=>d(e,1),onBlur:e=>u(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},exports.StepProgressIndicator=({steps:e,currentStep:t,labels:n})=>{const o=Mf("StepProgressIndicator",n);return r.jsxs("div",{css:DO,children:[e.map(((e,n)=>r.jsxs("div",{css:IO,children:[r.jsx("button",{css:PO(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":o.currentStepLabel(n+1,e.label||"",t>n+1),"data-active":t>=n+1,children:t>n+1?r.jsx(Rf,{height:"1rem",width:"1rem"}):n+1}),e.label?r.jsx("p",{css:zO(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),r.jsx("div",{css:VO,children:r.jsx("div",{css:BO})})]})},exports.Switch=Pg,exports.TabBar=({variant:t="panel",defaultValue:o,tabs:i,onTabClick:s,activationMode:a="manual"})=>{const[l,c]=n.useState(iO(i,o)||0);return r.jsx("div",{css:QT(t),children:r.jsx(e.Tabs.Root,{width:"full",defaultValue:o||i?.[0]?.value,onValueChange:({value:e})=>{return c(iO(i,t=e)),void(s&&s(t));var t},activationMode:a,children:r.jsx(e.Tabs.List,{alignItems:"center",border:"none",children:i.map(((o,i)=>r.jsxs(n.Fragment,{children:["view"===t&&1===i&&"left"===sO(l)?r.jsx("div",{css:nO}):null,r.jsx(e.Tabs.Trigger,{css:[eO,"view"===t&&rO,"panel"===t&&tO,"transparent"===t&&oO],"aria-label":o["aria-label"]||o.label,...o,children:r.jsxs(e.Box,{display:"flex",alignItems:"center",gap:"0.3125rem",children:[o.icon,o.label]})},o.label),"view"===t&&1===i&&"right"===sO(l)?r.jsx("div",{css:nO}):null]},o.label)))})})})},exports.Table=({columns:t,data:o=[],renderRow:i,striped:s,stickyHeader:a,pagination:l,selectable:c,selectedRows:d,variant:u="default",onSortColumn:h,onPageSizeChange:p,onPageChange:f,onAllItemsSelected:m,loading:g,height:v,labels:b})=>{const y=Mf("Table",b),[x,C]=n.useState({key:"",order:""}),k=n.useRef({}),[S,$]=n.useState({}),{totalItems:E=o.length,currentPage:M=1,pageSize:j=10,showItemCount:T,showItemCountText:O}=l||{},L=(e,t)=>{C({key:e,order:t}),h&&h({key:e,order:t})},A=d?.length===o?.length,R=d&&d.length>0&&!A,N=n.useMemo((()=>t.reduce(((e,t)=>(e[t.key]=t,e)),{})),[t]),D=t.filter((e=>e.sticky)).map((e=>e.key)),I=D.length>0?D[D.length-1]:void 0,P=n.useCallback((()=>{const e={};let n=0;t.filter((e=>e.sticky)).forEach((t=>{e[t.key]=n,n+=k.current[t.key]?.offsetWidth||0})),$(e)}),[t]);n.useEffect((()=>{P()}),[P,o.length]),n.useEffect((()=>{const e=()=>{P()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[P]);const z=e=>{const t=N[e]?.width;return t?{width:t,minWidth:t}:{}},V=e=>{const t=S[e.key];return void 0===t?{}:{"data-sticky":"start","data-sticky-last":e.key===I?"true":void 0,left:`${t}px`}},B=e=>{const t=z(e),n=S[e];return void 0===n?t:{...t,"data-sticky":"start","data-sticky-last":e===I?"true":void 0,left:`${n}px`}};return r.jsxs("div",{children:[r.jsx("div",{css:v?Pw(v):void 0,children:r.jsxs(e.Table.Root,{css:Tw(u,a),striped:s,stickyHeader:a,interactive:!0,children:[r.jsx(e.Table.Header,{css:Ow(u),children:r.jsxs(e.Table.Row,{children:[c?r.jsx(e.Table.ColumnHeader,{children:r.jsx(cg,{name:"header-checkbox","aria-label":"Select all rows",checked:A,indeterminate:R,onCheckedChange:({checked:e})=>{m&&m(e)}})}):null,t.map((t=>r.jsx(e.Table.ColumnHeader,{ref:e=>{k.current[t.key]=e},...z(t.key),role:t.sortable?"columnheader":void 0,"aria-sort":t.sortable&&"asc"===x.order?"ascending":t.sortable&&"desc"===x.order?"descending":void 0,...V(t),children:r.jsxs("div",{css:Lw,children:[t.label,t.sortable?r.jsxs("div",{css:Aw,children:[r.jsx(Of,{css:Rw(x.key===t.key&&"asc"===x.order),icon:r.jsx(If,{style:{transform:"rotate(180deg)"}}),onClick:()=>L(t.key,"asc"),"aria-label":y.ascendingLabel}),r.jsx(Of,{css:Rw(x.key===t.key&&"desc"===x.order),icon:r.jsx(If,{}),onClick:()=>L(t.key,"desc"),"aria-label":y.descendingLabel})]}):null]})},t.key)))]})}),r.jsx(e.Table.Body,{css:Iw,children:o.map((e=>r.jsx(n.Fragment,{children:i(e,{className:d?.some((t=>t.id===e.id))?"selected":void 0,getCellProps:B})},e.id)))})]})}),g?r.jsx("div",{css:zw,children:r.jsx(e.Spinner,{size:"lg",color:w("primary",500)})}):null,r.jsxs("div",{css:Nw,children:[r.jsx("div",{children:T?r.jsx(fw,{pageSize:j,currentPage:M,totalItems:E,onPageSizeChange:p,showItemCountText:O}):null}),l?r.jsx("div",{css:Dw,children:r.jsx(jw,{totalItems:E,pageSize:j,currentPage:M,onPageChange:f})}):null]})]})},exports.TableCell=Bw,exports.TableRow=Vw,exports.Tag=Mv,exports.TextInput=ov,exports.Textarea=({label:t,caption:o,placeholder:i,errorMessage:s,required:a,disabled:l,size:c="default",defaultValue:d="",onChange:u,minLength:h,maxLength:p,labels:f,...m})=>{const g=Mf("Textarea",f),[v,b]=n.useState(d),[y,x]=n.useState(!1),[w,C]=n.useState(!1),[k,S]=n.useState(""),$=n.useId(),E=n.useId(),M=n.useId();n.useEffect((()=>{const{length:e}=d;h&&e<h&&e>0?(x(e<h),C(!1),S(g.enterAtLeastChars(h-e))):h&&0===e&&S(g.minChars(h)),p&&e>0?(x(!1),C(e>p),S(g.charsRemaining(p-e))):p&&0===e&&S(g.maxChars(p))}),[]);const j=!!s||y||w,T=[o?$:null,j?E:null,k?M:null].filter(Boolean).join(" ")||void 0;return r.jsxs("div",{css:Gv(c),children:[j?r.jsx("div",{css:Zv}):null,r.jsxs(e.Field.Root,{required:a,invalid:j,gap:"0",style:{marginLeft:j?"1.1875rem":"0px"},children:[t?r.jsxs(e.Field.Label,{css:Jv(c,l),"aria-label":t,children:[r.jsx(e.Field.RequiredIndicator,{"aria-label":g.requiredSymbolLabel}),t,a?"":r.jsx("span",{children:g.optionalSuffix})]}):null,o?r.jsx(e.Field.HelperText,{id:$,css:Xv(c,l),children:o}):null,s?r.jsx(e.Field.ErrorText,{id:E,css:Qv,"aria-label":`${g.errorPrefix} ${s}`,"aria-live":"polite",children:s}):null,r.jsx(e.Textarea,{placeholder:i,disabled:l,css:eb(c,v,d),onChange:e=>{b(e.target.value);const{length:t}=e.target.value;h&&p?(x(t<h),C(t>p),S(g.charsRemaining(p-t))):h?(x(t<h),C(!1),S(t<h?g.enterAtLeastChars(h-t):"")):p&&(C(t>p),x(!1),S(g.charsRemaining(p-t))),u&&u(e)},value:v,"aria-label":t||i,"aria-describedby":T,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...m}),y&&h?r.jsx(e.Field.ErrorText,{id:E,css:Qv,style:{marginTop:"0.5rem",fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:g.needMoreChars(h-v.length)}):null,w&&p?r.jsx(e.Field.ErrorText,{id:E,css:Qv,style:{marginTop:"0.5rem",fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:g.tooManyChars(v.length-p)}):null,!k||w||y?null:r.jsx(e.Field.HelperText,{id:M,css:Yv,"aria-live":"polite",children:k})]})]})},exports.Toast=({labels:t})=>{const n=Mf("Toast",t);return Object.keys(KO).map((t=>r.jsx(e.Portal,{children:r.jsx(e.Toaster,{toaster:KO[t],insetInline:{mdDown:"4"},children:o=>r.jsxs(e.Toast.Root,{css:_O,width:{md:"sm"},children:[r.jsxs(e.Stack,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Df,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===o.type?r.jsx(e.Spinner,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-500)"}):null,"success"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Hf,{color:"var(--chakra-colors-success-500)"}):null,"warning"===o.type?o.meta?.icon?o.meta.icon:r.jsx(Ff,{color:"var(--chakra-colors-warning-500)"}):null,"error"===o.type?o.meta?.icon?o.meta.icon:r.jsx(qf,{color:"var(--chakra-colors-error-500)"}):null,r.jsxs(e.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[r.jsx(e.Toast.Title,{css:HO,"aria-label":`${o.title}`,children:o.title}),o.description?r.jsx(e.Toast.Title,{css:FO,"aria-label":`${o.description}`,children:o.description}):null]})]}),o.action||o.meta?.closable?r.jsxs(e.Stack,{flexDirection:"row",children:[o.action?r.jsx(jf,{css:qO,label:o.action.label,size:"small",variant:"info"===o.type?"primary":"secondary",onClick:()=>{o?.action?.onClick&&o.action.onClick(),KO[t].dismiss()}}):null,o.meta?.closable?r.jsx(jf,{css:WO,label:o.meta.closableLabel,"aria-label":o.meta?.closableLabel||n.dismissLabel,leftIcon:r.jsx(zf,{height:"0.625rem!",width:"0.625rem!"}),size:"small",variant:"secondary",onClick:()=>{o.meta?.onClose&&o.meta.onClose(),KO[t].dismiss()}}):null]}):null]})})},t)))},exports.Toolbar=Xm,exports.Tooltip=Sm,exports.designSystemStyles=x,exports.designSystemStylesForTailwind=y,exports.getThemedBorderWidth=E,exports.getThemedColor=w,exports.getThemedFontSize=C,exports.getThemedLineHeight=S,exports.getThemedRadius=$,exports.getThemedSpacing=k,exports.showToast=e=>{KO[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel,onClose:e.onClose},...e})};
|