@usace/groundwork 1.0.2 → 1.0.3

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.
Files changed (79) hide show
  1. package/dist/groundwork.es.js +5131 -0
  2. package/dist/groundwork.umd.js +30 -0
  3. package/dist/style.css +1 -0
  4. package/package.json +11 -3
  5. package/.eslintrc.cjs +0 -18
  6. package/.github/workflows/deploy-docs.yml +0 -59
  7. package/.github/workflows/publish.yml +0 -19
  8. package/index.html +0 -13
  9. package/lib/catalyst/alert.jsx +0 -110
  10. package/lib/catalyst/avatar.jsx +0 -64
  11. package/lib/catalyst/badge.jsx +0 -72
  12. package/lib/catalyst/checkbox.jsx +0 -160
  13. package/lib/catalyst/dialog.jsx +0 -101
  14. package/lib/catalyst/dropdown.jsx +0 -202
  15. package/lib/catalyst/fieldset.jsx +0 -87
  16. package/lib/catalyst/input.jsx +0 -78
  17. package/lib/catalyst/listbox.jsx +0 -195
  18. package/lib/catalyst/pagination.jsx +0 -75
  19. package/lib/catalyst/radio.jsx +0 -144
  20. package/lib/catalyst/select.jsx +0 -78
  21. package/lib/catalyst/switch.jsx +0 -203
  22. package/lib/catalyst/textarea.jsx +0 -59
  23. package/lib/components/breadcrumbs.jsx +0 -46
  24. package/lib/components/button.jsx +0 -219
  25. package/lib/components/display/headings.jsx +0 -39
  26. package/lib/components/display/text.jsx +0 -48
  27. package/lib/components/hero.jsx +0 -51
  28. package/lib/components/layout/container.jsx +0 -13
  29. package/lib/components/layout/usace-box.jsx +0 -26
  30. package/lib/components/link.jsx +0 -18
  31. package/lib/components/table.jsx +0 -146
  32. package/lib/composite/footer/essayons.jsx +0 -12
  33. package/lib/composite/footer/footer-links.jsx +0 -33
  34. package/lib/composite/footer/index.jsx +0 -148
  35. package/lib/composite/footer/logo-banner.jsx +0 -55
  36. package/lib/composite/footer/social-links.jsx +0 -60
  37. package/lib/composite/header/index.jsx +0 -83
  38. package/lib/composite/header/navbar-links.jsx +0 -113
  39. package/lib/composite/header/usa-banner/USABanner.jsx +0 -114
  40. package/lib/composite/header/usa-banner/usa-banner.css +0 -220
  41. package/lib/composite/site-wrapper/index.jsx +0 -52
  42. package/lib/index.jsx +0 -19
  43. package/postcss.config.js +0 -6
  44. package/public/Magnifying_glass_icon.svg +0 -5
  45. package/public/armystar-logo-rb.svg +0 -4
  46. package/public/cwbi-logo.png +0 -0
  47. package/public/essayonscrest.png +0 -0
  48. package/public/icon-dot-gov.svg +0 -1
  49. package/public/icon-https.svg +0 -1
  50. package/public/nww-lucky-peak-dam.jpg +0 -0
  51. package/public/rsgis-logo.png +0 -0
  52. package/public/us_flag_small.png +0 -0
  53. package/public/usace-logo-color.svg +0 -1
  54. package/src/App.jsx +0 -38
  55. package/src/app-bundles/index.js +0 -4
  56. package/src/app-bundles/route-bundle.js +0 -36
  57. package/src/app-components/code-example.jsx +0 -17
  58. package/src/app-components/copy-button.jsx +0 -32
  59. package/src/app-components/props-table.jsx +0 -43
  60. package/src/app-components/sub-site-banner.jsx +0 -15
  61. package/src/app-pages/documentation/_docs-page.jsx +0 -31
  62. package/src/app-pages/documentation/_docs-sidebar.jsx +0 -111
  63. package/src/app-pages/documentation/_template.jsx +0 -55
  64. package/src/app-pages/documentation/app-shell/index.jsx +0 -39
  65. package/src/app-pages/documentation/app-shell/site-wrapper.jsx +0 -190
  66. package/src/app-pages/documentation/buttons/index.jsx +0 -170
  67. package/src/app-pages/documentation/index.jsx +0 -57
  68. package/src/app-pages/documentation/layout/container.jsx +0 -68
  69. package/src/app-pages/documentation/layout/index.jsx +0 -52
  70. package/src/app-pages/documentation/layout/usace-box.jsx +0 -76
  71. package/src/app-pages/documentation/navigation/breadcrumbs.jsx +0 -119
  72. package/src/app-pages/documentation/navigation/index.jsx +0 -31
  73. package/src/app-pages/documentation/types/index.jsx +0 -31
  74. package/src/app-pages/documentation/types/link.jsx +0 -72
  75. package/src/app-pages/home.jsx +0 -71
  76. package/src/index.css +0 -3
  77. package/src/main.jsx +0 -18
  78. package/tailwind.config.js +0 -31
  79. package/vite.config.js +0 -46
