@raspberrypifoundation/design-system-react 2.11.0 → 2.11.1

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 (72) hide show
  1. package/README.md +25 -4
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +1277 -1232
  4. package/dist/design-system-react.umd.cjs +13 -13
  5. package/dist/scss/components/button.scss +69 -5
  6. package/dist/types/src/components/Accordion/index.d.ts +1 -1
  7. package/dist/types/src/components/Accordion/index.d.ts.map +1 -1
  8. package/dist/types/src/components/Alert/index.d.ts +1 -1
  9. package/dist/types/src/components/Alert/index.d.ts.map +1 -1
  10. package/dist/types/src/components/Button/Button.types.d.ts +7 -0
  11. package/dist/types/src/components/Button/Button.types.d.ts.map +1 -1
  12. package/dist/types/src/components/Button/index.d.ts +1 -2
  13. package/dist/types/src/components/Button/index.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
  15. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/Fieldset/index.d.ts +1 -1
  17. package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/InputField/index.d.ts +1 -1
  19. package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/InputLabel/index.d.ts +1 -1
  21. package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/PasswordInput/index.d.ts +1 -1
  23. package/dist/types/src/components/Form/PasswordInput/index.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
  25. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
  26. package/dist/types/src/components/Form/SearchInput/index.d.ts +1 -1
  27. package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
  29. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
  30. package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
  31. package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/TextareaInput/index.d.ts +1 -1
  33. package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
  34. package/dist/types/src/components/Menu/MenuButton/index.d.ts +1 -1
  35. package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -1
  36. package/dist/types/src/components/Menu/MenuItem/index.d.ts +1 -1
  37. package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -1
  38. package/dist/types/src/components/Menu/MenuTitle/index.d.ts +1 -1
  39. package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -1
  40. package/dist/types/src/components/Menu/index.d.ts +1 -1
  41. package/dist/types/src/components/Menu/index.d.ts.map +1 -1
  42. package/dist/types/src/components/Modal/index.d.ts +1 -1
  43. package/dist/types/src/components/Modal/index.d.ts.map +1 -1
  44. package/dist/types/src/components/ProgressBar/index.d.ts +1 -1
  45. package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -1
  46. package/dist/types/src/components/Table/BodyCell/index.d.ts +1 -1
  47. package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -1
  48. package/dist/types/src/components/Table/HeaderCell/index.d.ts +1 -1
  49. package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -1
  50. package/dist/types/src/components/Table/Table/index.d.ts +1 -1
  51. package/dist/types/src/components/Table/Table/index.d.ts.map +1 -1
  52. package/dist/types/src/components/Tag/index.d.ts +1 -1
  53. package/dist/types/src/components/Tag/index.d.ts.map +1 -1
  54. package/dist/types/src/stories/Accordion.stories.d.ts +1 -1
  55. package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -1
  56. package/dist/types/src/stories/Button.stories.d.ts +50 -5
  57. package/dist/types/src/stories/Button.stories.d.ts.map +1 -1
  58. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +1 -2
  59. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -1
  60. package/dist/types/src/stories/Modal/Modal.stories.d.ts +1 -1
  61. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +2 -2
  62. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -1
  63. package/dist/types/src/stories/ProgressBar.stories.d.ts +3 -3
  64. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +1 -1
  65. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -1
  66. package/package.json +7 -7
  67. package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts +0 -2
  68. package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts.map +0 -1
  69. package/dist/types/src/components/Squiggle/index.d.ts +0 -4
  70. package/dist/types/src/components/Squiggle/index.d.ts.map +0 -1
  71. package/dist/types/src/stories/Squiggle.stories.d.ts +0 -8
  72. package/dist/types/src/stories/Squiggle.stories.d.ts.map +0 -1
