@ampath/esm-dha-workflow-app 4.0.0-next.4

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 (107) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +57 -0
  4. package/.husky/pre-commit +7 -0
  5. package/.husky/pre-push +6 -0
  6. package/.prettierignore +14 -0
  7. package/.turbo.json +18 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
  9. package/LICENSE +401 -0
  10. package/README.md +37 -0
  11. package/__mocks__/react-i18next.js +50 -0
  12. package/dist/184.js +2 -0
  13. package/dist/184.js.LICENSE.txt +14 -0
  14. package/dist/184.js.map +1 -0
  15. package/dist/197.js +1 -0
  16. package/dist/255.js +1 -0
  17. package/dist/255.js.map +1 -0
  18. package/dist/282.js +2 -0
  19. package/dist/282.js.LICENSE.txt +32 -0
  20. package/dist/282.js.map +1 -0
  21. package/dist/300.js +1 -0
  22. package/dist/335.js +1 -0
  23. package/dist/353.js +1 -0
  24. package/dist/353.js.map +1 -0
  25. package/dist/420.js +1 -0
  26. package/dist/420.js.map +1 -0
  27. package/dist/540.js +2 -0
  28. package/dist/540.js.LICENSE.txt +9 -0
  29. package/dist/540.js.map +1 -0
  30. package/dist/55.js +1 -0
  31. package/dist/561.js +2 -0
  32. package/dist/561.js.LICENSE.txt +14 -0
  33. package/dist/561.js.map +1 -0
  34. package/dist/652.js +1 -0
  35. package/dist/70.js +1 -0
  36. package/dist/70.js.map +1 -0
  37. package/dist/731.js +2 -0
  38. package/dist/731.js.LICENSE.txt +39 -0
  39. package/dist/731.js.map +1 -0
  40. package/dist/819.js +1 -0
  41. package/dist/819.js.map +1 -0
  42. package/dist/91.js +1 -0
  43. package/dist/91.js.map +1 -0
  44. package/dist/961.js +2 -0
  45. package/dist/961.js.LICENSE.txt +19 -0
  46. package/dist/961.js.map +1 -0
  47. package/dist/99.js +1 -0
  48. package/dist/main.js +1 -0
  49. package/dist/main.js.map +1 -0
  50. package/dist/openmrs-esm-home-app.js +1 -0
  51. package/dist/openmrs-esm-home-app.js.buildmanifest.json +580 -0
  52. package/dist/openmrs-esm-home-app.js.map +1 -0
  53. package/dist/routes.json +1 -0
  54. package/e2e/README.md +115 -0
  55. package/e2e/core/global-setup.ts +32 -0
  56. package/e2e/core/index.ts +1 -0
  57. package/e2e/core/test.ts +20 -0
  58. package/e2e/fixtures/api.ts +26 -0
  59. package/e2e/fixtures/index.ts +1 -0
  60. package/e2e/pages/index.ts +1 -0
  61. package/e2e/pages/root-page.ts +32 -0
  62. package/e2e/specs/template-app.spec.ts +23 -0
  63. package/e2e/support/github/Dockerfile +34 -0
  64. package/e2e/support/github/docker-compose.yml +24 -0
  65. package/e2e/support/github/run-e2e-docker-env.sh +37 -0
  66. package/example.env +6 -0
  67. package/jest.config.js +33 -0
  68. package/package.json +111 -0
  69. package/playwright.config.ts +32 -0
  70. package/prettier.config.js +8 -0
  71. package/src/boxes/extensions/blue-box.component.tsx +15 -0
  72. package/src/boxes/extensions/box.scss +23 -0
  73. package/src/boxes/extensions/brand-box.component.tsx +15 -0
  74. package/src/boxes/extensions/red-box.component.tsx +15 -0
  75. package/src/boxes/slot/boxes.component.tsx +25 -0
  76. package/src/boxes/slot/boxes.scss +29 -0
  77. package/src/config-schema.ts +43 -0
  78. package/src/declarations.d.ts +5 -0
  79. package/src/greeter/greeter.component.tsx +42 -0
  80. package/src/greeter/greeter.scss +20 -0
  81. package/src/greeter/greeter.test.tsx +28 -0
  82. package/src/index.ts +46 -0
  83. package/src/patient-getter/patient-getter.component.tsx +40 -0
  84. package/src/patient-getter/patient-getter.resource.ts +39 -0
  85. package/src/patient-getter/patient-getter.scss +16 -0
  86. package/src/patient-getter/patient-getter.test.tsx +40 -0
  87. package/src/registry/registry.component.tsx +7 -0
  88. package/src/resources/resources.component.tsx +56 -0
  89. package/src/resources/resources.scss +68 -0
  90. package/src/root.component.tsx +39 -0
  91. package/src/root.scss +15 -0
  92. package/src/root.test.tsx +51 -0
  93. package/src/routes.json +19 -0
  94. package/src/side-nav/side-menu.scss +38 -0
  95. package/src/side-nav-menu/nav-links.tsx +22 -0
  96. package/src/widgets/workflow-registry-link.extension.tsx +12 -0
  97. package/tools/i18next-parser.config.js +89 -0
  98. package/tools/setup-tests.ts +1 -0
  99. package/tools/update-openmrs-deps.mjs +43 -0
  100. package/translations/am.json +24 -0
  101. package/translations/en.json +24 -0
  102. package/translations/es.json +24 -0
  103. package/translations/fr.json +24 -0
  104. package/translations/he.json +24 -0
  105. package/translations/km.json +24 -0
  106. package/tsconfig.json +24 -0
  107. package/webpack.config.js +1 -0