@@ -0,0 +1,30 @@
1
+ (function(_,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(_=typeof globalThis<"u"?globalThis:_||self,f(_.Groundwork={},_.React,_.ReactDOM))})(this,function(_,f,Ee){"use strict";function In(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=In(f),jo=In(Ee);var At={exports:{}},We={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Dn;function Po(){if(Dn)return We;Dn=1;var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(a,s,c){var d,m={},v=null,h=null;c!==void 0&&(v=""+c),s.key!==void 0&&(v=""+s.key),s.ref!==void 0&&(h=s.ref);for(d in s)r.call(s,d)&&!i.hasOwnProperty(d)&&(m[d]=s[d]);if(a&&a.defaultProps)for(d in s=a.defaultProps,s)m[d]===void 0&&(m[d]=s[d]);return{$$typeof:t,type:a,key:v,ref:h,props:m,_owner:o.current}}return We.Fragment=n,We.jsx=l,We.jsxs=l,We}var Ve={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Rn;function Fo(){return Rn||(Rn=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,g="@@iterator";function E(u){if(u===null||typeof u!="object")return null;var x=b&&u[b]||u[g];return typeof x=="function"?x:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(u){{for(var x=arguments.length,$=new Array(x>1?x-1:0),L=1;L<x;L++)$[L-1]=arguments[L];S("error",u,$)}}function S(u,x,$){{var L=w.ReactDebugCurrentFrame,A=L.getStackAddendum();A!==""&&(x+="%s",$=$.concat([A]));var H=$.map(function(M){return String(M)});H.unshift("Warning: "+x),Function.prototype.apply.call(console[u],console,H)}}var F=!1,P=!1,O=!1,I=!1,j=!1,k;k=Symbol.for("react.module.reference");function T(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||j||u===o||u===c||u===d||I||u===h||F||P||O||typeof u=="object"&&u!==null&&(u.$$typeof===v||u.$$typeof===m||u.$$typeof===l||u.$$typeof===a||u.$$typeof===s||u.$$typeof===k||u.getModuleId!==void 0))}function K(u,x,$){var L=u.displayName;if(L)return L;var A=x.displayName||x.name||"";return A!==""?$+"("+A+")":$}function B(u){return u.displayName||"Context"}function z(u){if(u==null)return null;if(typeof u.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case a:var x=u;return B(x)+".Consumer";case l:var $=u;return B($._context)+".Provider";case s:return K(u,u.render,"ForwardRef");case m:var L=u.displayName||null;return L!==null?L:z(u.type)||"Memo";case v:{var A=u,H=A._payload,M=A._init;try{return z(M(H))}catch{return null}}}return null}var U=Object.assign,W=0,te,R,ae,Q,pe,lt,He;function at(){}at.__reactDisabledLog=!0;function wc(){{if(W===0){te=console.log,R=console.info,ae=console.warn,Q=console.error,pe=console.group,lt=console.groupCollapsed,He=console.groupEnd;var u={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}W++}}function Ec(){{if(W--,W===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},u,{value:te}),info:U({},u,{value:R}),warn:U({},u,{value:ae}),error:U({},u,{value:Q}),group:U({},u,{value:pe}),groupCollapsed:U({},u,{value:lt}),groupEnd:U({},u,{value:He})})}W<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pn=w.ReactCurrentDispatcher,Fn;function Lt(u,x,$){{if(Fn===void 0)try{throw Error()}catch(A){var L=A.stack.trim().match(/\n( *(at )?)/);Fn=L&&L[1]||""}return`
18
+ `+Fn+u}}var Ln=!1,Ot;{var $c=typeof WeakMap=="function"?WeakMap:Map;Ot=new $c}function ho(u,x){if(!u||Ln)return"";{var $=Ot.get(u);if($!==void 0)return $}var L;Ln=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var H;H=Pn.current,Pn.current=null,wc();try{if(x){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(ve){L=ve}Reflect.construct(u,[],M)}else{try{M.call()}catch(ve){L=ve}u.call(M.prototype)}}else{try{throw Error()}catch(ve){L=ve}u()}}catch(ve){if(ve&&L&&typeof ve.stack=="string"){for(var N=ve.stack.split(`
19
+ `),ne=L.stack.split(`
20
+ `),G=N.length-1,q=ne.length-1;G>=1&&q>=0&&N[G]!==ne[q];)q--;for(;G>=1&&q>=0;G--,q--)if(N[G]!==ne[q]){if(G!==1||q!==1)do if(G--,q--,q<0||N[G]!==ne[q]){var se=`
21
+ `+N[G].replace(" at new "," at ");return u.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",u.displayName)),typeof u=="function"&&Ot.set(u,se),se}while(G>=1&&q>=0);break}}}finally{Ln=!1,Pn.current=H,Ec(),Error.prepareStackTrace=A}var Be=u?u.displayName||u.name:"",ko=Be?Lt(Be):"";return typeof u=="function"&&Ot.set(u,ko),ko}function Tc(u,x,$){return ho(u,!1)}function Sc(u){var x=u.prototype;return!!(x&&x.isReactComponent)}function Nt(u,x,$){if(u==null)return"";if(typeof u=="function")return ho(u,Sc(u));if(typeof u=="string")return Lt(u);switch(u){case c:return Lt("Suspense");case d:return Lt("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case s:return Tc(u.render);case m:return Nt(u.type,x,$);case v:{var L=u,A=L._payload,H=L._init;try{return Nt(H(A),x,$)}catch{}}}return""}var Mt=Object.prototype.hasOwnProperty,po={},vo=w.ReactDebugCurrentFrame;function _t(u){if(u){var x=u._owner,$=Nt(u.type,u._source,x?x.type:null);vo.setExtraStackFrame($)}else vo.setExtraStackFrame(null)}function Cc(u,x,$,L,A){{var H=Function.call.bind(Mt);for(var M in u)if(H(u,M)){var N=void 0;try{if(typeof u[M]!="function"){var ne=Error((L||"React class")+": "+$+" type `"+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[M]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}N=u[M](x,M,L,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){N=G}N&&!(N instanceof Error)&&(_t(A),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",$,M,typeof N),_t(null)),N instanceof Error&&!(N.message in po)&&(po[N.message]=!0,_t(A),y("Failed %s type: %s",$,N.message),_t(null))}}}var kc=Array.isArray;function On(u){return kc(u)}function jc(u){{var x=typeof Symbol=="function"&&Symbol.toStringTag,$=x&&u[Symbol.toStringTag]||u.constructor.name||"Object";return $}}function Pc(u){try{return bo(u),!1}catch{return!0}}function bo(u){return""+u}function go(u){if(Pc(u))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jc(u)),bo(u)}var st=w.ReactCurrentOwner,Fc={key:!0,ref:!0,__self:!0,__source:!0},xo,yo,Nn;Nn={};function Lc(u){if(Mt.call(u,"ref")){var x=Object.getOwnPropertyDescriptor(u,"ref").get;if(x&&x.isReactWarning)return!1}return u.ref!==void 0}function Oc(u){if(Mt.call(u,"key")){var x=Object.getOwnPropertyDescriptor(u,"key").get;if(x&&x.isReactWarning)return!1}return u.key!==void 0}function Nc(u,x){if(typeof u.ref=="string"&&st.current&&x&&st.current.stateNode!==x){var $=z(st.current.type);Nn[$]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(st.current.type),u.ref),Nn[$]=!0)}}function Mc(u,x){{var $=function(){xo||(xo=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};$.isReactWarning=!0,Object.defineProperty(u,"key",{get:$,configurable:!0})}}function _c(u,x){{var $=function(){yo||(yo=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};$.isReactWarning=!0,Object.defineProperty(u,"ref",{get:$,configurable:!0})}}var Ac=function(u,x,$,L,A,H,M){var N={$$typeof:t,type:u,key:x,ref:$,props:M,_owner:H};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Ic(u,x,$,L,A){{var H,M={},N=null,ne=null;$!==void 0&&(go($),N=""+$),Oc(x)&&(go(x.key),N=""+x.key),Lc(x)&&(ne=x.ref,Nc(x,A));for(H in x)Mt.call(x,H)&&!Fc.hasOwnProperty(H)&&(M[H]=x[H]);if(u&&u.defaultProps){var G=u.defaultProps;for(H in G)M[H]===void 0&&(M[H]=G[H])}if(N||ne){var q=typeof u=="function"?u.displayName||u.name||"Unknown":u;N&&Mc(M,q),ne&&_c(M,q)}return Ac(u,N,ne,A,L,st.current,M)}}var Mn=w.ReactCurrentOwner,wo=w.ReactDebugCurrentFrame;function ze(u){if(u){var x=u._owner,$=Nt(u.type,u._source,x?x.type:null);wo.setExtraStackFrame($)}else wo.setExtraStackFrame(null)}var _n;_n=!1;function An(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function Eo(){{if(Mn.current){var u=z(Mn.current.type);if(u)return`
22
+
23
+ Check the render method of \``+u+"`."}return""}}function Dc(u){{if(u!==void 0){var x=u.fileName.replace(/^.*[\\\/]/,""),$=u.lineNumber;return`
24
+
25
+ Check your code at `+x+":"+$+"."}return""}}var $o={};function Rc(u){{var x=Eo();if(!x){var $=typeof u=="string"?u:u.displayName||u.name;$&&(x=`
26
+
27
+ Check the top-level render call using <`+$+">.")}return x}}function To(u,x){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var $=Rc(x);if($o[$])return;$o[$]=!0;var L="";u&&u._owner&&u._owner!==Mn.current&&(L=" It was passed a child from "+z(u._owner.type)+"."),ze(u),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,L),ze(null)}}function So(u,x){{if(typeof u!="object")return;if(On(u))for(var $=0;$<u.length;$++){var L=u[$];An(L)&&To(L,x)}else if(An(u))u._store&&(u._store.validated=!0);else if(u){var A=E(u);if(typeof A=="function"&&A!==u.entries)for(var H=A.call(u),M;!(M=H.next()).done;)An(M.value)&&To(M.value,x)}}}function Hc(u){{var x=u.type;if(x==null||typeof x=="string")return;var $;if(typeof x=="function")$=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===s||x.$$typeof===m))$=x.propTypes;else return;if($){var L=z(x);Cc($,u.props,"prop",L,u)}else if(x.PropTypes!==void 0&&!_n){_n=!0;var A=z(x);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zc(u){{for(var x=Object.keys(u.props),$=0;$<x.length;$++){var L=x[$];if(L!=="children"&&L!=="key"){ze(u),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),ze(null);break}}u.ref!==null&&(ze(u),y("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}function Co(u,x,$,L,A,H){{var M=T(u);if(!M){var N="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=Dc(A);ne?N+=ne:N+=Eo();var G;u===null?G="null":On(u)?G="array":u!==void 0&&u.$$typeof===t?(G="<"+(z(u.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):G=typeof u,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,N)}var q=Ic(u,x,$,A,H);if(q==null)return q;if(M){var se=x.children;if(se!==void 0)if(L)if(On(se)){for(var Be=0;Be<se.length;Be++)So(se[Be],u);Object.freeze&&Object.freeze(se)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else So(se,u)}return u===r?zc(q):Hc(q),q}}function Bc(u,x,$){return Co(u,x,$,!0)}function Wc(u,x,$){return Co(u,x,$,!1)}var Vc=Wc,Uc=Bc;Ve.Fragment=r,Ve.jsx=Vc,Ve.jsxs=Uc}()),Ve}process.env.NODE_ENV==="production"?At.exports=Po():At.exports=Fo();var p=At.exports;function Hn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Hn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Y(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hn(e))&&(r&&(r+=" "),r+=t);return r}function It({className:e,children:t,fluid:n}){const r=Y("w-full mx-auto px-4 box-border",n?"max-w-full":"max-w-[1140px]",e);return p.jsx("div",{className:r,children:t})}function Lo({children:e,className:t,title:n,customTitle:r}){const o=r;return p.jsxs("div",{className:Y(t,"mb-10 relative","before:block before:bg-usace-box-light-gray before:h-8 before:mb-[-12px] before:w-full","after:block after:absolute after:top-0 after:left-0 after:bg-usace-box-red after:h-[5px] after:w-[50px] after:z-[2]"),children:[p.jsxs("h2",{style:{fontSize:"1.3rem",lineHeight:"1.4rem"},className:"font-bold mb-6",children:[n,o&&p.jsx(o,{})]}),e]})}const zn=typeof document<"u"?f.useLayoutEffect:()=>{};function Oo(e){const t=f.useRef(null);return zn(()=>{t.current=e},[e]),f.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function No(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Mo(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _o(){return Mo(/^Mac/i)}function Ao(){return No(/Android/i)}let Ue=new Map,Bn=new Set;function Wn(){if(typeof window>"u")return;let e=n=>{let r=Ue.get(n.target);r||(r=new Set,Ue.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Ue.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Ue.delete(n.target)),Ue.size===0)){for(let o of Bn)o();Bn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Wn():document.addEventListener("DOMContentLoaded",Wn));function Io(e){return e.mozInputSource===0&&e.isTrusted?!0:Ao()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const Do=f.createContext({register:()=>{}});Do.displayName="PressResponderContext";class Ro{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Vn(e){let t=f.useRef({isFocused:!1,observer:null});zn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Oo(r=>{e==null||e(r)});return f.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Ro("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Ho(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=f.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),l=Vn(i),a=f.useCallback(s=>{s.target===s.currentTarget&&document.activeElement===s.target&&(n&&n(s),o&&o(!0),l(s))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ye=null,Dt=new Set,Un=!1,$e=!1,Rt=!1;const zo={Tab:!0,Escape:!0};function Ht(e,t){for(let n of Dt)n(e,t)}function Bo(e){return!(e.metaKey||!_o()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yn(e){$e=!0,Bo(e)&&(Ye="keyboard",Ht("keyboard",e))}function Pe(e){Ye="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($e=!0,Ht("pointer",e))}function Wo(e){Io(e)&&($e=!0,Ye="virtual")}function Vo(e){e.target===window||e.target===document||(!$e&&!Rt&&(Ye="virtual",Ht("virtual",e)),$e=!1,Rt=!1)}function Uo(){$e=!1,Rt=!0}function zt(){if(typeof window>"u"||Un)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){$e=!0,e.apply(this,arguments)},document.addEventListener("keydown",Yn,!0),document.addEventListener("keyup",Yn,!0),document.addEventListener("click",Wo,!0),window.addEventListener("focus",Vo,!0),window.addEventListener("blur",Uo,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Pe,!0),document.addEventListener("pointermove",Pe,!0),document.addEventListener("pointerup",Pe,!0)):(document.addEventListener("mousedown",Pe,!0),document.addEventListener("mousemove",Pe,!0),document.addEventListener("mouseup",Pe,!0)),Un=!0}typeof document<"u"&&(document.readyState!=="loading"?zt():document.addEventListener("DOMContentLoaded",zt));function Kn(){return Ye!=="pointer"}const Yo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ko(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!Yo.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!zo[n.key])}function Go(e,t,n){zt(),f.useEffect(()=>{let r=(o,i)=>{Ko(!!(n!=null&&n.isTextInput),o,i)&&e(Kn())};return Dt.add(r),()=>{Dt.delete(r)}},t)}function qo(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),l=f.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),a=Vn(l),s=f.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,a(c))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}function Xo(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class Bt{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new Gn({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Xo(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Bt;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Gn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gn{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Bt;function Wt(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Kn()}),[i,l]=f.useState(!1),[a,s]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),d=f.useCallback(h=>{o.current.isFocused=h,l(h),c()},[c]);Go(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:m}=Ho({isDisabled:r,onFocusChange:d}),{focusWithinProps:v}=qo({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?v:m}}typeof document<"u"&&f.useLayoutEffect;function Qo(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Jo(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Zo(){return Jo(/^Mac/i)}function ei(){return Qo(/Android/i)}let Ke=new Map,qn=new Set;function Xn(){if(typeof window>"u")return;let e=n=>{let r=Ke.get(n.target);r||(r=new Set,Ke.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Ke.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Ke.delete(n.target)),Ke.size===0)){for(let o of qn)o();qn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Xn():document.addEventListener("DOMContentLoaded",Xn));function ti(e){return e.mozInputSource===0&&e.isTrusted?!0:ei()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const ni=f.createContext({register:()=>{}});ni.displayName="PressResponderContext";let ri=new Set,Qn=!1,Te=!1,Vt=!1;function Ut(e,t){for(let n of ri)n(e,t)}function oi(e){return!(e.metaKey||!Zo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Jn(e){Te=!0,oi(e)&&Ut("keyboard",e)}function Fe(e){(e.type==="mousedown"||e.type==="pointerdown")&&(Te=!0,Ut("pointer",e))}function ii(e){ti(e)&&(Te=!0)}function li(e){e.target===window||e.target===document||(!Te&&!Vt&&Ut("virtual",e),Te=!1,Vt=!1)}function ai(){Te=!1,Vt=!0}function Zn(){if(typeof window>"u"||Qn)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Te=!0,e.apply(this,arguments)},document.addEventListener("keydown",Jn,!0),document.addEventListener("keyup",Jn,!0),document.addEventListener("click",ii,!0),window.addEventListener("focus",li,!0),window.addEventListener("blur",ai,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Fe,!0),document.addEventListener("pointermove",Fe,!0),document.addEventListener("pointerup",Fe,!0)):(document.addEventListener("mousedown",Fe,!0),document.addEventListener("mousemove",Fe,!0),document.addEventListener("mouseup",Fe,!0)),Qn=!0}typeof document<"u"&&(document.readyState!=="loading"?Zn():document.addEventListener("DOMContentLoaded",Zn));let ct=!1,Yt=0;function Kt(){ct=!0,setTimeout(()=>{ct=!1},50)}function er(e){e.pointerType==="touch"&&Kt()}function si(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",er):document.addEventListener("touchend",Kt),Yt++,()=>{Yt--,!(Yt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",er):document.removeEventListener("touchend",Kt))}}function Gt(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(si,[]);let{hoverProps:s,triggerHoverEnd:c}=f.useMemo(()=>{let d=(h,b)=>{if(a.pointerType=b,o||b==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),l(!0)},m=(h,b)=>{if(a.pointerType="",a.target=null,b==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=h=>{ct&&h.pointerType==="mouse"||d(h,h.pointerType)},v.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&m(h,h.pointerType)}):(v.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ct&&d(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&m(h,"mouse")}),{hoverProps:v,triggerHoverEnd:m}},[t,n,r,o,a]);return f.useEffect(()=>{o&&c({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:s,isHovered:i}}var ci=Object.defineProperty,ui=(e,t,n)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t,n)=>(ui(e,typeof t!="symbol"?t+"":t,n),n);let fi=class{constructor(){qt(this,"current",this.detect()),qt(this,"handoffState","pending"),qt(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},me=new fi;function Ge(e){return me.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ut(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function be(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return ut(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=be();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function qe(){let[e]=f.useState(be);return f.useEffect(()=>()=>e.dispose(),[e]),e}let V=(e,t)=>{me.isServer?f.useEffect(e,t):f.useLayoutEffect(e,t)};function ft(e){let t=f.useRef(e);return V(()=>{t.current=e},[e]),t}let D=function(e){let t=ft(e);return f.useCallback((...n)=>t.current(...n),[t])};function di(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function mi(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Xt({disabled:e=!1}={}){let t=f.useRef(null),[n,r]=f.useState(!1),o=qe(),i=D(()=>{t.current=null,r(!1),o.dispose()}),l=D(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let s=Ge(a.currentTarget);o.addEventListener(s,"pointerup",i,!1),o.addEventListener(s,"pointermove",c=>{if(t.current){let d=di(c);r(mi(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(s,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}let hi=f.createContext(void 0);function Qt(){return f.useContext(hi)}function tr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Se(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Se),r}var Xe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Xe||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function J({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:a}){a=a??vi;let s=nr(t,e);if(i)return dt(s,n,r,l,a);let c=o??0;if(c&2){let{static:d=!1,...m}=s;if(d)return dt(m,n,r,l,a)}if(c&1){let{unmount:d=!0,...m}=s;return Se(d?0:1,{0(){return null},1(){return dt({...m,hidden:!0,style:{display:"none"}},n,r,l,a)}})}return dt(s,n,r,l,a)}function dt(e,t={},n,r,o){let{as:i=n,children:l,refName:a="ref",...s}=Jt(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},d=typeof l=="function"?l(t):l;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let m={};if(t){let v=!1,h=[];for(let[b,g]of Object.entries(t))typeof g=="boolean"&&(v=!0),g===!0&&h.push(b.replace(/([A-Z])/g,E=>`-${E.toLowerCase()}`));if(v){m["data-headlessui-state"]=h.join(" ");for(let b of h)m[`data-${b}`]=""}}if(i===f.Fragment&&(Object.keys(Le(s)).length>0||Object.keys(Le(m)).length>0))if(!f.isValidElement(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Le(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Le(s)).concat(Object.keys(Le(m))).map(v=>` - ${v}`).join(`
28
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
29
+ `)].join(`
30
+ `))}else{let v=d.props,h=v==null?void 0:v.className,b=typeof h=="function"?(...E)=>tr(h(...E),s.className):tr(h,s.className),g=b?{className:b}:{};return f.cloneElement(d,Object.assign({},nr(d.props,Le(Jt(s,["ref"]))),m,c,{ref:o(d.ref,c.ref)},g))}return f.createElement(i,Object.assign({},Jt(s,["ref"]),i!==f.Fragment&&c,i!==f.Fragment&&m),d)}function vi(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function nr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function mt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let l of i)l==null||l(...o)}});return t}function Z(e){var t;return Object.assign(f.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Le(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Jt(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let bi="button";function gi(e,t){var n,r;let o=Qt(),{disabled:i=o||!1,...l}=e,{isFocusVisible:a,focusProps:s}=Wt({autoFocus:(n=e.autoFocus)!=null?n:!1}),{isHovered:c,hoverProps:d}=Gt({isDisabled:i}),{pressed:m,pressProps:v}=Xt({disabled:i}),h=mt({ref:t,disabled:i||void 0,type:(r=l.type)!=null?r:"button"},s,d,v),b=f.useMemo(()=>{var g;return{disabled:i,hover:c,focus:a,active:m,autofocus:(g=e.autoFocus)!=null?g:!1}},[i,c,a,m,e.autoFocus]);return J({ourProps:h,theirProps:l,slot:b,defaultTag:bi,name:"Button"})}let xi=Z(gi);function yi(){let e=typeof document>"u";return"useSyncExternalStore"in C?(t=>t.useSyncExternalStore)(C)(()=>()=>{},()=>!1,()=>!e):!1}function Zt(){let e=yi(),[t,n]=C.useState(me.isHandoffComplete);return t&&me.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>me.handoff(),[]),e?!1:t}var rr;let Ce=(rr=f.useId)!=null?rr:function(){let e=Zt(),[t,n]=f.useState(e?()=>me.nextId():null);return V(()=>{t===null&&n(me.nextId())},[t]),t!=null?""+t:void 0},wi="div";var ht=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ht||{});function Ei(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return J({ourProps:i,theirProps:o,slot:{},defaultTag:wi,name:"Hidden"})}let en=Z(Ei),$i=f.createContext(null);function Ti({children:e}){let t=f.useContext($i);if(!t)return f.createElement(f.Fragment,null,e);let{target:n}=t;return n?Ee.createPortal(f.createElement(f.Fragment,null,e),n):null}let Si=f.createContext(void 0);function Ci(){return f.useContext(Si)}function ki(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&ji(n)?!1:r}function ji(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let or=Symbol();function Pi(e,t=!0){return Object.assign(e,{[or]:t})}function ue(...e){let t=f.useRef(e);f.useEffect(()=>{t.current=e},[e]);let n=D(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[or]))?void 0:n}let tn=f.createContext(null);tn.displayName="DescriptionContext";function ir(){let e=f.useContext(tn);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ir),t}return e}function Fi(){let[e,t]=f.useState([]);return[e.length>0?e.join(" "):void 0,f.useMemo(()=>function(n){let r=D(i=>(t(l=>[...l,i]),()=>t(l=>{let a=l.slice(),s=a.indexOf(i);return s!==-1&&a.splice(s,1),a}))),o=f.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return f.createElement(tn.Provider,{value:o},n.children)},[t])]}let Li="p";function Oi(e,t){let n=Ce(),r=Qt(),{id:o=`headlessui-description-${n}`,...i}=e,l=ir(),a=ue(t);V(()=>l.register(o),[o,l.register]);let s=r||!1,c=f.useMemo(()=>({...l.slot,disabled:s}),[l.slot,s]),d={ref:a,...l.props,id:o};return J({ourProps:d,theirProps:i,slot:c,defaultTag:Li,name:l.name||"Description"})}let Ni=Z(Oi);Object.assign(Ni,{});var X=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(X||{});let pt=f.createContext(null);pt.displayName="LabelContext";function nn(){let e=f.useContext(pt);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,nn),t}return e}function Mi(e){var t,n,r;let o=(n=(t=f.useContext(pt))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function lr({inherit:e=!1}={}){let t=Mi(),[n,r]=f.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,f.useMemo(()=>function(i){let l=D(s=>(r(c=>[...c,s]),()=>r(c=>{let d=c.slice(),m=d.indexOf(s);return m!==-1&&d.splice(m,1),d}))),a=f.useMemo(()=>({register:l,slot:i.slot,name:i.name,props:i.props,value:i.value}),[l,i.slot,i.name,i.props,i.value]);return f.createElement(pt.Provider,{value:a},i.children)},[r])]}let _i="label";function Ai(e,t){var n;let r=Ce(),o=nn(),i=Ci(),l=Qt(),{id:a=`headlessui-label-${r}`,htmlFor:s=i??((n=o.props)==null?void 0:n.htmlFor),passive:c=!1,...d}=e,m=ue(t);V(()=>o.register(a),[a,o.register]);let v=D(E=>{let w=E.currentTarget;if(w instanceof HTMLLabelElement&&E.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(E),w instanceof HTMLLabelElement){let y=document.getElementById(w.htmlFor);if(y){let S=y.getAttribute("disabled");if(S==="true"||S==="")return;let F=y.getAttribute("aria-disabled");if(F==="true"||F==="")return;(y instanceof HTMLInputElement&&(y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),h=l||!1,b=f.useMemo(()=>({...o.slot,disabled:h}),[o.slot,h]),g={ref:m,...o.props,id:a,htmlFor:s,onClick:v};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),J({ourProps:g,theirProps:d,slot:b,defaultTag:s?_i:"div",name:o.name||"Label"})}let Ii=Z(Ai);Object.assign(Ii,{});let rn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Di=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ce=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(ce||{}),on=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(on||{}),Ri=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ri||{});function ar(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(rn)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Hi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Di)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ln=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ln||{});function an(e,t=0){var n;return e===((n=Ge(e))==null?void 0:n.body)?!1:Se(t,{0(){return e.matches(rn)},1(){let r=e;for(;r!==null;){if(r.matches(rn))return!0;r=r.parentElement}return!1}})}function sr(e){let t=Ge(e);be().nextFrame(()=>{t&&!an(t.activeElement,0)&&fe(e)})}var zi=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(zi||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function fe(e){e==null||e.focus({preventScroll:!0})}let Bi=["textarea","input"].join(",");function Wi(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Bi))!=null?n:!1}function cr(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Vi(e,t){return Oe(ar(),t,{relativeTo:e})}function Oe(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?cr(e):e:t&64?Hi(e):ar(e);o.length>0&&l.length>1&&(l=l.filter(h=>!o.some(b=>b!=null&&"current"in b?(b==null?void 0:b.current)===h:b===h))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,m=l.length,v;do{if(d>=m||d+m<=0)return 0;let h=s+d;if(t&16)h=(h+m)%m;else{if(h<0)return 3;if(h>=m)return 1}v=l[h],v==null||v.focus(c),d+=a}while(v!==i.activeElement);return t&6&&Wi(v)&&v.select(),2}function ur(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ui(){return/Android/gi.test(window.navigator.userAgent)}function Yi(){return ur()||Ui()}function vt(e,t,n){let r=ft(t);f.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function fr(e,t,n){let r=ft(t);f.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Ki(e,t,n=!0){let r=f.useRef(!1);f.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,a){if(!r.current||l.defaultPrevented)return;let s=a(l);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let c=function d(m){return typeof m=="function"?d(m()):Array.isArray(m)||m instanceof Set?m:[m]}(e);for(let d of c){if(d===null)continue;let m=d instanceof HTMLElement?d:d.current;if(m!=null&&m.contains(s)||l.composed&&l.composedPath().includes(m))return}return!an(s,ln.Loose)&&s.tabIndex!==-1&&l.preventDefault(),t(l,s)}let i=f.useRef(null);vt("pointerdown",l=>{var a,s;r.current&&(i.current=((s=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:s[0])||l.target)},!0),vt("mousedown",l=>{var a,s;r.current&&(i.current=((s=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:s[0])||l.target)},!0),vt("click",l=>{Yi()||i.current&&(o(l,()=>i.current),i.current=null)},!0),vt("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),fr("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ne(...e){return f.useMemo(()=>Ge(...e),[...e])}function dr(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Gi(e,t){let[n,r]=f.useState(()=>dr(e));return V(()=>{r(dr(e))},[e.type,e.as]),V(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}function mr(e){return[e.screenX,e.screenY]}function qi(){let e=f.useRef([-1,-1]);return{wasMoved(t){let n=mr(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=mr(t)}}}function Xi({container:e,accept:t,walk:n,enabled:r=!0}){let o=f.useRef(t),i=f.useRef(n);f.useEffect(()=>{o.current=t,i.current=n},[t,n]),V(()=>{if(!e||!r)return;let l=Ge(e);if(!l)return;let a=o.current,s=i.current,c=Object.assign(m=>a(m),{acceptNode:a}),d=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;d.nextNode();)s(d.currentNode)},[e,r,o,i])}function sn(e,t){let n=f.useRef([]),r=D(e);f.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let a=r(t,o);return n.current=t,a}},[r,...t])}function ge(e){return hr(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hr(e){return e instanceof Node||e instanceof oe(e).Node}function re(e){return e instanceof Element||e instanceof oe(e).Element}function de(e){return e instanceof HTMLElement||e instanceof oe(e).HTMLElement}function pr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot}function Qe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qi(e){return["table","td","th"].includes(ge(e))}function cn(e){const t=un(),n=le(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vr(e){let t=Me(e);for(;de(t)&&!bt(t);){if(cn(t))return t;t=Me(t)}return null}function un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bt(e){return["html","body","#document"].includes(ge(e))}function le(e){return oe(e).getComputedStyle(e)}function gt(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Me(e){if(ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pr(e)&&e.host||he(e);return pr(t)?t.host:t}function br(e){const t=Me(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:de(t)&&Qe(t)?t:br(t)}function Je(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=br(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=oe(o);return i?t.concat(l,l.visualViewport||[],Qe(o)?o:[],l.frameElement&&n?Je(l.frameElement):[]):t.concat(o,Je(o,[],n))}function Ji(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const _e=Math.min,ie=Math.max,xt=Math.round,yt=Math.floor,xe=e=>({x:e,y:e}),Zi={left:"right",right:"left",bottom:"top",top:"bottom"},el={start:"end",end:"start"};function gr(e,t,n){return ie(e,_e(t,n))}function Ze(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function xr(e){return e==="x"?"y":"x"}function yr(e){return e==="y"?"height":"width"}function tt(e){return["top","bottom"].includes(ye(e))?"y":"x"}function wr(e){return xr(tt(e))}function tl(e,t,n){n===void 0&&(n=!1);const r=et(e),o=wr(e),i=yr(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=wt(l)),[l,wt(l)]}function nl(e){const t=wt(e);return[fn(e),t,fn(t)]}function fn(e){return e.replace(/start|end/g,t=>el[t])}function rl(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function ol(e,t,n,r){const o=et(e);let i=rl(ye(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(fn)))),i}function wt(e){return e.replace(/left|right|bottom|top/g,t=>Zi[t])}function il(e){return{top:0,right:0,bottom:0,left:0,...e}}function ll(e){return typeof e!="number"?il(e):{top:e,right:e,bottom:e,left:e}}function Et(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Er(e,t,n){let{reference:r,floating:o}=e;const i=tt(t),l=wr(t),a=yr(l),s=ye(t),c=i==="y",d=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[a]/2-o[a]/2;let h;switch(s){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[l]-=v*(n&&c?-1:1);break;case"end":h[l]+=v*(n&&c?-1:1);break}return h}const al=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:m}=Er(c,r,s),v=r,h={},b=0;for(let g=0;g<a.length;g++){const{name:E,fn:w}=a[g],{x:y,y:S,data:F,reset:P}=await w({x:d,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});d=y??d,m=S??m,h={...h,[E]:{...h[E],...F}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(c=P.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:m}=Er(c,v,s)),g=-1)}return{x:d,y:m,placement:v,strategy:o,middlewareData:h}};async function Ae(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:v=!1,padding:h=0}=Ze(t,e),b=ll(h),E=a[v?m==="floating"?"reference":"floating":m],w=Et(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),y=m==="floating"?{...l.floating,x:r,y:o}:l.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),F=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},P=Et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:S,strategy:s}):y);return{top:(w.top-P.top+b.top)/F.y,bottom:(P.bottom-w.bottom+b.bottom)/F.y,left:(w.left-P.left+b.left)/F.x,right:(P.right-w.right+b.right)/F.x}}const sl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...E}=Ze(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=ye(o),y=ye(a)===a,S=await(s.isRTL==null?void 0:s.isRTL(c.floating)),F=v||(y||!g?[wt(a)]:nl(a));!v&&b!=="none"&&F.push(...ol(a,g,b,S));const P=[a,...F],O=await Ae(t,E),I=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&I.push(O[w]),m){const B=tl(o,l,S);I.push(O[B[0]],O[B[1]])}if(j=[...j,{placement:o,overflows:I}],!I.every(B=>B<=0)){var k,T;const B=(((k=i.flip)==null?void 0:k.index)||0)+1,z=P[B];if(z)return{data:{index:B,overflows:j},reset:{placement:z}};let U=(T=j.filter(W=>W.overflows[0]<=0).sort((W,te)=>W.overflows[1]-te.overflows[1])[0])==null?void 0:T.placement;if(!U)switch(h){case"bestFit":{var K;const W=(K=j.map(te=>[te.placement,te.overflows.filter(R=>R>0).reduce((R,ae)=>R+ae,0)]).sort((te,R)=>te[1]-R[1])[0])==null?void 0:K[0];W&&(U=W);break}case"initialPlacement":U=a;break}if(o!==U)return{reset:{placement:U}}}return{}}}};async function cl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ye(n),a=et(n),s=tt(n)==="y",c=["left","top"].includes(l)?-1:1,d=i&&s?-1:1,m=Ze(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),s?{x:h*d,y:v*c}:{x:v*c,y:h*d}}const $r=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await cl(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},ul=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:E=>{let{x:w,y}=E;return{x:w,y}}},...s}=Ze(e,t),c={x:n,y:r},d=await Ae(t,s),m=tt(ye(o)),v=xr(m);let h=c[v],b=c[m];if(i){const E=v==="y"?"top":"left",w=v==="y"?"bottom":"right",y=h+d[E],S=h-d[w];h=gr(y,h,S)}if(l){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=b+d[E],S=b-d[w];b=gr(y,b,S)}const g=a.fn({...t,[v]:h,[m]:b});return{...g,data:{x:g.x-n,y:g.y-r}}}}},fl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...a}=Ze(e,t),s=await Ae(t,a),c=ye(n),d=et(n),m=tt(n)==="y",{width:v,height:h}=r.floating;let b,g;c==="top"||c==="bottom"?(b=c,g=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,b=d==="end"?"top":"bottom");const E=h-s[b],w=v-s[g],y=!t.middlewareData.shift;let S=E,F=w;if(m){const O=v-s.left-s.right;F=d||y?_e(w,O):O}else{const O=h-s.top-s.bottom;S=d||y?_e(E,O):O}if(y&&!d){const O=ie(s.left,0),I=ie(s.right,0),j=ie(s.top,0),k=ie(s.bottom,0);m?F=v-2*(O!==0||I!==0?O+I:ie(s.left,s.right)):S=h-2*(j!==0||k!==0?j+k:ie(s.top,s.bottom))}await l({...t,availableWidth:F,availableHeight:S});const P=await o.getDimensions(i.floating);return v!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function Tr(e){const t=le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=de(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=xt(n)!==i||xt(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function dn(e){return re(e)?e:e.contextElement}function Ie(e){const t=dn(e);if(!de(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tr(t);let l=(i?xt(n.width):n.width)/r,a=(i?xt(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const dl=xe(0);function Sr(e){const t=oe(e);return!un()||!t.visualViewport?dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ml(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==oe(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=dn(e);let l=xe(1);t&&(r?re(r)&&(l=Ie(r)):l=Ie(e));const a=ml(i,n,r)?Sr(i):xe(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,d=o.width/l.x,m=o.height/l.y;if(i){const v=oe(i),h=r&&re(r)?oe(r):r;let b=v.frameElement;for(;b&&r&&h!==v;){const g=Ie(b),E=b.getBoundingClientRect(),w=le(b),y=E.left+(b.clientLeft+parseFloat(w.paddingLeft))*g.x,S=E.top+(b.clientTop+parseFloat(w.paddingTop))*g.y;s*=g.x,c*=g.y,d*=g.x,m*=g.y,s+=y,c+=S,b=oe(b).frameElement}}return Et({width:d,height:m,x:s,y:c})}const hl=[":popover-open",":modal"];function Cr(e){let t=!1,n=0,r=0;function o(i){try{t=t||e.matches(i)}catch{}}if(hl.forEach(i=>{o(i)}),t){const i=vr(e);if(i){const l=i.getBoundingClientRect();n=l.x,r=l.y}}return[t,n,r]}function pl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=he(r),[l]=t?Cr(t.floating):[!1];if(r===i||l)return n;let a={scrollLeft:0,scrollTop:0},s=xe(1);const c=xe(0),d=de(r);if((d||!d&&o!=="fixed")&&((ge(r)!=="body"||Qe(i))&&(a=gt(r)),de(r))){const m=ke(r);s=Ie(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+c.x,y:n.y*s.y-a.scrollTop*s.y+c.y}}function vl(e){return Array.from(e.getClientRects())}function kr(e){return ke(he(e)).left+gt(e).scrollLeft}function bl(e){const t=he(e),n=gt(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+kr(e);const a=-n.scrollTop;return le(r).direction==="rtl"&&(l+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function gl(e,t){const n=oe(e),r=he(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const c=un();(!c||c&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function xl(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=de(e)?Ie(e):xe(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:l,height:a,x:s,y:c}}function jr(e,t,n){let r;if(t==="viewport")r=gl(e,n);else if(t==="document")r=bl(he(e));else if(re(t))r=xl(t,n);else{const o=Sr(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Et(r)}function Pr(e,t){const n=Me(e);return n===t||!re(n)||bt(n)?!1:le(n).position==="fixed"||Pr(n,t)}function yl(e,t){const n=t.get(e);if(n)return n;let r=Je(e,[],!1).filter(a=>re(a)&&ge(a)!=="body"),o=null;const i=le(e).position==="fixed";let l=i?Me(e):e;for(;re(l)&&!bt(l);){const a=le(l),s=cn(l);!s&&a.position==="fixed"&&(o=null),(i?!s&&!o:!s&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qe(l)&&!s&&Pr(e,l))?r=r.filter(d=>d!==l):o=a,l=Me(l)}return t.set(e,r),r}function wl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?yl(t,this._c):[].concat(n),r],a=l[0],s=l.reduce((c,d)=>{const m=jr(t,d,o);return c.top=ie(m.top,c.top),c.right=_e(m.right,c.right),c.bottom=_e(m.bottom,c.bottom),c.left=ie(m.left,c.left),c},jr(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function El(e){const{width:t,height:n}=Tr(e);return{width:t,height:n}}function $l(e,t,n,r){const o=de(t),i=he(t),l=n==="fixed",a=ke(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=xe(0);if(o||!o&&!l)if((ge(t)!=="body"||Qe(i))&&(s=gt(t)),o){const g=ke(t,!0,l,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=kr(i));let d=a.left+s.scrollLeft-c.x,m=a.top+s.scrollTop-c.y;const[v,h,b]=Cr(r);return v&&(d+=h,m+=b,o&&(d+=t.clientLeft,m+=t.clientTop)),{x:d,y:m,width:a.width,height:a.height}}function Fr(e,t){return!de(e)||le(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lr(e,t){const n=oe(e);if(!de(e))return n;let r=Fr(e,t);for(;r&&Qi(r)&&le(r).position==="static";)r=Fr(r,t);return r&&(ge(r)==="html"||ge(r)==="body"&&le(r).position==="static"&&!cn(r))?n:r||vr(e)||n}const Tl=async function(e){const t=this.getOffsetParent||Lr,n=this.getDimensions;return{reference:$l(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function Sl(e){return le(e).direction==="rtl"}const Cl={convertOffsetParentRelativeRectToViewportRelativeRect:pl,getDocumentElement:he,getClippingRect:wl,getOffsetParent:Lr,getElementRects:Tl,getClientRects:vl,getDimensions:El,getScale:Ie,isElement:re,isRTL:Sl};function kl(e,t){let n=null,r;const o=he(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),i();const{left:c,top:d,width:m,height:v}=e.getBoundingClientRect();if(a||t(),!m||!v)return;const h=yt(d),b=yt(o.clientWidth-(c+m)),g=yt(o.clientHeight-(d+v)),E=yt(c),y={rootMargin:-h+"px "+-b+"px "+-g+"px "+-E+"px",threshold:ie(0,_e(1,s))||1};let S=!0;function F(P){const O=P[0].intersectionRatio;if(O!==s){if(!S)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},100)}S=!1}try{n=new IntersectionObserver(F,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(F,y)}n.observe(e)}return l(!0),i}function jl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=dn(e),d=o||i?[...c?Je(c):[],...Je(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const m=c&&a?kl(c,n):null;let v=-1,h=null;l&&(h=new ResizeObserver(w=>{let[y]=w;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let b,g=s?ke(e):null;s&&E();function E(){const w=ke(e);g&&(w.x!==g.x||w.y!==g.y||w.width!==g.width||w.height!==g.height)&&n(),g=w,b=requestAnimationFrame(E)}return n(),()=>{var w;d.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),m==null||m(),(w=h)==null||w.disconnect(),h=null,s&&cancelAnimationFrame(b)}}const Pl=ul,Fl=sl,Ll=fl,Ol=(e,t,n)=>{const r=new Map,o={platform:Cl,...n},i={...o.platform,_c:r};return al(e,t,{...o,platform:i})};var $t=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Tt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Tt(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;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Tt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Or(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nr(e,t){const n=Or(e);return Math.round(t*n)/n}function Mr(e){const t=C.useRef(e);return $t(()=>{t.current=e}),t}function Nl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[d,m]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=C.useState(r);Tt(v,r)||h(r);const[b,g]=C.useState(null),[E,w]=C.useState(null),y=C.useCallback(R=>{R!==O.current&&(O.current=R,g(R))},[]),S=C.useCallback(R=>{R!==I.current&&(I.current=R,w(R))},[]),F=i||b,P=l||E,O=C.useRef(null),I=C.useRef(null),j=C.useRef(d),k=s!=null,T=Mr(s),K=Mr(o),B=C.useCallback(()=>{if(!O.current||!I.current)return;const R={placement:t,strategy:n,middleware:v};K.current&&(R.platform=K.current),Ol(O.current,I.current,R).then(ae=>{const Q={...ae,isPositioned:!0};z.current&&!Tt(j.current,Q)&&(j.current=Q,jo.flushSync(()=>{m(Q)}))})},[v,t,n,K]);$t(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[c]);const z=C.useRef(!1);$t(()=>(z.current=!0,()=>{z.current=!1}),[]),$t(()=>{if(F&&(O.current=F),P&&(I.current=P),F&&P){if(T.current)return T.current(F,P,B);B()}},[F,P,B,T,k]);const U=C.useMemo(()=>({reference:O,floating:I,setReference:y,setFloating:S}),[y,S]),W=C.useMemo(()=>({reference:F,floating:P}),[F,P]),te=C.useMemo(()=>{const R={position:n,left:0,top:0};if(!W.floating)return R;const ae=Nr(W.floating,d.x),Q=Nr(W.floating,d.y);return a?{...R,transform:"translate("+ae+"px, "+Q+"px)",...Or(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:Q}},[n,a,W.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:B,refs:U,elements:W,floatingStyles:te}),[d,B,U,W,te])}const Ml=C.useInsertionEffect||(e=>e());function _r(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Ml(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Ar=typeof document<"u"?f.useLayoutEffect:f.useEffect;let mn=!1,_l=0;const Ir=()=>"floating-ui-"+_l++;function Al(){const[e,t]=C.useState(()=>mn?Ir():void 0);return Ar(()=>{e==null&&t(Ir())},[]),C.useEffect(()=>{mn||(mn=!0)},[]),e}const Il=C.useId||Al;function Dl(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Rl=C.createContext(null),Hl=C.createContext(null),zl=()=>{var e;return((e=C.useContext(Rl))==null?void 0:e.id)||null},Bl=()=>C.useContext(Hl);let hn;process.env.NODE_ENV!=="production"&&(hn=new Set);function Wl(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e;if(process.env.NODE_ENV!=="production"){var i;const j="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=e.elements)!=null&&i.reference&&!re(e.elements.reference)){var l;if(!((l=hn)!=null&&l.has(j))){var a;(a=hn)==null||a.add(j),console.error(j)}}}const[s,c]=C.useState(null),d=((t=e.elements)==null?void 0:t.reference)||s,m=Nl(e),v=Bl(),h=zl()!=null,b=_r((j,k,T)=>{j&&(E.current.openEvent=k),w.emit("openchange",{open:j,event:k,reason:T,nested:h}),r==null||r(j,k,T)}),g=C.useRef(null),E=C.useRef({}),w=C.useState(()=>Dl())[0],y=Il(),S=C.useCallback(j=>{const k=re(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),contextElement:j}:j;m.refs.setReference(k)},[m.refs]),F=C.useCallback(j=>{(re(j)||j===null)&&(g.current=j,c(j)),(re(m.refs.reference.current)||m.refs.reference.current===null||j!==null&&!re(j))&&m.refs.setReference(j)},[m.refs]),P=C.useMemo(()=>({...m.refs,setReference:F,setPositionReference:S,domReference:g}),[m.refs,F,S]),O=C.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),I=C.useMemo(()=>({...m,refs:P,elements:O,dataRef:E,nodeId:o,floatingId:y,events:w,open:n,onOpenChange:b}),[m,o,y,w,n,b,P,O]);return Ar(()=>{const j=v==null?void 0:v.nodesRef.current.find(k=>k.id===o);j&&(j.context=I)}),C.useMemo(()=>({...m,context:I,refs:P,elements:O}),[m,P,O,I])}const Dr="active",Rr="selected";function pn(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Dr]:l,[Rr]:a,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(l=>{const a=l?l[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((l,a)=>(a&&Object.entries(a).forEach(s=>{let[c,d]=s;if(!(o&&[Dr,Rr].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var m;(m=r.get(c))==null||m.push(d),l[c]=function(){for(var v,h=arguments.length,b=new Array(h),g=0;g<h;g++)b[g]=arguments[g];return(v=r.get(c))==null?void 0:v.map(E=>E(...b)).find(E=>E!==void 0)}}}else l[c]=d}),l),{})}}function Vl(e){e===void 0&&(e=[]);const t=e,n=C.useCallback(i=>pn(i,e,"reference"),t),r=C.useCallback(i=>pn(i,e,"floating"),t),o=C.useCallback(i=>pn(i,e,"item"),e.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function Hr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Ul=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:c,...d}=e,{rects:m,elements:{floating:v}}=t,h=n.current[l];if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||console.warn(['Floating UI: `placement` side must be "bottom" when using the',"`inner` middleware."].join(" "))),!h)return{};const b={...t,...await $r(-h.offsetTop-v.clientTop-m.reference.height/2-h.offsetHeight/2-i).fn(t)},g=(c==null?void 0:c.current)||v,E=await Ae(Hr(b,g.scrollHeight),d),w=await Ae(b,{...d,elementContext:"reference"}),y=Math.max(0,E.top),S=b.y+y,F=Math.max(0,g.scrollHeight-y-Math.max(0,E.bottom));return g.style.maxHeight=F+"px",g.scrollTop=y,o&&(g.offsetHeight<h.offsetHeight*Math.min(a,n.current.length-1)-1||w.top>=-s||w.bottom>=-s?Ee.flushSync(()=>o(!0)):Ee.flushSync(()=>o(!1))),r&&(r.current=await Ae(Hr({...b,y:S},g.offsetHeight),d)),{y:S}}});function Yl(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:a}=t,s=_r(a),c=C.useRef(!1),d=C.useRef(null),m=C.useRef(null);return C.useEffect(()=>{if(!o)return;function v(b){if(b.ctrlKey||!h||i.current==null)return;const g=b.deltaY,E=i.current.top>=-.5,w=i.current.bottom>=-.5,y=h.scrollHeight-h.clientHeight,S=g<0?-1:1,F=g<0?"max":"min";h.scrollHeight<=h.clientHeight||(!E&&g>0||!w&&g<0?(b.preventDefault(),Ee.flushSync(()=>{s(P=>P+Math[F](g,y*S))})):/firefox/i.test(Ji())&&(h.scrollTop+=g))}const h=(l==null?void 0:l.current)||r.floating;if(n&&h)return h.addEventListener("wheel",v),requestAnimationFrame(()=>{d.current=h.scrollTop,i.current!=null&&(m.current={...i.current})}),()=>{d.current=null,m.current=null,h.removeEventListener("wheel",v)}},[o,n,r.floating,i,l,s]),C.useMemo(()=>o?{floating:{onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const v=(l==null?void 0:l.current)||r.floating;if(!(!i.current||!v||!c.current)){if(d.current!==null){const h=v.scrollTop-d.current;(i.current.bottom<-.5&&h<-1||i.current.top<-.5&&h>1)&&Ee.flushSync(()=>s(b=>b+h))}requestAnimationFrame(()=>{d.current=v.scrollTop})}}}}:{},[o,i,r.floating,l,s])}let De=f.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});De.displayName="FloatingContext";let vn=f.createContext(null);vn.displayName="PlacementContext";function Kl(){return f.useContext(De).setReference}function Gl(){return f.useContext(De).getReferenceProps}function ql(){let{getFloatingProps:e,slot:t}=f.useContext(De);return f.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Xl(e){let t=f.useContext(vn),n=f.useMemo(()=>e,[JSON.stringify(e,typeof HTMLElement<"u"?(o,i)=>i instanceof HTMLElement?i.outerHTML:i:void 0)]);V(()=>{t==null||t(n??null)},[t,n]);let r=f.useContext(De);return f.useMemo(()=>[r.setFloating,r.styles],[r.setFloating,r.styles])}let zr=4;function Ql({children:e,enabled:t=!0}){let[n,r]=f.useState(null),[o,i]=f.useState(0),l=f.useRef(null),[a,s]=f.useState(null);Jl(a);let c=t&&n!==null&&a!==null,{to:d="bottom",gap:m=0,offset:v=0,padding:h=0,inner:b}=Zl(n,a),[g,E="center"]=d.split(" ");V(()=>{c&&i(0)},[c]);let{refs:w,floatingStyles:y,context:S}=Wl({open:c,placement:g==="selection"?E==="center"?"bottom":`bottom-${E}`:E==="center"?`${g}`:`${g}-${E}`,strategy:"fixed",transform:!1,middleware:[$r({mainAxis:g==="selection"?0:m,crossAxis:v}),Pl({padding:h}),g!=="selection"&&Fl(),g==="selection"&&b?Ul({...b,padding:h,overflowRef:l,offset:o,minItemsVisible:zr,referenceOverflowThreshold:h,onFallbackChange(K){var B,z;if(!K)return;let U=S.elements.floating;if(!U)return;let W=parseFloat(getComputedStyle(U).scrollPaddingBottom)||0,te=Math.min(zr,U.childElementCount),R=0,ae=0;for(let Q of(z=(B=S.elements.floating)==null?void 0:B.childNodes)!=null?z:[])if(Q instanceof HTMLElement){let pe=Q.offsetTop,lt=pe+Q.clientHeight+W,He=U.scrollTop,at=He+U.clientHeight;if(pe>=He&&lt<=at)te--;else{ae=Math.max(0,Math.min(lt,at)-Math.max(pe,He)),R=Q.clientHeight;break}}te>=1&&i(Q=>{let pe=R*te-ae+W;return Q>=pe?Q:pe})}}):null,Ll({apply({availableWidth:K,availableHeight:B,elements:z}){Object.assign(z.floating.style,{maxWidth:`${K-h}px`,maxHeight:`${B-h}px`})}})].filter(Boolean),whileElementsMounted:jl}),[F=g,P=E]=S.placement.split("-");g==="selection"&&(F="selection");let O=f.useMemo(()=>({anchor:[F,P].filter(Boolean).join(" ")}),[F,P]),I=Yl(S,{overflowRef:l,onChange:i}),{getReferenceProps:j,getFloatingProps:k}=Vl([I]),T=D(K=>{s(K),w.setFloating(K)});return C.createElement(vn.Provider,{value:r},C.createElement(De.Provider,{value:{setFloating:T,setReference:w.setReference,styles:c?y:{},getReferenceProps:j,getFloatingProps:k,slot:O}},e))}function Jl(e){V(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=e.style.maxHeight;parseFloat(n)!==parseInt(n)&&(e.style.maxHeight=`${Math.ceil(parseFloat(n))}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Zl(e,t){let n=bn(e==null?void 0:e.gap,t),r=bn(e==null?void 0:e.offset,t),o=bn(e==null?void 0:e.padding,t);return{...e,gap:n,offset:r,padding:o}}function bn(e,t,n=void 0){let r=qe(),o=D((s,c)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!c)return[n,null];let d=Wr(s,c);return[d,m=>{let v=Br(s);{let h=v.map(b=>window.getComputedStyle(c).getPropertyValue(b));r.requestAnimationFrame(function b(){r.nextFrame(b);let g=!1;for(let[w,y]of v.entries()){let S=window.getComputedStyle(c).getPropertyValue(y);if(h[w]!==S){h[w]=S,g=!0;break}}if(!g)return;let E=Wr(s,c);d!==E&&(m(E),d=E)})}return r.dispose}]}return[n,null]}),i=f.useMemo(()=>o(e,t)[0],[e,t]),[l=i,a]=f.useState();return V(()=>{let[s,c]=o(e,t);if(a(s),!!c)return c(a)},[e,t]),l}function Br(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...Br(o)]:[r]}return[]}function Wr(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let gn=f.createContext(null);gn.displayName="OpenClosedContext";var nt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(nt||{});function ea(){return f.useContext(gn)}function ta({value:e,children:t}){return f.createElement(gn.Provider,{value:e},t)}function na(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let we=[];na(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&we[0]!==t.target&&(we.unshift(t.target),we=we.filter(n=>n!=null&&n.isConnected),we.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ra(e){throw new Error("Unexpected object: "+e)}var ee=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ee||{});function xn(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:ra(e)}}let oa=f.Fragment;function ia(e,t){let{...n}=e,r=!1,{isFocusVisible:o,focusProps:i}=Wt(),{isHovered:l,hoverProps:a}=Gt({isDisabled:r}),{pressed:s,pressProps:c}=Xt({disabled:r}),d=mt({ref:t},i,a,c),m=f.useMemo(()=>({hover:l,focus:o,active:s}),[l,o,s]);return J({ourProps:d,theirProps:n,slot:m,defaultTag:oa,name:"DataInteractive"})}let la=Z(ia);function aa(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const sa=typeof Object.is=="function"?Object.is:aa,{useState:ca,useEffect:ua,useLayoutEffect:fa,useDebugValue:da}=C;function ma(e,t,n){const r=t(),[{inst:o},i]=ca({inst:{value:r,getSnapshot:t}});return fa(()=>{o.value=r,o.getSnapshot=t,yn(o)&&i({inst:o})},[e,r,t]),ua(()=>(yn(o)&&i({inst:o}),e(()=>{yn(o)&&i({inst:o})})),[e]),da(r),r}function yn(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!sa(n,r)}catch{return!0}}function ha(e,t,n){return t()}const pa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",va=!pa,ba=va?ha:ma,ga="useSyncExternalStore"in C?(e=>e.useSyncExternalStore)(C):ba;function xa(e){return ga(e.subscribe,e.getSnapshot,e.getSnapshot)}function ya(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function wa(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Ea(){return ur()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=be();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let s=a.target.closest("a");if(!s)return;let{hash:c}=new URL(s.href),d=e.querySelector(c);d&&!r(d)&&(l=d)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()},{passive:!1}),t.add(()=>{var a;let s=(a=window.scrollY)!=null?a:window.pageYOffset;i!==s&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function $a(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ta(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let je=ya(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:be(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ta(n)},o=[Ea(),wa(),$a()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});je.subscribe(()=>{let e=je.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&je.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&je.dispatch("TEARDOWN",n)}});function Sa(e,t,n=()=>({containers:[]})){let r=xa(je),o=e?r.get(e):void 0,i=o?o.count>0:!1;return V(()=>{if(!(!e||!t))return je.dispatch("PUSH",e,n),()=>je.dispatch("POP",e,n)},[t,e]),i}function Ca(e,t,n,r){let o=ft(n);f.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}let wn=new Map,rt=new Map;function Vr(e,t=!0){V(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let a=(l=rt.get(r))!=null?l:1;if(a===1?rt.delete(r):rt.set(r,a-1),a!==1)return;let s=wn.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,wn.delete(r))}let i=(n=rt.get(r))!=null?n:0;return rt.set(r,i+1),i!==0||(wn.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function ka({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=f.useRef((r=n==null?void 0:n.current)!=null?r:null),i=Ne(o),l=D(()=>{var a,s,c;let d=[];for(let m of e)m!==null&&(m instanceof HTMLElement?d.push(m):"current"in m&&m.current instanceof HTMLElement&&d.push(m.current));if(t!=null&&t.current)for(let m of t.current)d.push(m);for(let m of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])m!==document.body&&m!==document.head&&m instanceof HTMLElement&&m.id!=="headlessui-portal-root"&&(m.contains(o.current)||m.contains((c=(s=o.current)==null?void 0:s.getRootNode())==null?void 0:c.host)||d.some(v=>m.contains(v))||d.push(m));return d});return{resolveContainers:l,contains:D(a=>l().some(s=>s.contains(a))),mainTreeNodeRef:o,MainTreeNode:f.useMemo(()=>function(){return n!=null?null:f.createElement(en,{features:ht.Hidden,ref:o})},[o,n])}}let Ur=f.createContext(!1);function ja(){return f.useContext(Ur)}function Yr(e){return f.createElement(Ur.Provider,{value:e.force},e.children)}function Kr(){let e=f.useRef(!1);return V(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Gr(e){let t=D(e),n=f.useRef(!1);f.useEffect(()=>(n.current=!1,()=>{n.current=!0,ut(()=>{n.current&&t()})}),[t])}var ot=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ot||{});function Pa(){let e=f.useRef(0);return fr("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function qr(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Fa="div";var St=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.AutoFocus=32]="AutoFocus",e[e.All=30]="All",e))(St||{});function La(e,t){let n=f.useRef(null),r=ue(n,t),{initialFocus:o,initialFocusFallback:i,containers:l,features:a=30,...s}=e;Zt()||(a=1);let c=Ne(n);_a({ownerDocument:c},!!(a&16));let d=Aa({ownerDocument:c,container:n,initialFocus:o,initialFocusFallback:i},a);Ia({ownerDocument:c,container:n,containers:l,previousActiveElement:d},!!(a&8));let m=Pa(),v=D(E=>{let w=n.current;w&&(y=>y())(()=>{Se(m.current,{[ot.Forwards]:()=>{Oe(w,ce.First,{skipElements:[E.relatedTarget,i]})},[ot.Backwards]:()=>{Oe(w,ce.Last,{skipElements:[E.relatedTarget,i]})}})})}),h=qe(),b=f.useRef(!1),g={ref:r,onKeyDown(E){E.key=="Tab"&&(b.current=!0,h.requestAnimationFrame(()=>{b.current=!1}))},onBlur(E){if(!(a&8))return;let w=qr(l);n.current instanceof HTMLElement&&w.add(n.current);let y=E.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(Xr(w,y)||(b.current?Oe(n.current,Se(m.current,{[ot.Forwards]:()=>ce.Next,[ot.Backwards]:()=>ce.Previous})|ce.WrapAround,{relativeTo:E.target}):E.target instanceof HTMLElement&&fe(E.target)))}};return f.createElement(f.Fragment,null,!!(a&4)&&f.createElement(en,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:ht.Focusable}),J({ourProps:g,theirProps:s,defaultTag:Fa,name:"FocusTrap"}),!!(a&4)&&f.createElement(en,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:ht.Focusable}))}let Oa=Z(La),Na=Object.assign(Oa,{features:St});function Ma(e=!0){let t=f.useRef(we.slice());return sn(([n],[r])=>{r===!0&&n===!1&&ut(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=we.slice())},[e,we,t]),D(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function _a({ownerDocument:e},t){let n=Ma(t);sn(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&fe(n())},[t]),Gr(()=>{t&&fe(n())})}function Aa({ownerDocument:e,container:t,initialFocus:n,initialFocusFallback:r},o){let i=!!(o&2),l=f.useRef(null),a=Kr();return sn(()=>{if(!i){r!=null&&r.current&&fe(r.current);return}let s=t.current;s&&ut(()=>{if(!a.current)return;let c=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){l.current=c;return}}else if(s.contains(c)){l.current=c;return}if(n!=null&&n.current)fe(n.current);else{if(o&32){if(Oe(s,ce.First|ce.AutoFocus)!==on.Error)return}else if(Oe(s,ce.First)!==on.Error)return;if(r!=null&&r.current&&(fe(r.current),(e==null?void 0:e.activeElement)===r.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=e==null?void 0:e.activeElement})},[r,i,o]),l}function Ia({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Kr();Ca(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let a=qr(n);t.current instanceof HTMLElement&&a.add(t.current);let s=r.current;if(!s)return;let c=l.target;c&&c instanceof HTMLElement?Xr(a,c)?(r.current=c,fe(c)):(l.preventDefault(),l.stopPropagation(),fe(s)):fe(r.current)},!0)}function Xr(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Da(e){let t=ja(),n=f.useContext(Qr),r=Ne(e),[o,i]=f.useState(()=>{if(!t&&n!==null||me.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return f.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),f.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let Ra=f.Fragment;function Ha(e,t){let n=e,r=f.useRef(null),o=ue(Pi(d=>{r.current=d}),t),i=Ne(r),l=Da(r),[a]=f.useState(()=>{var d;return me.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),s=f.useContext(En),c=Zt();return V(()=>{!l||!a||l.contains(a)||(a.setAttribute("data-headlessui-portal",""),l.appendChild(a))},[l,a]),V(()=>{if(a&&s)return s.register(a)},[s,a]),Gr(()=>{var d;!l||!a||(a instanceof Node&&l.contains(a)&&l.removeChild(a),l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l)))}),c?!l||!a?null:Ee.createPortal(J({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:Ra,name:"Portal"}),a):null}let za=f.Fragment,Qr=f.createContext(null);function Ba(e,t){let{target:n,...r}=e,o={ref:ue(t)};return f.createElement(Qr.Provider,{value:n},J({ourProps:o,theirProps:r,defaultTag:za,name:"Popover.Group"}))}let En=f.createContext(null);function Wa(){let e=f.useContext(En),t=f.useRef([]),n=D(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=D(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=f.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,f.useMemo(()=>function({children:i}){return f.createElement(En.Provider,{value:o},i)},[o])]}let Va=Z(Ha),Ua=Z(Ba),Jr=Object.assign(Va,{Group:Ua});function Ya(e,t=!0){let n=f.useRef({left:0,top:0});if(V(()=>{let o=e.current;if(!o)return;let i=o.getBoundingClientRect();i&&(n.current=i)},[t]),e.current==null||!t||e.current===document.activeElement)return!1;let r=e.current.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}function Zr(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Ka(e,t=!1){let[n,r]=f.useState(()=>Zr(e.current));return V(()=>{let o=e.current;if(!o)return;let i=new ResizeObserver(()=>{r(Zr(o))});return i.observe(o),()=>{i.disconnect()}},[e]),t?{width:`${n.width}px`,height:`${n.height}px`}:n}let eo=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function to(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return eo.test(l)&&(l=l.replace(eo,"")),l}function Ga(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():to(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return to(e).trim()}function qa(e){let t=f.useRef(""),n=f.useRef("");return D(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=Ga(r).trim().toLowerCase();return t.current=o,n.current=i,i})}function Xa(e,t,n=()=>[document.body]){Sa(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}var no=(e=>(e[e.None=0]="None",e[e.Inert=1]="Inert",e[e.ScrollLock=2]="ScrollLock",e[e.FocusTrap=4]="FocusTrap",e[e.All=7]="All",e))(no||{});let Qa="div",Ja=Xe.RenderStrategy|Xe.Static;function Za(e,t){let n=Ce(),{id:r=`headlessui-modal-${n}`,initialFocus:o,role:i="dialog",features:l=7,enabled:a=!0,focusTrapFeatures:s=St.All,...c}=e;a||(l=0);let d=f.useRef(!1);i=function(){return i==="dialog"||i==="alertdialog"?i:(d.current||(d.current=!0,console.warn(`Invalid role [${i}] passed to <Modal />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let m=f.useRef(null),v=ue(m,t),h=Ne(m),[b,g]=Wa(),E={get current(){return m.current}},{resolveContainers:w,mainTreeNodeRef:y,MainTreeNode:S}=ka({portals:b,defaultContainers:[E]}),F=f.useCallback(()=>{var j,k;return(k=Array.from((j=h==null?void 0:h.querySelectorAll("body > *"))!=null?j:[]).find(T=>T.id==="headlessui-portal-root"?!1:T.contains(y.current)&&T instanceof HTMLElement))!=null?k:null},[y]);Vr(F,!!(l&1));let P=f.useCallback(()=>{var j,k;return(k=Array.from((j=h==null?void 0:h.querySelectorAll("[data-headlessui-portal]"))!=null?j:[]).find(T=>T.contains(y.current)&&T instanceof HTMLElement))!=null?k:null},[y]);Vr(P,!!(l&1)),Xa(h,!!(l&2),w);let O=f.useMemo(()=>({}),[]),I={ref:v,id:r,role:i,"aria-modal":a||void 0};return f.createElement(f.Fragment,null,f.createElement(Yr,{force:!0},f.createElement(Jr,null,f.createElement(Na,{initialFocus:o,containers:w,features:l&4?s:St.None},f.createElement(Yr,{force:!1},f.createElement(g,null,J({ourProps:I,theirProps:c,slot:O,defaultTag:Qa,features:Ja,name:"Modal"})))))),f.createElement(Ti,null,f.createElement(S,null)))}let es=Z(Za),ts=Object.assign(es,{});var ns=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ns||{}),rs=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(rs||{}),os=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(os||{});function $n(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=cr(t(e.items.slice()),i=>i.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let is={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n,r,o,i,l;if(e.menuState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1};if(t.focus===ee.Nothing)return{...a,activeItemIndex:null};if(t.focus===ee.Specific)return{...a,activeItemIndex:e.items.findIndex(d=>d.id===t.id)};if(t.focus===ee.Previous){let d=e.activeItemIndex;if(d!==null){let m=e.items[d].dataRef.current.domRef,v=xn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(v!==null){let h=e.items[v].dataRef.current.domRef;if(((r=m.current)==null?void 0:r.previousElementSibling)===h.current||((o=h.current)==null?void 0:o.previousElementSibling)===null)return{...a,activeItemIndex:v}}}}else if(t.focus===ee.Next){let d=e.activeItemIndex;if(d!==null){let m=e.items[d].dataRef.current.domRef,v=xn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(v!==null){let h=e.items[v].dataRef.current.domRef;if(((i=m.current)==null?void 0:i.nextElementSibling)===h.current||((l=h.current)==null?void 0:l.nextElementSibling)===null)return{...a,activeItemIndex:v}}}}let s=$n(e),c=xn(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...a,...s,activeItemIndex:c}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(l=>{var a;return((a=l.dataRef.current.textValue)==null?void 0:a.startsWith(r))&&!l.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=$n(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=$n(e,r=>{let o=r.findIndex(i=>i.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...n,activationTrigger:1}}},Tn=f.createContext(null);Tn.displayName="MenuContext";function Ct(e){let t=f.useContext(Tn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ct),n}return t}function ls(e,t){return Se(t.type,is,e,t)}let as=f.Fragment;function ss(e,t){let{__demoMode:n=!1,...r}=e,o=f.useReducer(ls,{__demoMode:n,menuState:n?0:1,buttonRef:f.createRef(),itemsRef:f.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:l,buttonRef:a},s]=o,c=ue(t);Ki([a,l],(h,b)=>{var g;s({type:1}),an(b,ln.Loose)||(h.preventDefault(),(g=a.current)==null||g.focus())},i===0);let d=D(()=>{s({type:1})}),m=f.useMemo(()=>({open:i===0,close:d}),[i,d]),v={ref:c};return f.createElement(Ql,null,f.createElement(Tn.Provider,{value:o},f.createElement(ta,{value:Se(i,{0:nt.Open,1:nt.Closed})},J({ourProps:v,theirProps:r,slot:m,defaultTag:as,name:"Menu"}))))}let cs="button";function us(e,t){var n,r,o,i;let l=Ce(),{id:a=`headlessui-menu-button-${l}`,...s}=e,[c,d]=Ct("Menu.Button"),m=Gl(),v=ue(c.buttonRef,t,Kl()),h=qe(),b=D(k=>{switch(k.key){case X.Space:case X.Enter:case X.ArrowDown:k.preventDefault(),k.stopPropagation(),d({type:0}),h.nextFrame(()=>d({type:2,focus:ee.First}));break;case X.ArrowUp:k.preventDefault(),k.stopPropagation(),d({type:0}),h.nextFrame(()=>d({type:2,focus:ee.Last}));break}}),g=D(k=>{switch(k.key){case X.Space:k.preventDefault();break}}),E=D(k=>{if(ki(k.currentTarget))return k.preventDefault();e.disabled||(c.menuState===0?(d({type:1}),h.nextFrame(()=>{var T;return(T=c.buttonRef.current)==null?void 0:T.focus({preventScroll:!0})})):(k.preventDefault(),d({type:0})))}),{isFocusVisible:w,focusProps:y}=Wt({autoFocus:(n=e.autoFocus)!=null?n:!1}),{isHovered:S,hoverProps:F}=Gt({isDisabled:(r=e.disabled)!=null?r:!1}),{pressed:P,pressProps:O}=Xt({disabled:(o=e.disabled)!=null?o:!1}),I=f.useMemo(()=>{var k;return{open:c.menuState===0,active:P||c.menuState===0,hover:S,focus:w,autofocus:(k=e.autoFocus)!=null?k:!1}},[c,S,w,P,e.autoFocus]),j=mt(m(),{ref:v,id:a,type:Gi(e,c.buttonRef),"aria-haspopup":"menu","aria-controls":(i=c.itemsRef.current)==null?void 0:i.id,"aria-expanded":c.menuState===0,onKeyDown:b,onKeyUp:g,onClick:E},y,F,O);return J({ourProps:j,theirProps:s,slot:I,defaultTag:cs,name:"Menu.Button"})}let fs="div",ds=Xe.RenderStrategy|Xe.Static;function ms(e,t){var n,r;let o=Ce(),{id:i=`headlessui-menu-items-${o}`,anchor:l,modal:a,...s}=e,[c,d]=Ct("Menu.Items"),[m,v]=Xl(l),h=ql(),b=ue(c.itemsRef,t,l?m:null),g=Ne(c.itemsRef);l!=null&&a==null?a=!0:a==null&&(a=!1);let E=qe(),w=ea(),y=w!==null?(w&nt.Open)===nt.Open:c.menuState===0,S=Ya(c.buttonRef,c.menuState!==0)?!1:y;f.useEffect(()=>{let T=c.itemsRef.current;T&&c.menuState===0&&T!==(g==null?void 0:g.activeElement)&&T.focus({preventScroll:!0})},[c.menuState,c.itemsRef,g]),Xi({container:c.itemsRef.current,enabled:c.menuState===0,accept(T){return T.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:T.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(T){T.setAttribute("role","none")}});let F=D(T=>{var K,B;switch(E.dispose(),T.key){case X.Space:if(c.searchQuery!=="")return T.preventDefault(),T.stopPropagation(),d({type:3,value:T.key});case X.Enter:if(T.preventDefault(),T.stopPropagation(),d({type:1}),c.activeItemIndex!==null){let{dataRef:z}=c.items[c.activeItemIndex];(B=(K=z.current)==null?void 0:K.domRef.current)==null||B.click()}sr(c.buttonRef.current);break;case X.ArrowDown:return T.preventDefault(),T.stopPropagation(),d({type:2,focus:ee.Next});case X.ArrowUp:return T.preventDefault(),T.stopPropagation(),d({type:2,focus:ee.Previous});case X.Home:case X.PageUp:return T.preventDefault(),T.stopPropagation(),d({type:2,focus:ee.First});case X.End:case X.PageDown:return T.preventDefault(),T.stopPropagation(),d({type:2,focus:ee.Last});case X.Escape:T.preventDefault(),T.stopPropagation(),d({type:1}),be().nextFrame(()=>{var z;return(z=c.buttonRef.current)==null?void 0:z.focus({preventScroll:!0})});break;case X.Tab:T.preventDefault(),T.stopPropagation(),d({type:1}),be().microTask(()=>{Vi(c.buttonRef.current,T.shiftKey?ce.Previous:ce.Next)});break;default:T.key.length===1&&(d({type:3,value:T.key}),E.setTimeout(()=>d({type:4}),350));break}}),P=D(T=>{switch(T.key){case X.Space:T.preventDefault();break}}),O=f.useMemo(()=>({open:c.menuState===0}),[c]),I=mt(l?h():{},{"aria-activedescendant":c.activeItemIndex===null||(n=c.items[c.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=c.buttonRef.current)==null?void 0:r.id,id:i,onKeyDown:F,onKeyUp:P,role:"menu",tabIndex:0,ref:b,style:{...v,"--button-width":Ka(c.buttonRef,!0).width}}),j=a?ts:l?Jr:f.Fragment,k=a?{features:no.ScrollLock,enabled:c.menuState===0}:{};return f.createElement(j,{...k},J({ourProps:I,theirProps:s,slot:O,defaultTag:fs,features:ds,visible:S,name:"Menu.Items"}))}let hs=f.Fragment;function ps(e,t){let n=Ce(),{id:r=`headlessui-menu-item-${n}`,disabled:o=!1,...i}=e,[l,a]=Ct("Menu.Item"),s=l.activeItemIndex!==null?l.items[l.activeItemIndex].id===r:!1,c=f.useRef(null),d=ue(t,c);V(()=>{if(l.__demoMode||l.menuState!==0||!s||l.activationTrigger===0)return;let k=be();return k.requestAnimationFrame(()=>{var T,K;(K=(T=c.current)==null?void 0:T.scrollIntoView)==null||K.call(T,{block:"nearest"})}),k.dispose},[l.__demoMode,c,s,l.menuState,l.activationTrigger,l.activeItemIndex]);let m=qa(c),v=f.useRef({disabled:o,domRef:c,get textValue(){return m()}});V(()=>{v.current.disabled=o},[v,o]),V(()=>(a({type:5,id:r,dataRef:v}),()=>a({type:6,id:r})),[v,r]);let h=D(()=>{a({type:1})}),b=D(k=>{if(o)return k.preventDefault();a({type:1}),sr(l.buttonRef.current)}),g=D(()=>{if(o)return a({type:2,focus:ee.Nothing});a({type:2,focus:ee.Specific,id:r})}),E=qi(),w=D(k=>{E.update(k),!o&&(s||a({type:2,focus:ee.Specific,id:r,trigger:0}))}),y=D(k=>{E.wasMoved(k)&&(o||s||a({type:2,focus:ee.Specific,id:r,trigger:0}))}),S=D(k=>{E.wasMoved(k)&&(o||s&&a({type:2,focus:ee.Nothing}))}),[F,P]=lr(),[O,I]=Fi(),j=f.useMemo(()=>({active:s,focus:s,disabled:o,close:h}),[s,o,h]);return f.createElement(P,null,f.createElement(I,null,J({ourProps:{id:r,ref:d,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-labelledby":F,"aria-describedby":O,disabled:void 0,onClick:b,onFocus:g,onPointerEnter:w,onMouseEnter:w,onPointerMove:y,onMouseMove:y,onPointerLeave:S,onMouseLeave:S},theirProps:i,slot:j,defaultTag:hs,name:"Menu.Item"})))}let vs="div";function bs(e,t){let[n,r]=lr();return f.createElement(r,null,J({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:vs,name:"Menu.Section"}))}let gs="header";function xs(e,t){let n=Ce(),{id:r=`headlessui-menu-heading-${n}`,...o}=e,i=nn();V(()=>i.register(r),[r,i.register]);let l={id:r,ref:t,role:"presentation",...i.props};return J({ourProps:l,theirProps:o,slot:{},defaultTag:gs,name:"Menu.Heading"})}let ys="div";function ws(e,t){return J({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:ys,name:"Menu.Separator"})}let Es=Z(ss),$s=Z(us),Ts=Z(ms),Ss=Z(ps),Cs=Z(bs),ks=Z(xs),js=Z(ws),Sn=Object.assign(Es,{Button:$s,Items:Ts,Item:Ss,Section:Cs,Heading:ks,Separator:js});const Cn=f.forwardRef(function(t,n){return p.jsx(la,{children:p.jsx("a",{...t,ref:n})})});function kn({className:e,...t}){return p.jsx("p",{...t,"data-slot":"text",className:Y(e,"text-base/6 text-zinc-500 sm:text-sm/6 dark:text-zinc-400")})}function Ps({className:e,...t}){return p.jsx(Cn,{...t,className:Y(e,"text-zinc-950 underline decoration-zinc-950/50 data-[hover]:decoration-zinc-950 dark:text-white dark:decoration-white/50 dark:data-[hover]:decoration-white")})}function Fs({className:e,...t}){return p.jsx("strong",{...t,className:Y(e,"font-medium text-zinc-950 dark:text-white")})}function Ls({className:e,...t}){return p.jsx("code",{...t,className:Y(e,"rounded border border-zinc-950/10 bg-zinc-950/[2.5%] px-0.5 text-sm font-medium text-zinc-950 sm:text-[0.8125rem] dark:border-white/20 dark:bg-white/5 dark:text-white")})}function Os({className:e,children:t,...n}){const r=Y("text-3xl font-bold",e);return p.jsx("h1",{className:r,...n,children:t})}function Ns({className:e,children:t,...n}){const r=Y("text-2xl font-bold",e);return p.jsx("h2",{className:r,...n,children:t})}function Ms({className:e,children:t,...n}){const r=Y("text-xl font-bold",e);return p.jsx("h3",{className:r,...n,children:t})}function _s({className:e,children:t,...n}){const r=Y("text-lg font-bold",e);return p.jsx("h4",{className:r,...n,children:t})}const As=(...e)=>e.filter(Boolean).join(" ");function Is({link:e,...t}){const[n,r]=f.useState(!1),o=As("inline-block relative h-12 inline-flex w-auto justify-center items-center px-3 text-sm",n?"bg-nav-dark-gray text-white":"text-nav-light-gray",e.children?"after:content-['▼'] after:text-[10px] after:ml-2":"");return p.jsxs(Sn,{as:"li",className:"relative",onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[p.jsx("a",{href:e.link,className:o,...t,children:e.label}),e.children&&n&&p.jsx(Sn.Items,{static:!0,as:"ul",className:"absolute left-0 top-13 width-auto bg-nav-dark-gray",children:e.children.map(i=>p.jsx(Sn.Item,{as:f.Fragment,children:p.jsx("a",{href:i.link,className:"block text-sm border-b border-nav-black bg-nav-dark-gray hover:bg-nav-translucent-gray text-nav-light-gray hover:text-white text-nowrap font-semibold px-[16px] py-[8px] bg-none",children:i.label})},i.id))})]})}const Ds=[{id:"layout",label:"Layout",link:"/layout",children:[{id:"layout-1",label:"Layout 1 goes here",link:"/layout-1"},{id:"layout-2",label:"Layout 2",link:"/layout-2"}]},{id:"another",label:"Another",link:"/another"}];function Rs({links:e,...t}){return p.jsx("ul",{role:"list",className:"flex flex-row justify-start m-0 pl-0 w-full",...t,children:e.map(n=>p.jsx(Is,{link:n},n.id))})}const Hs=({links:e=Ds})=>p.jsx("div",{className:"flex flex-row flex-wrap content-center justify-between w-full pr-3",children:p.jsx(Rs,{links:e})}),ro="/";function zs(...e){return e.filter(Boolean).join(" ")}function Bs({title:e="Title",subtitle:t="Subtitle"}){return p.jsxs("div",{style:{order:2},className:"font-usace w-full pl-[100px] bg-nav-gray",children:[p.jsx("span",{className:"text-sm font-bold mr-1",children:e}),p.jsx("span",{className:"text-sm",children:t})]})}function Ws({children:e}){return p.jsx("nav",{style:{order:1},className:"flex flex-row relative justify-between content-center bg-nav-black text-white h-12 pl-[91px] z-80",children:e})}function Vs(){return p.jsxs("div",{className:"absolute left-[15px] bottom-[-15px] w-[82px] z-10",children:[p.jsx("a",{href:"/",children:p.jsx("img",{className:"h-[50px] w-auto",src:`${ro}usace-logo-color.svg`})}),p.jsx("div",{className:"absolute left-[65px] bottom-[-9px] text-sm text-black",children:"®"})]})}function Us(){return p.jsx("input",{style:{order:2,backgroundImage:`url("${ro}Magnifying_glass_icon.svg")`,backgroundSize:"13px",backgroundRepeat:"no-repeat",backgroundPosition:"10px center"},className:"bg-white border-gray-200 border-2 rounded h-8 m-2 text-sm text-black w-full max-w-[300px] pl-8"})}function oo({links:e,title:t,subtitle:n}){const r=zs("flex","flex-col","w-full","sticky","top-0","z-20");return p.jsxs("header",{className:r,children:[p.jsx(Bs,{title:t,subtitle:n}),p.jsxs(Ws,{children:[p.jsx(Vs,{}),p.jsx(Hs,{links:e}),p.jsx(Us,{})]})]})}const Ys="/";function Ks(){return p.jsx("div",{className:`absolute bottom-[56px] left-[50%] h-[125px] w-[112px] ml-[-56px] bg-[url(${Ys}essayonscrest.png)]`})}const kt="/";function Gs({army:e,usace:t,rsgis:n,cwbi:r}){return p.jsxs("div",{className:"flex flex-row justify-center align-middle gap-6 mb-4",children:[e&&p.jsx("a",{href:"https://www.army.mil",target:"_blank",rel:"noopener",children:p.jsx("img",{src:`${kt}armystar-logo-rb.svg`,alt:"U.S. Army",className:"max-h-[75px]"})}),t&&p.jsx("a",{href:"https://www.usace.army.mil",target:"_blank",rel:"noopener",children:p.jsx("img",{src:`${kt}usace-logo-color.svg`,alt:"U.S. Army Corps of Engineers",className:"max-h-[75px] h-[75px] w-auto"})}),n&&p.jsx("a",{href:"https://www.erdc.usace.army.mil/Media/Fact-Sheets/Fact-Sheet-Article-View/article/476649/remote-sensinggeographic-information-systems-center/",target:"_blank",rel:"noopener",children:p.jsx("img",{src:`${kt}rsgis-logo.png`,alt:"Remote Sensing - GIS Center of Expertise",className:"max-h-[75px]"})}),r&&p.jsx("a",{href:"https://cwbi.sec.usace.army.mil",target:"_blank",rel:"noopener",children:p.jsx("img",{src:`${kt}cwbi-logo.png`,alt:"Civil Works Business Intelligence",className:"max-h-[75px]"})})]})}var io={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lo=f.createContext&&f.createContext(io),qs=["attr","size","title"];function Xs(e,t){if(e==null)return{};var n=Qs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jt.apply(this,arguments)}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ao(Object(n),!0).forEach(function(r){Js(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Js(e,t,n){return t=Zs(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e){var t=ec(e,"string");return typeof t=="symbol"?t:String(t)}function ec(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function so(e){return e&&e.map((t,n)=>f.createElement(t.tag,Pt({key:n},t.attr),so(t.child)))}function Re(e){return t=>f.createElement(tc,jt({attr:Pt({},e.attr)},t),so(e.child))}function tc(e){var t=n=>{var{attr:r,size:o,title:i}=e,l=Xs(e,qs),a=o||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),f.createElement("svg",jt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:s,style:Pt(Pt({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&f.createElement("title",null,i),e.children)};return lo!==void 0?f.createElement(lo.Consumer,null,n=>t(n)):t(io)}function nc(e){return Re({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(e)}function rc(e){return Re({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z"},child:[]}]})(e)}function oc(e){return Re({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function ic(e){return Re({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function lc({facebook:e,twitter:t,youtube:n,flickr:r}){return p.jsxs("ul",{className:"text-2xl flex flex-row flex-wrap gap-2 list-none mb-3",children:[e&&p.jsx("li",{children:p.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:"Facebook",children:p.jsx(nc,{})})}),t&&p.jsx("li",{children:p.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",title:"Twitter",children:p.jsx(ic,{})})}),n&&p.jsx("li",{children:p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",title:"YouTube",children:p.jsx(oc,{})})}),r&&p.jsx("li",{children:p.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",title:"Flickr",children:p.jsx(rc,{})})})]})}function co({links:e=[],columnCount:t=2}){return p.jsx("ul",{className:"list-none",style:{columnCount:t,columnGap:"40px",margin:0,padding:"0 0 0 2px"},children:e.map((n,r)=>{const o=n.href.startsWith("http")?"_blank":"",i=n.href.startsWith("http")?"noopener noreferrer":"";return p.jsx("li",{className:"mb-2",children:p.jsx("a",{href:n.href,target:o,rel:i,className:"hover:underline",children:n.text})},n.text+r)})})}function uo({missionText:e,aboutText:t,facebookUrl:n,twitterUrl:r,youtubeUrl:o,flickrUrl:i,usaceLinks:l,externalLinks:a,armyLogo:s,usaceLogo:c,rsgisLogo:d,cwbiLogo:m}){return p.jsxs("footer",{className:"relative text-footer-light-gray text-sm bg-footer-black border-t-gray-600 border-t-4 pb-[128px]",children:[p.jsx(Ks,{}),p.jsxs("div",{className:"bg-footer-gray pt-8 pb-16",children:[p.jsx(It,{fluid:!0,children:p.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[p.jsx("div",{className:"col-span-12 lg:col-span-6",children:p.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[p.jsx("div",{className:"col-span-6 lg:col-span-12",children:e&&p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"text-lg",children:"Our Mission"}),p.jsx(kn,{children:e})]})}),p.jsx("div",{className:"col-span-6 lg:col-span-12",children:t&&p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"text-lg",children:"About this Website"}),p.jsx(kn,{children:t})]})})]})}),p.jsxs("div",{className:"col-span-8 mt-8 lg:mt-2 lg:col-span-4",children:[p.jsx(lc,{facebook:n,twitter:r,youtube:o,flickr:i}),p.jsx(co,{links:l})]}),p.jsx("div",{className:"col-span-4 mt-[66px] lg:mt-2 lg:col-span-2",children:p.jsx(co,{links:a,columnCount:1})})]})}),p.jsx(Gs,{army:s,usace:c,rsgis:d,cwbi:m})]})]})}function ac(...e){return e.filter(Boolean).join(" ")}const fo=()=>{const[e,t]=f.useState(!1);return p.jsx("div",{id:"dnn_ctl03_header_banner_container",className:"header_banner_container",children:p.jsxs("span",{className:"header_banner_inner",children:[p.jsxs("div",{className:"header_banner_flag",children:["An official website of the United States government",p.jsx("div",{className:"header_banner_accordion",tabIndex:0,children:p.jsxs("u",{onClick:()=>{t(!e)},children:["Here's how you know",p.jsx("span",{className:ac("expand-more-container",e?"active":""),children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[p.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),p.jsx("path",{className:"expand-more",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})]})})]})})]}),e?p.jsxs("div",{className:"header_banner_panel active active",style:{paddingTop:"24px",paddingBottom:"18px",maxHeight:"154px"},children:[p.jsxs("div",{className:"header_banner_panel_item",children:[p.jsx("span",{className:"header_banner_dotgov"}),p.jsxs("div",{id:"dnn_ctl03_bannerContentLeft",className:"header_banner_content",children:[p.jsx("p",{className:"banner-contentLeft-text",children:p.jsx("strong",{children:" Official websites use .mil "})}),"A ",p.jsx("strong",{children:".mil"})," website belongs to an official U.S. Department of Defense organization in the United States."]})]}),p.jsxs("div",{className:"header_banner_panel_item https",children:[p.jsx("span",{className:"header_banner_https"}),p.jsxs("div",{id:"dnn_ctl03_bannerContentRight",className:"header_banner_content",children:[p.jsx("p",{className:"banner-contentRight-text",children:p.jsx("strong",{children:"Secure .mil websites use HTTPS"})}),p.jsxs("div",{children:[" ","A"," ",p.jsxs("strong",{children:["lock (",p.jsx("span",{className:"header_banner_icon_lock",children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"52",height:"64",viewBox:"0 0 52 64",children:[p.jsx("title",{children:"lock "}),p.jsx("path",{className:"icon_lock",fillRule:"evenodd",d:"M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"})," "]})}),")"]})," ","or ",p.jsx("strong",{children:" https://"})," means you’ve safely connected to the .mil website. Share sensitive information only on official, secure websites."]})]})]})]}):null]})})};function sc({children:e,headerLinks:t,usaBanner:n=!0,msgBanner:r=!1,title:o="US Army Corps of Engineers",subtitle:i="",missionText:l="",aboutText:a="",facebookUrl:s="",twitterUrl:c="",youtubeUrl:d="",flickrUrl:m="",usaceLinks:v=[],externalLinks:h=[],armyLogo:b=!0,usaceLogo:g=!0,rsgisLogo:E=!1,cwbiLogo:w=!1}){return p.jsxs("div",{className:"grid min-h-[100vh] grid-rows-1fr-auto",children:[p.jsxs("div",{children:[n&&p.jsx(fo,{}),r&&p.jsx(r,{}),p.jsx(oo,{links:t,title:o,subtitle:i}),e]}),p.jsx(uo,{missionText:l,aboutText:a,facebookUrl:s,twitterUrl:c,youtubeUrl:d,flickrUrl:m,usaceLinks:v,externalLinks:h,armyLogo:b,usaceLogo:g,rsgisLogo:E,cwbiLogo:w})]})}const it={base:["relative isolate inline-flex items-center justify-center gap-x-2 rounded-lg border text-base/6 font-semibold","px-[calc(theme(spacing[3.5])-1px)] py-[calc(theme(spacing[2.5])-1px)] sm:px-[calc(theme(spacing.3)-1px)] sm:py-[calc(theme(spacing[1.5])-1px)] sm:text-sm/6","focus:outline-none data-[focus]:outline data-[focus]:outline-2 data-[focus]:outline-offset-2 data-[focus]:outline-blue-500","data-[disabled]:opacity-50","[&>[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:my-0.5 [&>[data-slot=icon]]:size-5 [&>[data-slot=icon]]:shrink-0 [&>[data-slot=icon]]:text-[--btn-icon] [&>[data-slot=icon]]:sm:my-1 [&>[data-slot=icon]]:sm:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-[hover]:[--btn-icon:ButtonText]"],solid:["border-transparent bg-[--btn-border]","dark:bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.lg)-1px)] before:bg-[--btn-bg]","before:shadow","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.lg)-1px)]","after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-lg","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none"],outline:["border-zinc-950/10 text-zinc-950 data-[active]:bg-zinc-950/[2.5%] data-[hover]:bg-zinc-950/[2.5%]","dark:border-white/15 dark:text-white dark:[--btn-bg:transparent] dark:data-[active]:bg-white/5 dark:data-[hover]:bg-white/5","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],plain:["border-transparent text-zinc-950 data-[active]:bg-zinc-950/5 data-[hover]:bg-zinc-950/5","dark:text-white dark:data-[active]:bg-white/10 dark:data-[hover]:bg-white/10","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],colors:{"dark/zinc":["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:text-white dark:[--btn-bg:theme(colors.zinc.600)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],light:["text-zinc-950 [--btn-bg:white] [--btn-border:theme(colors.zinc.950/10%)] [--btn-hover-overlay:theme(colors.zinc.950/2.5%)] data-[active]:[--btn-border:theme(colors.zinc.950/15%)] data-[hover]:[--btn-border:theme(colors.zinc.950/15%)]","dark:text-white dark:[--btn-hover-overlay:theme(colors.white/5%)] dark:[--btn-bg:theme(colors.zinc.800)]","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],"dark/white":["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:text-zinc-950 dark:[--btn-bg:white] dark:[--btn-hover-overlay:theme(colors.zinc.950/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],dark:["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:[--btn-hover-overlay:theme(colors.white/5%)] dark:[--btn-bg:theme(colors.zinc.800)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],white:["text-zinc-950 [--btn-bg:white] [--btn-border:theme(colors.zinc.950/10%)] [--btn-hover-overlay:theme(colors.zinc.950/2.5%)] data-[active]:[--btn-border:theme(colors.zinc.950/15%)] data-[hover]:[--btn-border:theme(colors.zinc.950/15%)]","dark:[--btn-hover-overlay:theme(colors.zinc.950/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.500)] data-[hover]:[--btn-icon:theme(colors.zinc.500)]"],zinc:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.zinc.600)] [--btn-border:theme(colors.zinc.700/90%)]","dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],indigo:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.indigo.500)] [--btn-border:theme(colors.indigo.600/90%)]","[--btn-icon:theme(colors.indigo.300)] data-[active]:[--btn-icon:theme(colors.indigo.200)] data-[hover]:[--btn-icon:theme(colors.indigo.200)]"],cyan:["text-cyan-950 [--btn-bg:theme(colors.cyan.300)] [--btn-border:theme(colors.cyan.400/80%)] [--btn-hover-overlay:theme(colors.white/25%)]","[--btn-icon:theme(colors.cyan.500)]"],red:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.red.600)] [--btn-border:theme(colors.red.700/90%)]","[--btn-icon:theme(colors.red.300)] data-[active]:[--btn-icon:theme(colors.red.200)] data-[hover]:[--btn-icon:theme(colors.red.200)]"],orange:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.orange.500)] [--btn-border:theme(colors.orange.600/90%)]","[--btn-icon:theme(colors.orange.300)] data-[active]:[--btn-icon:theme(colors.orange.200)] data-[hover]:[--btn-icon:theme(colors.orange.200)]"],amber:["text-amber-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.amber.400)] [--btn-border:theme(colors.amber.500/80%)]","[--btn-icon:theme(colors.amber.600)]"],yellow:["text-yellow-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.yellow.300)] [--btn-border:theme(colors.yellow.400/80%)]","[--btn-icon:theme(colors.yellow.600)] data-[active]:[--btn-icon:theme(colors.yellow.700)] data-[hover]:[--btn-icon:theme(colors.yellow.700)]"],lime:["text-lime-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.lime.300)] [--btn-border:theme(colors.lime.400/80%)]","[--btn-icon:theme(colors.lime.600)] data-[active]:[--btn-icon:theme(colors.lime.700)] data-[hover]:[--btn-icon:theme(colors.lime.700)]"],green:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.green.600)] [--btn-border:theme(colors.green.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],emerald:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.emerald.600)] [--btn-border:theme(colors.emerald.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],teal:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.teal.600)] [--btn-border:theme(colors.teal.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],sky:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.sky.500)] [--btn-border:theme(colors.sky.600/80%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],blue:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.blue.600)] [--btn-border:theme(colors.blue.700/90%)]","[--btn-icon:theme(colors.blue.400)] data-[active]:[--btn-icon:theme(colors.blue.300)] data-[hover]:[--btn-icon:theme(colors.blue.300)]"],violet:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.violet.500)] [--btn-border:theme(colors.violet.600/90%)]","[--btn-icon:theme(colors.violet.300)] data-[active]:[--btn-icon:theme(colors.violet.200)] data-[hover]:[--btn-icon:theme(colors.violet.200)]"],purple:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.purple.500)] [--btn-border:theme(colors.purple.600/90%)]","[--btn-icon:theme(colors.purple.300)] data-[active]:[--btn-icon:theme(colors.purple.200)] data-[hover]:[--btn-icon:theme(colors.purple.200)]"],fuchsia:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.fuchsia.500)] [--btn-border:theme(colors.fuchsia.600/90%)]","[--btn-icon:theme(colors.fuchsia.300)] data-[active]:[--btn-icon:theme(colors.fuchsia.200)] data-[hover]:[--btn-icon:theme(colors.fuchsia.200)]"],pink:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.pink.500)] [--btn-border:theme(colors.pink.600/90%)]","[--btn-icon:theme(colors.pink.300)] data-[active]:[--btn-icon:theme(colors.pink.200)] data-[hover]:[--btn-icon:theme(colors.pink.200)]"],rose:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.rose.500)] [--btn-border:theme(colors.rose.600/90%)]","[--btn-icon:theme(colors.rose.300)] data-[active]:[--btn-icon:theme(colors.rose.200)] data-[hover]:[--btn-icon:theme(colors.rose.200)]"]}},cc=f.forwardRef(function({color:t,outline:n,plain:r,className:o,children:i,...l},a){let s=Y(it.base,n?it.outline:r?it.plain:Y(it.solid,it.colors[t??"dark/zinc"]),o);return"href"in l?p.jsx(Cn,{...l,className:s,ref:a,children:p.jsx(jn,{children:i})}):p.jsx(xi,{...l,className:Y(s,"cursor-default"),ref:a,children:p.jsx(jn,{children:i})})});function jn({children:e}){return p.jsxs(p.Fragment,{children:[e,p.jsx("span",{className:"absolute left-1/2 top-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"})]})}function uc({title:e,subtitle:t,image:n,alt:r,children:o}){return p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"h-56 w-full overflow-clip bg-zinc-950 md:h-1/5 md:max-h-[500px]",children:p.jsx("img",{src:n,alt:r,className:"object-cover object-center w-full h-full"})}),p.jsx("div",{className:"absolute inset-0 bg-zinc-950/50"}),o&&p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:o}),e&&p.jsx(It,{className:"relative",children:p.jsx("div",{className:"absolute bottom-0 left-0 max-w-7xl mx-auto px-4",children:p.jsxs("div",{className:"pb-8",children:[p.jsx("h1",{className:"text-4xl font-extrabold tracking-tight text-white sm:text-5xl lg:text-6xl",children:e}),p.jsx("p",{className:"mt-1 text-xl text-zinc-200",children:t})]})})})]})}function fc(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(e)}function dc(e){return Re({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"},child:[]}]})(e)}function mc({className:e,href:t,text:n}){const r=Y("text-gray-300 hover:text-gray-500 last:text-gray-900",e);return p.jsx("li",{className:r,children:p.jsxs("div",{className:"flex items-center",children:[p.jsx(dc,{size:18,"aria-hidden":"true",color:"rgb(156 163 175)"}),p.jsx("a",{href:t,className:"ml-2 hover:underline",children:n})]})})}function hc({className:e,children:t}){const n=Y("flex items-center justify-between py-4",e);return p.jsx("nav",{className:n,children:p.jsxs("ol",{className:"flex items-center space-x-2",children:[p.jsx("li",{children:p.jsx("div",{children:p.jsxs("a",{href:"/",className:"text-gray-300 hover:text-gray-500",children:[p.jsx(fc,{size:22}),p.jsx("span",{className:"sr-only",children:"Home"})]})})}),t]})})}const Ft=f.createContext({bleed:!1,dense:!1,grid:!1,striped:!1});function pc({bleed:e=!1,dense:t=!1,grid:n=!1,striped:r=!1,className:o,children:i,...l}){return p.jsx(Ft.Provider,{value:{bleed:e,dense:t,grid:n,striped:r},children:p.jsx("div",{className:"flow-root",children:p.jsx("div",{...l,className:Y(o,"-mx-[--gutter] overflow-x-auto whitespace-nowrap"),children:p.jsx("div",{className:Y("inline-block min-w-full align-middle",!e&&"sm:px-[--gutter]"),children:p.jsx("table",{className:"min-w-full text-left text-sm/6",children:i})})})})})}function vc({className:e,...t}){return p.jsx("thead",{className:Y(e,"text-zinc-500 dark:text-zinc-400"),...t})}function bc(e){return p.jsx("tbody",{...e})}const mo=f.createContext({href:void 0,target:void 0,title:void 0});function gc({href:e,target:t,title:n,className:r,children:o,...i}){let{striped:l}=f.useContext(Ft);return p.jsx(mo.Provider,{value:{href:e,target:t,title:n},children:p.jsx("tr",{...i,className:Y(r,e&&"has-[[data-row-link][data-focus]]:outline has-[[data-row-link][data-focus]]:outline-2 has-[[data-row-link][data-focus]]:-outline-offset-2 has-[[data-row-link][data-focus]]:outline-blue-500 dark:focus-within:bg-white/[2.5%]",l&&"even:bg-zinc-950/[2.5%] dark:even:bg-white/[2.5%]",e&&l&&"hover:bg-zinc-950/5 dark:hover:bg-white/5",e&&!l&&"hover:bg-zinc-950/[2.5%] dark:hover:bg-white/[2.5%]"),children:o})})}function xc({className:e,...t}){let{bleed:n,grid:r}=f.useContext(Ft);return p.jsx("th",{...t,className:Y(e,"border-b border-b-zinc-950/10 px-4 py-2 font-medium first:pl-[var(--gutter,theme(spacing.2))] last:pr-[var(--gutter,theme(spacing.2))] dark:border-b-white/10",r&&"border-l border-l-zinc-950/5 first:border-l-0 dark:border-l-white/5",!n&&"sm:first:pl-2 sm:last:pr-2")})}function yc({className:e,children:t,...n}){let{bleed:r,dense:o,grid:i,striped:l}=f.useContext(Ft),{href:a,target:s,title:c}=f.useContext(mo),[d,m]=f.useState(null);return p.jsxs("td",{ref:a?m:void 0,...n,className:Y(e,"relative px-4 first:pl-[var(--gutter,theme(spacing.2))] last:pr-[var(--gutter,theme(spacing.2))]",!l&&"border-b border-zinc-950/5 dark:border-white/5",i&&"border-l border-l-zinc-950/5 first:border-l-0 dark:border-l-white/5",o?"py-2.5":"py-4",!r&&"sm:first:pl-2 sm:last:pr-2"),children:[a&&p.jsx(Cn,{"data-row-link":!0,href:a,target:s,"aria-label":c,tabIndex:(d==null?void 0:d.previousElementSibling)===null?0:-1,className:"absolute inset-0 focus:outline-none"}),t]})}_.BreadcrumbItem=mc,_.Breadcrumbs=hc,_.Button=cc,_.Code=Ls,_.Container=It,_.Footer=uo,_.H1=Os,_.H2=Ns,_.H3=Ms,_.H4=_s,_.Header=oo,_.Hero=uc,_.SiteWrapper=sc,_.Strong=Fs,_.Table=pc,_.TableBody=bc,_.TableCell=yc,_.TableHead=vc,_.TableHeader=xc,_.TableRow=gc,_.Text=kn,_.TextLink=Ps,_.TouchTarget=jn,_.USABanner=fo,_.UsaceBox=Lo,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .header_banner_container,.header_banner_container .header_banner_content .banner-contentLeft-text,.header_banner_container .header_banner_content .banner-contentRight-text{color:#fff}.header_banner_container{padding:0 20px;position:relative;z-index:10}.header_banner_container .header_banner_flag{display:block;padding:6px 0;height:50px;font-size:13px;box-sizing:border-box}@media screen and (min-width: 544px){.header_banner_container .header_banner_flag{height:30px}}.header_banner_container .header_banner_flag:before{background-image:url(/us_flag_small.png);background-size:20px 12px;content:"";display:inline-block;height:12px;margin-right:10px;width:20px}.header_banner_flag_img{background-size:20px 12px;content:"";display:inline-block;height:12px;margin-right:10px;width:20px}.header_banner_container .header_banner_inner{display:block;line-height:1.5;margin:0 auto;max-width:1400px;font-size:12px}.header_banner_container .header_banner_accordion{border:0;color:#aebfd4;cursor:pointer;font-size:13px;outline:none;text-align:left;transition:all .4s ease-out;margin:0 4px 0 10px;display:inline-block}.header_banner_container .header_banner_accordion:focus-visible{outline:5px auto -webkit-focus-ring-color}@media screen and (min-width: 367px){.header_banner_container .header_banner_accordion{margin:0 4px 0 0}}@media screen and (min-width: 518px){.header_banner_container .header_banner_accordion{margin:0 4px 0 10px}}.header_banner_container .header_banner_accordion svg{display:inline-block;position:relative;transition:all .4s ease-out;height:18px;width:18px;vertical-align:middle}.header_banner_container .header_banner_accordion svg .expand-more{fill:#aebfd4}.header_banner_container .header_banner_panel{display:flex;flex-direction:column;margin:0 auto;max-height:0;max-width:1400px;overflow:hidden;transition:all .2s ease-out}@media screen and (min-width: 768px){.header_banner_container .header_banner_panel{flex-direction:row}}.header_banner_container .header_banner_panel_item{display:flex;flex-direction:row;width:100%;height:100%}.header_banner_container .header_banner_panel_item:last-child{margin-top:20px}@media screen and (min-width: 768px){.header_banner_container .header_banner_panel_item{width:50%;margin-right:50px}.header_banner_container .header_banner_panel_item:last-child{margin-top:0}}.header_banner_container .header_banner_content{font-size:14px;line-height:26px;max-width:none;width:100%;margin-bottom:10px;letter-spacing:.5px}.header_banner_container .header_banner_content .banner-contentLeft-text,.header_banner_container .header_banner_content .banner-contentRight-text{margin-bottom:0;font-size:18px}.header_banner_container .header_banner_dotgov:before{background-image:url(/icon-dot-gov.svg);background-size:50px;content:"";display:inline-block;height:50px;margin-right:10px;width:50px}.header_banner_container .header_banner_https:before{background-image:url(/icon-https.svg);background-size:50px;content:"";display:inline-block;height:50px;margin-right:10px;width:50px}.header_banner_container .header_banner_icon_lock{display:inline-block;height:15px;position:relative;width:15px;margin:0 8px}.header_banner_container .header_banner_icon_lock svg{height:15px;width:15px;fill:#000}body{transition:padding-top .2s ease-out}.expand-more-container.active{display:inline-block;transform:rotate(180deg);vertical-align:text-top}.header_banner_container{background-color:#15263b;color:#fff}.icon_lock{fill:#fff}.header_banner_container .header_banner_content .banner-contentLeft-text,.header_banner_container .header_banner_content .banner-contentRight-text{color:#fff}
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@usace/groundwork",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
+ "license": "MIT",
5
6
  "type": "module",
7
+ "main": "./dist/groundwork.umd.cjs",
8
+ "module": "./dist/groundwork.es.js",
9
+ "files": [
10
+ "dist"
11
+ ],
6
12
  "exports": {
7
13
  ".": {
8
14
  "import": "./dist/groundwork.es.js",
@@ -22,13 +28,15 @@
22
28
  "@headlessui/react": "^2.0.0-alpha.4",
23
29
  "clsx": "^2.1.0",
24
30
  "internal-nav-helper": "^3.1.0",
25
- "react": "^18.2.0",
26
- "react-dom": "^18.2.0",
27
31
  "react-icons": "^5.0.1",
28
32
  "redux-bundler": "^28.1.0",
29
33
  "redux-bundler-hook": "^1.0.3",
30
34
  "redux-bundler-react": "^1.2.0"
31
35
  },
36
+ "peerDependencies": {
37
+ "react": "^18.2.0",
38
+ "react-dom": "^18.2.0"
39
+ },
32
40
  "devDependencies": {
33
41
  "@types/react": "^18.2.43",
34
42
  "@types/react-dom": "^18.2.17",
package/.eslintrc.cjs DELETED
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:react-hooks/recommended',
8
- ],
9
- ignorePatterns: ['dist', '.eslintrc.cjs'],
10
- parser: '@typescript-eslint/parser',
11
- plugins: ['react-refresh'],
12
- rules: {
13
- 'react-refresh/only-export-components': [
14
- 'warn',
15
- { allowConstantExport: true },
16
- ],
17
- },
18
- }
@@ -1,59 +0,0 @@
1
- name: Deploy to GH Pages
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- build:
10
- name: Build
11
- runs-on: ubuntu-latest
12
-
13
- steps:
14
- - name: Checkout repo
15
- uses: actions/checkout@v4
16
-
17
- - name: Setup Node
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: 20
21
-
22
- - name: Get Package Version
23
- id: get_version
24
- uses: stevenbenitez/get-package-version-action@v1
25
-
26
- - name: Install dependencies
27
- run: npm ci
28
-
29
- - name: Build project
30
- env:
31
- VITE_HOMEPAGE: "https://usace.github.io/groundwork"
32
- run: npm run build-docs
33
-
34
- - name: Upload production-ready build files
35
- uses: actions/upload-pages-artifact@v3
36
- with:
37
- path: ./docs
38
-
39
- # Deploy job
40
- deploy:
41
- # Add a dependency to the build job
42
- needs: build
43
-
44
- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
45
- permissions:
46
- pages: write # to deploy to Pages
47
- id-token: write # to verify the deployment originates from an appropriate source
48
-
49
- # Deploy to the github-pages environment
50
- environment:
51
- name: github-pages
52
- url: ${{ steps.deployment.outputs.page_url }}
53
-
54
- # Specify runner + deployment step
55
- runs-on: ubuntu-latest
56
- steps:
57
- - name: Deploy to GitHub Pages
58
- id: deployment
59
- uses: actions/deploy-pages@v4 # or the latest "vX.X.X" version tag for this action
@@ -1,19 +0,0 @@
1
- name: Publish
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- publish-to-npm:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v4
12
- - uses: actions/setup-node@v4
13
- with:
14
- node-version: 20
15
- registry-url: https://registry.npmjs.org
16
- - run: npm ci
17
- - run: npm run pub
18
- env:
19
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/usace-logo-color.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Groundwork</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.jsx"></script>
12
- </body>
13
- </html>