@@ -1,35 +1,35 @@
1
- (function(V,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(V=typeof globalThis<"u"?globalThis:V||self,p(V["RPF Design System React"]={},V.jsxRuntime,V.React,V.ReactDOM))})(this,(function(V,p,te,Qn){"use strict";function $t(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=$t(te),er=$t(Qn);function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}};/*!
1
+ (function(V,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],d):(V=typeof globalThis<"u"?globalThis:V||self,d(V["RPF Design System React"]={},V.jsxRuntime,V.React,V.ReactDOM))})(this,(function(V,d,ne,nr){"use strict";function $t(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=$t(ne),rr=$t(nr);function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var Wt;function tr(){return Wt||(Wt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(s=o(s,n(a)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var i="";for(var a in s)t.call(s,a)&&s[a]&&(i=o(i,a));return i}function o(s,i){return i?s?s+" "+i:s+i:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(it)),it.exports}var nr=tr();const z=jt(nr);var Me={exports:{}},ke={exports:{}},Y={};/** @license React v16.13.1
5
+ */var Bt;function or(){return Bt||(Bt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(s=o(s,n(a)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var i="";for(var a in s)t.call(s,a)&&s[a]&&(i=o(i,a));return i}function o(s,i){return i?s?s+" "+i:s+i:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(it)),it.exports}var sr=or();const X=jt(sr);var Me={exports:{}},De={exports:{}},U={};/** @license React v16.13.1
6
6
  * react-is.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var Bt;function rr(){if(Bt)return Y;Bt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function w(g){if(typeof g=="object"&&g!==null){var I=g.$$typeof;switch(I){case t:switch(g=g.type,g){case f:case c:case n:case s:case o:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case u:case b:case l:case i:return g;default:return I}}case r:return I}}}function O(g){return w(g)===c}return Y.AsyncMode=f,Y.ConcurrentMode=c,Y.ContextConsumer=a,Y.ContextProvider=i,Y.Element=t,Y.ForwardRef=u,Y.Fragment=n,Y.Lazy=b,Y.Memo=l,Y.Portal=r,Y.Profiler=s,Y.StrictMode=o,Y.Suspense=d,Y.isAsyncMode=function(g){return O(g)||w(g)===f},Y.isConcurrentMode=O,Y.isContextConsumer=function(g){return w(g)===a},Y.isContextProvider=function(g){return w(g)===i},Y.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Y.isForwardRef=function(g){return w(g)===u},Y.isFragment=function(g){return w(g)===n},Y.isLazy=function(g){return w(g)===b},Y.isMemo=function(g){return w(g)===l},Y.isPortal=function(g){return w(g)===r},Y.isProfiler=function(g){return w(g)===s},Y.isStrictMode=function(g){return w(g)===o},Y.isSuspense=function(g){return w(g)===d},Y.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===c||g===s||g===o||g===d||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===b||g.$$typeof===l||g.$$typeof===i||g.$$typeof===a||g.$$typeof===u||g.$$typeof===S||g.$$typeof===A||g.$$typeof===M||g.$$typeof===h)},Y.typeOf=w,Y}var U={};/** @license React v16.13.1
12
+ */var Wt;function ir(){if(Wt)return U;Wt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function g(y){if(typeof y=="object"&&y!==null){var F=y.$$typeof;switch(F){case t:switch(y=y.type,y){case u:case c:case n:case s:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case a:case f:case b:case l:case i:return y;default:return F}}case r:return F}}}function S(y){return g(y)===c}return U.AsyncMode=u,U.ConcurrentMode=c,U.ContextConsumer=a,U.ContextProvider=i,U.Element=t,U.ForwardRef=f,U.Fragment=n,U.Lazy=b,U.Memo=l,U.Portal=r,U.Profiler=s,U.StrictMode=o,U.Suspense=p,U.isAsyncMode=function(y){return S(y)||g(y)===u},U.isConcurrentMode=S,U.isContextConsumer=function(y){return g(y)===a},U.isContextProvider=function(y){return g(y)===i},U.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},U.isForwardRef=function(y){return g(y)===f},U.isFragment=function(y){return g(y)===n},U.isLazy=function(y){return g(y)===b},U.isMemo=function(y){return g(y)===l},U.isPortal=function(y){return g(y)===r},U.isProfiler=function(y){return g(y)===s},U.isStrictMode=function(y){return g(y)===o},U.isSuspense=function(y){return g(y)===p},U.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===c||y===s||y===o||y===p||y===v||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===l||y.$$typeof===i||y.$$typeof===a||y.$$typeof===f||y.$$typeof===A||y.$$typeof===P||y.$$typeof===R||y.$$typeof===h)},U.typeOf=g,U}var H={};/** @license React v16.13.1
13
13
  * react-is.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var qt;function or(){return qt||(qt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function w(_){return typeof _=="string"||typeof _=="function"||_===n||_===c||_===s||_===o||_===d||_===v||typeof _=="object"&&_!==null&&(_.$$typeof===b||_.$$typeof===l||_.$$typeof===i||_.$$typeof===a||_.$$typeof===u||_.$$typeof===S||_.$$typeof===A||_.$$typeof===M||_.$$typeof===h)}function O(_){if(typeof _=="object"&&_!==null){var oe=_.$$typeof;switch(oe){case t:var pe=_.type;switch(pe){case f:case c:case n:case s:case o:case d:return pe;default:var le=pe&&pe.$$typeof;switch(le){case a:case u:case b:case l:case i:return le;default:return oe}}case r:return oe}}}var g=f,I=c,X=a,H=i,G=t,K=u,Q=n,B=b,ne=l,Z=r,L=s,j=o,q=d,k=!1;function T(_){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(_)||O(_)===f}function m(_){return O(_)===c}function E(_){return O(_)===a}function F(_){return O(_)===i}function W(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function C(_){return O(_)===u}function R(_){return O(_)===n}function y(_){return O(_)===b}function P(_){return O(_)===l}function N(_){return O(_)===r}function $(_){return O(_)===s}function D(_){return O(_)===o}function J(_){return O(_)===d}U.AsyncMode=g,U.ConcurrentMode=I,U.ContextConsumer=X,U.ContextProvider=H,U.Element=G,U.ForwardRef=K,U.Fragment=Q,U.Lazy=B,U.Memo=ne,U.Portal=Z,U.Profiler=L,U.StrictMode=j,U.Suspense=q,U.isAsyncMode=T,U.isConcurrentMode=m,U.isContextConsumer=E,U.isContextProvider=F,U.isElement=W,U.isForwardRef=C,U.isFragment=R,U.isLazy=y,U.isMemo=P,U.isPortal=N,U.isProfiler=$,U.isStrictMode=D,U.isSuspense=J,U.isValidElementType=w,U.typeOf=O})()),U}var Vt;function Yt(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?ke.exports=rr():ke.exports=or()),ke.exports}/*
19
+ */var qt;function ar(){return qt||(qt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===s||C===o||C===p||C===v||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===l||C.$$typeof===i||C.$$typeof===a||C.$$typeof===f||C.$$typeof===A||C.$$typeof===P||C.$$typeof===R||C.$$typeof===h)}function S(C){if(typeof C=="object"&&C!==null){var oe=C.$$typeof;switch(oe){case t:var he=C.type;switch(he){case u:case c:case n:case s:case o:case p:return he;default:var le=he&&he.$$typeof;switch(le){case a:case f:case b:case l:case i:return le;default:return oe}}case r:return oe}}}var y=u,F=c,Y=a,K=i,Q=t,G=f,z=n,B=b,te=l,Z=r,k=s,M=o,W=p,D=!1;function T(C){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(C)||S(C)===u}function m(C){return S(C)===c}function E(C){return S(C)===a}function $(C){return S(C)===i}function q(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function _(C){return S(C)===f}function N(C){return S(C)===n}function w(C){return S(C)===b}function O(C){return S(C)===l}function I(C){return S(C)===r}function j(C){return S(C)===s}function L(C){return S(C)===o}function J(C){return S(C)===p}H.AsyncMode=y,H.ConcurrentMode=F,H.ContextConsumer=Y,H.ContextProvider=K,H.Element=Q,H.ForwardRef=G,H.Fragment=z,H.Lazy=B,H.Memo=te,H.Portal=Z,H.Profiler=k,H.StrictMode=M,H.Suspense=W,H.isAsyncMode=T,H.isConcurrentMode=m,H.isContextConsumer=E,H.isContextProvider=$,H.isElement=q,H.isForwardRef=_,H.isFragment=N,H.isLazy=w,H.isMemo=O,H.isPortal=I,H.isProfiler=j,H.isStrictMode=L,H.isSuspense=J,H.isValidElementType=g,H.typeOf=S})()),H}var Vt;function Yt(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?De.exports=ir():De.exports=ar()),De.exports}/*
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */var at,Ut;function sr(){if(Ut)return at;Ut=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var f=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(f.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return at=o()?Object.assign:function(s,i){for(var a,f=n(s),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var d in a)t.call(a,d)&&(f[d]=a[d]);if(e){c=e(a);for(var v=0;v<c.length;v++)r.call(a,c[v])&&(f[c[v]]=a[c[v]])}}return f},at}var ct,Ht;function lt(){if(Ht)return ct;Ht=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ct=e,ct}var ft,Kt;function zt(){return Kt||(Kt=1,ft=Function.call.bind(Object.prototype.hasOwnProperty)),ft}var ut,Xt;function ir(){if(Xt)return ut;Xt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lt(),r={},n=zt();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,f,c){if(process.env.NODE_ENV!=="production"){for(var u in s)if(n(s,u)){var d;try{if(typeof s[u]!="function"){var v=Error((f||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}d=s[u](i,u,f,a,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((f||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var l=c?c():"";e("Failed "+a+" type: "+d.message+(l??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ut=o,ut}var dt,Gt;function ar(){if(Gt)return dt;Gt=1;var e=Yt(),t=sr(),r=lt(),n=zt(),o=ir(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var f="Warning: "+a;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function i(){return null}return dt=function(a,f){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(m){var E=m&&(c&&m[c]||m[u]);if(typeof E=="function")return E}var v="<<anonymous>>",l={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:M(),arrayOf:w,element:O(),elementType:g(),instanceOf:I,node:K(),objectOf:H,oneOf:X,oneOfType:G,shape:B,exact:ne};function b(m,E){return m===E?m!==0||1/m===1/E:m!==m&&E!==E}function h(m,E){this.message=m,this.data=E&&typeof E=="object"?E:{},this.stack=""}h.prototype=Error.prototype;function S(m){if(process.env.NODE_ENV!=="production")var E={},F=0;function W(R,y,P,N,$,D,J){if(N=N||v,D=D||P,J!==r){if(f){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=N+":"+P;!E[oe]&&F<3&&(s("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+N+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[oe]=!0,F++)}}return y[P]==null?R?y[P]===null?new h("The "+$+" `"+D+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new h("The "+$+" `"+D+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:m(y,P,N,$,D)}var C=W.bind(null,!1);return C.isRequired=W.bind(null,!0),C}function A(m){function E(F,W,C,R,y,P){var N=F[W],$=j(N);if($!==m){var D=q(N);return new h("Invalid "+R+" `"+y+"` of type "+("`"+D+"` supplied to `"+C+"`, expected ")+("`"+m+"`."),{expectedType:m})}return null}return S(E)}function M(){return S(i)}function w(m){function E(F,W,C,R,y){if(typeof m!="function")return new h("Property `"+y+"` of component `"+C+"` has invalid PropType notation inside arrayOf.");var P=F[W];if(!Array.isArray(P)){var N=j(P);return new h("Invalid "+R+" `"+y+"` of type "+("`"+N+"` supplied to `"+C+"`, expected an array."))}for(var $=0;$<P.length;$++){var D=m(P,$,C,R,y+"["+$+"]",r);if(D instanceof Error)return D}return null}return S(E)}function O(){function m(E,F,W,C,R){var y=E[F];if(!a(y)){var P=j(y);return new h("Invalid "+C+" `"+R+"` of type "+("`"+P+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return S(m)}function g(){function m(E,F,W,C,R){var y=E[F];if(!e.isValidElementType(y)){var P=j(y);return new h("Invalid "+C+" `"+R+"` of type "+("`"+P+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return S(m)}function I(m){function E(F,W,C,R,y){if(!(F[W]instanceof m)){var P=m.name||v,N=T(F[W]);return new h("Invalid "+R+" `"+y+"` of type "+("`"+N+"` supplied to `"+C+"`, expected ")+("instance of `"+P+"`."))}return null}return S(E)}function X(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function E(F,W,C,R,y){for(var P=F[W],N=0;N<m.length;N++)if(b(P,m[N]))return null;var $=JSON.stringify(m,function(J,_){var oe=q(_);return oe==="symbol"?String(_):_});return new h("Invalid "+R+" `"+y+"` of value `"+String(P)+"` "+("supplied to `"+C+"`, expected one of "+$+"."))}return S(E)}function H(m){function E(F,W,C,R,y){if(typeof m!="function")return new h("Property `"+y+"` of component `"+C+"` has invalid PropType notation inside objectOf.");var P=F[W],N=j(P);if(N!=="object")return new h("Invalid "+R+" `"+y+"` of type "+("`"+N+"` supplied to `"+C+"`, expected an object."));for(var $ in P)if(n(P,$)){var D=m(P,$,C,R,y+"."+$,r);if(D instanceof Error)return D}return null}return S(E)}function G(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var E=0;E<m.length;E++){var F=m[E];if(typeof F!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(F)+" at index "+E+"."),i}function W(C,R,y,P,N){for(var $=[],D=0;D<m.length;D++){var J=m[D],_=J(C,R,y,P,N,r);if(_==null)return null;_.data&&n(_.data,"expectedType")&&$.push(_.data.expectedType)}var oe=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new h("Invalid "+P+" `"+N+"` supplied to "+("`"+y+"`"+oe+"."))}return S(W)}function K(){function m(E,F,W,C,R){return Z(E[F])?null:new h("Invalid "+C+" `"+R+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return S(m)}function Q(m,E,F,W,C){return new h((m||"React class")+": "+E+" type `"+F+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+C+"`.")}function B(m){function E(F,W,C,R,y){var P=F[W],N=j(P);if(N!=="object")return new h("Invalid "+R+" `"+y+"` of type `"+N+"` "+("supplied to `"+C+"`, expected `object`."));for(var $ in m){var D=m[$];if(typeof D!="function")return Q(C,R,y,$,q(D));var J=D(P,$,C,R,y+"."+$,r);if(J)return J}return null}return S(E)}function ne(m){function E(F,W,C,R,y){var P=F[W],N=j(P);if(N!=="object")return new h("Invalid "+R+" `"+y+"` of type `"+N+"` "+("supplied to `"+C+"`, expected `object`."));var $=t({},F[W],m);for(var D in $){var J=m[D];if(n(m,D)&&typeof J!="function")return Q(C,R,y,D,q(J));if(!J)return new h("Invalid "+R+" `"+y+"` key `"+D+"` supplied to `"+C+"`.\nBad object: "+JSON.stringify(F[W],null," ")+`
24
- Valid keys: `+JSON.stringify(Object.keys(m),null," "));var _=J(P,D,C,R,y+"."+D,r);if(_)return _}return null}return S(E)}function Z(m){switch(typeof m){case"number":case"string":case"undefined":return!0;case"boolean":return!m;case"object":if(Array.isArray(m))return m.every(Z);if(m===null||a(m))return!0;var E=d(m);if(E){var F=E.call(m),W;if(E!==m.entries){for(;!(W=F.next()).done;)if(!Z(W.value))return!1}else for(;!(W=F.next()).done;){var C=W.value;if(C&&!Z(C[1]))return!1}}else return!1;return!0;default:return!1}}function L(m,E){return m==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function j(m){var E=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":L(E,m)?"symbol":E}function q(m){if(typeof m>"u"||m===null)return""+m;var E=j(m);if(E==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return E}function k(m){var E=q(m);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function T(m){return!m.constructor||!m.constructor.name?v:m.constructor.name}return l.checkPropTypes=o,l.resetWarningCache=o.resetWarningCache,l.PropTypes=l,l},dt}var pt,Zt;function cr(){if(Zt)return pt;Zt=1;var e=lt();function t(){}function r(){}return r.resetWarningCache=t,pt=function(){function n(i,a,f,c,u,d){if(d!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},pt}var Jt;function lr(){if(Jt)return Me.exports;if(Jt=1,process.env.NODE_ENV!=="production"){var e=Yt(),t=!0;Me.exports=ar()(e.isElement,t)}else Me.exports=cr()();return Me.exports}var fr=lr();const De=jt(fr),Qt=({content:e,title:t,className:r,id:n="accordion"})=>{const o=z("rpf-accordion",r),s=typeof e=="string"?"p":"div";return p.jsxs("details",{className:o,id:`${n}`,children:[p.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[t,p.jsx("span",{className:"rpf-accordion__icon"})]}),p.jsx(s,{className:"rpf-accordion__text",children:e})]})};Qt.propTypes={content:De.node.isRequired,title:De.string.isRequired,id:De.string,className:De.string};const he=({text:e,href:t,title:r,className:n,type:o="primary",variant:s="",size:i="default",icon:a="",iconOnly:f=!1,iconPosition:c="left",fullWidth:u=!1,disabled:d=!1,onClick:v=()=>{},"aria-label":l="",linkComponent:b})=>{const h=a&&f,S=z("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":s==="danger","rpf-button--sm":i==="small","rpf-button--icon-only":h,"rpf-button--full-width":u,disabled:d},n);let A="rpf-button__icon";te.isValidElement(a)?A+=" icon":A+=" material-symbols-sharp";const M=(g,I)=>!I||c!==g?null:typeof I=="string"?p.jsx("span",{className:A,children:I}):I,w=()=>e&&!h&&p.jsx("span",{className:"text",children:e}),O=p.jsxs(p.Fragment,{children:[M("left",a),w(),M("right",a)]});if(t){const g=b||"a",I=b?{to:t}:{href:t,role:"button"};return p.jsx(g,{className:S,...I,onClick:v,"aria-label":l,children:O})}return p.jsx("button",{className:S,title:r,onClick:v,disabled:d,"aria-label":l,children:O})},ur=({title:e,text:t,titleChildren:r,children:n,type:o,actions:s,onClose:i})=>p.jsxs("div",{className:`rpf-alert rpf-alert--${o}`,children:[p.jsxs("div",{className:"rpf-alert__header",children:[p.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),r?p.jsx("div",{className:"rpf-alert__title",children:r}):e?p.jsx("p",{className:"rpf-alert__title",children:e}):null,!!i&&p.jsx("div",{className:"rpf-alert__close",children:p.jsx(he,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:i})})]}),(t||n||s)&&p.jsxs("div",{className:"rpf-alert__body",children:[t?p.jsx("p",{children:t}):n?p.jsx("div",{children:n}):null,s&&s.length>0&&p.jsx("div",{className:"rpf-alert__actions",children:s.map((a,f)=>p.jsx(he,{text:a.label,size:"small",type:"tertiary",href:a.href,onClick:a.onClick},f))})]})]}),dr=({label:e,id:t,name:r,error:n="",...o})=>{const{className:s,...i}=o;return p.jsxs(p.Fragment,{children:[p.jsxs("label",{className:z("rpf-input-checkbox",{"rpf-input-checkbox--error":n,className:s}),children:[p.jsx("input",{id:t,name:r,type:"checkbox",...i}),e]}),n&&p.jsxs("div",{className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]})]})},pr=({disabled:e=!1,errorText:t="",fullWidth:r=!1,legendText:n,legendHintText:o="",children:s})=>p.jsxs("fieldset",{className:z("rpf-fieldset",{"rpf-fieldset--disabled":e,"rpf-fieldset--full-width":r,"rpf-fieldset--error":t}),disabled:e,children:[p.jsxs("legend",{className:"rpf-label",children:[n,o.length>0?p.jsx("small",{className:"rpf-label__hint",children:o}):null]}),p.jsx("div",{className:"rpf-fieldset__inputs",children:s}),t.length>0?p.jsxs("div",{className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),t]}):null]}),Le=({id:e,label:t,children:r,disabled:n=!1,error:o="",hint:s=""})=>p.jsxs("div",{className:"rpf-input-field",children:[(t||s)&&p.jsxs("label",{htmlFor:e,className:z("rpf-label",{"rpf-label--disabled":n}),children:[t,p.jsx("small",{className:"rpf-label__hint",children:s})]}),r,o&&p.jsxs("div",{className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),o]})]}),hr=({label:e,inputFieldId:t,disabled:r=!1,hint:n=""})=>p.jsx("div",{className:"rpf-label",children:p.jsxs("label",{htmlFor:t,className:z("rpf-label",{"rpf-label--disabled":r}),children:[e,n&&p.jsx("div",{className:"rpf-label__hint",children:n})]})}),mr=({disabled:e=!1,readOnly:t=!1,fullWidth:r=!1,error:n="",label:o,id:s,hint:i="",showPasswordLabel:a="Show",hidePasswordLabel:f="Hide",forgotPasswordLabel:c="Forgot password?",forgotPasswordHref:u,...d})=>{const[v,l]=te.useState(!1);return p.jsxs("div",{className:"rpf-input-field",children:[p.jsxs("label",{htmlFor:s,className:z("rpf-label",{"rpf-label--disabled":e,"rpf-label--readonly":t}),children:[o,i&&p.jsx("small",{className:"rpf-label__hint",children:i})]}),p.jsxs("div",{className:z("rpf-input-password__container",{"rpf-input-password__container--full-width":r,"rpf-input-password__container--error":n,"rpf-input-password__container--disabled":e,"rpf-input-password__container--readonly":t}),children:[p.jsx("input",{className:z("rpf-input rpf-input-password",{"rpf-input--disabled":e,"rpf-input--readonly":t,"rpf-input--error":n,"rpf-input--full-width":r}),disabled:e,id:s,type:v?"text":"password",readOnly:t,...d}),p.jsx("button",{type:"button",className:z("rpf-button rpf-button--tertiary rpf-input-password__button",{"rpf-button--disabled":e,"rpf-input-password__button--error":n}),disabled:e,onClick:()=>l(b=>!b),children:v?f:a})]}),n&&p.jsxs("div",{className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),n]}),u&&p.jsx("a",{href:u,className:"rpf-link rpf-link--block",children:c})]})},vr=({label:e,id:t,name:r,fullWidth:n=!1,...o})=>p.jsxs("label",{className:z("rpf-input-radio",{"rpf-input-radio--disabled":o.disabled,"rpf-input--full-width":n}),children:[p.jsx("input",{type:"radio",id:t,name:r,...o}),e]}),br=({label:e,inputFieldId:t,disabled:r=!1,error:n="",hint:o="",placeholder:s="",defaultValue:i="",onClick:a=()=>{},onChange:f=()=>{}})=>p.jsx("search",{children:p.jsxs("form",{className:"rpf-input-field",onSubmit:a,children:[p.jsxs("label",{htmlFor:t,className:z("rpf-label",{"rpf-label--disabled":r}),children:[e,o&&p.jsx("small",{className:"rpf-label__hint",children:o})]}),p.jsxs("div",{className:"rpf-input-search-container",children:[p.jsx("input",{className:z("rpf-input rpf-input-search",{"rpf-input--disabled":r,"rpf-input--error":n}),disabled:r,id:t,name:"search",type:"search","aria-label":"Search",defaultValue:i,placeholder:s,onChange:f}),p.jsx("button",{type:"submit",className:z("rpf-button rpf-button-search",{"rpf-button--disabled":r,"rpf-button--error":n}),disabled:r,onClick:a,children:p.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),n&&p.jsxs("div",{className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),n]})]})}),gr=({id:e,label:t,name:r,options:n,disabled:o=!1,error:s="",fullWidth:i=!1,hint:a="",onChange:f=()=>{},placeholder:c="",value:u="",...d})=>p.jsx(Le,{id:e,disabled:o,error:s,hint:a,label:t,children:p.jsxs("select",{className:z("rpf-input rpf-input-select",{"rpf-input--error":s,"rpf-input--full-width":i}),disabled:o,id:e,name:r,onChange:f,value:u,...d,children:[!u&&!!c&&p.jsx("option",{value:"",disabled:!0,children:c}),n.map(v=>p.jsx("option",{value:v.key,children:v.value},v.key))]})}),en=te.forwardRef(({label:e,id:t,name:r,error:n="",fullWidth:o=!1,reverse:s=!1,hint:i="",alignStart:a=!1,hideLabel:f=!1,icon:c=!1,className:u,disabled:d=!1,"aria-describedby":v,...l},b)=>{const h=n?`${t}-error`:void 0,S=[v,h].filter(Boolean).join(" ")||void 0;return p.jsxs("div",{className:"rpf-input-field",children:[p.jsxs("label",{className:z("rpf-switch",{"rpf-switch--full-width":o,"rpf-switch--reverse":s,"rpf-switch--align-start":a,"rpf-switch--icon":c,"rpf-switch--disabled":d,"rpf-switch--error":n},u),children:[p.jsxs("span",{className:"rpf-switch__track",children:[p.jsx("input",{ref:b,id:t,name:r,type:"checkbox",role:"switch",className:"rpf-switch__checkbox",disabled:d,"aria-invalid":n?!0:void 0,"aria-describedby":S,...l}),p.jsx("span",{className:"rpf-switch__handle",children:c?p.jsx("span",{className:"rpf-switch__icon","aria-hidden":"true"}):null})]}),p.jsxs("span",{className:z("rpf-label","rpf-switch__label",{"rpf-label--disabled":d,"rpf-visually-hidden":f}),children:[p.jsx("span",{children:e}),i?p.jsx("span",{className:"rpf-label__hint",children:i}):null]})]}),n?p.jsxs("div",{id:h,className:"rpf-error-message",children:[p.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]}):null]})});en.displayName="Switch";const yr=({id:e,label:t,name:r,value:n,disabled:o=!1,readOnly:s=!1,error:i="",fullWidth:a=!1,hint:f="",onChange:c=()=>{}})=>p.jsx(Le,{id:e,disabled:o,error:i,hint:f,label:t,children:p.jsx("textarea",{className:z("rpf-input rpf-input-textarea",{"rpf-input--error":i,"rpf-input--full-width":a,"rpf-input--disabled":o}),disabled:o,readOnly:s,id:e,name:r,onChange:c,value:n})}),wr=({id:e,name:t,label:r,error:n="",fullWidth:o=!1,hint:s="",type:i="text",...a})=>p.jsx(Le,{id:e,disabled:a.disabled,error:n,hint:s,label:r,children:p.jsx("input",{className:z("rpf-input rpf-input-text",{"rpf-input--error":n,"rpf-input--full-width":o}),id:e,name:t,type:i,...a})});function Er(e,t){const r=te.useRef(null),n=te.useRef(null);return te.useEffect(()=>{const o=r.current;o&&(e&&!o.open?o.showModal():!e&&o.open&&o.close())},[e]),te.useEffect(()=>{const o=r.current;if(!o)return;const s=()=>t(!1),i=a=>{a.preventDefault(),t(!1)};return o.addEventListener("close",s),o.addEventListener("cancel",i),()=>{o.removeEventListener("close",s),o.removeEventListener("cancel",i)}},[t]),te.useEffect(()=>{const o=r.current,s=n.current;if(!o||!s)return;const i=a=>{e&&!s.contains(a.target)&&t(!1)};return o.addEventListener("mousedown",i),()=>o.removeEventListener("mousedown",i)},[e,t]),{dialogRef:r,contentRef:n}}const xr=({isOpen:e,setIsOpen:t,heading:r,children:n,primaryButtonLink:o,primaryButtonText:s,onClickPrimaryButton:i,secondaryButtonText:a,secondaryButtonLink:f,onClickSecondaryButton:c,tertiaryButtonText:u,tertiaryButtonLink:d,onClickTertiaryButton:v,showCloseButton:l=!0})=>{const{dialogRef:b,contentRef:h}=Er(e,t);return p.jsx("dialog",{ref:b,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:p.jsxs("div",{ref:h,className:"rpf-modal__wrapper",children:[p.jsxs("div",{className:"rpf-modal__header",children:[p.jsx("h2",{className:"rpf-modal__title",id:"modal-heading",children:r}),l&&p.jsx(he,{icon:"close",iconOnly:!0,"aria-label":"Close modal",type:"tertiary",onClick:()=>t(!1)})]}),p.jsx("div",{id:"modal-description",className:"rpf-modal__content",tabIndex:0,children:n}),p.jsxs("div",{className:"rpf-modal__buttons",children:[p.jsx(he,{text:s,href:o,onClick:i,type:"primary"}),a&&p.jsx(he,{text:a,href:f,onClick:c,type:"secondary"}),u&&p.jsx(he,{text:u,href:d,onClick:v,type:"tertiary"})]})]})})},tn=({className:e,children:t})=>{const r=z("rpf-menu",e);return p.jsx("ul",{className:r,children:t})};function Fe(){return typeof window<"u"}function me(e){return nn(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fe(e){var t;return(t=(nn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nn(e){return Fe()?e instanceof Node||e instanceof se(e).Node:!1}function ee(e){return Fe()?e instanceof Element||e instanceof se(e).Element:!1}function re(e){return Fe()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function ht(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function $e(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function Tr(e){return/^(table|td|th)$/.test(me(e))}function je(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Sr=/transform|translate|scale|rotate|perspective|filter/,Cr=/paint|layout|strict|content/,we=e=>!!e&&e!=="none";let mt;function vt(e){const t=ee(e)?ae(e):e;return we(t.transform)||we(t.translate)||we(t.scale)||we(t.rotate)||we(t.perspective)||!We()&&(we(t.backdropFilter)||we(t.filter))||Sr.test(t.willChange||"")||Cr.test(t.contain||"")}function _r(e){let t=ve(e);for(;re(t)&&!Ee(t);){if(vt(t))return t;if(je(t))return null;t=ve(t)}return null}function We(){return mt==null&&(mt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mt}function Ee(e){return/^(html|body|#document)$/.test(me(e))}function ae(e){return se(e).getComputedStyle(e)}function Be(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||fe(e);return ht(t)?t.host:t}function rn(e){const t=ve(e);return Ee(t)?(e.ownerDocument||e).body:re(t)&&$e(t)?t:rn(t)}function be(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=rn(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=se(o);if(s){const a=bt(i);return t.concat(i,i.visualViewport||[],$e(o)?o:[],a&&r?be(a):[])}else return t.concat(o,be(o,[],r))}function bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xe(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function ie(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&ht(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Or(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function on(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Pr(e){return e.mozInputSource===0&&e.isTrusted?!0:gt()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ar(e){return Nr()?!1:!gt()&&e.width===0&&e.height===0||gt()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Rr(){return/apple/i.test(navigator.vendor)}function gt(){const e=/android/i;return e.test(Or())||e.test(on())}function Nr(){return on().includes("jsdom/")}function sn(e,t){return["mouse","pen"].includes(e)}function Ir(e){return"nativeEvent"in e}function Mr(e){return e.matches("html,body")}function ce(e){return(e==null?void 0:e.ownerDocument)||document}function yt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Te(e){return"composedPath"in e?e.composedPath()[0]:e.target}const kr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function an(e){return re(e)&&e.matches(kr)}function wt(e){e.preventDefault(),e.stopPropagation()}function Dr(e){return e?e.getAttribute("role")==="combobox"&&an(e):!1}const qe=Math.min,Se=Math.max,Ve=Math.round,Ye=Math.floor,ue=e=>({x:e,y:e}),Lr={left:"right",right:"left",bottom:"top",top:"bottom"};function Fr(e,t,r){return Se(e,qe(t,r))}function Ue(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function cn(e){return e==="x"?"y":"x"}function ln(e){return e==="y"?"height":"width"}function ge(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function fn(e){return cn(ge(e))}function $r(e,t,r){r===void 0&&(r=!1);const n=He(e),o=fn(e),s=ln(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ke(i)),[i,Ke(i)]}function jr(e){const t=Ke(e);return[Et(e),t,Et(t)]}function Et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const un=["left","right"],dn=["right","left"],Wr=["top","bottom"],Br=["bottom","top"];function qr(e,t,r){switch(e){case"top":case"bottom":return r?t?dn:un:t?un:dn;case"left":case"right":return t?Wr:Br;default:return[]}}function Vr(e,t,r,n){const o=He(e);let s=qr(Oe(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Et)))),s}function Ke(e){const t=Oe(e);return Lr[t]+e.slice(t.length)}function Yr(e){var t,r,n,o;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(o=e.left)!=null?o:0}}function Ur(e){return typeof e!="number"?Yr(e):{top:e,right:e,bottom:e,left:e}}function ze(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}/*!
25
- * tabbable 6.5.0
23
+ */var at,Ut;function cr(){if(Ut)return at;Ut=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return at=o()?Object.assign:function(s,i){for(var a,u=n(s),c,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)t.call(a,p)&&(u[p]=a[p]);if(e){c=e(a);for(var v=0;v<c.length;v++)r.call(a,c[v])&&(u[c[v]]=a[c[v]])}}return u},at}var ct,Ht;function lt(){if(Ht)return ct;Ht=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ct=e,ct}var ut,Kt;function zt(){return Kt||(Kt=1,ut=Function.call.bind(Object.prototype.hasOwnProperty)),ut}var ft,Xt;function lr(){if(Xt)return ft;Xt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lt(),r={},n=zt();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,u,c){if(process.env.NODE_ENV!=="production"){for(var f in s)if(n(s,f)){var p;try{if(typeof s[f]!="function"){var v=Error((u||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}p=s[f](i,f,u,a,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var l=c?c():"";e("Failed "+a+" type: "+p.message+(l??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ft=o,ft}var dt,Gt;function ur(){if(Gt)return dt;Gt=1;var e=Yt(),t=cr(),r=lt(),n=zt(),o=lr(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return dt=function(a,u){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(m){var E=m&&(c&&m[c]||m[f]);if(typeof E=="function")return E}var v="<<anonymous>>",l={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:R(),arrayOf:g,element:S(),elementType:y(),instanceOf:F,node:G(),objectOf:K,oneOf:Y,oneOfType:Q,shape:B,exact:te};function b(m,E){return m===E?m!==0||1/m===1/E:m!==m&&E!==E}function h(m,E){this.message=m,this.data=E&&typeof E=="object"?E:{},this.stack=""}h.prototype=Error.prototype;function A(m){if(process.env.NODE_ENV!=="production")var E={},$=0;function q(N,w,O,I,j,L,J){if(I=I||v,L=L||O,J!==r){if(u){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=I+":"+O;!E[oe]&&$<3&&(s("You are manually calling a React.PropTypes validation function for the `"+L+"` prop on `"+I+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[oe]=!0,$++)}}return w[O]==null?N?w[O]===null?new h("The "+j+" `"+L+"` is marked as required "+("in `"+I+"`, but its value is `null`.")):new h("The "+j+" `"+L+"` is marked as required in "+("`"+I+"`, but its value is `undefined`.")):null:m(w,O,I,j,L)}var _=q.bind(null,!1);return _.isRequired=q.bind(null,!0),_}function P(m){function E($,q,_,N,w,O){var I=$[q],j=M(I);if(j!==m){var L=W(I);return new h("Invalid "+N+" `"+w+"` of type "+("`"+L+"` supplied to `"+_+"`, expected ")+("`"+m+"`."),{expectedType:m})}return null}return A(E)}function R(){return A(i)}function g(m){function E($,q,_,N,w){if(typeof m!="function")return new h("Property `"+w+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var O=$[q];if(!Array.isArray(O)){var I=M(O);return new h("Invalid "+N+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an array."))}for(var j=0;j<O.length;j++){var L=m(O,j,_,N,w+"["+j+"]",r);if(L instanceof Error)return L}return null}return A(E)}function S(){function m(E,$,q,_,N){var w=E[$];if(!a(w)){var O=M(w);return new h("Invalid "+_+" `"+N+"` of type "+("`"+O+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return A(m)}function y(){function m(E,$,q,_,N){var w=E[$];if(!e.isValidElementType(w)){var O=M(w);return new h("Invalid "+_+" `"+N+"` of type "+("`"+O+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return A(m)}function F(m){function E($,q,_,N,w){if(!($[q]instanceof m)){var O=m.name||v,I=T($[q]);return new h("Invalid "+N+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected ")+("instance of `"+O+"`."))}return null}return A(E)}function Y(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function E($,q,_,N,w){for(var O=$[q],I=0;I<m.length;I++)if(b(O,m[I]))return null;var j=JSON.stringify(m,function(J,C){var oe=W(C);return oe==="symbol"?String(C):C});return new h("Invalid "+N+" `"+w+"` of value `"+String(O)+"` "+("supplied to `"+_+"`, expected one of "+j+"."))}return A(E)}function K(m){function E($,q,_,N,w){if(typeof m!="function")return new h("Property `"+w+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var O=$[q],I=M(O);if(I!=="object")return new h("Invalid "+N+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an object."));for(var j in O)if(n(O,j)){var L=m(O,j,_,N,w+"."+j,r);if(L instanceof Error)return L}return null}return A(E)}function Q(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var E=0;E<m.length;E++){var $=m[E];if(typeof $!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D($)+" at index "+E+"."),i}function q(_,N,w,O,I){for(var j=[],L=0;L<m.length;L++){var J=m[L],C=J(_,N,w,O,I,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&j.push(C.data.expectedType)}var oe=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new h("Invalid "+O+" `"+I+"` supplied to "+("`"+w+"`"+oe+"."))}return A(q)}function G(){function m(E,$,q,_,N){return Z(E[$])?null:new h("Invalid "+_+" `"+N+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return A(m)}function z(m,E,$,q,_){return new h((m||"React class")+": "+E+" type `"+$+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function B(m){function E($,q,_,N,w){var O=$[q],I=M(O);if(I!=="object")return new h("Invalid "+N+" `"+w+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));for(var j in m){var L=m[j];if(typeof L!="function")return z(_,N,w,j,W(L));var J=L(O,j,_,N,w+"."+j,r);if(J)return J}return null}return A(E)}function te(m){function E($,q,_,N,w){var O=$[q],I=M(O);if(I!=="object")return new h("Invalid "+N+" `"+w+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));var j=t({},$[q],m);for(var L in j){var J=m[L];if(n(m,L)&&typeof J!="function")return z(_,N,w,L,W(J));if(!J)return new h("Invalid "+N+" `"+w+"` key `"+L+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify($[q],null," ")+`
24
+ Valid keys: `+JSON.stringify(Object.keys(m),null," "));var C=J(O,L,_,N,w+"."+L,r);if(C)return C}return null}return A(E)}function Z(m){switch(typeof m){case"number":case"string":case"undefined":return!0;case"boolean":return!m;case"object":if(Array.isArray(m))return m.every(Z);if(m===null||a(m))return!0;var E=p(m);if(E){var $=E.call(m),q;if(E!==m.entries){for(;!(q=$.next()).done;)if(!Z(q.value))return!1}else for(;!(q=$.next()).done;){var _=q.value;if(_&&!Z(_[1]))return!1}}else return!1;return!0;default:return!1}}function k(m,E){return m==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function M(m){var E=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":k(E,m)?"symbol":E}function W(m){if(typeof m>"u"||m===null)return""+m;var E=M(m);if(E==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return E}function D(m){var E=W(m);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function T(m){return!m.constructor||!m.constructor.name?v:m.constructor.name}return l.checkPropTypes=o,l.resetWarningCache=o.resetWarningCache,l.PropTypes=l,l},dt}var pt,Zt;function fr(){if(Zt)return pt;Zt=1;var e=lt();function t(){}function r(){}return r.resetWarningCache=t,pt=function(){function n(i,a,u,c,f,p){if(p!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},pt}var Jt;function dr(){if(Jt)return Me.exports;if(Jt=1,process.env.NODE_ENV!=="production"){var e=Yt(),t=!0;Me.exports=ur()(e.isElement,t)}else Me.exports=fr()();return Me.exports}var pr=dr();const Le=jt(pr),Qt=({content:e,title:t,className:r,id:n="accordion"})=>{const o=X("rpf-accordion",r),s=typeof e=="string"?"p":"div";return d.jsxs("details",{className:o,id:`${n}`,children:[d.jsxs("summary",{className:"rpf-accordion__title",role:"button",children:[t,d.jsx("span",{className:"rpf-accordion__icon"})]}),d.jsx(s,{className:"rpf-accordion__text",children:e})]})};Qt.propTypes={content:Le.node.isRequired,title:Le.string.isRequired,id:Le.string,className:Le.string};const me=({text:e,href:t,title:r,className:n,type:o="primary",variant:s="",size:i="default",icon:a="",iconOnly:u=!1,iconPosition:c="left",fullWidth:f=!1,disabled:p=!1,loading:v,loadingText:l="Loading",onClick:b=()=>{},"aria-label":h="",linkComponent:A})=>{const P=a&&u,R=!!v,g=v!==void 0,S=M=>{if(R){M.preventDefault();return}b==null||b(M)},y=X("rpf-button",{[`rpf-button--${o}`]:o,"rpf-button--danger":s==="danger","rpf-button--sm":i==="small","rpf-button--icon-only":P,"rpf-button--full-width":f,"rpf-button--loading":R,disabled:p},n);let F="rpf-button__icon";ne.isValidElement(a)?F+=" icon":F+=" material-symbols-sharp";const Y=(M,W)=>!W||c!==M?null:typeof W=="string"?d.jsx("span",{className:F,children:W}):W,K=d.jsx("span",{className:"rpf-button__spinner","aria-hidden":"true"}),Q=()=>P||!e&&!R?null:d.jsxs("span",{className:"text",children:[d.jsx("span",{className:R?"text__idle--hidden":void 0,children:e}),R&&d.jsxs("span",{className:"text__loading",children:[K,l]})]}),G=d.jsxs(d.Fragment,{children:[R?P?K:null:Y("left",a),Q(),!R&&Y("right",a)]}),z=R&&(P||h)?[h,l].filter(Boolean).join(", "):h,B=R?!0:void 0,te=R?!0:void 0,k=(()=>{if(t){const M=A||"a",W=A?{to:t}:{href:t,role:"button"};return d.jsx(M,{className:y,...W,onClick:S,"aria-label":z,"aria-disabled":B,"aria-busy":te,children:G})}return d.jsx("button",{className:y,title:r,onClick:S,disabled:p,"aria-label":z,"aria-disabled":B,"aria-busy":te,children:G})})();return g?d.jsxs(d.Fragment,{children:[k,d.jsx("span",{className:"rpf-visually-hidden",role:"status",children:R?l:""})]}):k},hr=({title:e,text:t,titleChildren:r,children:n,type:o,actions:s,onClose:i})=>d.jsxs("div",{className:`rpf-alert rpf-alert--${o}`,children:[d.jsxs("div",{className:"rpf-alert__header",children:[d.jsx("span",{className:"rpf-alert__icon material-symbols-sharp"}),r?d.jsx("div",{className:"rpf-alert__title",children:r}):e?d.jsx("p",{className:"rpf-alert__title",children:e}):null,!!i&&d.jsx("div",{className:"rpf-alert__close",children:d.jsx(me,{type:"tertiary",icon:"close",size:"small",iconOnly:!0,onClick:i})})]}),(t||n||s)&&d.jsxs("div",{className:"rpf-alert__body",children:[t?d.jsx("p",{children:t}):n?d.jsx("div",{children:n}):null,s&&s.length>0&&d.jsx("div",{className:"rpf-alert__actions",children:s.map((a,u)=>d.jsx(me,{text:a.label,size:"small",type:"tertiary",href:a.href,onClick:a.onClick},u))})]})]}),mr=({label:e,id:t,name:r,error:n="",...o})=>{const{className:s,...i}=o;return d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:X("rpf-input-checkbox",{"rpf-input-checkbox--error":n,className:s}),children:[d.jsx("input",{id:t,name:r,type:"checkbox",...i}),e]}),n&&d.jsxs("div",{className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]})]})},vr=({disabled:e=!1,errorText:t="",fullWidth:r=!1,legendText:n,legendHintText:o="",children:s})=>d.jsxs("fieldset",{className:X("rpf-fieldset",{"rpf-fieldset--disabled":e,"rpf-fieldset--full-width":r,"rpf-fieldset--error":t}),disabled:e,children:[d.jsxs("legend",{className:"rpf-label",children:[n,o.length>0?d.jsx("small",{className:"rpf-label__hint",children:o}):null]}),d.jsx("div",{className:"rpf-fieldset__inputs",children:s}),t.length>0?d.jsxs("div",{className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),t]}):null]}),Fe=({id:e,label:t,children:r,disabled:n=!1,error:o="",hint:s=""})=>d.jsxs("div",{className:"rpf-input-field",children:[(t||s)&&d.jsxs("label",{htmlFor:e,className:X("rpf-label",{"rpf-label--disabled":n}),children:[t,d.jsx("small",{className:"rpf-label__hint",children:s})]}),r,o&&d.jsxs("div",{className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),o]})]}),br=({label:e,inputFieldId:t,disabled:r=!1,hint:n=""})=>d.jsx("div",{className:"rpf-label",children:d.jsxs("label",{htmlFor:t,className:X("rpf-label",{"rpf-label--disabled":r}),children:[e,n&&d.jsx("div",{className:"rpf-label__hint",children:n})]})}),yr=({disabled:e=!1,readOnly:t=!1,fullWidth:r=!1,error:n="",label:o,id:s,hint:i="",showPasswordLabel:a="Show",hidePasswordLabel:u="Hide",forgotPasswordLabel:c="Forgot password?",forgotPasswordHref:f,...p})=>{const[v,l]=ne.useState(!1);return d.jsxs("div",{className:"rpf-input-field",children:[d.jsxs("label",{htmlFor:s,className:X("rpf-label",{"rpf-label--disabled":e,"rpf-label--readonly":t}),children:[o,i&&d.jsx("small",{className:"rpf-label__hint",children:i})]}),d.jsxs("div",{className:X("rpf-input-password__container",{"rpf-input-password__container--full-width":r,"rpf-input-password__container--error":n,"rpf-input-password__container--disabled":e,"rpf-input-password__container--readonly":t}),children:[d.jsx("input",{className:X("rpf-input rpf-input-password",{"rpf-input--disabled":e,"rpf-input--readonly":t,"rpf-input--error":n,"rpf-input--full-width":r}),disabled:e,id:s,type:v?"text":"password",readOnly:t,...p}),d.jsx("button",{type:"button",className:X("rpf-button rpf-button--tertiary rpf-input-password__button",{"rpf-button--disabled":e,"rpf-input-password__button--error":n}),disabled:e,onClick:()=>l(b=>!b),children:v?u:a})]}),n&&d.jsxs("div",{className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),n]}),f&&d.jsx("a",{href:f,className:"rpf-link rpf-link--block",children:c})]})},gr=({label:e,id:t,name:r,fullWidth:n=!1,...o})=>d.jsxs("label",{className:X("rpf-input-radio",{"rpf-input-radio--disabled":o.disabled,"rpf-input--full-width":n}),children:[d.jsx("input",{type:"radio",id:t,name:r,...o}),e]}),wr=({label:e,inputFieldId:t,disabled:r=!1,error:n="",hint:o="",placeholder:s="",defaultValue:i="",onClick:a=()=>{},onChange:u=()=>{}})=>d.jsx("search",{children:d.jsxs("form",{className:"rpf-input-field",onSubmit:a,children:[d.jsxs("label",{htmlFor:t,className:X("rpf-label",{"rpf-label--disabled":r}),children:[e,o&&d.jsx("small",{className:"rpf-label__hint",children:o})]}),d.jsxs("div",{className:"rpf-input-search-container",children:[d.jsx("input",{className:X("rpf-input rpf-input-search",{"rpf-input--disabled":r,"rpf-input--error":n}),disabled:r,id:t,name:"search",type:"search","aria-label":"Search",defaultValue:i,placeholder:s,onChange:u}),d.jsx("button",{type:"submit",className:X("rpf-button rpf-button-search",{"rpf-button--disabled":r,"rpf-button--error":n}),disabled:r,onClick:a,children:d.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:"search"})})]}),n&&d.jsxs("div",{className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"info"}),n]})]})}),Er=({id:e,label:t,name:r,options:n,disabled:o=!1,error:s="",fullWidth:i=!1,hint:a="",onChange:u=()=>{},placeholder:c="",value:f="",...p})=>d.jsx(Fe,{id:e,disabled:o,error:s,hint:a,label:t,children:d.jsxs("select",{className:X("rpf-input rpf-input-select",{"rpf-input--error":s,"rpf-input--full-width":i}),disabled:o,id:e,name:r,onChange:u,value:f,...p,children:[!f&&!!c&&d.jsx("option",{value:"",disabled:!0,children:c}),n.map(v=>d.jsx("option",{value:v.key,children:v.value},v.key))]})}),en=ne.forwardRef(({label:e,id:t,name:r,error:n="",fullWidth:o=!1,reverse:s=!1,hint:i="",alignStart:a=!1,hideLabel:u=!1,icon:c=!1,className:f,disabled:p=!1,"aria-describedby":v,...l},b)=>{const h=n?`${t}-error`:void 0,A=[v,h].filter(Boolean).join(" ")||void 0;return d.jsxs("div",{className:"rpf-input-field",children:[d.jsxs("label",{className:X("rpf-switch",{"rpf-switch--full-width":o,"rpf-switch--reverse":s,"rpf-switch--align-start":a,"rpf-switch--icon":c,"rpf-switch--disabled":p,"rpf-switch--error":n},f),children:[d.jsxs("span",{className:"rpf-switch__track",children:[d.jsx("input",{ref:b,id:t,name:r,type:"checkbox",role:"switch",className:"rpf-switch__checkbox",disabled:p,"aria-invalid":n?!0:void 0,"aria-describedby":A,...l}),d.jsx("span",{className:"rpf-switch__handle",children:c?d.jsx("span",{className:"rpf-switch__icon","aria-hidden":"true"}):null})]}),d.jsxs("span",{className:X("rpf-label","rpf-switch__label",{"rpf-label--disabled":p,"rpf-visually-hidden":u}),children:[d.jsx("span",{children:e}),i?d.jsx("span",{className:"rpf-label__hint",children:i}):null]})]}),n?d.jsxs("div",{id:h,className:"rpf-error-message",children:[d.jsx("span",{className:"rpf-error-message__icon material-symbols-sharp",children:"error"}),n]}):null]})});en.displayName="Switch";const xr=({id:e,label:t,name:r,value:n,disabled:o=!1,readOnly:s=!1,error:i="",fullWidth:a=!1,hint:u="",onChange:c=()=>{}})=>d.jsx(Fe,{id:e,disabled:o,error:i,hint:u,label:t,children:d.jsx("textarea",{className:X("rpf-input rpf-input-textarea",{"rpf-input--error":i,"rpf-input--full-width":a,"rpf-input--disabled":o}),disabled:o,readOnly:s,id:e,name:r,onChange:c,value:n})}),Tr=({id:e,name:t,label:r,error:n="",fullWidth:o=!1,hint:s="",type:i="text",...a})=>d.jsx(Fe,{id:e,disabled:a.disabled,error:n,hint:s,label:r,children:d.jsx("input",{className:X("rpf-input rpf-input-text",{"rpf-input--error":n,"rpf-input--full-width":o}),id:e,name:t,type:i,...a})});function Sr(e,t){const r=ne.useRef(null),n=ne.useRef(null);return ne.useEffect(()=>{const o=r.current;o&&(e&&!o.open?o.showModal():!e&&o.open&&o.close())},[e]),ne.useEffect(()=>{const o=r.current;if(!o)return;const s=()=>t(!1),i=a=>{a.preventDefault(),t(!1)};return o.addEventListener("close",s),o.addEventListener("cancel",i),()=>{o.removeEventListener("close",s),o.removeEventListener("cancel",i)}},[t]),ne.useEffect(()=>{const o=r.current,s=n.current;if(!o||!s)return;const i=a=>{e&&!s.contains(a.target)&&t(!1)};return o.addEventListener("mousedown",i),()=>o.removeEventListener("mousedown",i)},[e,t]),{dialogRef:r,contentRef:n}}const _r=({isOpen:e,setIsOpen:t,heading:r,children:n,primaryButtonLink:o,primaryButtonText:s,onClickPrimaryButton:i,secondaryButtonText:a,secondaryButtonLink:u,onClickSecondaryButton:c,tertiaryButtonText:f,tertiaryButtonLink:p,onClickTertiaryButton:v,showCloseButton:l=!0})=>{const{dialogRef:b,contentRef:h}=Sr(e,t);return d.jsx("dialog",{ref:b,className:"rpf-modal","aria-labelledby":"modal-heading","aria-describedby":"modal-description",children:d.jsxs("div",{ref:h,className:"rpf-modal__wrapper",children:[d.jsxs("div",{className:"rpf-modal__header",children:[d.jsx("h2",{className:"rpf-modal__title",id:"modal-heading",children:r}),l&&d.jsx(me,{icon:"close",iconOnly:!0,"aria-label":"Close modal",type:"tertiary",onClick:()=>t(!1)})]}),d.jsx("div",{id:"modal-description",className:"rpf-modal__content",tabIndex:0,children:n}),d.jsxs("div",{className:"rpf-modal__buttons",children:[d.jsx(me,{text:s,href:o,onClick:i,type:"primary"}),a&&d.jsx(me,{text:a,href:u,onClick:c,type:"secondary"}),f&&d.jsx(me,{text:f,href:p,onClick:v,type:"tertiary"})]})]})})},tn=({className:e,children:t})=>{const r=X("rpf-menu",e);return d.jsx("ul",{className:r,children:t})};function $e(){return typeof window<"u"}function ve(e){return nn(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ue(e){var t;return(t=(nn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nn(e){return $e()?e instanceof Node||e instanceof se(e).Node:!1}function ee(e){return $e()?e instanceof Element||e instanceof se(e).Element:!1}function re(e){return $e()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function ht(e){return!$e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function Ie(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function Cr(e){return/^(table|td|th)$/.test(ve(e))}function je(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Or=/transform|translate|scale|rotate|perspective|filter/,Ar=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let mt;function vt(e){const t=ee(e)?ae(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!Be()&&(Ee(t.backdropFilter)||Ee(t.filter))||Or.test(t.willChange||"")||Ar.test(t.contain||"")}function Pr(e){let t=de(e);for(;re(t)&&!be(t);){if(vt(t))return t;if(je(t))return null;t=de(t)}return null}function Be(){return mt==null&&(mt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mt}function be(e){return/^(html|body|#document)$/.test(ve(e))}function ae(e){return se(e).getComputedStyle(e)}function We(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(ve(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||ue(e);return ht(t)?t.host:t}function rn(e){const t=de(e);return be(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&Ie(t)?t:rn(t)}function ye(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=rn(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=se(o);if(s){const a=bt(i);return t.concat(i,i.visualViewport||[],Ie(o)?o:[],a&&r?ye(a):[])}else return t.concat(o,ye(o,[],r))}function bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xe(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function ie(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&ht(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Nr(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function on(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Rr(e){return e.mozInputSource===0&&e.isTrusted?!0:yt()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ir(e){return Mr()?!1:!yt()&&e.width===0&&e.height===0||yt()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function kr(){return/apple/i.test(navigator.vendor)}function yt(){const e=/android/i;return e.test(Nr())||e.test(on())}function Mr(){return on().includes("jsdom/")}function sn(e,t){return["mouse","pen"].includes(e)}function Dr(e){return"nativeEvent"in e}function Lr(e){return e.matches("html,body")}function ce(e){return(e==null?void 0:e.ownerDocument)||document}function gt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Te(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Fr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function an(e){return re(e)&&e.matches(Fr)}function wt(e){e.preventDefault(),e.stopPropagation()}function $r(e){return e?e.getAttribute("role")==="combobox"&&an(e):!1}const qe=Math.min,Se=Math.max,Ve=Math.round,Ye=Math.floor,fe=e=>({x:e,y:e}),jr={left:"right",right:"left",bottom:"top",top:"bottom"};function cn(e,t,r){return Se(e,qe(t,r))}function Ue(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function ln(e){return e==="x"?"y":"x"}function un(e){return e==="y"?"height":"width"}function ge(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function fn(e){return ln(ge(e))}function Br(e,t,r){r===void 0&&(r=!1);const n=He(e),o=fn(e),s=un(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ke(i)),[i,Ke(i)]}function Wr(e){const t=Ke(e);return[Et(e),t,Et(t)]}function Et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const dn=["left","right"],pn=["right","left"],qr=["top","bottom"],Vr=["bottom","top"];function Yr(e,t,r){switch(e){case"top":case"bottom":return r?t?pn:dn:t?dn:pn;case"left":case"right":return t?qr:Vr;default:return[]}}function Ur(e,t,r,n){const o=He(e);let s=Yr(_e(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Et)))),s}function Ke(e){const t=_e(e);return jr[t]+e.slice(t.length)}function Hr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kr(e){return typeof e!="number"?Hr(e):{top:e,right:e,bottom:e,left:e}}function ze(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}/*!
25
+ * tabbable 6.4.0
26
26
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
27
- */var Hr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Xe=Hr.join(","),pn=typeof Element>"u",Pe=pn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ge=!pn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ze=function(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),s=o===""||o==="true",i=s||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Ze(t.parentNode));return i},Kr=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},zr=function(t,r,n){if(Ze(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Xe));return r&&Pe.call(t,Xe)&&o.unshift(t),o=o.filter(n),o},xt=function(t,r,n){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!Ze(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),f=a.length?a:i.children,c=xt(f,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{var u=Pe.call(i,Xe);u&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),v=!Ze(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(d&&v){var l=xt(d===!0?i.children:d.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else s.unshift.apply(s,i.children)}}return o},hn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},mn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Kr(t))&&!hn(t)?0:t.tabIndex},Xr=function(t,r){var n=mn(t);return n<0&&r&&!hn(t)?0:n},Gr=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},vn=function(t){return t.tagName==="INPUT"},Zr=function(t){return vn(t)&&t.type==="hidden"},Jr=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},Qr=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},eo=function(t){if(!t.name)return!0;var r=t.form||Ge(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(t.name));else try{o=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Qr(o,t.form);return!s||s===t},to=function(t){return vn(t)&&t.type==="radio"},no=function(t){return to(t)&&!eo(t)},ro=function(t){var r,n=t&&Ge(t),o=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==t){var i,a,f;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&o;){var c,u,d;n=Ge(o),o=(c=n)===null||c===void 0?void 0:c.host,s=!!((u=o)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},bn=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},oo=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var i=getComputedStyle(t),a=i.visibility;if(a==="hidden"||a==="collapse")return!0;var f=Pe.call(t,"details>summary:first-of-type"),c=f?t.parentElement:t;if(Pe.call(c,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var d=t.parentElement,v=Ge(t);if(d&&!d.shadowRoot&&o(d)===!0)return bn(t);t.assignedSlot?t=t.assignedSlot:!d&&v!==t.ownerDocument?t=v.host:t=d}t=u}if(ro(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return bn(t);return!1},so=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Pe.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},io=function(t,r){return!(r.disabled||Zr(r)||oo(r,t)||Jr(r)||so(r))},Tt=function(t,r){return!(no(r)||mn(r)<0||!io(t,r))},ao=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},gn=function(t){var r=[],n=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,f=Xr(a,i),c=i?gn(o.candidates):a;f===0?i?r.push.apply(r,c):r.push(a):n.push({documentOrder:s,tabIndex:f,item:o,isScope:i,content:c})}),n.sort(Gr).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},St=function(t,r){r=r||{};var n;return r.getShadowRoot?n=xt([t],r.includeContainer,{filter:Tt.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:ao}):n=zr(t,r.includeContainer,Tt.bind(null,r)),gn(n)},co=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Pe.call(t,Xe)===!1?!1:Tt(r,t)};function yn(e,t,r){let{reference:n,floating:o}=e;const s=ge(t),i=fn(t),a=ln(i),f=Oe(t),c=s==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,v=n[a]/2-o[a]/2;let l;switch(f){case"top":l={x:u,y:n.y-o.height};break;case"bottom":l={x:u,y:n.y+n.height};break;case"right":l={x:n.x+n.width,y:d};break;case"left":l={x:n.x-o.width,y:d};break;default:l={x:n.x,y:n.y}}const b=He(t);return b&&(l[i]+=v*(b==="end"?1:-1)*(r&&c?-1:1)),l}async function lo(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:v=!1,padding:l=0}=Ue(t,e),b=Ur(l),S=a[v?d==="floating"?"reference":"floating":d],A=ze(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(S)))==null||r?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:f})),M=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},g=ze(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:w,strategy:f}):M);return{top:(A.top-g.top+b.top)/O.y,bottom:(g.bottom-A.bottom+b.bottom)/O.y,left:(A.left-g.left+b.left)/O.x,right:(g.right-A.right+b.right)/O.x}}const fo=50,uo=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:lo},f=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=yn(c,n,f),v=n,l=0;const b={};for(let h=0;h<s.length;h++){const S=s[h];if(!S)continue;const{name:A,fn:M}=S,{x:w,y:O,data:g,reset:I}=await M({x:u,y:d,initialPlacement:n,placement:v,strategy:o,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=O??d,b[A]={...b[A],...g},I&&l<fo&&(l++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(c=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:u,y:d}=yn(c,v,f)),h=-1)}return{x:u,y:d,placement:v,strategy:o,middlewareData:b}},po=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:f,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...S}=Ue(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const A=Oe(o),M=ge(a),w=Oe(a)===a,O=await(f.isRTL==null?void 0:f.isRTL(c.floating)),g=v||(w||!h?[Ke(a)]:jr(a)),I=b!=="none";!v&&I&&g.push(...Vr(a,h,b,O));const X=[a,...g],H=await f.detectOverflow(t,S),G=[];let K=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&G.push(H[A]),d){const Z=$r(o,i,O);G.push(H[Z[0]],H[Z[1]])}if(K=[...K,{placement:o,overflows:G}],!G.every(Z=>Z<=0)){var Q,B;const Z=(((Q=s.flip)==null?void 0:Q.index)||0)+1,L=X[Z];if(L&&(!(d==="alignment"?M!==ge(L):!1)||K.every(k=>ge(k.placement)===M?k.overflows[0]>0:!0)))return{data:{index:Z,overflows:K},reset:{placement:L}};let j=(B=K.filter(q=>q.overflows[0]<=0).sort((q,k)=>q.overflows[1]-k.overflows[1])[0])==null?void 0:B.placement;if(!j)switch(l){case"bestFit":{var ne;const q=(ne=K.filter(k=>{if(I){const T=ge(k.placement);return T===M||T==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(T=>T>0).reduce((T,m)=>T+m,0)]).sort((k,T)=>k[1]-T[1])[0])==null?void 0:ne[0];q&&(j=q);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}},ho=new Set(["left","top"]);async function mo(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Oe(r),a=He(r),f=ge(r)==="y",c=ho.has(i)?-1:1,u=s&&f?-1:1,d=Ue(t,e);let{mainAxis:v,crossAxis:l,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof b=="number"&&(l=a==="end"?b*-1:b),f?{x:l*u,y:v*c}:{x:v*c,y:l*u}}const vo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,f=await mo(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:i}}}}},bo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:f={fn:M=>{let{x:w,y:O}=M;return{x:w,y:O}}},...c}=Ue(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),v=ge(o),l=cn(v);let b=u[l],h=u[v];const S=(M,w)=>Fr(w+d[M==="y"?"top":"left"],w,w-d[M==="y"?"bottom":"right"]);i&&(b=S(l,b)),a&&(h=S(v,h));const A=f.fn({...t,[l]:b,[v]:h});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[l]:i,[v]:a}}}}}};function wn(e){const t=ae(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=re(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=Ve(r)!==s||Ve(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Ct(e){return ee(e)?e:e.contextElement}function Ae(e){const t=Ct(e);if(!re(t))return ue(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=wn(t);let i=(s?Ve(r.width):r.width)/n,a=(s?Ve(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const go=ue(0);function En(e){const t=se(e);return!We()||!t.visualViewport?go:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yo(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===se(e)}function Ce(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Ct(e);let i=ue(1);t&&(n?ee(n)&&(i=Ae(n)):i=Ae(e));const a=yo(s,r,n)?En(s):ue(0);let f=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s&&n){const v=se(s),l=ee(n)?se(n):n;let b=v,h=bt(b);for(;h&&l!==b;){const S=Ae(h),A=h.getBoundingClientRect(),M=ae(h),w=A.left+(h.clientLeft+parseFloat(M.paddingLeft))*S.x,O=A.top+(h.clientTop+parseFloat(M.paddingTop))*S.y;f*=S.x,c*=S.y,u*=S.x,d*=S.y,f+=w,c+=O,b=se(h),h=bt(b)}}return ze({width:u,height:d,x:f,y:c})}function Je(e,t){const r=Be(e).scrollLeft;return t?t.left+r:Ce(fe(e)).left+r}function xn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Je(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function wo(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=fe(n),a=t?je(t.floating):!1;if(n===i||a&&s)return r;let f={scrollLeft:0,scrollTop:0},c=ue(1);const u=ue(0),d=re(n);if((d||!s)&&((me(n)!=="body"||$e(i))&&(f=Be(n)),d)){const l=Ce(n);c=Ae(n),u.x=l.x+n.clientLeft,u.y=l.y+n.clientTop}const v=i&&!d&&!s?xn(i,f):ue(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-f.scrollLeft*c.x+u.x+v.x,y:r.y*c.y-f.scrollTop*c.y+u.y+v.y}}function Eo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xo(e){const t=Be(e),r=e.ownerDocument.body,n=Se(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Se(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+Je(e);const i=-t.scrollTop;return ae(r).direction==="rtl"&&(s+=Se(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:s,y:i}}const To=25;function So(e,t,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",o=se(e),s=fe(e),i=o.visualViewport;let a=s.clientWidth,f=s.clientHeight,c=0,u=0;if(i){const v=!We()||t==="fixed";n?v||(c=-i.offsetLeft,u=-i.offsetTop):(a=i.width,f=i.height,v&&(c=i.offsetLeft,u=i.offsetTop))}if(Je(s)<=0){const v=s.ownerDocument,l=v.body,b=getComputedStyle(l),h=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,S=Math.abs(s.clientWidth-l.clientWidth-h),A=getComputedStyle(s).scrollbarGutter==="stable both-edges"?S/2:S;A<=To&&(a-=A)}return{width:a,height:f,x:c,y:u}}function Co(e,t){const r=Ce(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Ae(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,f=o*s.x,c=n*s.y;return{width:i,height:a,x:f,y:c}}function Tn(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=So(e,r,t);else if(t==="document")n=xo(fe(e));else if(ee(t))n=Co(t,r);else{const o=En(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ze(n)}function _o(e,t){const r=t.get(e);if(r)return r;let n=be(e,[],!1).filter(a=>ee(a)&&me(a)!=="body"),o=null;const s=ae(e).position==="fixed";let i=s?ve(e):e;for(;ee(i)&&!Ee(i);){const a=ae(i),f=vt(i),c=o?o.position:s?"fixed":"";!f&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==i):o=a,i=ve(i)}return t.set(e,n),n}function Oo(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?je(t)?[]:_o(t,this._c):[].concat(r),n],a=Tn(t,i[0],o);let f=a.top,c=a.right,u=a.bottom,d=a.left;for(let v=1;v<i.length;v++){const l=Tn(t,i[v],o);f=Se(l.top,f),c=qe(l.right,c),u=qe(l.bottom,u),d=Se(l.left,d)}return{width:c-d,height:u-f,x:d,y:f}}function Po(e){const{width:t,height:r}=wn(e);return{width:t,height:r}}function Ao(e,t,r){const n=re(t),o=fe(t),s=r==="fixed",i=Ce(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const f=ue(0);if((n||!s)&&((me(t)!=="body"||$e(o))&&(a=Be(t)),n)){const v=Ce(t,!0,s,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}!n&&o&&(f.x=Je(o));const c=o&&!n&&!s?xn(o,a):ue(0),u=i.left+a.scrollLeft-f.x-c.x,d=i.top+a.scrollTop-f.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function _t(e){return ae(e).position==="static"}function Sn(e,t){if(!re(e)||ae(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return fe(e)===r&&(r=r.ownerDocument.body),r}function Cn(e,t){const r=se(e);if(je(e))return r;if(!re(e)){let o=ve(e);for(;o&&!Ee(o);){if(ee(o)&&!_t(o))return o;o=ve(o)}return r}let n=Sn(e,t);for(;n&&Tr(n)&&_t(n);)n=Sn(n,t);return n&&Ee(n)&&_t(n)&&!vt(n)?r:n||_r(e)||r}const Ro=async function(e){const t=this.getOffsetParent||Cn,r=this.getDimensions,n=await r(e.floating);return{reference:Ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function No(e){return ae(e).direction==="rtl"}const Io={convertOffsetParentRelativeRectToViewportRelativeRect:wo,getDocumentElement:fe,getClippingRect:Oo,getOffsetParent:Cn,getElementRects:Ro,getClientRects:Eo,getDimensions:Po,getScale:Ae,isElement:ee,isRTL:No};function _n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mo(e,t,r){let n=null,o;const s=fe(e);function i(){var u;clearTimeout(o),(u=n)==null||u.disconnect(),n=null}function a(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const v=e.getBoundingClientRect(),{left:l,top:b,width:h,height:S}=v;if(u||t(),!h||!S)return;const A=Ye(b),M=Ye(s.clientWidth-(l+h)),w=Ye(s.clientHeight-(b+S)),O=Ye(l),I={rootMargin:-A+"px "+-M+"px "+-w+"px "+-O+"px",threshold:Se(0,qe(1,d))||1};let X=!0;function H(G){const K=G[0].intersectionRatio;if(!_n(v,e.getBoundingClientRect()))return a();if(K!==d){if(!X)return a();K?a(!1,K):o=setTimeout(()=>{a(!1,1e-7)},1e3)}X=!1}try{n=new IntersectionObserver(H,{...I,root:s.ownerDocument})}catch{n=new IntersectionObserver(H,I)}n.observe(e)}const f=se(e),c=()=>a(r);return f.addEventListener("resize",c),a(!0),()=>{f.removeEventListener("resize",c),i()}}function ko(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,c=Ct(e),u=o||s?[...c?be(c):[],...t?be(t):[]]:[];u.forEach(A=>{o&&A.addEventListener("scroll",r),s&&A.addEventListener("resize",r)});const d=c&&a?Mo(c,r,s):null;let v=-1,l=null;i&&(l=new ResizeObserver(A=>{let[M]=A;M&&M.target===c&&l&&t&&(l.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=l)==null||w.observe(t)})),r()}),c&&!f&&l.observe(c),t&&l.observe(t));let b,h=f?Ce(e):null;f&&S();function S(){const A=Ce(e);h&&!_n(h,A)&&r(),h=A,b=requestAnimationFrame(S)}return r(),()=>{var A;u.forEach(M=>{o&&M.removeEventListener("scroll",r),s&&M.removeEventListener("resize",r)}),d==null||d(),(A=l)==null||A.disconnect(),l=null,f&&cancelAnimationFrame(b)}}const Do=vo,Lo=bo,Fo=po,$o=(e,t,r)=>{const n=new Map,o=r??{},s={...Io,...o.platform,_c:n};return uo(e,t,{...o,platform:s})};var jo=typeof document<"u",Wo=function(){},Qe=jo?te.useLayoutEffect:Wo;function et(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!et(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function On(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pn(e,t){const r=On(e);return Math.round(t*r)/r}function Ot(e){const t=x.useRef(e);return Qe(()=>{t.current=e}),t}function Bo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:f,open:c}=e,[u,d]=x.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,l]=x.useState(n);et(v,n)||l(n);const[b,h]=x.useState(null),[S,A]=x.useState(null),M=x.useCallback(k=>{k!==I.current&&(I.current=k,h(k))},[]),w=x.useCallback(k=>{k!==X.current&&(X.current=k,A(k))},[]),O=s||b,g=i||S,I=x.useRef(null),X=x.useRef(null),H=x.useRef(u),G=f!=null,K=Ot(f),Q=Ot(o),B=Ot(c),ne=x.useCallback(()=>{if(!I.current||!X.current)return;const k={placement:t,strategy:r,middleware:v};Q.current&&(k.platform=Q.current),$o(I.current,X.current,k).then(T=>{const m={...T,isPositioned:B.current!==!1};Z.current&&!et(H.current,m)&&(H.current=m,er.flushSync(()=>{d(m)}))})},[v,t,r,Q,B]);Qe(()=>{c===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const Z=x.useRef(!1);Qe(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Qe(()=>{if(O&&(I.current=O),g&&(X.current=g),O&&g){if(K.current)return K.current(O,g,ne);ne()}},[O,g,ne,K,G]);const L=x.useMemo(()=>({reference:I,floating:X,setReference:M,setFloating:w}),[M,w]),j=x.useMemo(()=>({reference:O,floating:g}),[O,g]),q=x.useMemo(()=>{const k={position:r,left:0,top:0};if(!j.floating)return k;const T=Pn(j.floating,u.x),m=Pn(j.floating,u.y);return a?{...k,transform:"translate("+T+"px, "+m+"px)",...On(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:T,top:m}},[r,a,j.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:ne,refs:L,elements:j,floatingStyles:q}),[u,ne,L,j,q])}const qo=(e,t)=>{const r=Do(e);return{name:r.name,fn:r.fn,options:[e,t]}},Vo=(e,t)=>{const r=Lo(e);return{name:r.name,fn:r.fn,options:[e,t]}},Yo=(e,t)=>{const r=Fo(e);return{name:r.name,fn:r.fn,options:[e,t]}},An={...x},Uo=An.useInsertionEffect||(e=>e());function ye(e){const t=x.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Uo(()=>{t.current=e}),x.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var de=typeof document<"u"?te.useLayoutEffect:te.useEffect;function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}let Rn=!1,Ho=0;const Nn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ho++;function Ko(){const[e,t]=x.useState(()=>Rn?Nn():void 0);return de(()=>{e==null&&t(Nn())},[]),x.useEffect(()=>{Rn=!0},[]),e}const In=An.useId||Ko;let Pt;process.env.NODE_ENV!=="production"&&(Pt=new Set);function zo(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=Pt)!=null&&e.has(o))){var s;(s=Pt)==null||s.add(o),console.error(o)}}function Xo(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const Go=x.createContext(null),Zo=x.createContext(null),Mn=()=>{var e;return((e=x.useContext(Go))==null?void 0:e.id)||null},At=()=>x.useContext(Zo);function nt(e){return"data-floating-ui-"+e}function Rt(e){const t=te.useRef(e);return de(()=>{t.current=e}),t}let kn=0;function Re(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(kn);const s=()=>e==null?void 0:e.focus({preventScroll:r});o?s():kn=requestAnimationFrame(s)}function Jo(e,t){var r;let n=[],o=(r=e.find(s=>s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(i=>i.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function Ie(e,t){let r=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),n=r;for(;n.length;)n=e.filter(o=>{var s;return(s=n)==null?void 0:s.some(i=>{var a;return o.parentId===i.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}let Ne=new WeakMap,rt=new WeakSet,ot={},Nt=0;const Qo=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Dn=e=>e&&(e.host||Dn(e.parentNode)),es=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=Dn(r);return e.contains(n)?n:null}).filter(r=>r!=null);function ts(e,t,r,n){const o="data-floating-ui-inert",s=n?"inert":r?"aria-hidden":null,i=es(t,e),a=new Set,f=new Set(i),c=[];ot[o]||(ot[o]=new WeakMap);const u=ot[o];i.forEach(d),v(t),a.clear();function d(l){!l||a.has(l)||(a.add(l),l.parentNode&&d(l.parentNode))}function v(l){!l||f.has(l)||[].forEach.call(l.children,b=>{if(me(b)!=="script")if(a.has(b))v(b);else{const h=s?b.getAttribute(s):null,S=h!==null&&h!=="false",A=(Ne.get(b)||0)+1,M=(u.get(b)||0)+1;Ne.set(b,A),u.set(b,M),c.push(b),A===1&&S&&rt.add(b),M===1&&b.setAttribute(o,""),!S&&s&&b.setAttribute(s,"true")}})}return Nt++,()=>{c.forEach(l=>{const b=(Ne.get(l)||0)-1,h=(u.get(l)||0)-1;Ne.set(l,b),u.set(l,h),b||(!rt.has(l)&&s&&l.removeAttribute(s),rt.delete(l)),h||l.removeAttribute(o)}),Nt--,Nt||(Ne=new WeakMap,Ne=new WeakMap,rt=new WeakSet,ot={})}}function Ln(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=ce(e[0]).body;return ts(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const st=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Fn(e,t){const r=St(e,st());t==="prev"&&r.reverse();const n=r.indexOf(xe(ce(e)));return r.slice(n+1)[0]}function ns(){return Fn(document.body,"next")}function rs(){return Fn(document.body,"prev")}function $n(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!ie(r,n)}const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let os;function jn(e){e.key==="Tab"&&(e.target,clearTimeout(os))}const Wn=x.forwardRef(function(t,r){const[n,o]=x.useState();de(()=>(Rr()&&o("button"),document.addEventListener("keydown",jn),()=>{document.removeEventListener("keydown",jn)}),[]);const s={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[nt("focus-guard")]:"",style:It};return x.createElement("span",tt({},t,s))}),ss=x.createContext(null),is=()=>x.useContext(ss),Mt="data-floating-ui-focusable";function as(e){return e?e.hasAttribute(Mt)?e:e.querySelector("["+Mt+"]")||e:null}const Bn=20;let _e=[];function kt(e){_e=_e.filter(r=>r.isConnected);let t=e;if(!(!t||me(t)==="body")){if(!co(t,st())){const r=St(t,st())[0];r&&(t=r)}_e.push(t),_e.length>Bn&&(_e=_e.slice(-Bn))}}function qn(){return _e.slice().reverse().find(e=>e.isConnected)}const cs=x.forwardRef(function(t,r){return x.createElement("button",tt({},t,{type:"button",ref:r,tabIndex:-1,style:It}))});function ls(e){const{context:t,children:r,disabled:n=!1,order:o=["content"],guards:s=!0,initialFocus:i=0,returnFocus:a=!0,restoreFocus:f=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:v,refs:l,nodeId:b,onOpenChange:h,events:S,dataRef:A,floatingId:M,elements:{domReference:w,floating:O}}=t,g=typeof i=="number"&&i<0,I=Dr(w)&&g,X=Qo()?s:!0,H=Rt(o),G=Rt(i),K=Rt(a),Q=At(),B=is(),ne=x.useRef(null),Z=x.useRef(null),L=x.useRef(!1),j=x.useRef(!1),q=x.useRef(-1),k=B!=null,T=as(O),m=ye(function(C){return C===void 0&&(C=T),C?St(C,st()):[]}),E=ye(C=>{const R=m(C);return H.current.map(y=>w&&y==="reference"?w:T&&y==="floating"?T:R).filter(Boolean).flat()});x.useEffect(()=>{if(n||!c)return;function C(y){if(y.key==="Tab"){ie(T,xe(ce(T)))&&m().length===0&&!I&&wt(y);const P=E(),N=Te(y);H.current[0]==="reference"&&N===w&&(wt(y),y.shiftKey?Re(P[P.length-1]):Re(P[1])),H.current[1]==="floating"&&N===T&&y.shiftKey&&(wt(y),Re(P[0]))}}const R=ce(T);return R.addEventListener("keydown",C),()=>{R.removeEventListener("keydown",C)}},[n,w,T,c,H,I,m,E]),x.useEffect(()=>{if(n||!O)return;function C(R){const y=Te(R),N=m().indexOf(y);N!==-1&&(q.current=N)}return O.addEventListener("focusin",C),()=>{O.removeEventListener("focusin",C)}},[n,O,m]),x.useEffect(()=>{if(n||!d)return;function C(){j.current=!0,setTimeout(()=>{j.current=!1})}function R(y){const P=y.relatedTarget;queueMicrotask(()=>{const N=!(ie(w,P)||ie(O,P)||ie(P,O)||ie(B==null?void 0:B.portalNode,P)||P!=null&&P.hasAttribute(nt("focus-guard"))||Q&&(Ie(Q.nodesRef.current,b).find($=>{var D,J;return ie((D=$.context)==null?void 0:D.elements.floating,P)||ie((J=$.context)==null?void 0:J.elements.domReference,P)})||Jo(Q.nodesRef.current,b).find($=>{var D,J;return((D=$.context)==null?void 0:D.elements.floating)===P||((J=$.context)==null?void 0:J.elements.domReference)===P})));if(f&&N&&xe(ce(T))===ce(T).body){re(T)&&T.focus();const $=q.current,D=m(),J=D[$]||D[D.length-1]||T;re(J)&&J.focus()}(I||!c)&&P&&N&&!j.current&&P!==qn()&&(L.current=!0,h(!1,y,"focus-out"))})}if(O&&re(w))return w.addEventListener("focusout",R),w.addEventListener("pointerdown",C),O.addEventListener("focusout",R),()=>{w.removeEventListener("focusout",R),w.removeEventListener("pointerdown",C),O.removeEventListener("focusout",R)}},[n,w,O,T,c,b,Q,B,h,d,f,m,I]),x.useEffect(()=>{var C;if(n)return;const R=Array.from((B==null||(C=B.portalNode)==null?void 0:C.querySelectorAll("["+nt("portal")+"]"))||[]);if(O){const y=[O,...R,ne.current,Z.current,H.current.includes("reference")||I?w:null].filter(N=>N!=null),P=c||I?Ln(y,X,!X):Ln(y);return()=>{P()}}},[n,w,O,c,H,B,I,X]),de(()=>{if(n||!re(T))return;const C=ce(T),R=xe(C);queueMicrotask(()=>{const y=E(T),P=G.current,N=(typeof P=="number"?y[P]:P.current)||T,$=ie(T,R);!g&&!$&&v&&Re(N,{preventScroll:N===T})})},[n,v,T,g,E,G]),de(()=>{if(n||!T)return;let C=!1;const R=ce(T),y=xe(R);let N=A.current.openEvent;kt(y);function $(_){let{open:oe,reason:pe,event:le,nested:Ft}=_;oe&&(N=le),pe==="escape-key"&&l.domReference.current&&kt(l.domReference.current),pe==="hover"&&le.type==="mouseleave"&&(L.current=!0),pe==="outside-press"&&(Ft?(L.current=!1,C=!0):L.current=!(Pr(le)||Ar(le)))}S.on("openchange",$);const D=R.createElement("span");D.setAttribute("tabindex","-1"),D.setAttribute("aria-hidden","true"),Object.assign(D.style,It),k&&w&&w.insertAdjacentElement("afterend",D);function J(){return typeof K.current=="boolean"?qn()||D:K.current.current||D}return()=>{S.off("openchange",$);const _=xe(R),oe=ie(O,_)||Q&&Ie(Q.nodesRef.current,b).some(Ft=>{var Jn;return ie((Jn=Ft.context)==null?void 0:Jn.elements.floating,_)});(oe||N&&["click","mousedown"].includes(N.type))&&l.domReference.current&&kt(l.domReference.current);const le=J();queueMicrotask(()=>{K.current&&!L.current&&re(le)&&(!(le!==_&&_!==R.body)||oe)&&le.focus({preventScroll:C}),D.remove()})}},[n,O,T,K,A,l,S,Q,b,k,w]),x.useEffect(()=>{queueMicrotask(()=>{L.current=!1})},[n]),de(()=>{if(!n&&B)return B.setFocusManagerState({modal:c,closeOnFocusOut:d,open:v,onOpenChange:h,refs:l}),()=>{B.setFocusManagerState(null)}},[n,B,c,v,h,l,d]),de(()=>{if(n||!T||typeof MutationObserver!="function"||g)return;const C=()=>{const y=T.getAttribute("tabindex"),P=m(),N=xe(ce(O)),$=P.indexOf(N);$!==-1&&(q.current=$),H.current.includes("floating")||N!==l.domReference.current&&P.length===0?y!=="0"&&T.setAttribute("tabindex","0"):y!=="-1"&&T.setAttribute("tabindex","-1")};C();const R=new MutationObserver(C);return R.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{R.disconnect()}},[n,O,T,l,H,m,g]);function F(C){return n||!u||!c?null:x.createElement(cs,{ref:C==="start"?ne:Z,onClick:R=>h(!1,R.nativeEvent)},typeof u=="string"?u:"Dismiss")}const W=!n&&X&&(c?!I:!0)&&(k||c);return x.createElement(x.Fragment,null,W&&x.createElement(Wn,{"data-type":"inside",ref:B==null?void 0:B.beforeInsideRef,onFocus:C=>{if(c){const y=E();Re(o[0]==="reference"?y[0]:y[y.length-1])}else if(B!=null&&B.preserveTabOrder&&B.portalNode)if(L.current=!1,$n(C,B.portalNode)){const y=ns()||w;y==null||y.focus()}else{var R;(R=B.beforeOutsideRef.current)==null||R.focus()}}}),!I&&F("start"),r,F("end"),W&&x.createElement(Wn,{"data-type":"inside",ref:B==null?void 0:B.afterInsideRef,onFocus:C=>{if(c)Re(E()[0]);else if(B!=null&&B.preserveTabOrder&&B.portalNode)if(d&&(L.current=!0),$n(C,B.portalNode)){const y=rs()||w;y==null||y.focus()}else{var R;(R=B.afterOutsideRef.current)==null||R.focus()}}}))}function Vn(e){return re(e.target)&&e.target.tagName==="BUTTON"}function Yn(e){return an(e)}function fs(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:s}}=e,{enabled:i=!0,event:a="click",toggle:f=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,v=x.useRef(),l=x.useRef(!1),b=x.useMemo(()=>({onPointerDown(h){v.current=h.pointerType},onMouseDown(h){const S=v.current;h.button===0&&a!=="click"&&(sn(S)&&c||(r&&f&&(!(o.current.openEvent&&d)||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){const S=v.current;if(a==="mousedown"&&v.current){v.current=void 0;return}sn(S)&&c||(r&&f&&(!(o.current.openEvent&&d)||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){v.current=void 0,!(h.defaultPrevented||!u||Vn(h))&&(h.key===" "&&!Yn(s)&&(h.preventDefault(),l.current=!0),h.key==="Enter"&&n(!(r&&f),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!u||Vn(h)||Yn(s)||h.key===" "&&l.current&&(l.current=!1,n(!(r&&f),h.nativeEvent,"click"))}}),[o,s,a,c,u,n,r,d,f]);return x.useMemo(()=>i?{reference:b}:{},[i,b])}const us={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ds={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Un=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function ps(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:f=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:v=!1,bubbles:l,capture:b}=t,h=At(),S=ye(typeof f=="function"?f:()=>!1),A=typeof f=="function"?S:f,M=x.useRef(!1),w=x.useRef(!1),{escapeKey:O,outsidePress:g}=Un(l),{escapeKey:I,outsidePress:X}=Un(b),H=x.useRef(!1),G=ye(L=>{var j;if(!r||!i||!a||L.key!=="Escape"||H.current)return;const q=(j=s.current.floatingContext)==null?void 0:j.nodeId,k=h?Ie(h.nodesRef.current,q):[];if(!O&&(L.stopPropagation(),k.length>0)){let T=!0;if(k.forEach(m=>{var E;if((E=m.context)!=null&&E.open&&!m.context.dataRef.current.__escapeKeyBubbles){T=!1;return}}),!T)return}n(!1,Ir(L)?L.nativeEvent:L,"escape-key")}),K=ye(L=>{var j;const q=()=>{var k;G(L),(k=Te(L))==null||k.removeEventListener("keydown",q)};(j=Te(L))==null||j.addEventListener("keydown",q)}),Q=ye(L=>{var j;const q=M.current;M.current=!1;const k=w.current;if(w.current=!1,c==="click"&&k||q||typeof A=="function"&&!A(L))return;const T=Te(L),m="["+nt("inert")+"]",E=ce(o.floating).querySelectorAll(m);let F=ee(T)?T:null;for(;F&&!Ee(F);){const y=ve(F);if(Ee(y)||!ee(y))break;F=y}if(E.length&&ee(T)&&!Mr(T)&&!ie(T,o.floating)&&Array.from(E).every(y=>!ie(F,y)))return;if(re(T)&&Z){const y=T.clientWidth>0&&T.scrollWidth>T.clientWidth,P=T.clientHeight>0&&T.scrollHeight>T.clientHeight;let N=P&&L.offsetX>T.clientWidth;if(P&&ae(T).direction==="rtl"&&(N=L.offsetX<=T.offsetWidth-T.clientWidth),N||y&&L.offsetY>T.clientHeight)return}const W=(j=s.current.floatingContext)==null?void 0:j.nodeId,C=h&&Ie(h.nodesRef.current,W).some(y=>{var P;return yt(L,(P=y.context)==null?void 0:P.elements.floating)});if(yt(L,o.floating)||yt(L,o.domReference)||C)return;const R=h?Ie(h.nodesRef.current,W):[];if(R.length>0){let y=!0;if(R.forEach(P=>{var N;if((N=P.context)!=null&&N.open&&!P.context.dataRef.current.__outsidePressBubbles){y=!1;return}}),!y)return}n(!1,L,"outside-press")}),B=ye(L=>{var j;const q=()=>{var k;Q(L),(k=Te(L))==null||k.removeEventListener(c,q)};(j=Te(L))==null||j.addEventListener(c,q)});x.useEffect(()=>{if(!r||!i)return;s.current.__escapeKeyBubbles=O,s.current.__outsidePressBubbles=g;let L=-1;function j(E){n(!1,E,"ancestor-scroll")}function q(){window.clearTimeout(L),H.current=!0}function k(){L=window.setTimeout(()=>{H.current=!1},We()?5:0)}const T=ce(o.floating);a&&(T.addEventListener("keydown",I?K:G,I),T.addEventListener("compositionstart",q),T.addEventListener("compositionend",k)),A&&T.addEventListener(c,X?B:Q,X);let m=[];return v&&(ee(o.domReference)&&(m=be(o.domReference)),ee(o.floating)&&(m=m.concat(be(o.floating))),!ee(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(be(o.reference.contextElement)))),m=m.filter(E=>{var F;return E!==((F=T.defaultView)==null?void 0:F.visualViewport)}),m.forEach(E=>{E.addEventListener("scroll",j,{passive:!0})}),()=>{a&&(T.removeEventListener("keydown",I?K:G,I),T.removeEventListener("compositionstart",q),T.removeEventListener("compositionend",k)),A&&T.removeEventListener(c,X?B:Q,X),m.forEach(E=>{E.removeEventListener("scroll",j)}),window.clearTimeout(L)}},[s,o,a,A,c,r,n,v,i,O,g,G,I,K,Q,X,B]),x.useEffect(()=>{M.current=!1},[A,c]);const ne=x.useMemo(()=>({onKeyDown:G,[us[d]]:L=>{u&&n(!1,L.nativeEvent,"reference-press")}}),[G,n,u,d]),Z=x.useMemo(()=>({onKeyDown:G,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[ds[c]]:()=>{M.current=!0}}),[G,c]);return x.useMemo(()=>i?{reference:ne,floating:Z}:{},[i,ne,Z])}function hs(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=In(),s=x.useRef({}),[i]=x.useState(()=>Xo()),a=Mn()!=null;if(process.env.NODE_ENV!=="production"){const l=n.reference;l&&!ee(l)&&zo("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[f,c]=x.useState(n.reference),u=ye((l,b,h)=>{s.current.openEvent=l?b:void 0,i.emit("openchange",{open:l,event:b,reason:h,nested:a}),r==null||r(l,b,h)}),d=x.useMemo(()=>({setPositionReference:c}),[]),v=x.useMemo(()=>({reference:f||n.reference||null,floating:n.floating||null,domReference:n.reference}),[f,n.reference,n.floating]);return x.useMemo(()=>({dataRef:s,open:t,onOpenChange:u,elements:v,events:i,floatingId:o,refs:d}),[t,u,v,i,o,d])}function ms(e){e===void 0&&(e={});const{nodeId:t}=e,r=hs({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[s,i]=x.useState(null),[a,f]=x.useState(null),u=(o==null?void 0:o.domReference)||s,d=x.useRef(null),v=At();de(()=>{u&&(d.current=u)},[u]);const l=Bo({...e,elements:{...o,...a&&{reference:a}}}),b=x.useCallback(w=>{const O=ee(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;f(O),l.refs.setReference(O)},[l.refs]),h=x.useCallback(w=>{(ee(w)||w===null)&&(d.current=w,i(w)),(ee(l.refs.reference.current)||l.refs.reference.current===null||w!==null&&!ee(w))&&l.refs.setReference(w)},[l.refs]),S=x.useMemo(()=>({...l.refs,setReference:h,setPositionReference:b,domReference:d}),[l.refs,h,b]),A=x.useMemo(()=>({...l.elements,domReference:u}),[l.elements,u]),M=x.useMemo(()=>({...l,...n,refs:S,elements:A,nodeId:t}),[l,S,A,t,n]);return de(()=>{n.dataRef.current.floatingContext=M;const w=v==null?void 0:v.nodesRef.current.find(O=>O.id===t);w&&(w.context=M)}),x.useMemo(()=>({...l,context:M,refs:S,elements:A}),[l,S,A,M])}const Hn="active",Kn="selected";function Dt(e,t,r){const n=new Map,o=r==="item";let s=e;if(o&&e){const{[Hn]:i,[Kn]:a,...f}=e;s=f}return{...r==="floating"&&{tabIndex:-1,[Mt]:""},...s,...t.map(i=>{const a=i?i[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(f=>{let[c,u]=f;if(!(o&&[Hn,Kn].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof u=="function"){var d;(d=n.get(c))==null||d.push(u),i[c]=function(){for(var v,l=arguments.length,b=new Array(l),h=0;h<l;h++)b[h]=arguments[h];return(v=n.get(c))==null?void 0:v.map(S=>S(...b)).find(S=>S!==void 0)}}}else i[c]=u}),i),{})}}function vs(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),r=e.map(a=>a==null?void 0:a.floating),n=e.map(a=>a==null?void 0:a.item),o=x.useCallback(a=>Dt(a,e,"reference"),t),s=x.useCallback(a=>Dt(a,e,"floating"),r),i=x.useCallback(a=>Dt(a,e,"item"),n);return x.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}const bs=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function gs(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,a=(r=bs.get(i))!=null?r:i,f=In(),u=Mn()!=null,d=x.useMemo(()=>a==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:f},...a==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[a,o,u,n,f,i]),v=x.useMemo(()=>{const b={id:o,...a&&{role:a}};return a==="tooltip"||i==="label"?b:{...b,...a==="menu"&&{"aria-labelledby":f}}},[a,o,f,i]),l=x.useCallback(b=>{let{active:h,selected:S}=b;const A={role:"option",...h&&{id:o+"-option"}};switch(i){case"select":return{...A,"aria-selected":h&&S};case"combobox":return{...A,...h&&{"aria-selected":!0}}}return{}},[o,i]);return x.useMemo(()=>s?{reference:d,floating:v,item:l}:{},[s,d,v,l])}function ys({className:e,children:t,buttonText:r}){const[n,o]=te.useState(!1),{refs:s,floatingStyles:i,context:a}=ms({open:n,onOpenChange:o,middleware:[qo(16),Yo(),Vo()],whileElementsMounted:ko,placement:"right"}),f=fs(a),c=ps(a),u=gs(a),{getReferenceProps:d,getFloatingProps:v}=vs([f,c,u]);return p.jsxs(p.Fragment,{children:[p.jsx("span",{ref:s.setReference,className:e,...d(),children:p.jsx(he,{text:r})}),n&&p.jsx(ls,{context:a,modal:!1,children:p.jsx("div",{ref:s.setFloating,style:i,...v(),children:p.jsx(tn,{children:t})})})]})}const ws=({className:e,children:t,buttonText:r="Menu button"})=>{const n=z("rpf-menu-button",e);return p.jsx(ys,{className:n,buttonText:r,children:t})},zn=e=>e?p.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:e}):null,Xn=({text:e,iconPosition:t,icon:r})=>p.jsxs(p.Fragment,{children:[t==="left"&&r!==""?zn(r):null,e,t==="right"&&r!==""?zn(r):null]}),Es=({text:e,href:t,icon:r="",iconPosition:n="left",danger:o,className:s,onClick:i})=>{const a=z("rpf-menu__item",{"rpf-menu__item--danger":o},s);return p.jsx("li",{className:a,children:t?p.jsx("a",{href:t,children:p.jsx(Xn,{text:e,iconPosition:n,icon:r})}):p.jsx("button",{type:"button",onClick:i,children:p.jsx(Xn,{text:e,iconPosition:n,icon:r})})})},xs=({text:e})=>p.jsx("li",{className:"rpf-menu__title",children:p.jsx("span",{children:e})}),Ts=({text:e="",percent:t,complete:r=!1,className:n})=>p.jsx("div",{className:z("rpf-progress-bar",{"rpf-progress-bar--complete":r,className:n}),children:p.jsxs("label",{className:"rpf-progress-bar__label",children:[p.jsx("span",{children:e}),p.jsx("progress",{className:"rpf-progress-bar__bar",value:t,max:"100",children:`${t}%`})]})}),Ss=({children:e})=>p.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:p.jsx("div",{className:"rpf-table-cell__content",children:e})});/**
27
+ */var zr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Xe=zr.join(","),hn=typeof Element>"u",Ae=hn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ge=!hn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ze=function(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),s=o===""||o==="true",i=s||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Ze(t.parentNode));return i},Xr=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},Gr=function(t,r,n){if(Ze(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Xe));return r&&Ae.call(t,Xe)&&o.unshift(t),o=o.filter(n),o},xt=function(t,r,n){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!Ze(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),u=a.length?a:i.children,c=xt(u,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{var f=Ae.call(i,Xe);f&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var p=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),v=!Ze(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(p&&v){var l=xt(p===!0?i.children:p.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else s.unshift.apply(s,i.children)}}return o},mn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},vn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Xr(t))&&!mn(t)?0:t.tabIndex},Zr=function(t,r){var n=vn(t);return n<0&&r&&!mn(t)?0:n},Jr=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},bn=function(t){return t.tagName==="INPUT"},Qr=function(t){return bn(t)&&t.type==="hidden"},eo=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},to=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},no=function(t){if(!t.name)return!0;var r=t.form||Ge(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(t.name));else try{o=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=to(o,t.form);return!s||s===t},ro=function(t){return bn(t)&&t.type==="radio"},oo=function(t){return ro(t)&&!no(t)},so=function(t){var r,n=t&&Ge(t),o=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==t){var i,a,u;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!s&&o;){var c,f,p;n=Ge(o),o=(c=n)===null||c===void 0?void 0:c.host,s=!!((f=o)!==null&&f!==void 0&&(p=f.ownerDocument)!==null&&p!==void 0&&p.contains(o))}}return s},yn=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},io=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Ae.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Ae.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var c=t.parentElement,f=Ge(t);if(c&&!c.shadowRoot&&o(c)===!0)return yn(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=u}if(so(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return yn(t);return!1},ao=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Ae.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},co=function(t,r){return!(r.disabled||Qr(r)||io(r,t)||eo(r)||ao(r))},Tt=function(t,r){return!(oo(r)||vn(r)<0||!co(t,r))},lo=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},gn=function(t){var r=[],n=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,u=Zr(a,i),c=i?gn(o.candidates):a;u===0?i?r.push.apply(r,c):r.push(a):n.push({documentOrder:s,tabIndex:u,item:o,isScope:i,content:c})}),n.sort(Jr).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},St=function(t,r){r=r||{};var n;return r.getShadowRoot?n=xt([t],r.includeContainer,{filter:Tt.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:lo}):n=Gr(t,r.includeContainer,Tt.bind(null,r)),gn(n)},uo=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Ae.call(t,Xe)===!1?!1:Tt(r,t)};function wn(e,t,r){let{reference:n,floating:o}=e;const s=ge(t),i=fn(t),a=un(i),u=_e(t),c=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[a]/2-o[a]/2;let l;switch(u){case"top":l={x:f,y:n.y-o.height};break;case"bottom":l={x:f,y:n.y+n.height};break;case"right":l={x:n.x+n.width,y:p};break;case"left":l={x:n.x-o.width,y:p};break;default:l={x:n.x,y:n.y}}switch(He(t)){case"start":l[i]-=v*(r&&c?-1:1);break;case"end":l[i]+=v*(r&&c?-1:1);break}return l}async function fo(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:l=0}=Ue(t,e),b=Kr(l),A=a[v?p==="floating"?"reference":"floating":p],P=ze(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(A)))==null||r?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:u})),R=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},y=ze(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:R,offsetParent:g,strategy:u}):R);return{top:(P.top-y.top+b.top)/S.y,bottom:(y.bottom-P.bottom+b.bottom)/S.y,left:(P.left-y.left+b.left)/S.x,right:(y.right-P.right+b.right)/S.x}}const po=50,ho=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:fo},u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=wn(c,n,u),v=n,l=0;const b={};for(let h=0;h<s.length;h++){const A=s[h];if(!A)continue;const{name:P,fn:R}=A,{x:g,y:S,data:y,reset:F}=await R({x:f,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});f=g??f,p=S??p,b[P]={...b[P],...y},F&&l<po&&(l++,typeof F=="object"&&(F.placement&&(v=F.placement),F.rects&&(c=F.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:f,y:p}=wn(c,v,u)),h=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:b}},mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...A}=Ue(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const P=_e(o),R=ge(a),g=_e(a)===a,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),y=v||(g||!h?[Ke(a)]:Wr(a)),F=b!=="none";!v&&F&&y.push(...Ur(a,h,b,S));const Y=[a,...y],K=await u.detectOverflow(t,A),Q=[];let G=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&Q.push(K[P]),p){const Z=Br(o,i,S);Q.push(K[Z[0]],K[Z[1]])}if(G=[...G,{placement:o,overflows:Q}],!Q.every(Z=>Z<=0)){var z,B;const Z=(((z=s.flip)==null?void 0:z.index)||0)+1,k=Y[Z];if(k&&(!(p==="alignment"?R!==ge(k):!1)||G.every(D=>ge(D.placement)===R?D.overflows[0]>0:!0)))return{data:{index:Z,overflows:G},reset:{placement:k}};let M=(B=G.filter(W=>W.overflows[0]<=0).sort((W,D)=>W.overflows[1]-D.overflows[1])[0])==null?void 0:B.placement;if(!M)switch(l){case"bestFit":{var te;const W=(te=G.filter(D=>{if(F){const T=ge(D.placement);return T===R||T==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(T=>T>0).reduce((T,m)=>T+m,0)]).sort((D,T)=>D[1]-T[1])[0])==null?void 0:te[0];W&&(M=W);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}},vo=new Set(["left","top"]);async function bo(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=_e(r),a=He(r),u=ge(r)==="y",c=vo.has(i)?-1:1,f=s&&u?-1:1,p=Ue(t,e);let{mainAxis:v,crossAxis:l,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(l=a==="end"?b*-1:b),u?{x:l*f,y:v*c}:{x:v*c,y:l*f}}const yo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await bo(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},go=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:P=>{let{x:R,y:g}=P;return{x:R,y:g}}},...c}=Ue(e,t),f={x:r,y:n},p=await s.detectOverflow(t,c),v=ge(_e(o)),l=ln(v);let b=f[l],h=f[v];if(i){const P=l==="y"?"top":"left",R=l==="y"?"bottom":"right",g=b+p[P],S=b-p[R];b=cn(g,b,S)}if(a){const P=v==="y"?"top":"left",R=v==="y"?"bottom":"right",g=h+p[P],S=h-p[R];h=cn(g,h,S)}const A=u.fn({...t,[l]:b,[v]:h});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[l]:i,[v]:a}}}}}};function En(e){const t=ae(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=re(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=Ve(r)!==s||Ve(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function _t(e){return ee(e)?e:e.contextElement}function Pe(e){const t=_t(e);if(!re(t))return fe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=En(t);let i=(s?Ve(r.width):r.width)/n,a=(s?Ve(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const wo=fe(0);function xn(e){const t=se(e);return!Be()||!t.visualViewport?wo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==se(e)?!1:t}function Ce(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=_t(e);let i=fe(1);t&&(n?ee(n)&&(i=Pe(n)):i=Pe(e));const a=Eo(s,r,n)?xn(s):fe(0);let u=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const v=se(s),l=n&&ee(n)?se(n):n;let b=v,h=bt(b);for(;h&&n&&l!==b;){const A=Pe(h),P=h.getBoundingClientRect(),R=ae(h),g=P.left+(h.clientLeft+parseFloat(R.paddingLeft))*A.x,S=P.top+(h.clientTop+parseFloat(R.paddingTop))*A.y;u*=A.x,c*=A.y,f*=A.x,p*=A.y,u+=g,c+=S,b=se(h),h=bt(b)}}return ze({width:f,height:p,x:u,y:c})}function Je(e,t){const r=We(e).scrollLeft;return t?t.left+r:Ce(ue(e)).left+r}function Tn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Je(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function xo(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=ue(n),a=t?je(t.floating):!1;if(n===i||a&&s)return r;let u={scrollLeft:0,scrollTop:0},c=fe(1);const f=fe(0),p=re(n);if((p||!p&&!s)&&((ve(n)!=="body"||Ie(i))&&(u=We(n)),p)){const l=Ce(n);c=Pe(n),f.x=l.x+n.clientLeft,f.y=l.y+n.clientTop}const v=i&&!p&&!s?Tn(i,u):fe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+f.x+v.x,y:r.y*c.y-u.scrollTop*c.y+f.y+v.y}}function To(e){return Array.from(e.getClientRects())}function So(e){const t=ue(e),r=We(e),n=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Je(e);const a=-r.scrollTop;return ae(n).direction==="rtl"&&(i+=Se(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Sn=25;function _o(e,t){const r=se(e),n=ue(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const f=Be();(!f||f&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Je(n);if(c<=0){const f=n.ownerDocument,p=f.body,v=getComputedStyle(p),l=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-l);b<=Sn&&(s-=b)}else c<=Sn&&(s+=c);return{width:s,height:i,x:a,y:u}}function Co(e,t){const r=Ce(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=re(e)?Pe(e):fe(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,c=n*s.y;return{width:i,height:a,x:u,y:c}}function _n(e,t,r){let n;if(t==="viewport")n=_o(e,r);else if(t==="document")n=So(ue(e));else if(ee(t))n=Co(t,r);else{const o=xn(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ze(n)}function Cn(e,t){const r=de(e);return r===t||!ee(r)||be(r)?!1:ae(r).position==="fixed"||Cn(r,t)}function Oo(e,t){const r=t.get(e);if(r)return r;let n=ye(e,[],!1).filter(a=>ee(a)&&ve(a)!=="body"),o=null;const s=ae(e).position==="fixed";let i=s?de(e):e;for(;ee(i)&&!be(i);){const a=ae(i),u=vt(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ie(i)&&!u&&Cn(e,i))?n=n.filter(f=>f!==i):o=a,i=de(i)}return t.set(e,n),n}function Ao(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?je(t)?[]:Oo(t,this._c):[].concat(r),n],a=_n(t,i[0],o);let u=a.top,c=a.right,f=a.bottom,p=a.left;for(let v=1;v<i.length;v++){const l=_n(t,i[v],o);u=Se(l.top,u),c=qe(l.right,c),f=qe(l.bottom,f),p=Se(l.left,p)}return{width:c-p,height:f-u,x:p,y:u}}function Po(e){const{width:t,height:r}=En(e);return{width:t,height:r}}function No(e,t,r){const n=re(t),o=ue(t),s=r==="fixed",i=Ce(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=fe(0);function c(){u.x=Je(o)}if(n||!n&&!s)if((ve(t)!=="body"||Ie(o))&&(a=We(t)),n){const l=Ce(t,!0,s,t);u.x=l.x+t.clientLeft,u.y=l.y+t.clientTop}else o&&c();s&&!n&&o&&c();const f=o&&!n&&!s?Tn(o,a):fe(0),p=i.left+a.scrollLeft-u.x-f.x,v=i.top+a.scrollTop-u.y-f.y;return{x:p,y:v,width:i.width,height:i.height}}function Ct(e){return ae(e).position==="static"}function On(e,t){if(!re(e)||ae(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ue(e)===r&&(r=r.ownerDocument.body),r}function An(e,t){const r=se(e);if(je(e))return r;if(!re(e)){let o=de(e);for(;o&&!be(o);){if(ee(o)&&!Ct(o))return o;o=de(o)}return r}let n=On(e,t);for(;n&&Cr(n)&&Ct(n);)n=On(n,t);return n&&be(n)&&Ct(n)&&!vt(n)?r:n||Pr(e)||r}const Ro=async function(e){const t=this.getOffsetParent||An,r=this.getDimensions,n=await r(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Io(e){return ae(e).direction==="rtl"}const ko={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ue,getClippingRect:Ao,getOffsetParent:An,getElementRects:Ro,getClientRects:To,getDimensions:Po,getScale:Pe,isElement:ee,isRTL:Io};function Pn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mo(e,t){let r=null,n;const o=ue(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const c=e.getBoundingClientRect(),{left:f,top:p,width:v,height:l}=c;if(a||t(),!v||!l)return;const b=Ye(p),h=Ye(o.clientWidth-(f+v)),A=Ye(o.clientHeight-(p+l)),P=Ye(f),g={rootMargin:-b+"px "+-h+"px "+-A+"px "+-P+"px",threshold:Se(0,qe(1,u))||1};let S=!0;function y(F){const Y=F[0].intersectionRatio;if(Y!==u){if(!S)return i();Y?i(!1,Y):n=setTimeout(()=>{i(!1,1e-7)},1e3)}Y===1&&!Pn(c,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(y,{...g,root:o.ownerDocument})}catch{r=new IntersectionObserver(y,g)}r.observe(e)}return i(!0),s}function Do(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=_t(e),f=o||s?[...c?ye(c):[],...t?ye(t):[]]:[];f.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),s&&P.addEventListener("resize",r)});const p=c&&a?Mo(c,r):null;let v=-1,l=null;i&&(l=new ResizeObserver(P=>{let[R]=P;R&&R.target===c&&l&&t&&(l.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var g;(g=l)==null||g.observe(t)})),r()}),c&&!u&&l.observe(c),t&&l.observe(t));let b,h=u?Ce(e):null;u&&A();function A(){const P=Ce(e);h&&!Pn(h,P)&&r(),h=P,b=requestAnimationFrame(A)}return r(),()=>{var P;f.forEach(R=>{o&&R.removeEventListener("scroll",r),s&&R.removeEventListener("resize",r)}),p==null||p(),(P=l)==null||P.disconnect(),l=null,u&&cancelAnimationFrame(b)}}const Lo=yo,Fo=go,$o=mo,jo=(e,t,r)=>{const n=new Map,o={platform:ko,...r},s={...o.platform,_c:n};return ho(e,t,{...o,platform:s})};var Bo=typeof document<"u",Wo=function(){},Qe=Bo?ne.useLayoutEffect:Wo;function et(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!et(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Nn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rn(e,t){const r=Nn(e);return Math.round(t*r)/r}function Ot(e){const t=x.useRef(e);return Qe(()=>{t.current=e}),t}function qo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,p]=x.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,l]=x.useState(n);et(v,n)||l(n);const[b,h]=x.useState(null),[A,P]=x.useState(null),R=x.useCallback(D=>{D!==F.current&&(F.current=D,h(D))},[]),g=x.useCallback(D=>{D!==Y.current&&(Y.current=D,P(D))},[]),S=s||b,y=i||A,F=x.useRef(null),Y=x.useRef(null),K=x.useRef(f),Q=u!=null,G=Ot(u),z=Ot(o),B=Ot(c),te=x.useCallback(()=>{if(!F.current||!Y.current)return;const D={placement:t,strategy:r,middleware:v};z.current&&(D.platform=z.current),jo(F.current,Y.current,D).then(T=>{const m={...T,isPositioned:B.current!==!1};Z.current&&!et(K.current,m)&&(K.current=m,rr.flushSync(()=>{p(m)}))})},[v,t,r,z,B]);Qe(()=>{c===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[c]);const Z=x.useRef(!1);Qe(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Qe(()=>{if(S&&(F.current=S),y&&(Y.current=y),S&&y){if(G.current)return G.current(S,y,te);te()}},[S,y,te,G,Q]);const k=x.useMemo(()=>({reference:F,floating:Y,setReference:R,setFloating:g}),[R,g]),M=x.useMemo(()=>({reference:S,floating:y}),[S,y]),W=x.useMemo(()=>{const D={position:r,left:0,top:0};if(!M.floating)return D;const T=Rn(M.floating,f.x),m=Rn(M.floating,f.y);return a?{...D,transform:"translate("+T+"px, "+m+"px)",...Nn(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:T,top:m}},[r,a,M.floating,f.x,f.y]);return x.useMemo(()=>({...f,update:te,refs:k,elements:M,floatingStyles:W}),[f,te,k,M,W])}const Vo=(e,t)=>{const r=Lo(e);return{name:r.name,fn:r.fn,options:[e,t]}},Yo=(e,t)=>{const r=Fo(e);return{name:r.name,fn:r.fn,options:[e,t]}},Uo=(e,t)=>{const r=$o(e);return{name:r.name,fn:r.fn,options:[e,t]}},In={...x},Ho=In.useInsertionEffect||(e=>e());function we(e){const t=x.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Ho(()=>{t.current=e}),x.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var pe=typeof document<"u"?ne.useLayoutEffect:ne.useEffect;function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}let kn=!1,Ko=0;const Mn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ko++;function zo(){const[e,t]=x.useState(()=>kn?Mn():void 0);return pe(()=>{e==null&&t(Mn())},[]),x.useEffect(()=>{kn=!0},[]),e}const Dn=In.useId||zo;let At;process.env.NODE_ENV!=="production"&&(At=new Set);function Xo(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=At)!=null&&e.has(o))){var s;(s=At)==null||s.add(o),console.error(o)}}function Go(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const Zo=x.createContext(null),Jo=x.createContext(null),Ln=()=>{var e;return((e=x.useContext(Zo))==null?void 0:e.id)||null},Pt=()=>x.useContext(Jo);function nt(e){return"data-floating-ui-"+e}function Nt(e){const t=ne.useRef(e);return pe(()=>{t.current=e}),t}let Fn=0;function Ne(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(Fn);const s=()=>e==null?void 0:e.focus({preventScroll:r});o?s():Fn=requestAnimationFrame(s)}function Qo(e,t){var r;let n=[],o=(r=e.find(s=>s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(i=>i.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function ke(e,t){let r=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),n=r;for(;n.length;)n=e.filter(o=>{var s;return(s=n)==null?void 0:s.some(i=>{var a;return o.parentId===i.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}let Re=new WeakMap,rt=new WeakSet,ot={},Rt=0;const es=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,$n=e=>e&&(e.host||$n(e.parentNode)),ts=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=$n(r);return e.contains(n)?n:null}).filter(r=>r!=null);function ns(e,t,r,n){const o="data-floating-ui-inert",s=n?"inert":r?"aria-hidden":null,i=ts(t,e),a=new Set,u=new Set(i),c=[];ot[o]||(ot[o]=new WeakMap);const f=ot[o];i.forEach(p),v(t),a.clear();function p(l){!l||a.has(l)||(a.add(l),l.parentNode&&p(l.parentNode))}function v(l){!l||u.has(l)||[].forEach.call(l.children,b=>{if(ve(b)!=="script")if(a.has(b))v(b);else{const h=s?b.getAttribute(s):null,A=h!==null&&h!=="false",P=(Re.get(b)||0)+1,R=(f.get(b)||0)+1;Re.set(b,P),f.set(b,R),c.push(b),P===1&&A&&rt.add(b),R===1&&b.setAttribute(o,""),!A&&s&&b.setAttribute(s,"true")}})}return Rt++,()=>{c.forEach(l=>{const b=(Re.get(l)||0)-1,h=(f.get(l)||0)-1;Re.set(l,b),f.set(l,h),b||(!rt.has(l)&&s&&l.removeAttribute(s),rt.delete(l)),h||l.removeAttribute(o)}),Rt--,Rt||(Re=new WeakMap,Re=new WeakMap,rt=new WeakSet,ot={})}}function jn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=ce(e[0]).body;return ns(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const st=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Bn(e,t){const r=St(e,st());t==="prev"&&r.reverse();const n=r.indexOf(xe(ce(e)));return r.slice(n+1)[0]}function rs(){return Bn(document.body,"next")}function os(){return Bn(document.body,"prev")}function Wn(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!ie(r,n)}const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let ss;function qn(e){e.key==="Tab"&&(e.target,clearTimeout(ss))}const Vn=x.forwardRef(function(t,r){const[n,o]=x.useState();pe(()=>(kr()&&o("button"),document.addEventListener("keydown",qn),()=>{document.removeEventListener("keydown",qn)}),[]);const s={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[nt("focus-guard")]:"",style:It};return x.createElement("span",tt({},t,s))}),is=x.createContext(null),as=()=>x.useContext(is),kt="data-floating-ui-focusable";function cs(e){return e?e.hasAttribute(kt)?e:e.querySelector("["+kt+"]")||e:null}const Yn=20;let Oe=[];function Mt(e){Oe=Oe.filter(r=>r.isConnected);let t=e;if(!(!t||ve(t)==="body")){if(!uo(t,st())){const r=St(t,st())[0];r&&(t=r)}Oe.push(t),Oe.length>Yn&&(Oe=Oe.slice(-Yn))}}function Un(){return Oe.slice().reverse().find(e=>e.isConnected)}const ls=x.forwardRef(function(t,r){return x.createElement("button",tt({},t,{type:"button",ref:r,tabIndex:-1,style:It}))});function us(e){const{context:t,children:r,disabled:n=!1,order:o=["content"],guards:s=!0,initialFocus:i=0,returnFocus:a=!0,restoreFocus:u=!1,modal:c=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0}=e,{open:v,refs:l,nodeId:b,onOpenChange:h,events:A,dataRef:P,floatingId:R,elements:{domReference:g,floating:S}}=t,y=typeof i=="number"&&i<0,F=$r(g)&&y,Y=es()?s:!0,K=Nt(o),Q=Nt(i),G=Nt(a),z=Pt(),B=as(),te=x.useRef(null),Z=x.useRef(null),k=x.useRef(!1),M=x.useRef(!1),W=x.useRef(-1),D=B!=null,T=cs(S),m=we(function(_){return _===void 0&&(_=T),_?St(_,st()):[]}),E=we(_=>{const N=m(_);return K.current.map(w=>g&&w==="reference"?g:T&&w==="floating"?T:N).filter(Boolean).flat()});x.useEffect(()=>{if(n||!c)return;function _(w){if(w.key==="Tab"){ie(T,xe(ce(T)))&&m().length===0&&!F&&wt(w);const O=E(),I=Te(w);K.current[0]==="reference"&&I===g&&(wt(w),w.shiftKey?Ne(O[O.length-1]):Ne(O[1])),K.current[1]==="floating"&&I===T&&w.shiftKey&&(wt(w),Ne(O[0]))}}const N=ce(T);return N.addEventListener("keydown",_),()=>{N.removeEventListener("keydown",_)}},[n,g,T,c,K,F,m,E]),x.useEffect(()=>{if(n||!S)return;function _(N){const w=Te(N),I=m().indexOf(w);I!==-1&&(W.current=I)}return S.addEventListener("focusin",_),()=>{S.removeEventListener("focusin",_)}},[n,S,m]),x.useEffect(()=>{if(n||!p)return;function _(){M.current=!0,setTimeout(()=>{M.current=!1})}function N(w){const O=w.relatedTarget;queueMicrotask(()=>{const I=!(ie(g,O)||ie(S,O)||ie(O,S)||ie(B==null?void 0:B.portalNode,O)||O!=null&&O.hasAttribute(nt("focus-guard"))||z&&(ke(z.nodesRef.current,b).find(j=>{var L,J;return ie((L=j.context)==null?void 0:L.elements.floating,O)||ie((J=j.context)==null?void 0:J.elements.domReference,O)})||Qo(z.nodesRef.current,b).find(j=>{var L,J;return((L=j.context)==null?void 0:L.elements.floating)===O||((J=j.context)==null?void 0:J.elements.domReference)===O})));if(u&&I&&xe(ce(T))===ce(T).body){re(T)&&T.focus();const j=W.current,L=m(),J=L[j]||L[L.length-1]||T;re(J)&&J.focus()}(F||!c)&&O&&I&&!M.current&&O!==Un()&&(k.current=!0,h(!1,w,"focus-out"))})}if(S&&re(g))return g.addEventListener("focusout",N),g.addEventListener("pointerdown",_),S.addEventListener("focusout",N),()=>{g.removeEventListener("focusout",N),g.removeEventListener("pointerdown",_),S.removeEventListener("focusout",N)}},[n,g,S,T,c,b,z,B,h,p,u,m,F]),x.useEffect(()=>{var _;if(n)return;const N=Array.from((B==null||(_=B.portalNode)==null?void 0:_.querySelectorAll("["+nt("portal")+"]"))||[]);if(S){const w=[S,...N,te.current,Z.current,K.current.includes("reference")||F?g:null].filter(I=>I!=null),O=c||F?jn(w,Y,!Y):jn(w);return()=>{O()}}},[n,g,S,c,K,B,F,Y]),pe(()=>{if(n||!re(T))return;const _=ce(T),N=xe(_);queueMicrotask(()=>{const w=E(T),O=Q.current,I=(typeof O=="number"?w[O]:O.current)||T,j=ie(T,N);!y&&!j&&v&&Ne(I,{preventScroll:I===T})})},[n,v,T,y,E,Q]),pe(()=>{if(n||!T)return;let _=!1;const N=ce(T),w=xe(N);let I=P.current.openEvent;Mt(w);function j(C){let{open:oe,reason:he,event:le,nested:Ft}=C;oe&&(I=le),he==="escape-key"&&l.domReference.current&&Mt(l.domReference.current),he==="hover"&&le.type==="mouseleave"&&(k.current=!0),he==="outside-press"&&(Ft?(k.current=!1,_=!0):k.current=!(Rr(le)||Ir(le)))}A.on("openchange",j);const L=N.createElement("span");L.setAttribute("tabindex","-1"),L.setAttribute("aria-hidden","true"),Object.assign(L.style,It),D&&g&&g.insertAdjacentElement("afterend",L);function J(){return typeof G.current=="boolean"?Un()||L:G.current.current||L}return()=>{A.off("openchange",j);const C=xe(N),oe=ie(S,C)||z&&ke(z.nodesRef.current,b).some(Ft=>{var tr;return ie((tr=Ft.context)==null?void 0:tr.elements.floating,C)});(oe||I&&["click","mousedown"].includes(I.type))&&l.domReference.current&&Mt(l.domReference.current);const le=J();queueMicrotask(()=>{G.current&&!k.current&&re(le)&&(!(le!==C&&C!==N.body)||oe)&&le.focus({preventScroll:_}),L.remove()})}},[n,S,T,G,P,l,A,z,b,D,g]),x.useEffect(()=>{queueMicrotask(()=>{k.current=!1})},[n]),pe(()=>{if(!n&&B)return B.setFocusManagerState({modal:c,closeOnFocusOut:p,open:v,onOpenChange:h,refs:l}),()=>{B.setFocusManagerState(null)}},[n,B,c,v,h,l,p]),pe(()=>{if(n||!T||typeof MutationObserver!="function"||y)return;const _=()=>{const w=T.getAttribute("tabindex"),O=m(),I=xe(ce(S)),j=O.indexOf(I);j!==-1&&(W.current=j),K.current.includes("floating")||I!==l.domReference.current&&O.length===0?w!=="0"&&T.setAttribute("tabindex","0"):w!=="-1"&&T.setAttribute("tabindex","-1")};_();const N=new MutationObserver(_);return N.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{N.disconnect()}},[n,S,T,l,K,m,y]);function $(_){return n||!f||!c?null:x.createElement(ls,{ref:_==="start"?te:Z,onClick:N=>h(!1,N.nativeEvent)},typeof f=="string"?f:"Dismiss")}const q=!n&&Y&&(c?!F:!0)&&(D||c);return x.createElement(x.Fragment,null,q&&x.createElement(Vn,{"data-type":"inside",ref:B==null?void 0:B.beforeInsideRef,onFocus:_=>{if(c){const w=E();Ne(o[0]==="reference"?w[0]:w[w.length-1])}else if(B!=null&&B.preserveTabOrder&&B.portalNode)if(k.current=!1,Wn(_,B.portalNode)){const w=rs()||g;w==null||w.focus()}else{var N;(N=B.beforeOutsideRef.current)==null||N.focus()}}}),!F&&$("start"),r,$("end"),q&&x.createElement(Vn,{"data-type":"inside",ref:B==null?void 0:B.afterInsideRef,onFocus:_=>{if(c)Ne(E()[0]);else if(B!=null&&B.preserveTabOrder&&B.portalNode)if(p&&(k.current=!0),Wn(_,B.portalNode)){const w=os()||g;w==null||w.focus()}else{var N;(N=B.afterOutsideRef.current)==null||N.focus()}}}))}function Hn(e){return re(e.target)&&e.target.tagName==="BUTTON"}function Kn(e){return an(e)}function fs(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:s}}=e,{enabled:i=!0,event:a="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:f=!0,stickIfOpen:p=!0}=t,v=x.useRef(),l=x.useRef(!1),b=x.useMemo(()=>({onPointerDown(h){v.current=h.pointerType},onMouseDown(h){const A=v.current;h.button===0&&a!=="click"&&(sn(A)&&c||(r&&u&&(!(o.current.openEvent&&p)||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){const A=v.current;if(a==="mousedown"&&v.current){v.current=void 0;return}sn(A)&&c||(r&&u&&(!(o.current.openEvent&&p)||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){v.current=void 0,!(h.defaultPrevented||!f||Hn(h))&&(h.key===" "&&!Kn(s)&&(h.preventDefault(),l.current=!0),h.key==="Enter"&&n(!(r&&u),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!f||Hn(h)||Kn(s)||h.key===" "&&l.current&&(l.current=!1,n(!(r&&u),h.nativeEvent,"click"))}}),[o,s,a,c,f,n,r,p,u]);return x.useMemo(()=>i?{reference:b}:{},[i,b])}const ds={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ps={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zn=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function hs(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:l,capture:b}=t,h=Pt(),A=we(typeof u=="function"?u:()=>!1),P=typeof u=="function"?A:u,R=x.useRef(!1),g=x.useRef(!1),{escapeKey:S,outsidePress:y}=zn(l),{escapeKey:F,outsidePress:Y}=zn(b),K=x.useRef(!1),Q=we(k=>{var M;if(!r||!i||!a||k.key!=="Escape"||K.current)return;const W=(M=s.current.floatingContext)==null?void 0:M.nodeId,D=h?ke(h.nodesRef.current,W):[];if(!S&&(k.stopPropagation(),D.length>0)){let T=!0;if(D.forEach(m=>{var E;if((E=m.context)!=null&&E.open&&!m.context.dataRef.current.__escapeKeyBubbles){T=!1;return}}),!T)return}n(!1,Dr(k)?k.nativeEvent:k,"escape-key")}),G=we(k=>{var M;const W=()=>{var D;Q(k),(D=Te(k))==null||D.removeEventListener("keydown",W)};(M=Te(k))==null||M.addEventListener("keydown",W)}),z=we(k=>{var M;const W=R.current;R.current=!1;const D=g.current;if(g.current=!1,c==="click"&&D||W||typeof P=="function"&&!P(k))return;const T=Te(k),m="["+nt("inert")+"]",E=ce(o.floating).querySelectorAll(m);let $=ee(T)?T:null;for(;$&&!be($);){const w=de($);if(be(w)||!ee(w))break;$=w}if(E.length&&ee(T)&&!Lr(T)&&!ie(T,o.floating)&&Array.from(E).every(w=>!ie($,w)))return;if(re(T)&&Z){const w=T.clientWidth>0&&T.scrollWidth>T.clientWidth,O=T.clientHeight>0&&T.scrollHeight>T.clientHeight;let I=O&&k.offsetX>T.clientWidth;if(O&&ae(T).direction==="rtl"&&(I=k.offsetX<=T.offsetWidth-T.clientWidth),I||w&&k.offsetY>T.clientHeight)return}const q=(M=s.current.floatingContext)==null?void 0:M.nodeId,_=h&&ke(h.nodesRef.current,q).some(w=>{var O;return gt(k,(O=w.context)==null?void 0:O.elements.floating)});if(gt(k,o.floating)||gt(k,o.domReference)||_)return;const N=h?ke(h.nodesRef.current,q):[];if(N.length>0){let w=!0;if(N.forEach(O=>{var I;if((I=O.context)!=null&&I.open&&!O.context.dataRef.current.__outsidePressBubbles){w=!1;return}}),!w)return}n(!1,k,"outside-press")}),B=we(k=>{var M;const W=()=>{var D;z(k),(D=Te(k))==null||D.removeEventListener(c,W)};(M=Te(k))==null||M.addEventListener(c,W)});x.useEffect(()=>{if(!r||!i)return;s.current.__escapeKeyBubbles=S,s.current.__outsidePressBubbles=y;let k=-1;function M(E){n(!1,E,"ancestor-scroll")}function W(){window.clearTimeout(k),K.current=!0}function D(){k=window.setTimeout(()=>{K.current=!1},Be()?5:0)}const T=ce(o.floating);a&&(T.addEventListener("keydown",F?G:Q,F),T.addEventListener("compositionstart",W),T.addEventListener("compositionend",D)),P&&T.addEventListener(c,Y?B:z,Y);let m=[];return v&&(ee(o.domReference)&&(m=ye(o.domReference)),ee(o.floating)&&(m=m.concat(ye(o.floating))),!ee(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(ye(o.reference.contextElement)))),m=m.filter(E=>{var $;return E!==(($=T.defaultView)==null?void 0:$.visualViewport)}),m.forEach(E=>{E.addEventListener("scroll",M,{passive:!0})}),()=>{a&&(T.removeEventListener("keydown",F?G:Q,F),T.removeEventListener("compositionstart",W),T.removeEventListener("compositionend",D)),P&&T.removeEventListener(c,Y?B:z,Y),m.forEach(E=>{E.removeEventListener("scroll",M)}),window.clearTimeout(k)}},[s,o,a,P,c,r,n,v,i,S,y,Q,F,G,z,Y,B]),x.useEffect(()=>{R.current=!1},[P,c]);const te=x.useMemo(()=>({onKeyDown:Q,[ds[p]]:k=>{f&&n(!1,k.nativeEvent,"reference-press")}}),[Q,n,f,p]),Z=x.useMemo(()=>({onKeyDown:Q,onMouseDown(){g.current=!0},onMouseUp(){g.current=!0},[ps[c]]:()=>{R.current=!0}}),[Q,c]);return x.useMemo(()=>i?{reference:te,floating:Z}:{},[i,te,Z])}function ms(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Dn(),s=x.useRef({}),[i]=x.useState(()=>Go()),a=Ln()!=null;if(process.env.NODE_ENV!=="production"){const l=n.reference;l&&!ee(l)&&Xo("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,c]=x.useState(n.reference),f=we((l,b,h)=>{s.current.openEvent=l?b:void 0,i.emit("openchange",{open:l,event:b,reason:h,nested:a}),r==null||r(l,b,h)}),p=x.useMemo(()=>({setPositionReference:c}),[]),v=x.useMemo(()=>({reference:u||n.reference||null,floating:n.floating||null,domReference:n.reference}),[u,n.reference,n.floating]);return x.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:v,events:i,floatingId:o,refs:p}),[t,f,v,i,o,p])}function vs(e){e===void 0&&(e={});const{nodeId:t}=e,r=ms({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[s,i]=x.useState(null),[a,u]=x.useState(null),f=(o==null?void 0:o.domReference)||s,p=x.useRef(null),v=Pt();pe(()=>{f&&(p.current=f)},[f]);const l=qo({...e,elements:{...o,...a&&{reference:a}}}),b=x.useCallback(g=>{const S=ee(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;u(S),l.refs.setReference(S)},[l.refs]),h=x.useCallback(g=>{(ee(g)||g===null)&&(p.current=g,i(g)),(ee(l.refs.reference.current)||l.refs.reference.current===null||g!==null&&!ee(g))&&l.refs.setReference(g)},[l.refs]),A=x.useMemo(()=>({...l.refs,setReference:h,setPositionReference:b,domReference:p}),[l.refs,h,b]),P=x.useMemo(()=>({...l.elements,domReference:f}),[l.elements,f]),R=x.useMemo(()=>({...l,...n,refs:A,elements:P,nodeId:t}),[l,A,P,t,n]);return pe(()=>{n.dataRef.current.floatingContext=R;const g=v==null?void 0:v.nodesRef.current.find(S=>S.id===t);g&&(g.context=R)}),x.useMemo(()=>({...l,context:R,refs:A,elements:P}),[l,A,P,R])}const Xn="active",Gn="selected";function Dt(e,t,r){const n=new Map,o=r==="item";let s=e;if(o&&e){const{[Xn]:i,[Gn]:a,...u}=e;s=u}return{...r==="floating"&&{tabIndex:-1,[kt]:""},...s,...t.map(i=>{const a=i?i[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(u=>{let[c,f]=u;if(!(o&&[Xn,Gn].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof f=="function"){var p;(p=n.get(c))==null||p.push(f),i[c]=function(){for(var v,l=arguments.length,b=new Array(l),h=0;h<l;h++)b[h]=arguments[h];return(v=n.get(c))==null?void 0:v.map(A=>A(...b)).find(A=>A!==void 0)}}}else i[c]=f}),i),{})}}function bs(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),r=e.map(a=>a==null?void 0:a.floating),n=e.map(a=>a==null?void 0:a.item),o=x.useCallback(a=>Dt(a,e,"reference"),t),s=x.useCallback(a=>Dt(a,e,"floating"),r),i=x.useCallback(a=>Dt(a,e,"item"),n);return x.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}const ys=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function gs(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,a=(r=ys.get(i))!=null?r:i,u=Dn(),f=Ln()!=null,p=x.useMemo(()=>a==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:u},...a==="menu"&&f&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[a,o,f,n,u,i]),v=x.useMemo(()=>{const b={id:o,...a&&{role:a}};return a==="tooltip"||i==="label"?b:{...b,...a==="menu"&&{"aria-labelledby":u}}},[a,o,u,i]),l=x.useCallback(b=>{let{active:h,selected:A}=b;const P={role:"option",...h&&{id:o+"-option"}};switch(i){case"select":return{...P,"aria-selected":h&&A};case"combobox":return{...P,...h&&{"aria-selected":!0}}}return{}},[o,i]);return x.useMemo(()=>s?{reference:p,floating:v,item:l}:{},[s,p,v,l])}function ws({className:e,children:t,buttonText:r}){const[n,o]=ne.useState(!1),{refs:s,floatingStyles:i,context:a}=vs({open:n,onOpenChange:o,middleware:[Vo(16),Uo(),Yo()],whileElementsMounted:Do,placement:"right"}),u=fs(a),c=hs(a),f=gs(a),{getReferenceProps:p,getFloatingProps:v}=bs([u,c,f]);return d.jsxs(d.Fragment,{children:[d.jsx("span",{ref:s.setReference,className:e,...p(),children:d.jsx(me,{text:r})}),n&&d.jsx(us,{context:a,modal:!1,children:d.jsx("div",{ref:s.setFloating,style:i,...v(),children:d.jsx(tn,{children:t})})})]})}const Es=({className:e,children:t,buttonText:r="Menu button"})=>{const n=X("rpf-menu-button",e);return d.jsx(ws,{className:n,buttonText:r,children:t})},Zn=e=>e?d.jsx("span",{className:"rpf-button__icon material-symbols-sharp",children:e}):null,Jn=({text:e,iconPosition:t,icon:r})=>d.jsxs(d.Fragment,{children:[t==="left"&&r!==""?Zn(r):null,e,t==="right"&&r!==""?Zn(r):null]}),xs=({text:e,href:t,icon:r="",iconPosition:n="left",danger:o,className:s,onClick:i})=>{const a=X("rpf-menu__item",{"rpf-menu__item--danger":o},s);return d.jsx("li",{className:a,children:t?d.jsx("a",{href:t,children:d.jsx(Jn,{text:e,iconPosition:n,icon:r})}):d.jsx("button",{type:"button",onClick:i,children:d.jsx(Jn,{text:e,iconPosition:n,icon:r})})})},Ts=({text:e})=>d.jsx("li",{className:"rpf-menu__title",children:d.jsx("span",{children:e})}),Ss=({text:e="",percent:t,complete:r=!1,className:n})=>d.jsx("div",{className:X("rpf-progress-bar",{"rpf-progress-bar--complete":r,className:n}),children:d.jsxs("label",{className:"rpf-progress-bar__label",children:[d.jsx("span",{children:e}),d.jsx("progress",{className:"rpf-progress-bar__bar",value:t,max:"100",children:`${t}%`})]})}),_s=({children:e})=>d.jsx("td",{className:"rpf-table-cell rpf-table-cell--body",children:d.jsx("div",{className:"rpf-table-cell__content",children:e})});/**
28
28
  * @license lucide-react v0.553.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */const Cs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Gn=e=>{const t=_s(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zn=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Os=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
32
+ */const Cs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Os=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Qn=e=>{const t=Os(e);return t.charAt(0).toUpperCase()+t.slice(1)},er=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),As=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
33
33
  * @license lucide-react v0.553.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
@@ -39,12 +39,12 @@ Valid keys: `+JSON.stringify(Object.keys(m),null," "));var _=J(P,D,C,R,y+"."+D,
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const As=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...a},f)=>te.createElement("svg",{ref:f,...Ps,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Zn("lucide",o),...!s&&!Os(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,u])=>te.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
42
+ */const Ns=ne.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...a},u)=>ne.createElement("svg",{ref:u,...Ps,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:er("lucide",o),...!s&&!As(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,f])=>ne.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
43
43
  * @license lucide-react v0.553.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Lt=(e,t)=>{const r=te.forwardRef(({className:n,...o},s)=>te.createElement(As,{ref:s,iconNode:t,className:Zn(`lucide-${Cs(Gn(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Gn(e),r};/**
47
+ */const Lt=(e,t)=>{const r=ne.forwardRef(({className:n,...o},s)=>ne.createElement(Ns,{ref:s,iconNode:t,className:er(`lucide-${Cs(Qn(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Qn(e),r};/**
48
48
  * @license lucide-react v0.553.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
@@ -54,9 +54,9 @@ Valid keys: `+JSON.stringify(Object.keys(m),null," "));var _=J(P,D,C,R,y+"."+D,
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Ns=Lt("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
57
+ */const Is=Lt("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
58
58
  * @license lucide-react v0.553.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Is=Lt("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),Ms=(e,t)=>{if(e)return t==="up"?"ascending":t==="down"?"descending":"none"},ks=({sortDirection:e,children:t,onClick:r})=>{const n=!!r,o=e==="up"?Is:e==="down"?Ns:Rs,s=Ms(n,e),i=n?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return p.jsx("th",{className:`rpf-table-cell ${i}`,"aria-sort":s,children:p.jsx("div",{className:"rpf-table-cell__content",children:n?p.jsxs("button",{className:"rpf-table-cell__sort-header",onClick:r,children:[t,p.jsx(o,{size:20})]}):p.jsx(p.Fragment,{children:t})})})},Ds=({headerRow:e,bodyRows:t,fullWidth:r})=>p.jsx("div",{"data-testid":"table-container",className:z("rpf-table",{"rpf-table--full-width":r}),children:p.jsxs("table",{className:z("rpf-table__table",{"rpf-table__table--full-width":r}),children:[p.jsx("thead",{children:p.jsx("tr",{className:"rpf-table-row",children:e})}),p.jsx("tbody",{children:t.map((n,o)=>p.jsx("tr",{className:"rpf-table-row",children:n},o))})]})}),Ls=({text:e,variant:t,secondary:r,icon:n,iconPosition:o})=>{const s=n?p.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:n}):null;n&&!o&&(o="left");const i=t&&t!=="default"?`rpf-tag--${t}`:null;return p.jsxs("span",{className:z("rpf-tag",i,{"rpf-tag--secondary":r}),children:[o==="left"&&s,e,o==="right"&&s]})};V.Accordion=Qt,V.Alert=ur,V.Button=he,V.CheckboxInput=dr,V.Fieldset=pr,V.InputField=Le,V.InputLabel=hr,V.Menu=tn,V.MenuButton=ws,V.MenuItem=Es,V.MenuTitle=xs,V.Modal=xr,V.PasswordInput=mr,V.ProgressBar=Ts,V.RadioInput=vr,V.SearchInput=br,V.SelectInput=gr,V.Switch=en,V.Table=Ds,V.TableBodyCell=Ss,V.TableHeaderCell=ks,V.Tag=Ls,V.TextInput=wr,V.TextareaInput=yr,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
62
+ */const ks=Lt("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),Ms=(e,t)=>{if(e)return t==="up"?"ascending":t==="down"?"descending":"none"},Ds=({sortDirection:e,children:t,onClick:r})=>{const n=!!r,o=e==="up"?ks:e==="down"?Is:Rs,s=Ms(n,e),i=n?"rpf-table-cell--sortable-header":"rpf-table-cell--header";return d.jsx("th",{className:`rpf-table-cell ${i}`,"aria-sort":s,children:d.jsx("div",{className:"rpf-table-cell__content",children:n?d.jsxs("button",{className:"rpf-table-cell__sort-header",onClick:r,children:[t,d.jsx(o,{size:20})]}):d.jsx(d.Fragment,{children:t})})})},Ls=({headerRow:e,bodyRows:t,fullWidth:r})=>d.jsx("div",{"data-testid":"table-container",className:X("rpf-table",{"rpf-table--full-width":r}),children:d.jsxs("table",{className:X("rpf-table__table",{"rpf-table__table--full-width":r}),children:[d.jsx("thead",{children:d.jsx("tr",{className:"rpf-table-row",children:e})}),d.jsx("tbody",{children:t.map((n,o)=>d.jsx("tr",{className:"rpf-table-row",children:n},o))})]})}),Fs=({text:e,variant:t,secondary:r,icon:n,iconPosition:o})=>{const s=n?d.jsx("span",{className:"rpf-tag__icon material-symbols-sharp",children:n}):null;n&&!o&&(o="left");const i=t&&t!=="default"?`rpf-tag--${t}`:null;return d.jsxs("span",{className:X("rpf-tag",i,{"rpf-tag--secondary":r}),children:[o==="left"&&s,e,o==="right"&&s]})};V.Accordion=Qt,V.Alert=hr,V.Button=me,V.CheckboxInput=mr,V.Fieldset=vr,V.InputField=Fe,V.InputLabel=br,V.Menu=tn,V.MenuButton=Es,V.MenuItem=xs,V.MenuTitle=Ts,V.Modal=_r,V.PasswordInput=yr,V.ProgressBar=Ss,V.RadioInput=gr,V.SearchInput=wr,V.SelectInput=Er,V.Switch=en,V.Table=Ls,V.TableBodyCell=_s,V.TableHeaderCell=Ds,V.Tag=Fs,V.TextInput=Tr,V.TextareaInput=xr,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));