package/dist/731.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 731.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[731],{2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},14993:(e,t,n)=>{"use strict";n.d(t,{BE:()=>U,Es:()=>S,Ht:()=>Q,PP:()=>V,Tn:()=>s,X3:()=>R,ZH:()=>a,aw:()=>J,b0:()=>l,bZ:()=>m,bu:()=>I,dO:()=>_,lK:()=>L,lg:()=>M,mF:()=>D,mf:()=>$,q9:()=>W,qm:()=>X,qv:()=>i,r9:()=>w,rL:()=>c,sb:()=>F});var r=n(16072);const o=()=>{},a=o(),i=Object,l=e=>e===a,s=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>s(e.then),d=new WeakMap;let f=0;const p=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=d.get(e),o)return o;if(o=++f+"~",d.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=p(e[a])+",";d.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!l(a=t.pop());)l(e[a])||(o+=a+":"+p(e[a])+",");d.set(e,o)}}return o},m=new WeakMap,h={},g={},b="undefined",v=typeof window!=b,y=typeof document!=b,w=(e,t)=>{const n=m.get(e);return[()=>!l(t)&&e.get(t)||h,r=>{if(!l(t)){const o=e.get(t);t in g||(g[t]=o),n[5](t,c(o,r),o||h)}},n[6],()=>!l(t)&&t in g?g[t]:!l(t)&&e.get(t)||h]};let E=!0;const[N,x]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],C={isOnline:()=>E,isVisible:()=>{const e=y&&document.visibilityState;return l(e)||"hidden"!==e}},T={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),N("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return N("online",t),N("offline",n),()=>{x("online",t),x("offline",n)}}},_=!r.useId,R=!v||"Deno"in window,$=e=>v&&typeof window.requestAnimationFrame!=b?window.requestAnimationFrame(e):setTimeout(e,1),S=R?r.useEffect:r.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,O=!R&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),L=e=>{if(s(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let k=0;const M=()=>++k,B=2;var I={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:B,RECONNECT_EVENT:1};async function D(...e){const[t,n,r,o]=e,i=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=i.populateCache;const f=i.rollbackOnError;let p=i.optimisticData;const h=i.throwOnError;if(s(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(g))}return g(n);async function g(n){const[o]=L(n);if(!o)return;const[c,g]=w(t,o),[b,v,y,E]=m.get(t),N=()=>{const e=b[o];return(s(i.revalidate)?i.revalidate(c().data,n):!1!==i.revalidate)&&(delete y[o],delete E[o],e&&e[0])?e[0](B).then((()=>c().data)):c().data};if(e.length<3)return N();let x,C=r;const T=M();v[o]=[T,0];const _=!l(p),R=c(),$=R.data,S=R._c,A=l(S)?$:S;if(_&&(p=s(p)?p(A,$):p,g({data:p,_c:A})),s(C))try{C=C(A)}catch(e){x=e}if(C&&u(C)){if(C=await C.catch((e=>{x=e})),T!==v[o][0]){if(x)throw x;return C}x&&_&&(e=>"function"==typeof f?f(e):!1!==f)(x)&&(d=!0,g({data:A,_c:a}))}if(d&&!x)if(s(d)){const e=d(C,A);g({data:e,error:a,_c:a})}else g({data:C,error:a,_c:a});if(v[o][1]=M(),Promise.resolve(N()).then((()=>{g({_c:a})})),!x)return C;if(h)throw x}}const P=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!m.has(e)){const n=c(T,t),r={},i=D.bind(a,e);let l=o;const s={},u=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!m.has(e)&&(m.set(e,[r,{},{},{},i,d,u]),!R)){const t=n.initFocus(setTimeout.bind(a,P.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,P.bind(a,r,1)));l=()=>{t&&t(),o&&o(),m.delete(e)}}};return f(),[e,i,f,l]}return[e,m.get(e)[4]]},[V,H]=z(new Map),F=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!l(a)&&i>a||setTimeout(r,s,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:O?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:O?5e3:3e3,compare:(e,t)=>p(e)==p(t),isPaused:()=>!1,cache:V,mutate:H,fallback:{}},C),j=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=c(o,i))}return n},q=(0,r.createContext)({}),U=e=>{const{value:t}=e,n=(0,r.useContext)(q),o=s(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),l=(0,r.useMemo)((()=>o?i:j(n,i)),[o,n,i]),u=i&&i.provider,d=(0,r.useRef)(a);u&&!d.current&&(d.current=z(u(l.cache||V),i));const f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),S((()=>{if(f)return f[2]&&f[2](),f[3]}),[]),(0,r.createElement)(q.Provider,c(e,{value:l}))},W="$inf$",Z=v&&window.__SWR_DEVTOOLS_USE__,G=Z?window.__SWR_DEVTOOLS_USE__:[],K=e=>s(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=G.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=L(t),[,,,o]=m.get(V);if(r.startsWith(W))return n(...e);const a=o[r];return l(a)?n(...e):(delete o[r],a)}),r))),X=e=>function(...t){const n=c(F,(0,r.useContext)(q)),[o,a,i]=K(t),l=j(n,i);let s=e;const{use:u}=l,d=(u||[]).concat(Y);for(let e=d.length;e--;)s=d[e](s);return s(o,a||l.fetcher||null,l)},J=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q=(e,t)=>(...n)=>{const[r,o,a]=K(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};Z&&(window.__SWR_DEVTOOLS_REACT__=r)},19888:(e,t,n)=>{"use strict";e.exports=n(58493)},21020:(e,t,n)=>{"use strict";var r=n(16072);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103;n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},40771:(e,t,n)=>{"use strict";n.d(t,{$D:()=>b,d3:()=>g,x:()=>v});var r,o,a,i,l,s,c,u,d,f,p=n(16072),m=n.n(p),h=n(60428);const g=m().forwardRef((function({children:e,size:t=16,...n},o){return m().createElement(h.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=m().createElement("path",{d:"M16 18L6 8 7.4 6.6 16 15.2 24.6 6.6 26 8zM4 22H28V24H4z"})),e)})),b=m().forwardRef((function({children:e,size:t=16,...n},r){return m().createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=m().createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)})),v=m().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?m().createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=m().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),i||(i=m().createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?m().createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},l||(l=m().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),s||(s=m().createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?m().createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},c||(c=m().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),u||(u=m().createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):m().createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},d||(d=m().createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),f||(f=m().createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)}))},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},42540:(e,t,n)=>{"use strict";n.d(t,{kZS:()=>Br,$nd:()=>Vt,t3h:()=>ho,KXP:()=>sr,lRv:()=>ur,Y9Y:()=>yo,V8d:()=>Eo,wdv:()=>No,dJ2:()=>_o,bCw:()=>Ao,K0:()=>Pt,OuH:()=>en,jeF:()=>Mr,Wdr:()=>Zt,cwr:()=>ir,jlY:()=>nn,rQ0:()=>Kt,aaP:()=>Dr,zWQ:()=>Vr,Psq:()=>Pr,vji:()=>Wr,f8J:()=>Do,ryE:()=>Gr,vwO:()=>Qr,FAs:()=>mo});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?r.enableV12TileRadioIcons=!0:r.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?r.enableTreeviewControllable=!0:r.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?r.enableV12StructuredListVisibleIcons=!0:r.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableExperimentalFocusWrapWithoutSentinels=!0:r.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?r.enableDialogElement=!0:r.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?r.enableV12DynamicFloatingStyles=!0:r.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?r.enableV12ToggleReducedLabelSpacing=!0:r.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?r.enableEnhancedFileUploader=!0:r.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?r.enablePresence=!0:r.enablePresence=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!1,r.enableV12ToggleReducedLabelSpacing=!1,r.enableEnhancedFileUploader=!1,r.enablePresence=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:r.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:r.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:r.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:r.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:r.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:r.enableV12ToggleReducedLabelSpacing},{name:"enable-enhanced-file-uploader",description:"Enable enhanced functionality for the FileUploader component, including richer callback data and expanded trigger events for onChange and onDelete.\n",enabled:r.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:r.enablePresence}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function l(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var s=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))},t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n,r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=l(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e.flags);try{for(o.s();!(t=o.n()).done;){var a=(n=t.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||l(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],s=a[1];this.flags.has(i)||this.flags.set(i,s)}}catch(e){o.e(e)}finally{o.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),c=new s(void 0),u=0;u<o.length;u++){var d=o[u];c.add(d.name,d.enabled)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}!function(){c.merge.apply(c,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var p=n(5556),m=n.n(p),h=n(16072),g=n.t(h,2),b=n.n(h),v=n(46942),y=n.n(v);const w={},E=(e,t,n)=>(r,o,a,...i)=>{if(void 0===r[o])return null;if(!w[a]||!w[a][o]){w[a]={...w[a],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,a,...i)},N="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,x=e=>{const t=(0,h.useMemo)((()=>e),e);return(0,h.useCallback)((e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}),[t])},C=b().createContext("cds");function T(){return b().useContext(C)}const _=(e,t)=>{const n=(0,h.useRef)(null);(0,h.useEffect)((()=>{n.current=t}),[t]),(0,h.useEffect)((()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])},R={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},$=e=>R[e]??e;var S="undefined"!=typeof document?h.useLayoutEffect:h.useEffect;const A={...g}.useInsertionEffect||(e=>e());function O(){return"undefined"!=typeof window}function L(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!O()&&(e instanceof Node||e instanceof k(e).Node)}function I(e){return!!O()&&(e instanceof Element||e instanceof k(e).Element)}function D(e){return!!O()&&(e instanceof HTMLElement||e instanceof k(e).HTMLElement)}function P(e){return!(!O()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function V(e){return["table","td","th"].includes(L(e))}function H(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function F(e){const t=j(),n=I(e)?U(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(L(e))}function U(e){return k(e).getComputedStyle(e)}function W(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||P(e)&&e.host||M(e);return P(t)?t.host:t}function G(e){const t=Z(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:D(t)&&z(t)?t:G(t)}function K(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=G(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=k(o);if(a){const e=Y(i);return t.concat(i,i.visualViewport||[],z(o)?o:[],e&&n?K(e):[])}return t.concat(o,K(o,[],n))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n(74848);var X=n(40961);const J=["top","right","bottom","left"],Q=Math.min,ee=Math.max,te=Math.round,ne=Math.floor,re=e=>({x:e,y:e}),oe={left:"right",right:"left",bottom:"top",top:"bottom"},ae={start:"end",end:"start"};function ie(e,t){return"function"==typeof e?e(t):e}function le(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function ce(e){return"y"===e?"height":"width"}function ue(e){return["top","bottom"].includes(le(e))?"y":"x"}function de(e){return"x"===ue(e)?"y":"x"}function fe(e){return e.replace(/start|end/g,(e=>ae[e]))}function pe(e){return e.replace(/left|right|bottom|top/g,(e=>oe[e]))}function me(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function he(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ge(e,t,n){let{reference:r,floating:o}=e;const a=ue(t),i=de(t),l=ce(i),s=le(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(se(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function be(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ie(t,e),m=me(p),h=l[f?"floating"===d?"reference":"floating":d],g=he(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=he(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ye(e){return J.some((t=>e[t]>=0))}function we(e){const t=U(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=D(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=te(n)!==a||te(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Ee(e){return I(e)?e:e.contextElement}function Ne(e){const t=Ee(e);if(!D(t))return re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=we(t);let i=(a?te(n.width):n.width)/r,l=(a?te(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const xe=re(0);function Ce(e){const t=k(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:xe}function Te(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Ee(e);let i=re(1);t&&(r?I(r)&&(i=Ne(r)):i=Ne(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==k(e))&&t}(a,n,r)?Ce(a):re(0);let s=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=k(a),t=r&&I(r)?k(r):r;let n=e,o=Y(n);for(;o&&r&&t!==n;){const e=Ne(o),t=o.getBoundingClientRect(),r=U(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=i,n=k(o),o=Y(n)}}return he({width:u,height:d,x:s,y:c})}function _e(e,t){const n=W(e).scrollLeft;return t?t.left+n:Te(M(e)).left+n}function Re(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:_e(e,r)),y:r.top+t.scrollTop}}function $e(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=k(e),r=M(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;const e=j();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=M(e),n=W(e),r=e.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_e(e);const l=-n.scrollTop;return"rtl"===U(r).direction&&(i+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(M(e));else if(I(t))r=function(e,t){const n=Te(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=D(e)?Ne(e):re(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ce(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return he(r)}function Se(e,t){const n=Z(e);return!(n===t||!I(n)||q(n))&&("fixed"===U(n).position||Se(n,t))}function Ae(e,t,n){const r=D(t),o=M(t),a="fixed"===n,i=Te(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=re(0);function c(){s.x=_e(o)}if(r||!r&&!a)if(("body"!==L(t)||z(o))&&(l=W(t)),r){const e=Te(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?re(0):Re(o,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}function Oe(e){return"static"===U(e).position}function Le(e,t){if(!D(e)||"fixed"===U(e).position)return null;if(t)return t(e);let n=e.offsetParent;return M(e)===n&&(n=n.ownerDocument.body),n}function ke(e,t){const n=k(e);if(H(e))return n;if(!D(e)){let t=Z(e);for(;t&&!q(t);){if(I(t)&&!Oe(t))return t;t=Z(t)}return n}let r=Le(e,t);for(;r&&V(r)&&Oe(r);)r=Le(r,t);return r&&q(r)&&Oe(r)&&!F(r)?n:r||function(e){let t=Z(e);for(;D(t)&&!q(t);){if(F(t))return t;if(H(t))return null;t=Z(t)}return null}(e)||n}const Me={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=M(r),l=!!t&&H(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=re(1);const u=re(0),d=D(r);if((d||!d&&!a)&&(("body"!==L(r)||z(i))&&(s=W(r)),D(r))){const e=Te(r);c=Ne(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?re(0):Re(i,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:M,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?H(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=K(e,[],!1).filter((e=>I(e)&&"body"!==L(e))),o=null;const a="fixed"===U(e).position;let i=a?Z(e):e;for(;I(i)&&!q(i);){const t=U(i),n=F(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||z(i)&&!n&&Se(e,i))?r=r.filter((e=>e!==i)):o=t,i=Z(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=$e(t,n,o);return e.top=ee(r.top,e.top),e.right=Q(r.right,e.right),e.bottom=Q(r.bottom,e.bottom),e.left=ee(r.left,e.left),e}),$e(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ke,getElementRects:async function(e){const t=this.getOffsetParent||ke,n=this.getDimensions,r=await n(e.floating);return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:Ne,isElement:I,isRTL:function(e){return"rtl"===U(e).direction}};function Be(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ie(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ee(e),u=o||a?[...c?K(c):[],...K(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=M(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-ne(d)+"px "+-ne(o.clientWidth-(u+f))+"px "+-ne(o.clientHeight-(d+p))+"px "+-ne(u)+"px",threshold:ee(0,Q(1,s))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Be(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?Te(e):null;return s&&function t(){const r=Te(e);h&&!Be(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const De=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=le(n),l=se(n),s="y"===ue(n),c=["left","top"].includes(i)?-1:1,u=a&&s?-1:1,d=ie(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},Pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=ie(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=le(o),v=ue(l),y=le(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(y||!h?[pe(l)]:function(e){const t=pe(e);return[fe(e),t,fe(t)]}(l)),N="none"!==m;!f&&N&&E.push(...function(e,t,n,r){const o=se(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(le(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(fe)))),a}(l,h,m,w));const x=[l,...E],C=await be(t,g),T=[];let _=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&T.push(C[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=se(e),o=de(e),a=ce(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=pe(i)),[i,pe(i)]}(o,i,w);T.push(C[e[0]],C[e[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every((e=>e<=0))){var R,$;const e=((null==(R=a.flip)?void 0:R.index)||0)+1,t=x[e];if(t){var S;const n="alignment"===d&&v!==ue(t),r=(null==(S=_[0])?void 0:S.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:_},reset:{placement:t}}}let n=null==($=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=_.filter((e=>{if(N){const t=ue(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ze=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ie(e,t);switch(r){case"referenceHidden":{const e=ve(await be(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ye(e)}}}case"escaped":{const e=ve(await be(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ye(e)}}}default:return{}}}}},Ve=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=ie(e,t)||{};if(null==c)return{};const d=me(u),f={x:n,y:r},p=de(o),m=ce(p),h=await i.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],E=f[p]-a.reference[p],N=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let x=N?N[y]:0;x&&await(null==i.isElement?void 0:i.isElement(N))||(x=l.floating[y]||a.floating[m]);const C=w/2-E/2,T=x/2-h[m]/2-1,_=Q(d[b],T),R=Q(d[v],T),$=_,S=x-h[m]-R,A=x/2-h[m]/2+C,O=ee($,Q(A,S)),L=!s.arrow&&null!=se(o)&&A!==O&&a.reference[m]/2-(A<$?_:R)-h[m]/2<0,k=L?A<$?A-$:A-S:0;return{[p]:f[p]+k,data:{[p]:O,centerOffset:A-O-k,...L&&{alignmentOffset:k}},reset:L}}}),He=(e,t,n)=>{const r=new Map,o={platform:Me,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ge(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:a,fn:h}=l[n],{x:g,y:b,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=ge(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Fe="undefined"!=typeof document?h.useLayoutEffect:h.useEffect;function je(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!je(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||je(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function qe(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ue(e,t){const n=qe(e);return Math.round(t*n)/n}function We(e){const t=h.useRef(e);return Fe((()=>{t.current=e})),t}const Ze=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ve({element:n.current,padding:r}).fn(t):{}:n?Ve({element:n,padding:r}).fn(t):{};var o}}),Ge=(e,t)=>({...Pe(e),options:[e,t]}),Ke=(e,t)=>({...ze(e),options:[e,t]}),Ye=(e,t)=>({...Ze(e),options:[e,t]});const Xe={...g};let Je=!1,Qe=0;const et=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qe++,tt=Xe.useId||function(){const[e,t]=h.useState((()=>Je?et():void 0));return S((()=>{null==e&&t(et())}),[]),h.useEffect((()=>{Je=!0}),[]),e};const nt=h.createContext(null),rt=h.createContext(null);function ot(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=tt(),a=h.useRef({}),[i]=h.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),l=null!=((null==(s=h.useContext(nt))?void 0:s.id)||null);var s;const[c,u]=h.useState(r.reference),d=function(e){const t=h.useRef((()=>{}));return A((()=>{t.current=e})),h.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=h.useMemo((()=>({setPositionReference:u})),[]),p=h.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return h.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:f})),[t,d,p,i,o,f])}function at(e){void 0===e&&(e={});const{nodeId:t}=e,n=ot({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=h.useState(null),[l,s]=h.useState(null),c=(null==o?void 0:o.domReference)||a,u=h.useRef(null),d=h.useContext(rt);S((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=h.useState(r);je(f,r)||p(r);const[m,g]=h.useState(null),[b,v]=h.useState(null),y=h.useCallback((e=>{e!==x.current&&(x.current=e,g(e))}),[]),w=h.useCallback((e=>{e!==C.current&&(C.current=e,v(e))}),[]),E=a||m,N=i||b,x=h.useRef(null),C=h.useRef(null),T=h.useRef(u),_=null!=s,R=We(s),$=We(o),S=We(c),A=h.useCallback((()=>{if(!x.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};$.current&&(e.platform=$.current),He(x.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==S.current};O.current&&!je(T.current,t)&&(T.current=t,X.flushSync((()=>{d(t)})))}))}),[f,t,n,$,S]);Fe((()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=h.useRef(!1);Fe((()=>(O.current=!0,()=>{O.current=!1})),[]),Fe((()=>{if(E&&(x.current=E),N&&(C.current=N),E&&N){if(R.current)return R.current(E,N,A);A()}}),[E,N,A,R,_]);const L=h.useMemo((()=>({reference:x,floating:C,setReference:y,setFloating:w})),[y,w]),k=h.useMemo((()=>({reference:E,floating:N})),[E,N]),M=h.useMemo((()=>{const e={position:n,left:0,top:0};if(!k.floating)return e;const t=Ue(k.floating,u.x),r=Ue(k.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...qe(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,k.floating,u.x,u.y]);return h.useMemo((()=>({...u,update:A,refs:L,elements:k,floatingStyles:M})),[u,A,L,k,M])}({...e,elements:{...o,...l&&{reference:l}}}),p=h.useCallback((e=>{const t=I(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)}),[f.refs]),m=h.useCallback((e=>{(I(e)||null===e)&&(u.current=e,i(e)),(I(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!I(e))&&f.refs.setReference(e)}),[f.refs]),g=h.useMemo((()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u})),[f.refs,m,p]),b=h.useMemo((()=>({...f.elements,domReference:c})),[f.elements,c]),v=h.useMemo((()=>({...f,...r,refs:g,elements:b,nodeId:t})),[f,g,b,t,r]);return S((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),h.useMemo((()=>({...f,context:v,refs:g,elements:b})),[f,g,b,v])}const it=new Map,lt=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;it.has(r)||it.set(r,new Set);const a=it.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...o)},st=(0,h.createContext)(c);function ct(e){return(0,h.useContext)(st).enabled(e)}m().node,lt(m().objectOf(m().bool)),m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool,m().bool;const ut=b().createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),dt=b().forwardRef((function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,caret:a=!e,className:i,children:l,dropShadow:s=!0,highContrast:c=!1,onRequestClose:u,open:d,alignmentAxisOffset:p,...m},g){const v=T(),w=(0,h.useRef)(null),E=(0,h.useRef)(null),C=(0,h.useRef)(null),R=ct("enable-v12-dynamic-floating-styles")||r;let S=$(t);((e,t,n)=>{const r=(0,h.useRef)(null);(0,h.useEffect)((()=>{r.current=n}),[n]),(0,h.useEffect)((()=>{const n="current"in e?e.current:e;if(!n)return;const o=e=>{r.current&&r.current(e)};return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}}),[e,t])})(C,"focusout",(t=>{const n=t.relatedTarget;if(e)return void(n&&!C.current?.contains(n)&&u?.());if(!n)return void u?.();const r=!C.current?.contains(n),o=!R||!L.floating.current||!L.floating.current.contains(n);r&&o&&u?.()})),_("click",(({target:e})=>{d&&e instanceof Node&&!C.current?.contains(e)&&u?.()}));const A=b().Children.toArray(l).some((e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label")))?7:6,O=(0,h.useRef)({offset:10,caretHeight:A});N((()=>{if(a&&C.current){const e=window.getComputedStyle(C.current,null),t=e.getPropertyValue("--cds-popover-offset"),n=e.getPropertyValue("--cds-popover-caret-height");t&&(O.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(O.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}}));const{refs:L,floatingStyles:k,placement:M,middlewareData:B}=at(R?{placement:S,strategy:"fixed",middleware:[(I=e?0:{alignmentAxis:p,mainAxis:O?.current?.offset},{...De(I),options:[I,undefined]}),r&&Ge({fallbackPlacements:e?S.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:S.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:o}),Ye({element:E}),r&&Ke()],whileElementsMounted:Ie}:{});var I;const D=(0,h.useMemo)((()=>({floating:w,setFloating:L.setFloating,caretRef:E,autoAlign:r})),[L.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(S)||(S="bottom-start")),(0,h.useEffect)((()=>{if(R){const e={...k,visibility:B.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach((t=>{L.floating.current&&(L.floating.current.style[t]=e[t])})),a&&B&&B.arrow&&E?.current){const{x:e,y:t}=B.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[M.split("-")[0]];E.current.style.left=null!=e?`${e}px`:"",E.current.style.top=null!=t?`${t}px`:"",E.current.style.right="",E.current.style.bottom="",n&&(E.current.style[n]=-O?.current?.caretHeight+"px")}}}),[k,L.floating,R,B,M,a]);const P=x([g,C]),z=r&&M!==S?M:S,V=y()({[`${v}--popover-container`]:!0,[`${v}--popover--caret`]:a,[`${v}--popover--drop-shadow`]:s,[`${v}--popover--high-contrast`]:c,[`${v}--popover--open`]:d,[`${v}--popover--auto-align ${v}--autoalign`]:R,[`${v}--popover--${z}`]:!0,[`${v}--popover--tab-tip`]:e},i),H=b().Children.map(l,(t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,a=R&&r&&["ToggletipButton"].includes(r),i=R&&!["ToggletipContent","PopoverContent"].includes(r);if(b().isValidElement(n)&&(o||a||i)){const t=n?.props?.className,r=(n?.props).ref,o=y()(`${v}--popover--tab-tip__button`,t);return b().cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(R&&n?.type!==pt||R&&"ToggletipButton"===n?.type.displayName)&&L.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n})),F=n;return b().createElement(ut.Provider,{value:D},b().createElement(F,f({},m,{className:V,ref:P}),R||e?H:l))}));function ft({className:e,children:t,...n},r){const o=T(),{setFloating:a,caretRef:i,autoAlign:l}=b().useContext(ut),s=x([a,r]),c=ct("enable-v12-dynamic-floating-styles")||l;return b().createElement("span",f({},n,{className:`${o}--popover`}),b().createElement("span",{className:y()(`${o}--popover-content`,e),ref:s},t,c&&b().createElement("span",{className:y()({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:i})),!c&&b().createElement("span",{className:y()({[`${o}--popover-caret`]:!0}),ref:i}))}dt.propTypes={align:E(m().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],$),alignmentAxisOffset:m().number,as:m().oneOfType([m().string,m().elementType]),autoAlign:m().bool,autoAlignBoundary:m().oneOfType([m().oneOf(["clippingAncestors"]),m().elementType,m().arrayOf(m().elementType),m().exact({x:m().number.isRequired,y:m().number.isRequired,width:m().number.isRequired,height:m().number.isRequired})]),caret:m().bool,children:m().node,className:m().string,dropShadow:m().bool,highContrast:m().bool,isTabTip:m().bool,onRequestClose:m().func,open:m().bool.isRequired};const pt=b().forwardRef(ft);pt.displayName="PopoverContent",pt.propTypes={children:m().node,className:m().string};const mt={key:"Tab",which:9,keyCode:9,code:"Tab"},ht={key:"Enter",which:13,keyCode:13,code:"Enter"},gt={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},bt={key:" ",which:32,keyCode:32,code:"Space"},vt=(e,t)=>{for(let n=0;n<t.length;n++)if(yt(e,t[n]))return!0;return!1},yt=(e,{key:t,which:n,keyCode:r,code:o})=>"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o;function wt(e){const[t,n]=(0,h.useState)(e),r=(0,h.useRef)(null),o=(0,h.useCallback)(((e,t=0)=>{window.clearTimeout(r.current??void 0),r.current=null,0!==t?r.current=window.setTimeout((()=>{n(e),r.current=null}),t):n(e)}),[]);return(0,h.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}const Et=!("undefined"==typeof window||!window.document||!window.document.createElement),Nt=b().createContext(null);function xt(){return b().useContext(Nt)}const Ct={...b()},Tt=(()=>{let e=0;return()=>++e})(),_t=Et?h.useLayoutEffect:h.useEffect;let Rt=!1;const $t=Ct.useId?function(e="id"){const t=xt();return`${t?`${t}-`:""}${e}-${Ct.useId()}`}:function(e="id"){const t=xt(),[n,r]=(0,h.useState)((()=>Rt?`${t?`${t}-`:""}${e}-${Tt()}`:null));return _t((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${Tt()}`)}),[Tt]),(0,h.useEffect)((()=>{!1===Rt&&(Rt=!0)}),[]),n},St=(e,t="component should have no interactive child nodes")=>{},At=e=>{if(!e||!e.childNodes)return null;if(Lt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=At(t);if(e)return e}return null},Ot=e=>{if(!e||!e.childNodes)return null;if(e.getAttribute("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Ot(t);if(e)return e}return null},Lt=e=>{if(void 0===e.tabIndex||e.tabIndex<0)return!1;if((e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&e.disabled)return!1;switch(e.nodeName){case"A":return e instanceof HTMLAnchorElement&&!!e.href&&"ignore"!==e.rel;case"INPUT":return e instanceof HTMLInputElement&&"hidden"!==e.type;default:return!0}},kt=new Set(["mouseup","touchend","touchcancel"]),Mt=b().forwardRef((({as:e,align:t="top",className:n,children:r,label:o,description:a,enterDelayMs:i=100,leaveDelayMs:l=300,defaultOpen:s=!1,closeOnActivation:c=!1,dropShadow:u=!1,highContrast:d=!0,...p},m)=>{const g=(0,h.useRef)(null),[v,w]=wt(s),[E,x]=(0,h.useState)(!1),[C,_]=(0,h.useState)(!1),[R,$]=(0,h.useState)(!1),S=$t("tooltip"),A=T(),O=b().Children.only(r),{"aria-labelledby":L,"aria-describedby":k}=O?.props??{},M=!!o,B={onFocus:()=>!C&&w(!0),onBlur:()=>{w(!1),_(!1)},onClick:()=>c&&w(!1),onMouseEnter:D,onMouseLeave:P,onMouseDown:function(){_(!0),z()},onMouseMove:function(e){1===e.buttons?x(!0):x(!1)},onTouchStart:z,"aria-labelledby":L??(M?S:void 0),"aria-describedby":k??(M?void 0:S)},I=(0,h.useCallback)((e=>{v&&yt(e,gt)&&(e.stopPropagation(),w(!1)),v&&c&&(yt(e,ht)||yt(e,bt))&&w(!1)}),[c,v,w]);function D(){p?.onMouseEnter||($(!0),w(!0,i))}function P(){$(!1),E||w(!1,l)}function z(){x(!0)}N((()=>{if(v)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){yt(e,gt)&&I(e)}}),[v,I]);const V=(0,h.useCallback)((()=>{x(!1),R||w(!1,l)}),[R,l,w]);return St(g,"The Tooltip component must have no interactive content rendered by the`label` or `description` prop"),(0,h.useEffect)((()=>(E&&kt.forEach((e=>{document.addEventListener(e,V)})),()=>{kt.forEach((e=>{document.removeEventListener(e,V)}))})),[E,V]),b().createElement(dt,f({as:e,ref:m},p,{align:t,className:y()(`${A}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:I,onMouseLeave:P,open:v}),b().createElement("div",{className:`${A}--tooltip-trigger__wrapper`},void 0!==O?b().cloneElement(O,{...B,...function(e){const t=Object.keys(B).filter((e=>e.startsWith("on"))),n={};return t.forEach((t=>{n[t]=n=>{B[t](n),e?.[t]&&e?.[t](n)}})),n}(O.props)}):null),b().createElement(pt,{"aria-hidden":v?"false":"true",className:`${A}--tooltip-content`,id:S,onMouseEnter:D,role:"tooltip"},o||a))}));Mt.propTypes={align:m().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:m().node,className:m().string,closeOnActivation:m().bool,defaultOpen:m().bool,description:m().node,dropShadow:m().bool,enterDelayMs:m().number,highContrast:m().bool,label:m().node,leaveDelayMs:m().number};const Bt=b().forwardRef((function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:a=!1,href:i,iconDescription:l,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:h,renderIcon:g,size:v,tabIndex:w,type:E="button",...N},x){const C=T(),_={tabIndex:w,className:y()(n,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:"xs"===v&&!s,[`${C}--btn--sm`]:"sm"===v&&!s,[`${C}--btn--md`]:"md"===v&&!s,[`${C}--btn--lg`]:"lg"===v&&!s,[`${C}--btn--xl`]:"xl"===v,[`${C}--btn--2xl`]:"2xl"===v,[`${C}--layout--size-${v}`]:v,[`${C}--btn--${u}`]:u,[`${C}--btn--disabled`]:o,[`${C}--btn--expressive`]:s,[`${C}--btn--icon-only`]:a,[`${C}--btn--selected`]:a&&c&&"ghost"===u}),ref:x},R=g?b().createElement(g,{"aria-label":l,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,$=["danger","danger--tertiary","danger--ghost"];let S="button";const A=$t("danger-description"),{"aria-pressed":O,"aria-describedby":L}=N;let k={disabled:o,type:E,"aria-describedby":$.includes(u)?A:L||void 0,"aria-pressed":O??(a&&"ghost"===u?c:void 0)};const M={href:i};let B=null;return $.includes(u)&&(B=b().createElement("span",{id:A,className:`${C}--visually-hidden`},r)),e?(S=e,k={...k,...M}):i&&!o&&(S="a",k=M),b().createElement(S,{onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:d,onClick:f,...N,..._,...k},B,t,R)})),It=b().forwardRef((function({className:e,count:t,...n},r){const o=T(),a=y()(`${o}--badge-indicator`,e,{[`${o}--badge-indicator--count`]:t}),i=t&&t>999?"999+":t;return b().createElement("div",f({className:a,ref:r},n),i)}));It.propTypes={className:m().string,count:m().number,id:m().string};const Dt=["primary","secondary","ghost","tertiary"],Pt=b().forwardRef((({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:a=!0,defaultOpen:i=!1,disabled:l,dropShadow:s=!1,enterDelayMs:c=100,highContrast:u=!0,kind:d,label:p,leaveDelayMs:m=100,wrapperClasses:h,size:g,isSelected:v,...w},E)=>{const N=T(),x=y()(h,`${N}--icon-tooltip`,{[`${N}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===g||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const C=$t("badge-indicator");return b().createElement(Mt,{align:e,autoAlign:t,closeOnActivation:a,className:x,defaultOpen:i,dropShadow:s,enterDelayMs:c,highContrast:u,label:p,leaveDelayMs:m},b().createElement(Bt,f({},w,{disabled:l,kind:d,ref:E,size:g,isSelected:v,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&C}),r,!l&&void 0!==n&&b().createElement(It,{id:C,count:n>0?n:void 0})))}));Pt.propTypes={align:E(m().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],$),autoAlign:m().bool,badgeCount:m().number,href:m().string,children:m().node,className:m().string,closeOnActivation:m().bool,defaultOpen:m().bool,dropShadow:m().bool,disabled:m().bool,enterDelayMs:m().number,isSelected:m().bool,highContrast:m().bool,kind:m().oneOf(Dt),label:m().node.isRequired,leaveDelayMs:m().number,rel:m().string,size:m().oneOf(["sm","md","lg"]),target:m().string,wrapperClasses:m().string};const zt=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],Vt=b().forwardRef(((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:a=!1,tooltipHighContrast:i=!0,tooltipDropShadow:l=!1,iconDescription:s,kind:c="primary",onBlur:u,onClick:d,onFocus:p,onMouseEnter:m,onMouseLeave:h,renderIcon:g,size:v,tooltipAlignment:y="center",tooltipPosition:w="top",...E}=e;!g||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const N=g?b().createElement(g,null):null;if(function(e){return!0===e}(a)){let e;return"top"!==w&&"bottom"!==w||("center"===y&&(e=w),"end"===y&&(e=`${w}-end`),"start"===y&&(e=`${w}-start`)),"right"!==w&&"left"!==w||(e=w),b().createElement(Pt,f({},E,{ref:t,as:n,align:e,label:s,kind:c,size:v,highContrast:i,dropShadow:l,onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:u,autoAlign:r,onClick:d,renderIcon:N?null:g}),N??o)}{const{tooltipAlignment:n,...r}=e;return b().createElement(Bt,f({ref:t},r))}}));Vt.displayName="Button",Vt.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),autoAlign:m().bool,children:m().node,className:m().string,dangerDescription:m().string,disabled:m().bool,hasIconOnly:m().bool,href:m().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:m().bool,isSelected:m().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?Dt:zt;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:m().func,onClick:m().func,onFocus:m().func,onMouseEnter:m().func,onMouseLeave:m().func,rel:m().string,renderIcon:m().oneOfType([m().func,m().object]),role:m().string,size:m().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:m().number,target:m().string,tooltipAlignment:m().oneOf(["start","center","end"]),tooltipDropShadow:m().bool,tooltipHighContrast:m().bool,tooltipPosition:m().oneOf(["top","right","bottom","left"]),type:m().oneOf(["button","reset","submit"])};var Ht=n(44363);const Ft=b().createContext(1),jt=["one","two","three"],qt=[0,1,2],Ut=qt[0],Wt=qt[qt.length-1],Zt=b().forwardRef(((e,t)=>{const{as:n,className:r,children:o,level:a,withBackground:i=!1,...l}=e,s=b().useContext(Ft),c=a??s,u=T(),d=y()(`${u}--layer-${jt[c]}`,{[`${u}--layer__with-background`]:i},r),p=(h=c+1,g=Ut,v=Wt,Math.min(v,Math.max(g,h))),m=n||"div";var h,g,v;return b().createElement(Ft.Provider,{value:p},b().createElement(m,f({ref:t},l,{className:d}),o))}));Zt.displayName="Layer",Zt.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),children:m().node,className:m().string,level:m().oneOf([0,1,2]),withBackground:m().bool};var Gt=n(59184);const Kt=b().forwardRef((function({buttonOnClick:e,children:t,className:n,closeClassName:r,closeIconClassName:o,closeModal:a,iconDescription:i="Close",label:l,labelClassName:s,title:c,titleClassName:u,...d},p){const m=T(),h=y()(`${m}--modal-header`,n),g=y()(`${m}--modal-header__label ${m}--type-delta`,s),v=y()(`${m}--modal-header__heading ${m}--type-beta`,u),w=y()(`${m}--modal-close`,r),E=y()(`${m}--modal-close__icon`,o);return b().createElement("div",f({className:h},d,{ref:p}),l&&b().createElement("h2",{className:g},l),c&&b().createElement("h2",{className:v},c),t,b().createElement("div",{className:`${m}--modal-close-button`},b().createElement(Pt,{className:w,label:i,onClick:function(t){a?.(t),e?.(t)},"aria-label":i,align:"left"},b().createElement(Gt.bm,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))}));Kt.propTypes={buttonOnClick:m().func,children:m().node,className:m().string,closeClassName:m().string,closeIconClassName:m().string,closeModal:m().func,iconDescription:m().string,label:m().node,labelClassName:m().string,title:m().node,titleClassName:m().string};const Yt=(0,h.forwardRef)(((e,t)=>{const{children:n,className:r,stacked:o,...a}=e,i=T(),l=y()(r,`${i}--btn-set`,{[`${i}--btn-set--stacked`]:o});return b().createElement("div",f({},a,{className:l,ref:t}),n)}));Yt.displayName="ButtonSet",Yt.propTypes={children:m().node,className:m().string,stacked:m().bool};const Xt=()=>{};var Jt=n(40771);function Qt({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...a}){const i=T(),l=y()(t,{[`${i}--loading`]:!0,[`${i}--loading--small`]:r,[`${i}--loading--stop`]:!e}),s=y()({[`${i}--loading-overlay`]:!0,[`${i}--loading-overlay--stop`]:!e}),c=b().createElement("div",f({},a,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),b().createElement("svg",{className:`${i}--loading__svg`,viewBox:"0 0 100 100"},b().createElement("title",null,o),r?b().createElement("circle",{className:`${i}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,b().createElement("circle",{className:`${i}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?b().createElement("div",{className:s},c):c}Qt.propTypes={active:m().bool,className:m().string,description:m().string,id:lt(m().string),small:m().bool,withOverlay:m().bool};const en=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:a=1500,...i})=>{const l=T(),s=y()(`${l}--inline-loading`,e),c=(0,h.useRef)(null);(0,h.useEffect)((()=>("finished"===t&&(c.current=setTimeout((()=>{o&&o()}),a)),()=>{c.current&&(clearTimeout(c.current),c.current=null)})),[t,o,a]);const u=r&&b().createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;return"error"===t?b().createElement(Jt.x,{className:`${l}--inline-loading--error`},b().createElement("title",null,e)):"finished"===t?b().createElement(Gt._j,{className:`${l}--inline-loading__checkmark-container`},b().createElement("title",null,e)):"active"===t?(n||(e="loading"),b().createElement(Qt,{small:!0,description:e,withOverlay:!1,active:"active"===t})):"inactive"===t?(n||(e="not loading"),b().createElement("title",{className:`${l}--inline-loading__inactive-status`},e)):void 0})(),p=d&&b().createElement("div",{className:`${l}--inline-loading__animation`},d);return b().createElement("div",f({className:s},i,{"aria-live":i["aria-live"]??"assertive"}),p,u)};function tn({secondaryButtons:e,secondaryButtonText:t,secondaryClassName:n,closeModal:r,onRequestClose:o,disabled:a}){function i(e){r(e),o(e)}return Array.isArray(e)&&e.length<=2?b().createElement(b().Fragment,null,e.map((({buttonText:e,onClick:t},r)=>b().createElement(Vt,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||i},e)))):t?b().createElement(Vt,{disabled:a,className:n,onClick:i,kind:"secondary"},t):null}en.propTypes={className:m().string,description:m().node,iconDescription:m().string,onSuccess:m().func,status:m().oneOf(["inactive","active","finished","error"]),successDelay:m().number},tn.propTypes={closeModal:m().func,disabled:m().bool,onRequestClose:m().func,secondaryButtonText:m().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:m().node,onClick:m().func};e[t].forEach((e=>{m().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:m().string};const nn=b().forwardRef((function({children:e,className:t,closeModal:n=Xt,danger:r,inputref:o,onRequestClose:a=Xt,onRequestSubmit:i=Xt,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:p,loadingStatus:m="inactive",loadingDescription:h,loadingIconDescription:g,onLoadingSuccess:v=Xt,...w},E){const N=T(),x=y()(`${N}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${N}--modal-footer--three-button`:null),C=y()(c,"inactive"!==m?`${N}--btn--loading`:null),_="inactive"!==m,R={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:p,onRequestClose:a,disabled:_};return b().createElement(Yt,f({className:x},w,{ref:E,"aria-busy":_}),b().createElement(tn,R),s&&b().createElement(Vt,{onClick:i,className:C,disabled:_||l,kind:r?"danger":"primary",ref:o},"inactive"===m?s:b().createElement(en,{status:m,description:h,iconDescription:g,className:`${N}--inline-loading--btn`,onSuccess:v})),e)}));nn.propTypes={children:m().node,className:m().string,closeModal:m().func,danger:m().bool,inputref:m().oneOfType([m().func,m().shape({current:m().any})]),loadingDescription:m().string,loadingIconDescription:m().string,loadingStatus:m().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:m().func,onRequestClose:m().func,onRequestSubmit:m().func,primaryButtonDisabled:m().bool,primaryButtonText:m().string,primaryClassName:m().string,secondaryButtonText:m().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:m().node,onClick:m().func};e[t].forEach((e=>{m().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:m().string};const rn=(...e)=>t=>{e.forEach((e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))}))},on=(e,t,n)=>{e.classList.toggle(t,n)};var an=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ln="undefined"==typeof Element,sn=ln?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cn=!ln&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},un=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},dn=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!un(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=e(l.length?l:i.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:i,candidates:s})}else{sn.call(i,an)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!un(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},fn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},pn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!fn(e)?0:e.tabIndex},mn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},hn=function(e){return"INPUT"===e.tagName},gn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},bn=function(e,t){return!(t.disabled||un(t)||function(e){return hn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=sn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(sn.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return gn(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=cn(e);if(i&&!i.shadowRoot&&!0===r(i))return gn(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(function(e){var t,n,r,o,a=e&&cn(e),i=null===(t=a)||void 0===t?void 0:t.host,l=!1;if(a&&a!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&i;){var s,c,u;l=!(null===(c=i=null===(s=a=cn(i))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!sn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},vn=function(e,t){return!(function(e){return function(e){return hn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||cn(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||pn(t)<0||!bn(e,t))},yn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},wn=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,l=function(e,t){var n=pn(e);return n<0&&t&&!fn(e)?0:n}(i,a),s=a?e(t.candidates):i;0===l?a?n.push.apply(n,s):n.push(i):r.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:s})})),r.sort(mn).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)};const En="\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n",Nn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,xn="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Cn=(e,t=[])=>e instanceof Element&&"function"==typeof e.closest&&[".cds--overflow-menu-options",".cds--tooltip",".flatpickr-calendar",...t].some((t=>!!e.closest(t))),Tn=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:a})=>{if(e&&r&&o&&!e.contains(r)&&!Cn(r,a)){const a=o.compareDocumentPosition(r);if(r===t||a&Nn){const t=Array.from(e.querySelectorAll(En)).reverse().find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}else if(r===n||a&xn){const t=Array.from(e.querySelectorAll(En)).find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}}},_n=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(i=e,s=(l=l||{}).getShadowRoot?dn([i],l.includeContainer,{filter:vn.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:yn}):function(e,t,n){if(un(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(an));return t&&sn.call(e,an)&&r.unshift(e),r.filter(n)}(i,l.includeContainer,vn.bind(null,l)),wn(s)),o=r[0],a=r[r.length-1];var i,l,s;t!==a||n.shiftKey||(n.preventDefault(),o.focus()),t===o&&n.shiftKey&&(n.preventDefault(),a.focus())},Rn=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}},$n=(0,h.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Sn=b().forwardRef((({as:e,children:t,dir:n="auto",...r},o)=>{const a=(0,h.useContext)($n),i={},l=e??"span",s={...a};if(a){const{direction:e,getTextDirection:r}=a;if(r&&r.current){const n=An(t),o=r.current(n);e!==o?(i.dir=o,s.direction=o):"auto"===e&&(i.dir=o)}else e!==n?(i.dir=n,s.direction=n):"auto"===e&&(i.dir=n)}else i.dir=n,s.direction=n;return b().createElement($n.Provider,{value:s},b().createElement(l,f({ref:o},r,i),t))}));Sn.propTypes={as:m().oneOfType([m().func,m().string,m().elementType]),children:m().node.isRequired,dir:m().oneOf(["ltr","rtl","auto"])};const An=e=>{if("string"==typeof e)return e;const t=h.Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t};function On(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:a=!0,maxWait:i}=n,l=Array(2);let s;o&&(l[0]="leading"),a&&(l[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,a=null;const i=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),s=()=>{null!==a&&(e.apply(o,a),o=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout((()=>{c=null,l&&s(),f()}),t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,a=null},p=function(...e){if(n?.aborted)return;o=this,a=e;const t=null==c;u(),i&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}((function(...t){s=e.apply(this,t),c=null}),t,{signal:r,edges:l}),d=function(...t){if(null!=i)if(null===c)c=Date.now();else if(Date.now()-c>=i)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}const Ln=(0,h.createContext)({}),kn=b().forwardRef((({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=Xt,onClick:a=Xt,onClose:i=Xt,onRequestClose:l=Xt,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:p,...m},g)=>{const v=T(),w=$t(),E=`${v}--dialog-header__heading--${w}`,N=`${v}--dialog-header__label--${w}`,x=(0,h.useRef)(null),C=g??x;(0,h.useEffect)((()=>{C.current&&(s?r?C.current.showModal():C.current.show():C.current.close())}),[r,s]),(0,h.useEffect)((()=>{if(!s&&n){const e=setTimeout((()=>{n.current?.focus()}));return()=>{clearTimeout(e)}}}),[s,n]);const _=y()(`${v}--dialog-container`),R={dialogId:w,titleId:E,subtitleId:N,isOpen:s};return(0,h.useEffect)((()=>{if(C.current&&s&&!u&&!d){const e=C.current.querySelector(`.${v}--dialog-header__heading`);e&&e.id&&C.current.setAttribute("aria-labelledby",e.id)}}),[s,u,d,v]),b().createElement(Ln.Provider,{value:R},b().createElement("dialog",f({},m,{className:y()(`${v}--dialog`,{[`${v}--dialog--modal`]:r},t),ref:C,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===C.current&&l(e)}(e),a(e)},onClose:i,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||E,"aria-describedby":p}),b().createElement("div",{className:_},e)))}));kn.displayName="Dialog",kn.propTypes={children:m().node,className:m().string,focusAfterCloseRef:m().oneOfType([m().func,m().shape({current:m().any})]),modal:m().bool,onRequestClose:m().func,open:m().bool,role:m().oneOf(["dialog","alertdialog"]),"aria-label":m().string,"aria-labelledby":m().string,ariaDescribedBy:m().string};const Mn=b().forwardRef((({children:e,...t},n)=>{const r=T();return b().createElement("div",f({className:`${r}--dialog__header`,ref:n},t),e)}));Mn.displayName="DialogHeader",Mn.propTypes={children:m().node};const Bn=b().forwardRef((({children:e,...t},n)=>{const r=T();return b().createElement("div",f({className:`${r}--dialog__header-controls`,ref:n},t),e)}));Bn.displayName="DialogControls",Bn.propTypes={children:m().node};const In=b().forwardRef((({onClick:e,...t},n)=>{const r=T();return b().createElement(Pt,f({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),b().createElement(Gt.bm,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))}));In.displayName="DialogCloseButton",In.propTypes={onClick:m().func};const Dn=b().forwardRef((({children:e,className:t,id:n,...r},o)=>{const a=T(),{titleId:i}=(0,h.useContext)(Ln),l=n||i;return b().createElement(Sn,f({as:"h2",id:l,className:y()(`${a}--dialog-header__heading`,t),ref:o},r),e)}));Dn.displayName="DialogTitle",Dn.propTypes={children:m().node,className:m().string,id:m().string};const Pn=b().forwardRef((({children:e,className:t,id:n,...r},o)=>{const a=T(),{subtitleId:i}=(0,h.useContext)(Ln),l=n||i;return b().createElement(Sn,f({as:"h2",id:l,className:y()(`${a}--dialog-header__label`,t),ref:o},r),e)}));Pn.displayName="DialogSubtitle",Pn.propTypes={children:m().node,className:m().string,id:m().string};const zn=b().forwardRef((({children:e,className:t,hasScrollingContent:n,...r},o)=>{const a=T(),i=(0,h.useRef)(null),[l,s]=(0,h.useState)(!1),c=`${a}--dialog-body--${$t()}`;N((()=>{i.current&&s(i.current.scrollHeight>i.current.clientHeight);const e=On((function(){i.current&&s(i.current.scrollHeight>i.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const u=y()(`${a}--dialog-content`,{[`${a}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return b().createElement(Zt,f({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),i.current=e},id:c,className:u},d,r),e)}));zn.displayName="DialogBody",zn.propTypes={children:m().node,className:m().string,hasScrollingContent:m().bool};const Vn=b().forwardRef((({children:e,className:t,onRequestClose:n=Xt,onSecondarySubmit:r,onRequestSubmit:o=Xt,primaryButtonText:a="Save",primaryButtonDisabled:i=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:p=Xt,danger:m=!1,...g},v)=>{const w=T(),E=(0,h.useRef)(null),{isOpen:N}=(0,h.useContext)(Ln),[x,C]=(0,h.useState)(null);(0,h.useEffect)((()=>{if(m&&x){const e=requestAnimationFrame((()=>{x.focus()}));return()=>cancelAnimationFrame(e)}}),[m,x,N]);const _=y()(`${w}--dialog-footer`,t,{[`${w}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),R="inactive"!==c,$=y()({[`${w}--btn--loading`]:"inactive"!==c}),S=r||n;return e?b().createElement(Yt,f({className:_,ref:v},g),e):b().createElement(Yt,f({className:_,"aria-busy":R,ref:v},g),Array.isArray(s)&&s.length<=2?s.map((({buttonText:e,onClick:t},n)=>b().createElement(Vt,{key:`${e}-${n}`,autoFocus:m,kind:"secondary",ref:0===n&&m?C:void 0,onClick:t},e))):l&&b().createElement(Vt,{ref:m?C:void 0,disabled:R,kind:"secondary",autoFocus:m,onClick:S},l),b().createElement(Vt,{className:$,kind:m?"danger":"primary",disabled:R||i,onClick:o,ref:E},"inactive"===c?a:b().createElement(en,{status:c,description:u,iconDescription:d,className:`${w}--inline-loading--btn`,onSuccess:p})))}));Vn.displayName="DialogFooter",Vn.propTypes={children:m().node,className:m().string,onRequestClose:m().func,onSecondarySubmit:m().func,onRequestSubmit:m().func,primaryButtonText:m().node,primaryButtonDisabled:m().bool,secondaryButtonText:m().node,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:m().node,onClick:m().func};e[t].forEach((e=>{m().checkPropTypes(r,e,t,n)}))}return null},danger:m().bool,loadingStatus:m().oneOf(["inactive","active","finished","error"]),loadingDescription:m().string,loadingIconDescription:m().string,onLoadingSuccess:m().func},m().elementType,m().node,m().string;const Hn=b().createContext(void 0);function Fn(){return(0,h.useContext)(Hn)}function jn({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:a=!1,...i}){const l=(0,h.useRef)(null),[s,c]=(0,h.useState)(a),u=T(),d=$t(),p=y()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),m={toggle:()=>{c(!s)},close:()=>{c(!1)}},g={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:m.toggle},contentProps:{id:d},onClick:{onClick:m.toggle}};return _("blur",(()=>{s&&m.close()})),(0,h.useEffect)((()=>{if(!l.current)return;const e=l.current.ownerDocument||document,t="PointerEvent"in window?"pointerdown":"mousedown",n=e=>{const t=e.target;s&&t&&!l.current.contains(t)&&c(!1)},r={capture:!0};return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}),[s]),b().createElement(Hn.Provider,{value:g},b().createElement(dt,f({align:e,as:t,caret:!0,className:p,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&yt(e,gt)){e.stopPropagation(),m.close();const t=l.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||m.close()},ref:l,autoAlign:n},i),o))}const{open:qn,...Un}=dt.propTypes??{};jn.propTypes={...Un,defaultOpen:m().bool};const Wn=b().forwardRef((function({children:e,className:t,label:n="Show information",as:r,...o},a){const i=Fn(),l=T(),s=y()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?b().createElement(c,f({},i?.onClick,{className:s},o),e):b().createElement("button",f({},i?.buttonProps,{"aria-label":n,type:"button",className:s,ref:a},o),e)}));Wn.propTypes={children:m().node,className:m().string,label:m().string},Wn.displayName="ToggletipButton";const Zn=b().forwardRef((function({children:e,className:t},n){const r=Fn(),o=T();return b().createElement(pt,f({className:t},r?.contentProps,{ref:n}),b().createElement("div",{className:`${o}--toggletip-content`},e))}));function Gn({children:e,className:t}){const n=T(),r=y()(`${n}--toggletip-actions`,t);return b().createElement("div",{className:r},e)}Zn.propTypes={children:m().node,className:m().string},Zn.displayName="ToggletipContent",Gn.propTypes={children:m().node,className:m().string};var Kn,Yn=n(60428);const Xn=b().forwardRef((function({children:e,size:t=16,...n},r){return b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Kn||(Kn=b().createElement("path",{d:"M20,10H7.8149l3.5874-3.5859L10,5,4,11,10,17l1.4023-1.4146L7.8179,12H20a6,6,0,0,1,0,12H12v2h8a8,8,0,0,0,0-16Z"})),e)}));var Jn;const Qn=b().forwardRef((function({className:e,children:t},n){const r=T(),o=b().Children.toArray(t).some((e=>{e.type})),a=y()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:o});return b().createElement(Zn,{className:a},t)}));Qn.displayName="AILabelContent",Qn.propTypes={children:m().node,className:m().string};const er=b().forwardRef((function({className:e,children:t},n){const r=T(),o=y()(e,{[`${r}--ai-label-actions`]:!0});return b().createElement(Gn,{className:o},t)}));er.displayName="AILabelActions",er.propTypes={children:m().node,className:m().string};const tr=b().forwardRef((function({aiText:e="AI",aiTextLabel:t,textLabel:n,align:r,autoAlign:o=!0,children:a,className:i,kind:l="default",onRevertClick:s,revertActive:c,revertLabel:u="Revert to AI input",slugLabel:d="Show information","aria-label":p="Show information",size:m="xs",...h},g){const v=T(),w=$t("AILabel"),E=y()(i,{[`${v}--ai-label`]:!0,[`${v}--ai-label--revert`]:c}),N=y()({[`${v}--ai-label__button`]:!0,[`${v}--ai-label__button--${m}`]:m,[`${v}--ai-label__button--${l}`]:l,[`${v}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),x=t||n?`${e} ${t||n}`:`${e} ${d||p}`,C=["xs","2xs","mini"].includes(m);return b().createElement("div",{className:E,ref:g,id:w},c?b().createElement(Pt,f({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),Jn||(Jn=b().createElement(Xn,null))):b().createElement(jn,f({align:r,autoAlign:o,alignmentAxisOffset:C?-24:0},h),b().createElement(Wn,{className:N,label:"inline"===l?"":x},b().createElement("span",{className:`${v}--ai-label__text`},e),"inline"===l&&(t||n)&&b().createElement("span",{className:`${v}--ai-label__additional-text`},t||n)),a))}));tr.displayName="AILabel",tr.propTypes={...jn.propTypes,AILabelContent:m().node,aiText:m().string,aiTextLabel:lt(m().string),"aria-label":m().string,kind:m().oneOf(["default","inline"]),onRevertClick:m().func,revertActive:m().bool,revertLabel:m().string,size:m().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:lt(m().string),textLabel:m().string};const nr=(e,t)=>(0,h.isValidElement)(e)&&e.type===t,rr=e=>{const[t,n]=(0,h.useState)(!!e),[r,o]=(0,h.useState)(!!e);return(0,h.useEffect)((()=>{e!==r&&(n(!!e),o(!!e))}),[e,r]),(0,h.useMemo)((()=>[t,n]),[t])},or=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=rr(e),[a]=o,[i,l]=((e,t)=>{const n=(0,h.useRef)(t),r=(0,h.useRef)(null),o=(0,h.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:a,isExiting:i}=((e,t)=>{const n=T(),[r,o]=(0,h.useState)(t?"idle":"finished"),a="active"===r;t||"idle"!==r||o("active"),t&&"idle"!==r&&o("idle");const i=(0,h.useCallback)((()=>{o("finished")}),[]);return(0,h.useLayoutEffect)((()=>{if(!e.current||!a)return;if(!("getAnimations"in e.current))return void i();const t=e.current.getAnimations({subtree:!0}).filter((e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`)));if(!t.length)return void i();let r=!1;return Promise.all(t.map((e=>e.finished))).finally((()=>{r||i()})),()=>{r=!0}}),[e,a,n,i]),{isPresent:t||"finished"!==r,isExiting:a}})(r,e),l=(0,h.useCallback)((e=>!(!e||n.current&&n.current!==e||(n.current=e,0))),[]);return[a,(0,h.useMemo)((()=>({presenceRef:r,isPresenceExclusive:l,isExiting:i})),[r,l,i])]})(a,t),s=(0,h.useMemo)((()=>({modalState:o,autoEnablePresence:n,...l})),[o,n,l]);return i?b().createElement(ar,{value:s},r):null},ar=(0,h.createContext)(void 0),ir=b().forwardRef((function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},a){const i=T(),l=(0,h.useRef)(null),[s,c]=(0,h.useState)(!1),u=y()({[`${i}--modal-content`]:!0,[`${i}--modal-content--with-form`]:n,[`${i}--modal-scroll-content`]:r||s},e);N((()=>{l.current&&c(l.current.scrollHeight>l.current.clientHeight);const e=On((function(){l.current&&c(l.current.scrollHeight>l.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const d=r||s?{tabIndex:0,role:"region"}:{};return b().createElement(Zt,f({className:u},d,o,{ref:rn(l,a)}),t)}));var lr;ir.propTypes={"aria-label":(lr=m().string,(e,t,n,...r)=>lr(e,t,n,...r)),children:m().node,className:m().string,hasForm:m().bool,hasScrollingContent:m().bool};const sr=b().forwardRef((function({open:e,...t},n){const r=$t(),o=ct("enable-presence"),a=Boolean((0,h.useContext)(ar)),i=o||a,l=(e=>{const t=(0,h.useContext)(ar);return t?.isPresenceExclusive(e)?t:void 0})(r);return i&&!l?b().createElement(or,{open:e??!1,_presenceId:r,_autoEnablePresence:a},b().createElement(cr,f({open:!0,ref:n},t))):b().createElement(cr,f({ref:n,open:e},t))})),cr=b().forwardRef((function({"aria-labelledby":e,"aria-label":t,children:n,className:r,containerClassName:o,danger:a,decorator:i,isFullWidth:l,onClose:s,onKeyDown:c,open:u,preventCloseOnClickOutside:d,selectorPrimaryFocus:p="[data-modal-primary-focus]",selectorsFloatingMenus:m,size:g,launcherButtonRef:v,slug:w,...E},N){const x=T(),C=(0,h.useRef)(null),_=(0,h.useRef)(null),R=(0,h.useRef)(null),$=(0,h.useRef)(null),S=(0,h.useRef)(null),A=(0,h.useContext)(ar),O=function(e){const t=h.useRef(void 0),n=h.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return h.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([N,A?.presenceRef]),L=ct("enable-presence")||A?.autoEnablePresence,k=u||L,M=rr(k),[B,I]=A?.modalState??M,D=ct("enable-dialog-element"),P=ct("enable-experimental-focus-wrap-without-sentinels");function z(e){s&&!1===s(e)||I(!1)}(0,h.useEffect)((()=>{D||on(document.body,`${x}--body--with-modal-open`,!!k)}),[k,x]),(0,h.useEffect)((()=>{if(!D)return()=>{on(document.body,`${x}--body--with-modal-open`,!1)}}),[]);const V=y()(`${x}--modal`,{"is-visible":L||B,[`${x}--modal--enable-presence`]:A?.autoEnablePresence,[`${x}--modal--danger`]:a,[`${x}--modal--slug`]:w,[`${x}--modal--decorator`]:i},r),H=y()(`${x}--modal-container`,g&&`${x}--modal-container--${g}`,l&&`${x}--modal-container--full-width`,o);let F;const j=b().Children.toArray(n).map((e=>{switch(!0){case(0,Ht.isElement)(e)&&e.type===b().createElement(Kt).type:{const t=e;return F=t.props.label,b().cloneElement(t,{closeModal:z})}case(0,Ht.isElement)(e)&&e.type===b().createElement(nn).type:{const t=e;return b().cloneElement(t,{closeModal:z,inputref:_,danger:a})}default:return e}})),q=!h.Children.toArray(j).some((e=>nr(e,nn)));(0,h.useEffect)((()=>{if(!k)return;const e=e=>{yt(e,gt)&&(e.preventDefault(),e.stopPropagation(),z(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[k]),(0,h.useEffect)((()=>{D||L||k||!v||setTimeout((()=>{v.current?.focus()}))}),[D,L,k,v]),(0,h.useEffect)((()=>{const e=v?.current;return()=>{L&&e&&setTimeout((()=>{e.focus()}))}}),[L,v]),(0,h.useEffect)((()=>{if(!D){const e=e=>{const t=e||C.current;return(t?t.querySelector(a?`.${x}--btn--secondary`:p):null)||_&&_.current};k&&B&&(t=>{const n=e(t),r=t.querySelector(`.${x}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(C.current)}}),[k,p,B]);const U=w??i,W=nr(U,tr)?(0,h.cloneElement)(U,{size:"sm"}):null,Z=D?b().createElement(kn,{open:k,focusAfterCloseRef:v,modal:!0,className:H,"aria-label":t||F,"aria-labelledby":e,"data-exiting":A?.isExiting||void 0},b().createElement("div",{ref:C,className:`${x}--modal-container-body`},w?W:i?b().createElement("div",{className:`${x}--modal--inner__decorator`},W):"",j)):b().createElement("div",{className:H,role:"dialog","aria-modal":"true","aria-label":t||F,"aria-labelledby":e},!P&&b().createElement("button",{type:"button",ref:R,className:`${x}--visually-hidden`},"Focus sentinel"),b().createElement("div",{ref:C,className:`${x}--modal-container-body`},w?W:i?b().createElement("div",{className:`${x}--modal--inner__decorator`},W):"",j),!P&&b().createElement("button",{type:"button",ref:$,className:`${x}--visually-hidden`},"Focus sentinel"));return b().createElement(Zt,f({},E,{level:0,role:"presentation",ref:O,"aria-hidden":!k,onBlur:function({target:e,relatedTarget:t}){if(!D&&!P&&k&&t&&e&&C.current){const{current:n}=C,{current:r}=R,{current:o}=$;Tn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:m?.filter(Boolean)})}const n=document.querySelector(`.${x}--modal-content`);n&&n.classList.contains(`${x}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:Rn([E?.onClick,function(e){const{target:t}=e,n=S.current;e.stopPropagation(),(q&&!d||!q&&!1===d)&&t instanceof Node&&!Cn(t,m)&&C.current&&!C.current.contains(t)&&!C.current.contains(n)&&z(e)}]),onMouseDown:Rn([E?.onMouseDown,function(e){const t=e.target;S.current=t}]),onKeyDown:function(e){D||P&&k&&yt(e,mt)&&C.current&&_n({containerNode:C.current,currentActiveNode:e.target,event:e}),c?.(e)},className:V,"data-exiting":A?.isExiting||void 0}),Z)}));function ur({className:e,children:t,id:n,...r}){const o=T(),a=y()(`${o}--label`,`${o}--label--no-margin`,e);return b().createElement(Sn,f({as:"label",htmlFor:n,className:a},r),t)}var dr,fr,pr,mr,hr,gr,br,vr,yr,wr,Er;sr.propTypes={"aria-label":m().string,"aria-labelledby":m().string,children:m().node,className:m().string,containerClassName:m().string,danger:m().bool,decorator:m().node,isFullWidth:m().bool,launcherButtonRef:m().oneOfType([m().func,m().shape({current:m().any})]),onClose:m().func,onKeyDown:m().func,open:m().bool,preventCloseOnClickOutside:m().bool,selectorPrimaryFocus:m().string,selectorsFloatingMenus:m().arrayOf(m().string.isRequired),size:m().oneOf(["xs","sm","md","lg"]),slug:lt(m().node)},ur.propTypes={children:m().node,className:m().string,id:m().string};const Nr=b().forwardRef((function({children:e,size:t=16,...n},r){return b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},dr||(dr=b().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),fr||(fr=b().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),pr||(pr=b().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),e)})),xr=b().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},mr||(mr=b().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),hr||(hr=b().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},gr||(gr=b().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),br||(br=b().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},vr||(vr=b().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),yr||(yr=b().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),e):b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wr||(wr=b().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Er||(Er=b().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)}));var Cr,Tr,_r,Rr;const $r=b().forwardRef((function({children:e,size:t=16,...n},r){return b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Cr||(Cr=b().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Tr||(Tr=b().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)})),Sr=b().forwardRef((function({children:e,size:t=16,...n},r){return b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},_r||(_r=b().createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),Rr||(Rr=b().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)}));function Ar({children:e,className:t,onClick:n,inline:r,...o}){const a=T(),i=y()(t,{[`${a}--actionable-notification__action-button`]:!0});return b().createElement(Vt,f({className:i,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function Or({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=Gt.bm,name:a,notificationType:i="toast",...l}){const s=T(),c=y()(n,{[`${s}--${i}-notification__close-button`]:i}),u=y()({[`${s}--${i}-notification__close-icon`]:i});return b().createElement("button",f({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&b().createElement(o,{className:u,name:a}))}Ar.propTypes={children:m().node,className:m().string,inline:m().bool,onClick:m().func},Or.propTypes={"aria-label":m().string,ariaLabel:lt(m().string),className:m().string,name:m().string,notificationType:m().oneOf(["toast","inline","actionable"]),renderIcon:m().oneOfType([m().func,m().object]),type:m().string};const Lr={error:Jt.x,success:Gt._j,warning:xr,"warning-alt":Nr,info:$r,"info-square":Sr};function kr({iconDescription:e,kind:t,notificationType:n}){const r=T(),o=Lr[t];return o?b().createElement(o,{className:`${r}--${n}-notification__icon`,size:20},b().createElement("title",null,e)):null}function Mr({"aria-label":e,children:t,title:n,subtitle:r,role:o="status",onClose:a,onCloseButtonClick:i=Xt,statusIconDescription:l,className:s,kind:c="error",lowContrast:u,hideCloseButton:d=!1,...p}){const[m,g]=(0,h.useState)(!0),v=T(),w=y()(s,{[`${v}--inline-notification`]:!0,[`${v}--inline-notification--low-contrast`]:u,[`${v}--inline-notification--${c}`]:c,[`${v}--inline-notification--hide-close-button`]:d}),E=(0,h.useRef)(null);St(E);const N=(0,h.useRef)(null);return m?b().createElement("div",f({ref:N},p,{role:o,className:w}),b().createElement("div",{className:`${v}--inline-notification__details`},b().createElement(kr,{notificationType:"inline",kind:c,iconDescription:l||`${c} icon`}),b().createElement("div",{ref:E,className:`${v}--inline-notification__text-wrapper`},n&&b().createElement(Sn,{as:"div",className:`${v}--inline-notification__title`},n),r&&b().createElement(Sn,{as:"div",className:`${v}--inline-notification__subtitle`},r),t)),!d&&b().createElement(Or,{notificationType:"inline",onClick:function(e){i(e),a&&!1===a(e)||g(!1)},"aria-label":e})):null}function Br({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:a="alertdialog",onActionButtonClick:i,onClose:l,onCloseButtonClick:s=Xt,statusIconDescription:c,className:u,inline:d=!1,kind:p="error",lowContrast:m,hideCloseButton:g=!1,hasFocus:v=!0,closeOnEscape:w=!0,title:E,subtitle:x,...C}){const[_,R]=(0,h.useState)(!0),$=T(),S=$t("actionable-notification"),A=$t("actionable-notification-subtitle"),O=y()(u,{[`${$}--actionable-notification`]:!0,[`${$}--actionable-notification--toast`]:!d,[`${$}--actionable-notification--low-contrast`]:m,[`${$}--actionable-notification--${p}`]:p,[`${$}--actionable-notification--hide-close-button`]:g}),L=(0,h.useRef)(null),k=(0,h.useRef)(null),M=(0,h.useRef)(null),B=(0,h.useRef)(null),I=ct("enable-experimental-focus-wrap-without-sentinels");function D(e){s(e),l&&!1===l(e)||R(!1)}return N((()=>{if(v&&"alertdialog"===a){const e=document.querySelector("button.cds--actionable-notification__action-button");e?.focus()}})),function(e,t,n=!0){const r=r=>{const o=e.current&&document.activeElement===e.current||e.current?.contains(document.activeElement);vt(r,[gt])&&n&&o&&t(r)};N((()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1))))}(B,D,w),_?b().createElement("div",f({},C,{ref:B,role:a,className:O,"aria-labelledby":E?S:A,onBlur:I?()=>{}:function({target:e,relatedTarget:t}){if(_&&t&&e&&"alertdialog"===a){const{current:n}=L,{current:r}=k,{current:o}=M;Tn({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e})}},onKeyDown:I?function(e){_&&yt(e,mt)&&B.current&&"alertdialog"===a&&_n({containerNode:B.current,currentActiveNode:e.target,event:e})}:()=>{}}),!I&&b().createElement("span",{ref:k,tabIndex:0,role:"link",className:`${$}--visually-hidden`},"Focus sentinel"),b().createElement("div",{className:`${$}--actionable-notification__details`},b().createElement(kr,{notificationType:d?"inline":"toast",kind:p,iconDescription:c||`${p} icon`}),b().createElement("div",{className:`${$}--actionable-notification__text-wrapper`},b().createElement("div",{className:`${$}--actionable-notification__content`},E&&b().createElement(Sn,{as:"div",className:`${$}--actionable-notification__title`,id:S},E),x&&b().createElement(Sn,{as:"div",className:`${$}--actionable-notification__subtitle`,id:A},x),r&&b().createElement(Sn,{as:"div",className:`${$}--actionable-notification__caption`},r),o))),b().createElement("div",{className:`${$}--actionable-notification__button-wrapper`,ref:L},e&&b().createElement(Ar,{onClick:i,inline:d},e),!g&&b().createElement(Or,{"aria-label":n||t,notificationType:"actionable",onClick:D})),!I&&b().createElement("span",{ref:M,tabIndex:0,role:"link",className:`${$}--visually-hidden`},"Focus sentinel")):null}kr.propTypes={iconDescription:m().string.isRequired,kind:m().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:m().oneOf(["inline","toast"]).isRequired},m().string,lt(m().string),m().string,m().node,m().string,m().bool,m().oneOf(["error","info","info-square","success","warning","warning-alt"]),m().bool,m().func,m().func,m().oneOf(["alert","log","status"]),m().string,m().string,m().number,m().string,Mr.propTypes={"aria-label":m().string,children:m().node,className:m().string,hideCloseButton:m().bool,kind:m().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:m().bool,onClose:m().func,onCloseButtonClick:m().func,role:m().oneOf(["alert","log","status"]),statusIconDescription:m().string,subtitle:m().string,title:m().string},Br.propTypes={actionButtonLabel:m().string,"aria-label":m().string,ariaLabel:lt(m().string),caption:m().string,children:m().node,className:m().string,closeOnEscape:m().bool,hasFocus:lt(m().bool),hideCloseButton:m().bool,inline:m().bool,kind:m().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:m().bool,onActionButtonClick:m().func,onClose:m().func,onCloseButtonClick:m().func,role:m().string,statusIconDescription:m().string,subtitle:m().node,title:m().string};const Ir={error:"warning",success:"info"};m().string,m().node,m().string,E(m().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],(e=>Ir[e])),m().bool,m().func,m().string,m().node,m().string,m().string;const Dr=b().forwardRef(((e,t)=>{const{className:n,decorator:r,disabled:o,hideLabel:a,id:i,labelPosition:l="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:p,required:m,...g}=e,v=T(),w=$t("radio-button"),E=i||w,N=y()(`${v}--radio-button__label-text`,{[`${v}--visually-hidden`]:a}),x=y()(n,`${v}--radio-button-wrapper`,{[`${v}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${v}--radio-button-wrapper--slug`]:p,[`${v}--radio-button-wrapper--decorator`]:r}),C=(0,h.useRef)(null),_=p??r,R=nr(_,tr)?(0,h.cloneElement)(_,{size:"inline"===_.props?.kind?"md":"mini"}):null;return b().createElement("div",{className:x},b().createElement("input",f({},g,{type:"radio",className:`${v}--radio-button`,onChange:function(e){u(d,c,e)},id:E,ref:rn(C,t),disabled:o,value:d,name:c,required:m})),b().createElement("label",{htmlFor:E,className:`${v}--radio-button__label`},b().createElement("span",{className:`${v}--radio-button__appearance`}),s&&b().createElement(Sn,{className:N},s,p?R:r?b().createElement("div",{className:`${v}--radio-button-wrapper-inner--decorator`},R):"")))}));function Pr(e){const{className:t,...n}=e,r=T();return b().createElement("div",f({className:y()(`${r}--radio-button-wrapper`,t)},n),b().createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),b().createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}Dr.displayName="RadioButton",Dr.propTypes={checked:m().bool,className:m().string,decorator:m().node,defaultChecked:m().bool,disabled:m().bool,hideLabel:m().bool,id:m().string,labelPosition:m().oneOf(["right","left"]),labelText:m().node.isRequired,name:m().string,onChange:m().func,onClick:m().func,required:m().bool,slug:lt(m().node),value:m().oneOfType([m().string,m().number])},Pr.propTypes={className:m().string};const zr=e=>b().createElement(Sn,f({as:"legend"},e));const Vr=b().forwardRef(((e,t)=>{const{children:n,className:r,decorator:o,defaultSelected:a,disabled:i,helperText:l,invalid:s=!1,invalidText:c,labelPosition:u="right",legendText:d,name:p,onChange:m=()=>{},orientation:g="horizontal",readOnly:v,valueSelected:w,warn:E=!1,warnText:N,slug:x,required:C,..._}=e,R=T(),[$,S]=(0,h.useState)(w??a),[A,O]=(0,h.useState)(w),L=$t();function k(e,t,n){v||e!==$&&(S(e),m(e,p,n))}w!==A&&(S(w),O(w));const M=!v&&!s&&E,B=!s&&!i&&!E,I=y()(`${R}--form-item`,r),D=y()(`${R}--radio-button-group`,{[`${R}--radio-button-group--${g}`]:"vertical"===g,[`${R}--radio-button-group--label-${u}`]:u,[`${R}--radio-button-group--readonly`]:v,[`${R}--radio-button-group--invalid`]:!v&&s,[`${R}--radio-button-group--warning`]:M,[`${R}--radio-button-group--slug`]:x,[`${R}--radio-button-group--decorator`]:o}),P=y()(`${R}--form__helper-text`,{[`${R}--form__helper-text--disabled`]:i}),z=l?`radio-button-group-helper-text-${L}`:void 0,V=l?b().createElement("div",{id:z,className:P},l):null,H=(0,h.useRef)(null),F=x??o,j=nr(F,tr)?(0,h.cloneElement)(F,{size:"mini",kind:"default"}):null;return b().createElement("div",{className:I,ref:rn(H,t)},b().createElement("fieldset",f({className:D,disabled:i,"data-invalid":!!s||void 0,"aria-describedby":B&&l?z:void 0},_),d&&b().createElement(zr,{className:`${R}--label`},d,x?j:o?b().createElement("div",{className:`${R}--radio-button-group-inner--decorator`},j):""),b().Children.map(n,(e=>{if(!e)return;const t={name:p,key:e.props.value,value:e.props.value,onChange:k,checked:e.props.value===$,required:C};return!$&&e.props.checked&&(t.checked=!0),b().cloneElement(e,t)}))),b().createElement("div",{className:`${R}--radio-button__validation-msg`},!v&&s&&b().createElement(b().Fragment,null,b().createElement(xr,{className:`${R}--radio-button__invalid-icon`}),b().createElement("div",{className:`${R}--form-requirement`},c)),M&&b().createElement(b().Fragment,null,b().createElement(Nr,{className:`${R}--radio-button__invalid-icon ${R}--radio-button__invalid-icon--warning`}),b().createElement("div",{className:`${R}--form-requirement`},N))),B&&V)}));var Hr,Fr;Vr.propTypes={children:m().node,className:m().string,decorator:m().node,defaultSelected:m().oneOfType([m().string,m().number]),disabled:m().bool,helperText:m().node,invalid:m().bool,invalidText:m().node,labelPosition:m().oneOf(["left","right"]),legendText:m().node,name:m().string.isRequired,onChange:m().func,orientation:m().oneOf(["horizontal","vertical"]),readOnly:m().bool,required:m().bool,slug:lt(m().node),valueSelected:m().oneOfType([m().string,m().number]),warn:m().bool,warnText:m().node},Vr.displayName="RadioButtonGroup";const jr=b().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Hr||(Hr=b().createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),e):b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Fr||(Fr=b().createElement("path",{d:"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"})),e)})),qr=(0,h.createContext)({isFluid:!1});var Ur;const Wr=b().forwardRef((({autoComplete:e="off",className:t,closeButtonLabelText:n="Clear search input",defaultValue:r,disabled:o,isExpanded:a=!0,id:i,labelText:l,light:s,onChange:c=()=>{},onClear:u=()=>{},onKeyDown:d,onExpand:p,placeholder:m="Search",renderIcon:g,role:v,size:w="md",type:E="search",value:N,...C},_)=>{const R=!(!N&&!r),$=T(),{isFluid:S}=(0,h.useContext)(qr),A=(0,h.useRef)(null),O=x([_,A]),L=(0,h.useRef)(null),k=$t("search-input"),M=i||k,B=`${M}-search`,[I,D]=(0,h.useState)(R||!1),[P,z]=(0,h.useState)(N),V=y()({[`${$}--search`]:!0,[`${$}--search--sm`]:"sm"===w,[`${$}--search--md`]:"md"===w,[`${$}--search--lg`]:"lg"===w,[`${$}--search--light`]:s,[`${$}--search--disabled`]:o,[`${$}--search--fluid`]:S},t),H=y()({[`${$}--search-close`]:!0,[`${$}--search-close--hidden`]:!I||!a});function F(){if(!N&&A.current&&(A.current.value=""),A.current){const e=Object.assign({},A.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:A.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:Xt,preventDefault:Xt,stopPropagation:Xt,target:e,timeStamp:0,type:"change"};c(t)}u(),D(!1),A.current?.focus()}return N!==P&&(D(!!N),z(N)),b().createElement("div",{role:"search","aria-label":m,className:V},b().createElement("div",{"aria-labelledby":p?B:void 0,role:p?"button":void 0,className:`${$}--search-magnifier`,onClick:p,onKeyDown:function(e){(yt(e,ht)||yt(e,bt))&&(e.stopPropagation(),p&&p(e))},tabIndex:p&&!a?0:-1,ref:L,"aria-expanded":!(!p||!a)||!(p&&!a)&&void 0,"aria-controls":p?M:void 0},b().createElement(Zr,{icon:g})),b().createElement("label",{id:B,htmlFor:M,className:`${$}--label`},l),b().createElement("input",f({autoComplete:e,className:`${$}--search-input`,defaultValue:r,disabled:o,role:v,ref:O,id:M,onChange:Rn([c,function(e){D(""!==e.target.value)}]),onKeyDown:Rn([d,function(e){yt(e,gt)&&(e.stopPropagation(),A.current?.value?F():p&&a&&L.current?.focus())}]),placeholder:m,type:E,value:N,tabIndex:p&&!a?-1:void 0},C)),b().createElement("button",{"aria-label":n,className:H,disabled:o,onClick:F,title:n,type:"button"},Ur||(Ur=b().createElement(Gt.bm,null))))}));function Zr({icon:e}){const t=T();return e?b().createElement(e,{className:`${t}--search-magnifier-icon`}):b().createElement(jr,{className:`${t}--search-magnifier-icon`})}Wr.displayName="Search",Wr.propTypes={autoComplete:m().string,className:m().string,closeButtonLabelText:m().string,defaultValue:m().oneOfType([m().string,m().number]),disabled:m().bool,id:m().string,isExpanded:m().bool,labelText:m().node.isRequired,light:lt(m().bool),onChange:m().func,onClear:m().func,onExpand:m().func,onKeyDown:m().func,placeholder:m().string,renderIcon:m().oneOfType([m().func,m().object]),role:lt(m().string),size:m().oneOf(["sm","md","lg"]),type:m().string,value:m().oneOfType([m().string,m().number])},Zr.propTypes={icon:m().oneOfType([m().func,m().object])};const Gr=({className:e,...t})=>{const n=T(),r=y()(e,{[`${n}--icon--skeleton`]:!0});return b().createElement("div",f({className:r},t))};Gr.propTypes={className:m().string};const Kr=({align:e="bottom",autoAlign:t,className:n,children:r,definition:o,defaultOpen:a=!1,id:i,openOnHover:l,tooltipText:s,triggerClassName:c,...u})=>{const[d,p]=(0,h.useState)(a),m=T(),g=function(e){const t=$t();return e??t}(i);return b().createElement(dt,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{p(!1)},onMouseEnter:()=>{l&&p(!0)},onFocus:()=>{p(!0)},open:d},b().createElement("button",f({},u,{className:y()(`${m}--definition-term`,c),"aria-controls":g,"aria-describedby":g,"aria-expanded":d,onBlur:()=>{p(!1)},onMouseDown:e=>{0===e.button&&p(!d)},onKeyDown:function(e){d&&yt(e,gt)&&(e.stopPropagation(),p(!1))},type:"button"}),r),b().createElement(pt,{className:`${m}--definition-tooltip`,id:g},s??o))};var Yr;Kr.propTypes={align:m().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),autoAlign:m().bool,children:m().node.isRequired,className:m().string,defaultOpen:m().bool,definition:m().node.isRequired,id:m().string,openOnHover:m().bool,tooltipText:lt(m().node),triggerClassName:m().string};const Xr={red:"Red",magenta:"Magenta",purple:"Purple",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",gray:"Gray","cool-gray":"Cool-Gray","warm-gray":"Warm-Gray","high-contrast":"High-Contrast",outline:"Outline"},Jr=b().forwardRef((({children:e,className:t,decorator:n,id:r,type:o,filter:a,renderIcon:i,title:l="Clear filter",disabled:s,onClose:c,size:u,as:d,slug:p,...m},g)=>{const v=T(),w=(0,h.useRef)(null);a&&console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."),c&&console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");const E=x([g,w]),N=r||`tag-${$t()}`,[C,_]=(0,h.useState)(!1);(0,h.useLayoutEffect)((()=>{const e=w.current?.getElementsByClassName(`${v}--tag__label`)[0];_((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))}),[v,w]);const R=[`${v}--tag--selectable`,`${v}--tag--filter`,`${v}--tag--operational`].some((e=>t?.includes(e))),$=y()(`${v}--tag`,t,{[`${v}--tag--disabled`]:s,[`${v}--tag--filter`]:a,[`${v}--tag--${u}`]:u,[`${v}--layout--size-${u}`]:u,[`${v}--tag--${o}`]:o,[`${v}--tag--interactive`]:m.onClick&&!R&&C}),S=void 0!==o&&o in Object.keys(Xr)?Xr[o]:"",A=e=>{c&&(e.stopPropagation(),c(e))},O=p??n,L=nr(O,tr)&&!R?(0,h.cloneElement)(O,{size:"sm",kind:"inline"}):null;if(a){const t=d??"div";return b().createElement(t,f({className:$,id:N},m),i&&"sm"!==u?b().createElement("div",{className:`${v}--tag__custom-icon`},b().createElement(i,null)):"",b().createElement(Sn,{title:"string"==typeof e?e:void 0,className:`${v}--tag__label`},null!=e?e:S),L,b().createElement("button",{type:"button",className:`${v}--tag__close-icon`,onClick:A,disabled:s,"aria-label":l,title:l},Yr||(Yr=b().createElement(Gt.bm,null))))}const k=d??(m.onClick||t?.includes(`${v}--tag--operational`)?"button":"div"),M=y()({[`${v}--tag__label`]:!R});return b().createElement(k,f({ref:E,disabled:s,className:$,id:N,type:"button"===k?"button":void 0},m),i&&"sm"!==u?b().createElement("div",{className:`${v}--tag__custom-icon`},b().createElement(i,null)):"",C&&!R?b().createElement(Kr,{openOnHover:!1,definition:null!=e?e:S,className:`${v}--definition--tooltip--tag`},b().createElement(Sn,{title:null!=e&&"string"==typeof e?e:S,className:M},null!=e?e:S)):b().createElement(Sn,{title:null!=e&&"string"==typeof e?e:S,className:M},null!=e?e:S),p?L:n?b().createElement("div",{className:`${v}--tag__decorator`},L):"")})),Qr=Jr;var eo,to,no,ro,oo,ao;Qr.propTypes={as:m().elementType,children:m().node,className:m().string,decorator:m().node,disabled:m().bool,filter:lt(m().bool),id:m().string,onClose:lt(m().func),renderIcon:m().oneOfType([m().func,m().object]),size:m().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:lt(m().node),title:lt(m().string),type:m().oneOf(Object.keys(Xr))};const io=b().forwardRef((function({children:e,size:t=16,...n},r){return b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},eo||(eo=b().createElement("path",{d:"M19 21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4zM15.5005 21h2l-3.5005-11h-3l-3.4966 11h1.9988l.6018-2h4.7781l.6184 2zM10.7058 17l1.6284-5.4111.2559-.0024 1.6736 5.4136h-3.5579z"})),to||(to=b().createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)})),lo=b().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},no||(no=b().createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),e):20===t||"20"===t||"20px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},ro||(ro=b().createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),e):24===t||"24"===t||"24px"===t?b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},oo||(oo=b().createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),e):b().createElement(Yn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ao||(ao=b().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)})),so=b().forwardRef((({as:e,children:t,className:n,href:r,disabled:o=!1,inline:a=!1,visited:i=!1,renderIcon:l,size:s,target:c,...u},d)=>{const p=T(),m={className:y()(`${p}--link`,n,{[`${p}--link--disabled`]:o,[`${p}--link--inline`]:a,[`${p}--link--visited`]:i,[`${p}--link--${s}`]:s}),rel:"_blank"===c?"noopener":void 0,target:c};o?(m.role="link",m["aria-disabled"]=!0):m.href=r;const h=e??"a";return b().createElement(h,f({ref:d},m,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!a&&l&&b().createElement("div",{className:`${p}--link__icon`},b().createElement(l,null)))}));var co,uo,fo,po;so.displayName="Link",so.propTypes={as:m().elementType,children:m().node,className:m().string,disabled:m().bool,href:m().string,inline:m().bool,renderIcon:m().oneOfType([m().func,m().object]),size:m().oneOf(["sm","md","lg"]),visited:m().bool};const mo=b().forwardRef((({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:a=!1,...i},l)=>{const s=T(),c=y()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&a,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&a},t);return b().createElement("div",f({className:c,ref:l},i),e,o,n&&b().createElement("div",{className:`${s}--tile--inner-decorator`},n))}));mo.displayName="Tile",mo.propTypes={children:m().node,className:m().string,decorator:m().node,hasRoundedCorners:m().bool,light:lt(m().bool),slug:lt(m().node)};const ho=b().forwardRef((({children:e,className:t,clicked:n=!1,decorator:r,disabled:o,href:a,light:i,onClick:l=()=>{},onKeyDown:s=()=>{},renderIcon:c,hasRoundedCorners:u,slug:d,...p},m)=>{const g=T(),v=y()(`${g}--tile`,`${g}--tile--clickable`,{[`${g}--tile--is-clicked`]:n,[`${g}--tile--light`]:i,[`${g}--tile--slug`]:d,[`${g}--tile--slug-rounded`]:d&&u,[`${g}--tile--decorator`]:r,[`${g}--tile--decorator-rounded`]:r&&u},t),[w,E]=(0,h.useState)(n),N=ct("enable-v12-tile-default-icons");N&&(c||(c=lo),o&&(c=Jt.$D));const x=y()({[`${g}--tile--icon`]:!N||N&&!o,[`${g}--tile--disabled-icon`]:N&&o});return b().createElement(so,f({className:v,href:a,tabIndex:a||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),E(!w),l(e)},onKeyDown:function(e){e?.persist?.(),vt(e,[ht,bt])&&E(!w),s(e)},ref:m,disabled:o},p),d||r?b().createElement("div",{className:`${g}--tile-content`},e):e,(!0===d||!0===r)&&b().createElement(io,{size:"24",className:`${g}--tile--ai-label-icon`}),b().isValidElement(r)&&b().createElement("div",{className:`${g}--tile--inner-decorator`},r),c&&b().createElement(c,{className:x,"aria-hidden":"true"}))}));ho.displayName="ClickableTile",ho.propTypes={children:m().node,className:m().string,clicked:m().bool,decorator:m().oneOfType([m().bool,m().node]),disabled:m().bool,hasRoundedCorners:m().bool,href:m().string,light:lt(m().bool),onClick:m().func,onKeyDown:m().func,rel:m().string,renderIcon:m().oneOfType([m().func,m().object])},b().forwardRef((({children:e,className:t,decorator:n,disabled:r,id:o,light:a,onClick:i=()=>{},onChange:l=()=>{},onKeyDown:s=()=>{},selected:c=!1,tabIndex:u=0,title:d="title",slug:p,hasRoundedCorners:m,...g},v)=>{const w=T(),E=i,N=s,[x,C]=(0,h.useState)(c);(0,h.useEffect)((()=>{C(c)}),[c]);const _=y()(`${w}--tile`,`${w}--tile--selectable`,{[`${w}--tile--is-selected`]:x,[`${w}--tile--light`]:a,[`${w}--tile--disabled`]:r,[`${w}--tile--slug`]:p,[`${w}--tile--slug-rounded`]:p&&m,[`${w}--tile--decorator`]:n,[`${w}--tile--decorator-rounded`]:n&&m},t),R=(0,h.useCallback)(((e,t)=>{C(t),l(e,t,o)}),[l,o]),$=(0,h.useRef)(null),S=p??n,A=nr(S,tr)?(0,h.cloneElement)(S,{size:"xs",ref:$}):null;return b().createElement("div",f({className:_,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),A&&$.current&&e.target instanceof Node&&$.current.contains(e.target)||(R(e,!x),E(e))},role:"checkbox","aria-checked":x,onKeyDown:r?void 0:function(e){e?.persist?.(),vt(e,[ht,bt])&&(e.preventDefault(),R(e,!x)),N(e)},tabIndex:r?void 0:u,ref:v,id:o,title:d},g),b().createElement("span",{className:`${w}--tile__checkmark ${w}--tile__checkmark--persistent`},x?co||(co=b().createElement(Gt.NW,null)):uo||(uo=b().createElement(Gt.Sc,null))),b().createElement(Sn,{as:"label",htmlFor:o,className:`${w}--tile-content`},e),p?A:n?b().createElement("div",{className:`${w}--tile--inner-decorator`},A):"")})).propTypes={children:m().node,className:m().string,decorator:m().node,disabled:m().bool,hasRoundedCorners:m().bool,id:m().string,light:lt(m().bool),name:lt(m().string),onChange:m().func,onClick:m().func,onKeyDown:m().func,selected:m().bool,slug:lt(m().node),tabIndex:m().number,title:m().string,value:lt(m().oneOfType([m().string,m().number]))};const go=b().forwardRef((({tabIndex:e=0,className:t,children:n,decorator:r,expanded:o=!1,tileMaxHeight:a=0,tilePadding:i=0,onClick:l,onKeyUp:s,tileCollapsedIconText:c="Interact to expand Tile",tileExpandedIconText:u="Interact to collapse Tile",tileCollapsedLabel:d,tileExpandedLabel:p,light:m,slug:g,hasRoundedCorners:v,...w},E)=>{const[C,_]=(0,h.useState)(a),[R,$]=(0,h.useState)(i),[S,A]=(0,h.useState)(o),[O,L]=(0,h.useState)(a),[k,M]=(0,h.useState)(i),[B,I]=(0,h.useState)(o),[D,P]=(0,h.useState)(!0),z=(0,h.useRef)(null),V=(0,h.useRef)(null),H=(0,h.useRef)(null),F=(0,h.useRef)(null),j=(0,h.useRef)(null),q=x([E,j]),U=T();function W(){B&&F.current&&_(F.current.getBoundingClientRect()?.height),z.current&&_(z.current.getBoundingClientRect().height)}function Z(e){e?.persist?.(),I(!B),W()}function G(e){e.target!==j.current&&e.target!==H.current&&vt(e,[ht,bt])&&e.preventDefault()}o!==S&&(I(o),A(o),W()),a!==O&&(_(a),L(a)),i!==k&&($(i),M(i));const K=y()(`${U}--tile`,`${U}--tile--expandable`,{[`${U}--tile--is-expanded`]:B,[`${U}--tile--light`]:m},t),Y=y()(`${U}--tile`,`${U}--tile--expandable`,`${U}--tile--expandable--interactive`,{[`${U}--tile--is-expanded`]:B,[`${U}--tile--light`]:m,[`${U}--tile--slug`]:g,[`${U}--tile--slug-rounded`]:g&&v,[`${U}--tile--decorator`]:r,[`${U}--tile--decorator-rounded`]:r&&v},t),X=y()(`${U}--tile__chevron`,`${U}--tile__chevron--interactive`),J=b().Children.toArray(n);N((()=>{if(!j.current||!z.current)return;const e=window.getComputedStyle(j.current,null),{current:t}=z,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);_(n),$(r+o)}),[C]),N((()=>{z.current&&V.current&&(At(V.current)||Ot(V.current)||At(z.current)||Ot(z.current)||g||r||P(!1))}),[g,r]),N((()=>{j.current&&(j.current.style.maxHeight=B?"":C+R+"px")}),[B,C,R]),(0,h.useEffect)((()=>{if(!z.current)return;const e=new ResizeObserver((e=>{const[t]=e;_(t.contentRect.height)}));return e.observe(z.current),()=>e.disconnect()}),[]);const Q=$t("expandable-tile-interactive"),ee=g??r,te=nr(ee,tr)?(0,h.cloneElement)(ee,{size:"xs"}):null;return D?b().createElement("div",f({ref:q,className:Y},w),b().createElement("div",{ref:F},g?te:r?b().createElement("div",{className:`${U}--tile--inner-decorator`},te):"",b().createElement("div",{ref:z,className:`${U}--tile-content`},J[0]),b().createElement("button",{type:"button","aria-expanded":B,"aria-controls":Q,onKeyUp:Rn([s,G]),onClick:Rn([l,Z]),"aria-label":B?u:c,ref:H,className:X},fo||(fo=b().createElement(Gt.yQ,null))),b().createElement("div",{ref:V,className:`${U}--tile-content`,id:Q},J[1]))):b().createElement("button",f({type:"button",ref:q,className:K,"aria-expanded":B,title:B?u:c},w,{onKeyUp:Rn([s,G]),onClick:Rn([l,Z]),tabIndex:e}),b().createElement("div",{ref:F},b().createElement("div",{ref:z,className:`${U}--tile-content`},J[0]),b().createElement("div",{className:`${U}--tile__chevron`},b().createElement("span",null,B?p:d),po||(po=b().createElement(Gt.yQ,null))),b().createElement("div",{ref:V,className:`${U}--tile-content`},J[1])))}));go.propTypes={children:m().node,className:m().string,decorator:m().node,expanded:m().bool,hasRoundedCorners:m().bool,id:m().string,light:lt(m().bool),onClick:m().func,onKeyUp:m().func,slug:lt(m().node),tabIndex:m().number,tileCollapsedIconText:m().string,tileCollapsedLabel:m().string,tileExpandedIconText:m().string,tileExpandedLabel:m().string},go.displayName="ExpandableTile";const bo=b().forwardRef((({children:e},t)=>{const n=T();return b().createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)}));bo.propTypes={children:m().node},bo.displayName="TileAboveTheFoldContent";const vo=b().forwardRef((({children:e},t)=>{const n=T();return b().createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)}));vo.propTypes={children:m().node},vo.displayName="TileBelowTheFoldContent";const yo=({className:e,children:t,...n})=>{const r=T(),o=y()(`${r}--header`,e);return b().createElement("header",f({},n,{className:o}),t)};yo.propTypes={"aria-label":m().string,"aria-labelledby":m().string,className:m().string};const wo=(e=>{const t=Object.keys(e),n=e=>(t,n,r,...o)=>e(t,n,r,...o);return t.reduce(((t,r)=>({...t,[r]:n(e[r])})),{})})({"aria-label":m().string,"aria-labelledby":m().string}),Eo=b().forwardRef((({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:a=!0,tooltipDropShadow:i,isActive:l,tooltipAlignment:s,...c},u)=>{const d=T(),p=y()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),m={"aria-label":e,"aria-labelledby":t};return b().createElement(Vt,f({},c,m,{className:p,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:s,tooltipDropShadow:i,tooltipHighContrast:a,ref:u}),n)}));Eo.propTypes={...wo,children:m().node.isRequired,className:m().string,isActive:m().bool,onClick:m().func,tooltipAlignment:m().oneOf(["start","center","end"]),tooltipDropShadow:m().bool,tooltipHighContrast:m().bool},Eo.displayName="HeaderGlobalAction";const No=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=T(),a=y()("function"==typeof t?t(o):t,e);return b().createElement(n,{...r,className:a||void 0})}return r.displayName=e,r.propTypes={className:m().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var xo,Co,To=n(54535);function _o({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:a,isCollapsible:i,...l}){const s=T(),c=y()({..."string"==typeof n&&{[n]:!!n},[`${s}--header__action`]:!0,[`${s}--header__menu-trigger`]:!0,[`${s}--header__action--active`]:a,[`${s}--header__menu-toggle`]:!0,[`${s}--header__menu-toggle__hidden`]:!i}),u=r||xo||(xo=b().createElement(To.GK,{size:20})),d=o||Co||(Co=b().createElement(Gt.bm,{size:20}));return b().createElement("button",f({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),a?d:u)}_o.propTypes={...wo,className:m().string,isActive:m().bool,isCollapsible:m().bool,onClick:m().func};const Ro=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const a=t??e??"a";return b().createElement(a,f({ref:o},r))},$o=b().forwardRef(Ro),So={as:m().elementType,element:lt(m().elementType),isSideNavExpanded:m().bool};function Ao({children:e,className:t,prefix:n="IBM",...r}){const o=T(),a=y()(`${o}--header__name`,t);return b().createElement($o,f({},r,{className:a}),n&&b().createElement(b().Fragment,null,b().createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}$o.displayName="Link",$o.propTypes=So,Ao.propTypes={...So,children:m().node.isRequired,className:m().string,href:m().string,prefix:m().string};const Oo=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"];function Lo(e){return"".concat(e/16,"rem")}Lo(320),Lo(672),Lo(16);var ko={width:Lo(1056),columns:16,margin:Lo(16)};Lo(1312),Lo(16),Lo(1584),Lo(24);function Mo(e){return Lo(8*e)}Mo(.25),Mo(.5),Mo(1),Mo(1.5),Mo(2),Mo(3),Mo(4),Mo(5),Mo(6),Mo(8),Mo(10),Mo(12),Mo(20),Mo(2),Mo(3),Mo(4),Mo(6),Mo(8),Mo(12),Mo(20),Mo(3),Mo(4),Mo(5),Mo(6),Mo(8),Lo(24),Lo(32),Lo(40),Lo(48),Lo(64),Lo(80);const Bo=(0,h.createContext)({});function Io({expanded:e,defaultExpanded:t=!1,isChildOfHeader:n=!0,"aria-label":r,"aria-labelledby":o,children:a,onToggle:i,className:l,href:s,isFixedNav:c=!1,isRail:u,isPersistent:d=!0,addFocusListeners:p=!0,addMouseListeners:m=!0,onOverlayClick:g,onSideNavBlur:v,enterDelayMs:w=100,...E},N){const C=T(),{current:R}=(0,h.useRef)(void 0!==e),[$,S]=wt(t),[A,O]=wt(t),L=R?e:$,k=(0,h.useRef)(null),M=x([k,N]),B=(e,t=!L)=>{R||S(t,w),i&&i(e,t),(R||u)&&O(t,w)},I={"aria-label":r,"aria-labelledby":o},D=y()(l,{[`${C}--side-nav`]:!0,[`${C}--side-nav--expanded`]:L||A,[`${C}--side-nav--collapsed`]:!L&&c,[`${C}--side-nav--rail`]:u,[`${C}--side-nav--ux`]:n,[`${C}--side-nav--hidden`]:!d}),P=y()({[`${C}--side-nav__overlay`]:!0,[`${C}--side-nav__overlay-active`]:L||A});let z=a;z=b().Children.map(a,(e=>{const t=R&&A||L;if((0,h.isValidElement)(e)){const n=e;return b().cloneElement(n,{...Oo.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e}));const V={};p&&(V.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&u&&B(e,!0)},V.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||B(e,!1),e.currentTarget.contains(e.relatedTarget)||!L||c||v&&v()},V.onKeyDown=e=>{yt(e,gt)&&(B(e,!1),s&&(window.location.href=s))}),m&&u&&(V.onMouseEnter=()=>{B(!0,!0)},V.onMouseLeave=()=>{S(!1),O(!1),B(!1,!1)},V.onClick=()=>{S(!0),O(!0),B(!0,!0)}),_("keydown",(e=>{const t=document.activeElement;yt(e,mt)&&L&&!c&&k.current&&t?.classList.contains(`${C}--header__menu-toggle`)&&!t.closest("nav")&&k.current.focus()}));const H=((e,t=!1)=>{const[n,r]=(0,h.useState)(t);return(0,h.useEffect)((()=>{const t=e=>{r(e.matches)},n=window.matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>{n.removeEventListener("change",t)}}),[e]),n})(`(min-width: ${ko.width})`);return b().createElement(Bo.Provider,{value:{isRail:u}},c?null:b().createElement("div",{className:P,onClick:g}),b().createElement("nav",f({tabIndex:-1,ref:M,className:`${C}--side-nav__navigation ${D}`,inert:u?void 0:!(L||H)},I,V,E),z))}const Do=b().forwardRef(Io);Do.displayName="SideNav",Do.propTypes={...wo,addFocusListeners:m().bool,addMouseListeners:m().bool,className:m().string,defaultExpanded:m().bool,enterDelayMs:m().number,expanded:m().bool,href:m().string,isChildOfHeader:m().bool,isFixedNav:m().bool,isPersistent:m().bool,isRail:m().bool,onOverlayClick:m().func,onSideNavBlur:m().func,onToggle:m().func}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},46942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},54535:(e,t,n)=>{"use strict";n.d(t,{GK:()=>h,Xj:()=>g,hz:()=>m});var r,o,a,i,l,s,c,u,d=n(16072),f=n.n(d),p=n(60428);const m=f().forwardRef((function({children:e,size:t=16,...n},a){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=f().createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):f().createElement(p.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=f().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)})),h=f().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=f().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},i||(i=f().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},l||(l=f().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=f().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)})),g=f().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},c||(c=f().createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):f().createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=f().createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)}))},55056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},58493:(e,t,n)=>{"use strict";var r=n(16072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},59184:(e,t,n)=>{"use strict";n.d(t,{NW:()=>T,Sc:()=>C,_j:()=>_,bm:()=>S,c_:()=>$,yQ:()=>R});var r,o,a,i,l,s,c,u,d,f,p,m,h,g,b,v,y,w,E=n(16072),N=n.n(E),x=n(60428);const C=N().forwardRef((function({children:e,size:t=16,...n},o){return N().createElement(x.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=N().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)})),T=N().forwardRef((function({children:e,size:t=16,...n},r){return N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=N().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),a||(a=N().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),e)})),_=N().forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=N().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),l||(l=N().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=N().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),c||(c=N().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=N().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),d||(d=N().createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),e):N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=N().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),p||(p=N().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)})),R=N().forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},m||(m=N().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),e):16===t||"16"===t||"16px"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},h||(h=N().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=N().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)})),$=N().forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},b||(b=N().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),e):16===t||"16"===t||"16px"===t?N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},v||(v=N().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},y||(y=N().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)})),S=N().forwardRef((function({children:e,size:t=16,...n},r){return N().createElement(x.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},w||(w=N().createElement("path",{d:"M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),e)}))},59324:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,BE:()=>s});var r=n(16072),o=n(19888),a=n(14993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),l={dedupe:!0},s=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),c=(0,a.qm)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=a.bZ.get(s),[N,x]=(0,a.lK)(e),C=(0,r.useRef)(!1),T=(0,r.useRef)(!1),_=(0,r.useRef)(N),R=(0,r.useRef)(t),$=(0,r.useRef)(n),S=()=>$.current,A=()=>S().isVisible()&&S().isOnline(),[O,L,k,M]=(0,a.r9)(s,N),B=(0,r.useRef)({}).current,I=(0,a.b0)(d)?n.fallback[N]:d,D=(e,t)=>{for(const n in B){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)((()=>{const e=!!N&&!!t&&((0,a.b0)(f)?!S().isPaused()&&!u&&(!!(0,a.b0)(p)||p):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),o=M(),i=n(r),l=r===o?i:n(o);let s=i;return[()=>{const e=n(O());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]}),[s,N]),z=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>k(N,((t,n)=>{D(n,t)||e()}))),[s,N]),P[0],P[1]),V=!C.current,H=v[N]&&v[N].length>0,F=z.data,j=(0,a.b0)(F)?I:F,q=z.error,U=(0,r.useRef)(j),W=b?(0,a.b0)(F)?U.current:F:j,Z=!(H&&!(0,a.b0)(q))&&(V&&!(0,a.b0)(f)?f:!S().isPaused()&&(u?!(0,a.b0)(j)&&p:(0,a.b0)(j)||p)),G=!!(N&&t&&V&&Z),K=(0,a.b0)(z.isValidating)?G:z.isValidating,Y=(0,a.b0)(z.isLoading)?G:z.isLoading,X=(0,r.useCallback)((async e=>{const t=R.current;if(!N||!t||T.current||S().isPaused())return!1;let r,o,i=!0;const l=e||{},s=!w[N]||!l.dedupe,u=()=>a.dO?!T.current&&N===_.current&&C.current:N===_.current,d={isValidating:!1,isLoading:!1},f=()=>{L(d)},p=()=>{const e=w[N];e&&e[1]===o&&delete w[N]},m={isValidating:!0};(0,a.b0)(O().data)&&(m.isLoading=!0);try{if(s&&(L(m),n.loadingTimeout&&(0,a.b0)(O().data)&&setTimeout((()=>{i&&u()&&S().onLoadingSlow(N,n)}),n.loadingTimeout),w[N]=[t(x),(0,a.lg)()]),[r,o]=w[N],r=await r,s&&setTimeout(p,n.dedupingInterval),!w[N]||w[N][1]!==o)return s&&u()&&S().onDiscarded(N),!1;d.error=a.ZH;const e=y[N];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&S().onDiscarded(N),!1;const l=O().data;d.data=c(l,r)?l:r,s&&u()&&S().onSuccess(r,N,n)}catch(e){p();const t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,N,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(S().revalidateOnFocus&&S().revalidateOnReconnect&&!A()||t.onErrorRetry(e,N,t,(e=>{const t=v[N];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0}),[N,s]),J=(0,r.useCallback)(((...e)=>(0,a.mF)(s,_.current,...e)),[]);if((0,a.Es)((()=>{R.current=t,$.current=n,(0,a.b0)(F)||(U.current=F)})),(0,a.Es)((()=>{if(!N)return;const e=X.bind(a.ZH,l);let t=0;const n=(0,a.aw)(N,v,((n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();S().revalidateOnFocus&&n>t&&A()&&(t=n+S().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)S().revalidateOnReconnect&&A()&&e();else{if(n==a.bu.MUTATE_EVENT)return X();if(n==a.bu.ERROR_REVALIDATE_EVENT)return X(r)}}));return T.current=!1,_.current=N,C.current=!0,L({_k:x}),Z&&((0,a.b0)(j)||a.X3?e():(0,a.mf)(e)),()=>{T.current=!0,n()}}),[N]),(0,a.Es)((()=>{let e;function t(){const t=(0,a.Tn)(m)?m(O().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!h&&!S().isVisible()||!g&&!S().isOnline()?t():X(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,h,g,N]),(0,r.useDebugValue)(W),u&&(0,a.b0)(j)&&N){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");R.current=t,$.current=n,T.current=!1;const e=E[N];if(!(0,a.b0)(e)){const t=J(e);i(t)}if(!(0,a.b0)(q))throw q;{const e=X(l);(0,a.b0)(W)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:J,get data(){return B.data=!0,W},get error(){return B.error=!0,q},get isValidating(){return B.isValidating=!0,K},get isLoading(){return B.isLoading=!0,Y}}}))},60428:(e,t,n)=>{"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>m});var l=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(16072),p=n.n(f);const m=p().forwardRef((function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:f,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=i(e,l),d=u.tabindex,f=i(u,s),p=a(a(a({},c),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}({...u,tabindex:n}),h=m;return e&&(h.className=e),null!=f&&(h.tabIndex="number"==typeof f?f:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),p().createElement("svg",h,t)}));m.displayName="Icon",m.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},70159:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},72996:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},74848:(e,t,n)=>{"use strict";n(21020)},77659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},85072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=s}}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}}]);
@@ -0,0 +1,39 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*!
8
+ * tabbable 6.2.0
9
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
+ */
11
+
12
+ /**
13
+ * @license React
14
+ * react-jsx-runtime.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */
21
+
22
+ /**
23
+ * @license React
24
+ * use-sync-external-store-shim.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */
31
+
32
+ /** @license React v16.13.1
33
+ * react-is.production.min.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */