@openmrs/esm-laboratory-app
Version:
An O3 frontend module for managing laboratory requests and queues
1 lines • 283 kB
JavaScript
(globalThis.webpackChunk_openmrs_esm_laboratory_app=globalThis.webpackChunk_openmrs_esm_laboratory_app||[]).push([["3013"],{1154(e,t,n){"use strict";function r(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,l;r=t,l=n[t],(r=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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if(null==e)return{};var n,r,l=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)&&(l[n]=e[n])}return l}n.d(t,{A:()=>p});var o=["width","height","viewBox"],i=["tabindex"],s={focusable:"false",preserveAspectRatio:"xMidYMid meet"},c=n(5556),u=n.n(c),d=n(2153),f=n.n(d);let p=f().forwardRef(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:c="xMidYMid meet",...u},d){let{tabindex:p,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,c=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,o),d=u.tabindex,f=a(u,i),p=l(l(l({},s),f),{},{width:t,height:n,viewBox:c});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});return e&&(m.className=e),null!=p&&("number"==typeof p?m.tabIndex=p:m.tabIndex=Number(n)),d&&(m.ref=d),r&&(m.xmlns=r),c&&(m.preserveAspectRatio=c),f().createElement("svg",m,t)});p.displayName="Icon",p.propTypes={"aria-hidden":u().oneOfType([u().bool,u().oneOf(["true","false"])]),"aria-label":u().string,"aria-labelledby":u().string,children:u().node,className:u().string,height:u().oneOfType([u().number,u().string]),preserveAspectRatio:u().string,tabIndex:u().oneOfType([u().number,u().string]),viewBox:u().string,width:u().oneOfType([u().number,u().string]),xmlns:u().string}},4535(e,t,n){"use strict";n.d(t,{GK:()=>p,hz:()=>f});var r,l,a,o,i,s,c=n(2153),u=n.n(c),d=n(1154);let f=u().forwardRef(function({children:e,size:t=16,...n},a){return 16===t||"16"===t||"16px"===t?u().createElement(d.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=u().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):u().createElement(d.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},l||(l=u().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)}),p=u().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?u().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=u().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?u().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},o||(o=u().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?u().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},i||(i=u().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):u().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=u().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)})},1673(e,t,n){"use strict";n.d(t,{CH:()=>c});var r,l,a,o=n(2153),i=n.n(o),s=n(1154);let c=i().forwardRef(function({children:e,size:t=16,...n},o){return i().createElement(s.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=i().createElement("circle",{cx:"16",cy:"8",r:"2"})),l||(l=i().createElement("circle",{cx:"16",cy:"16",r:"2"})),a||(a=i().createElement("circle",{cx:"16",cy:"24",r:"2"})),e)})},771(e,t,n){"use strict";n.d(t,{$D:()=>g,d3:()=>h,x:()=>v});var r,l,a,o,i,s,c,u,d,f,p=n(2153),m=n.n(p),b=n(1154);let h=m().forwardRef(function({children:e,size:t=16,...n},l){return m().createElement(b.A,{width:t,height:t,ref:l,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)}),g=m().forwardRef(function({children:e,size:t=16,...n},r){return m().createElement(b.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},l||(l=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(b.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"})),o||(o=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(b.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},i||(i=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(b.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(b.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)})},3485(e,t,n){"use strict";let r,l,a,o;n.d(t,{msM:()=>iR,OOb:()=>of,nD3:()=>e5,V8d:()=>sI,BFY:()=>ai,vji:()=>aP,Uwq:()=>am,jeF:()=>iP,XSD:()=>aA,K0:()=>rx,AsP:()=>tM,lRv:()=>iO,K3K:()=>af,XIK:()=>l2,FAs:()=>s$,KXP:()=>lz,GGC:()=>ao,Wdr:()=>rO,aaP:()=>aR,r9c:()=>i2,Hjg:()=>aT,cwJ:()=>av,bCw:()=>sD,Um2:()=>i5,fs1:()=>sE,e1U:()=>aO,$nd:()=>rN,bQt:()=>od,dJ2:()=>sL,lVW:()=>iI,w6V:()=>aF,wbY:()=>sf,Y9Y:()=>sS,ozo:()=>sm,kZS:()=>iz,ryE:()=>iX,VbH:()=>ak,dKS:()=>iU,obU:()=>a8,KpK:()=>sh,cwr:()=>lP,tUM:()=>sd,Psq:()=>iZ,fZD:()=>ag,GRJ:()=>i3,vwO:()=>sw,wdv:()=>sO,zWQ:()=>iY,jlY:()=>rz,rQ0:()=>rA,T2N:()=>sg,nA6:()=>as,OuH:()=>rB,A0N:()=>aC,Cvq:()=>i4,ndF:()=>ay,f8J:()=>sz});var i,s,c,u,d,f,p,m,b,h,g,v,y,w,E,x,$,N,C,T,_,S,R,I,O,A,L,k,M,D,B,P,z,V,H,F,j,q,W,K,U,Z,G,Y,X,J,Q,ee,et,en,er,el,ea,eo,ei,es,ec,eu,ed,ef,ep,em,eb,eh,eg,ev,ey,ew,eE,ex,e$,eN,eC,eT,e_,eS,eR,eI,eO,eA,eL,ek,eM,eD,eB,eP,ez,eV={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?eV.enableCssCustomProperties=!0:eV.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?eV.enableCssGrid=!0:eV.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?eV.enableV11Release=!0:eV.enableV11Release=!1:eV.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?eV.enableExperimentalTileContrast=!0:eV.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_TILE_CONTRAST?eV.enableTileContrast=!0:eV.enableTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?eV.enableV12TileDefaultIcons=!0:eV.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?eV.enableV12TileRadioIcons=!0:eV.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?eV.enableV12Overflowmenu=!0:eV.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?eV.enableTreeviewControllable=!0:eV.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?eV.enableV12StructuredListVisibleIcons=!0:eV.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?eV.enableExperimentalFocusWrapWithoutSentinels=!0:eV.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS?eV.enableFocusWrapWithoutSentinels=!0:eV.enableFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?eV.enableDialogElement=!0:eV.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?eV.enableV12DynamicFloatingStyles=!0:eV.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?eV.enableV12ToggleReducedLabelSpacing=!0:eV.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?eV.enableEnhancedFileUploader=!0:eV.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?eV.enablePresence=!0:eV.enablePresence=!1}catch(e){eV.enableCssCustomProperties=!1,eV.enableCssGrid=!1,eV.enableV11Release=!0,eV.enableExperimentalTileContrast=!1,eV.enableTileContrast=!1,eV.enableV12TileDefaultIcons=!1,eV.enableV12TileRadioIcons=!1,eV.enableV12Overflowmenu=!1,eV.enableTreeviewControllable=!1,eV.enableV12StructuredListVisibleIcons=!1,eV.enableExperimentalFocusWrapWithoutSentinels=!1,eV.enableFocusWrapWithoutSentinels=!1,eV.enableDialogElement=!1,eV.enableV12DynamicFloatingStyles=!1,eV.enableV12ToggleReducedLabelSpacing=!1,eV.enableEnhancedFileUploader=!1,eV.enablePresence=!1}var eH=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:eV.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:eV.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:eV.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Deprecated, use enable-tile-contrast instead\n",enabled:eV.enableExperimentalTileContrast},{name:"enable-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:eV.enableTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:eV.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:eV.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:eV.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:eV.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:eV.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Deprecated, use enable-focus-wrap-without-sentinels instead\n",enabled:eV.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:eV.enableFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:eV.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:eV.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:eV.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:eV.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:eV.enablePresence}];function eF(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 ej(e,t){if(e){if("string"==typeof e)return eF(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)?eF(e,t):void 0}}for(var eq=(i=function e(t){var n=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},s=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw 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=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ej(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 TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw l}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r,l=(r=t.value,function(e){if(Array.isArray(e))return e}(r)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,l,a,o=[],i=!0,s=!1;try{l=(t=t.call(e)).next,!1;for(;!(i=(n=l.call(t)).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){s=!0,r=e}finally{try{if(!i&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return o}}(r)||ej(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=l[0],o=l[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],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,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 TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r.key),r)}}(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),i),eW=function(e){return new eq(e)}(),eK=0;eK<eH.length;eK++){var eU=eH[eK];eW.add(eU.name,eU.enabled)}function eZ(){return eW.enabled.apply(eW,arguments)}function eG(){return(eG=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}).apply(null,arguments)}!function(){eW.merge.apply(eW,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var eY=n(6942),eX=n.n(eY),eJ=n(2153),eQ=n.n(eJ);let e0=eQ().createContext("cds");function e1(){return eQ().useContext(e0)}var e2=n(5556),e3=n.n(e2);let e6=(0,eJ.createContext)({disabled:!1}),e4=({disabled:e,children:t})=>eQ().createElement(e6.Provider,{value:{disabled:e}},t);function e5({align:e="end",children:t,className:n,disabled:r=!1,isFlush:l=!1,ordered:a=!1,size:o,...i}){let s=e1(),c=eX()(`${s}--accordion`,n,{[`${s}--accordion--${e}`]:e,[`${s}--accordion--${o}`]:o,[`${s}--layout--size-${o}`]:o,[`${s}--accordion--flush`]:l&&"start"!==e});return eQ().createElement(e4,{disabled:r},eQ().createElement(a?"ol":"ul",eG({className:c},i),t))}e5.propTypes={align:e3().oneOf(["start","end"]),children:e3().node,className:e3().string,disabled:e3().bool,isFlush:e3().bool,ordered:e3().bool,size:e3().oneOf(["sm","md","lg"])};var e8=n(1154);let e7=eQ().forwardRef(function({children:e,size:t=16,...n},r){return eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=eQ().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)}),e9=eQ().forwardRef(function({children:e,size:t=16,...n},r){return eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},d||(d=eQ().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"})),f||(f=eQ().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)}),te=eQ().forwardRef(function({children:e,size:t=16,...n},r){return 20===t||"20"===t||"20px"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},p||(p=eQ().createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),m||(m=eQ().createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),e):24===t||"24"===t||"24px"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},b||(b=eQ().createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),e):eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},h||(h=eQ().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),e)}),tt=eQ().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},g||(g=eQ().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"})),v||(v=eQ().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?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},y||(y=eQ().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"})),w||(w=eQ().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?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},E||(E=eQ().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"})),x||(x=eQ().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):eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},$||($=eQ().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"})),N||(N=eQ().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)}),tn=eQ().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},C||(C=eQ().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?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},T||(T=eQ().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},_||(_=eQ().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),tr=eQ().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},S||(S=eQ().createElement("path",{d:"M0 5L5 0 5.7 0.7 1.4 5 5.7 9.3 5 10z"})),e):16===t||"16"===t||"16px"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},R||(R=eQ().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),e):eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},I||(I=eQ().createElement("path",{d:"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"})),e)}),tl=eQ().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},O||(O=eQ().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?eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},A||(A=eQ().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},L||(L=eQ().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)}),ta=eQ().forwardRef(function({children:e,size:t=16,...n},r){return eQ().createElement(e8.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},k||(k=eQ().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)}),to=(0,eJ.createContext)({direction:"auto",getTextDirection:{current:void 0}}),ti=eQ().forwardRef(({as:e,children:t,dir:n="auto",...r},l)=>{let a=(0,eJ.useContext)(to),o={},i={...a};if(a){let{direction:e,getTextDirection:r}=a;if(r&&r.current){let n=ts(t),l=r.current(n);e!==l?(o.dir=l,i.direction=l):"auto"===e&&(o.dir=l)}else e!==n?(o.dir=n,i.direction=n):"auto"===e&&(o.dir=n)}else o.dir=n,i.direction=n;return eQ().createElement(to.Provider,{value:i},eQ().createElement(e??"span",eG({ref:l},r,o),t))});ti.propTypes={as:e3().oneOfType([e3().func,e3().string,e3().elementType]),children:e3().node.isRequired,dir:e3().oneOf(["ltr","rtl","auto"])};let ts=e=>{if("string"==typeof e)return e;let t=eJ.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return t?.length===1?t[0]:t},tc={key:"Tab",which:9,keyCode:9,code:"Tab"},tu={key:"Enter",which:13,keyCode:13,code:"Enter"},td={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},tf={key:" ",which:32,keyCode:32,code:"Space"},tp={key:"End",which:35,keyCode:35,code:"Numpad1"},tm={key:"Home",which:36,keyCode:36,code:"Numpad7"},tb={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},th={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},tg={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},tv={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},ty={key:"Delete",which:8,keyCode:8,code:"ArrowDecimal"},tw=(e,t)=>{for(let n=0;n<t.length;n++)if(tE(e,t[n]))return!0;return!1},tE=(e,{key:t,which:n,keyCode:r,code:l})=>"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===l,tx=()=>{let e=0;return()=>++e},t$=!!("u">typeof window&&window.document&&window.document.createElement),tN=eQ().createContext(null);function tC(){return eQ().useContext(tN)}let tT={...eQ()},t_=tx(),tS=t$?eJ.useLayoutEffect:eJ.useEffect,tR=!1,tI=tT.useId?function(e="id"){let t=tC();return`${t?`${t}-`:""}${e}-${tT.useId()}`}:function(e="id"){let t=tC(),[n,r]=(0,eJ.useState)(()=>tR?`${t?`${t}-`:""}${e}-${t_()}`:null);return tS(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${t_()}`)},[t_]),(0,eJ.useEffect)(()=>{!1===tR&&(tR=!0)},[]),n};function tO(e){let t=tI();return e??t}let tA=new Map,tL=(e,t)=>(t,n,r,...l)=>{if(void 0===t[n])return;tA.has(r)||tA.set(r,new Set);let a=tA.get(r);return a&&!a.has(n)&&a.add(n),e(t,n,r,...l)},tk=e=>eQ().createElement("button",eG({type:"button"},e));function tM({children:e,className:t="",open:n=!1,onHeadingClick:r,renderExpando:l=tk,renderToggle:a,title:o="title",disabled:i,handleAnimationEnd:s,"aria-label":c,...u}){let[d,f]=(0,eJ.useState)(n),[p,m]=(0,eJ.useState)(n),b=(0,eJ.useContext)(e6),h="boolean"==typeof i?i:b.disabled,g=tI("accordion-item"),v=e1(),y=eX()({[`${v}--accordion__item`]:!0,[`${v}--accordion__item--active`]:d&&!h,[`${v}--accordion__item--disabled`]:h,[t]:!!t}),w=eQ().useCallback(e=>{e&&d&&(e.style.maxBlockSize="")},[d]);return n!==p&&(f(n),m(n)),eQ().createElement("li",eG({className:y},u),eQ().createElement(a||l,{disabled:h,"aria-controls":g,"aria-expanded":d,"aria-label":c,className:`${v}--accordion__heading`,onClick:function(e){let t=!d;f(t),r&&r({isOpen:t,event:e})},onKeyDown:function(e){d&&tE(e,td)&&f(!1)},type:"button"},eQ().createElement(tl,{className:`${v}--accordion__arrow`}),eQ().createElement(ti,{as:"div",className:`${v}--accordion__title`},o)),eQ().createElement("div",{ref:w,className:`${v}--accordion__wrapper`,onTransitionEnd:function(e){s&&s(e)}},eQ().createElement("div",{id:g,className:`${v}--accordion__content`},e)))}tM.propTypes={children:e3().node,className:e3().string,disabled:e3().bool,"aria-label":e3().string,onClick:e3().func,onHeadingClick:e3().func,open:e3().bool,renderExpando:tL(e3().func,"The `renderExpando` prop has been deprecated and will be removed in the next major release of Carbon. Use the `renderToggle` prop instead."),renderToggle:e3().func,title:e3().node};let tD={},tB=(e,t,n)=>(r,l,a,...o)=>{if(void 0===r[l])return null;if(!tD[a]||!tD[a][l]){tD[a]={...tD[a],[l]:!0};let e=r[l];n&&n(e),t&&!t.includes(e)&&(n||t.join(", "))}return e(r,l,a,...o)},tP="u">typeof window?eJ.useLayoutEffect:eJ.useEffect,tz=e=>{let t=(0,eJ.useMemo)(()=>e,e);return(0,eJ.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},[t])},tV=(e,t,n)=>{let r=(0,eJ.useRef)(null);(0,eJ.useEffect)(()=>{r.current=n},[n]),(0,eJ.useEffect)(()=>{let n="current"in e?e.current:e;if(!n)return;let l=e=>{r.current&&r.current(e)};return n.addEventListener(t,l),()=>{n.removeEventListener(t,l)}},[e,t])},tH=(e,t)=>{let n=(0,eJ.useRef)(null);(0,eJ.useEffect)(()=>{n.current=t},[t]),(0,eJ.useEffect)(()=>{let t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},tF={"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"},tj=e=>tF[e]??e;var tq="u">typeof document?eJ.useLayoutEffect:function(){};let tW={...eJ}.useInsertionEffect||(e=>e());function tK(){return"u">typeof window}function tU(e){return tY(e)?(e.nodeName||"").toLowerCase():"#document"}function tZ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tG(e){var t;return null==(t=(tY(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tY(e){return!!tK()&&(e instanceof Node||e instanceof tZ(e).Node)}function tX(e){return!!tK()&&(e instanceof Element||e instanceof tZ(e).Element)}function tJ(e){return!!tK()&&(e instanceof HTMLElement||e instanceof tZ(e).HTMLElement)}function tQ(e){return!(!tK()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tZ(e).ShadowRoot)}n(4848);let t0=new Set(["inline","contents"]);function t1(e){let{overflow:t,overflowX:n,overflowY:r,display:l}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!t0.has(l)}let t2=new Set(["table","td","th"]),t3=[":popover-open",":modal"];function t6(e){return t3.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let t4=["transform","translate","scale","rotate","perspective"],t5=["transform","translate","scale","rotate","perspective","filter"],t8=["paint","layout","strict","content"];function t7(e){let t=t9(),n=tX(e)?nn(e):e;return t4.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||t5.some(e=>(n.willChange||"").includes(e))||t8.some(e=>(n.contain||"").includes(e))}function t9(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ne=new Set(["html","body","#document"]);function nt(e){return ne.has(tU(e))}function nn(e){return tZ(e).getComputedStyle(e)}function nr(e){return tX(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nl(e){if("html"===tU(e))return e;let t=e.assignedSlot||e.parentNode||tQ(e)&&e.host||tG(e);return tQ(t)?t.host:t}function na(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let l=function e(t){let n=nl(t);return nt(n)?t.ownerDocument?t.ownerDocument.body:t.body:tJ(n)&&t1(n)?n:e(n)}(e),a=l===(null==(r=e.ownerDocument)?void 0:r.body),o=tZ(l);if(a){let e=no(o);return t.concat(o,o.visualViewport||[],t1(l)?l:[],e&&n?na(e):[])}return t.concat(l,na(l,[],n))}function no(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ni=n(961);let ns=["top","right","bottom","left"],nc=Math.min,nu=Math.max,nd=Math.round,nf=Math.floor,np=e=>({x:e,y:e}),nm={left:"right",right:"left",bottom:"top",top:"bottom"},nb={start:"end",end:"start"};function nh(e,t){return"function"==typeof e?e(t):e}function ng(e){return e.split("-")[0]}function nv(e){return e.split("-")[1]}function ny(e){return"y"===e?"height":"width"}let nw=new Set(["top","bottom"]);function nE(e){return nw.has(ng(e))?"y":"x"}function nx(e){return"x"===nE(e)?"y":"x"}function n$(e){return e.replace(/start|end/g,e=>nb[e])}let nN=["left","right"],nC=["right","left"],nT=["top","bottom"],n_=["bottom","top"];function nS(e){return e.replace(/left|right|bottom|top/g,e=>nm[e])}function nR(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function nI(e){let{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function nO(e,t,n){let r,{reference:l,floating:a}=e,o=nE(t),i=nx(t),s=ny(i),c=ng(t),u="y"===o,d=l.x+l.width/2-a.width/2,f=l.y+l.height/2-a.height/2,p=l[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:l.y-a.height};break;case"bottom":r={x:d,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:f};break;case"left":r={x:l.x-a.width,y:f};break;default:r={x:l.x,y:l.y}}switch(nv(t)){case"start":r[i]-=p*(n&&u?-1:1);break;case"end":r[i]+=p*(n&&u?-1:1)}return r}let nA=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),s=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:l}),{x:u,y:d}=nO(c,r,s),f=r,p={},m=0;for(let n=0;n<i.length;n++){let{name:a,fn:b}=i[n],{x:h,y:g,data:v,reset:y}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:l,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=g?g: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 o.getElementRects({reference:e,floating:t,strategy:l}):y.rects),{x:u,y:d}=nO(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:l,middlewareData:p}};async function nL(e,t){var n;void 0===t&&(t={});let{x:r,y:l,platform:a,rects:o,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=nh(t,e),m=nR(p),b=i[f?"floating"===d?"reference":"floating":d],h=nI(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(b)))||n?b:b.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:r,y:l,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==a.getOffsetParent?void 0:a.getOffsetParent(i.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=nI(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:v,strategy:s}):g);return{top:(h.top-w.top+m.top)/y.y,bottom:(w.bottom-h.bottom+m.bottom)/y.y,left:(h.left-w.left+m.left)/y.x,right:(w.right-h.right+m.right)/y.x}}function nk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nM(e){return ns.some(t=>e[t]>=0)}let nD=new Set(["left","top"]);async function nB(e,t){let{placement:n,platform:r,elements:l}=e,a=await (null==r.isRTL?void 0:r.isRTL(l.floating)),o=ng(n),i=nv(n),s="y"===nE(n),c=nD.has(o)?-1:1,u=a&&s?-1:1,d=nh(t,e),{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 i&&"number"==typeof m&&(p="end"===i?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function nP(e){let t=nn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,l=tJ(e),a=l?e.offsetWidth:n,o=l?e.offsetHeight:r,i=nd(n)!==a||nd(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function nz(e){return tX(e)?e:e.contextElement}function nV(e){let t=nz(e);if(!tJ(t))return np(1);let n=t.getBoundingClientRect(),{width:r,height:l,$:a}=nP(t),o=(a?nd(n.width):n.width)/r,i=(a?nd(n.height):n.height)/l;return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}let nH=np(0);function nF(e){let t=tZ(e);return t9()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nH}function nj(e,t,n,r){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=nz(e),i=np(1);t&&(r?tX(r)&&(i=nV(r)):i=nV(e));let s=(void 0===(l=n)&&(l=!1),r&&(!l||r===tZ(o))&&l)?nF(o):np(0),c=(a.left+s.x)/i.x,u=(a.top+s.y)/i.y,d=a.width/i.x,f=a.height/i.y;if(o){let e=tZ(o),t=r&&tX(r)?tZ(r):r,n=e,l=no(n);for(;l&&r&&t!==n;){let e=nV(l),t=l.getBoundingClientRect(),r=nn(l),a=t.left+(l.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(l.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=a,u+=o,l=no(n=tZ(l))}}return nI({width:d,height:f,x:c,y:u})}function nq(e,t){let n=nr(e).scrollLeft;return t?t.left+n:nj(tG(e)).left+n}function nW(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-nq(e,n),y:n.top+t.scrollTop}}let nK=new Set(["absolute","fixed"]);function nU(e,t,n){var r;let l;if("viewport"===t)l=function(e,t){let n=tZ(e),r=tG(e),l=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,s=0;if(l){a=l.width,o=l.height;let e=t9();(!e||e&&"fixed"===t)&&(i=l.offsetLeft,s=l.offsetTop)}let c=nq(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),l="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-l);o<=25&&(a-=o)}else c<=25&&(a+=c);return{width:a,height:o,x:i,y:s}}(e,n);else if("document"===t){let t,n,a,o,i,s,c;r=tG(e),t=tG(r),n=nr(r),a=r.ownerDocument.body,o=nu(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=nu(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-n.scrollLeft+nq(r),c=-n.scrollTop,"rtl"===nn(a).direction&&(s+=nu(t.clientWidth,a.clientWidth)-o),l={width:o,height:i,x:s,y:c}}else if(tX(t)){let e,r,a,o,i,s;r=(e=nj(t,!0,"fixed"===n)).top+t.clientTop,a=e.left+t.clientLeft,o=tJ(t)?nV(t):np(1),i=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:i,height:s,x:a*o.x,y:r*o.y}}else{let n=nF(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return nI(l)}function nZ(e){return"static"===nn(e).position}function nG(e,t){if(!tJ(e)||"fixed"===nn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return tG(e)===n&&(n=n.ownerDocument.body),n}function nY(e,t){var n;let r=tZ(e);if(t6(e))return r;if(!tJ(e)){let t=nl(e);for(;t&&!nt(t);){if(tX(t)&&!nZ(t))return t;t=nl(t)}return r}let l=nG(e,t);for(;l&&(n=l,t2.has(tU(n)))&&nZ(l);)l=nG(l,t);return l&&nt(l)&&nZ(l)&&!t7(l)?r:l||function(e){let t=nl(e);for(;tJ(t)&&!nt(t);){if(t7(t))return t;if(t6(t))break;t=nl(t)}return null}(e)||r}let nX=async function(e){let t=this.getOffsetParent||nY,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=tJ(t),l=tG(t),a="fixed"===n,o=nj(e,!0,a,t),i={scrollLeft:0,scrollTop:0},s=np(0);if(r||!r&&!a)if(("body"!==tU(t)||t1(l))&&(i=nr(t)),r){let e=nj(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else l&&(s.x=nq(l));a&&!r&&l&&(s.x=nq(l));let c=!l||r||a?np(0):nW(l,i);return{x:o.left+i.scrollLeft-s.x-c.x,y:o.top+i.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},nJ={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e,a="fixed"===l,o=tG(r),i=!!t&&t6(t.floating);if(r===o||i&&a)return n;let s={scrollLeft:0,scrollTop:0},c=np(1),u=np(0),d=tJ(r);if((d||!d&&!a)&&(("body"!==tU(r)||t1(o))&&(s=nr(r)),tJ(r))){let e=nj(r);c=nV(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||d||a?np(0):nW(o,s);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:tG,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?t6(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=na(e,[],!1).filter(e=>tX(e)&&"body"!==tU(e)),l=null,a="fixed"===nn(e).position,o=a?nl(e):e;for(;tX(o)&&!nt(o);){let t=nn(o),n=t7(o);n||"fixed"!==t.position||(l=null),(a?!n&&!l:!n&&"static"===t.position&&!!l&&nK.has(l.position)||t1(o)&&!n&&function e(t,n){let r=nl(t);return!(r===n||!tX(r)||nt(r))&&("fixed"===nn(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):l=t,o=nl(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],i=a.reduce((e,n)=>{let r=nU(t,n,l);return e.top=nu(r.top,e.top),e.right=nc(r.right,e.right),e.bottom=nc(r.bottom,e.bottom),e.left=nu(r.left,e.left),e},nU(t,o,l));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:nY,getElementRects:nX,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=nP(e);return{width:t,height:n}},getScale:nV,isElement:tX,isRTL:function(e){return"rtl"===nn(e).direction}};function nQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function n0(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=nz(e),d=a||o?[...u?na(u):[],...na(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,r=null,l=tG(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(i||t(),!f||!p)return;let m={rootMargin:-nf(d)+"px "+-nf(l.clientWidth-(u+f))+"px "+-nf(l.clientHeight-(d+p))+"px "+-nf(u)+"px",threshold:nu(0,nc(1,s))||1},b=!0;function h(t){let r=t[0].intersectionRatio;if(r!==s){if(!b)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||nQ(c,e.getBoundingClientRect())||o(),b=!1}try{r=new IntersectionObserver(h,{...m,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),a}(u,n):null,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let b=c?nj(e):null;return c&&function t(){let r=nj(e);b&&!nQ(b,r)&&n(),b=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(l)}}let n1=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:o,elements:i,middlewareData:s}=t,{element:c,padding:u=0}=nh(e,t)||{};if(null==c)return{};let d=nR(u),f={x:n,y:r},p=nx(l),m=ny(p),b=await o.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",v=a.reference[m]+a.reference[p]-f[p]-a.floating[m],y=f[p]-a.reference[p],w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),E=w?w[g]:0;E&&await (null==o.isElement?void 0:o.isElement(w))||(E=i.floating[g]||a.floating[m]);let x=E/2-b[m]/2-1,$=nc(d[h?"top":"left"],x),N=nc(d[h?"bottom":"right"],x),C=E-b[m]-N,T=E/2-b[m]/2+(v/2-y/2),_=nu($,nc(T,C)),S=!s.arrow&&null!=nv(l)&&T!==_&&a.reference[m]/2-(T<$?$:N)-b[m]/2<0,R=S?T<$?T-$:T-C:0;return{[p]:f[p]+R,data:{[p]:_,centerOffset:T-_-R,...S&&{alignmentOffset:R}},reset:S}}});var n2="u">typeof document?eJ.useLayoutEffect:function(){};function n3(e,t){let n,r,l;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!n3(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!n3(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function n6(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n4(e,t){let n=n6(e);return Math.round(t*n)/n}function n5(e){let t=eJ.useRef(e);return n2(()=>{t.current=e}),t}let n8=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,l,a,o,i;let s,c,u,{placement:d,middlewareData:f,rects:p,initialPlacement:m,platform:b,elements:h}=e,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:x=!0,...$}=nh(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let N=ng(d),C=nE(m),T=ng(m)===m,_=await (null==b.isRTL?void 0:b.isRTL(h.floating)),S=y||(T||!x?[nS(m)]:(s=nS(m),[n$(m),s,n$(s)])),R="none"!==E;!y&&R&&S.push(...(c=nv(m),u=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?nC:nN;return t?nN:nC;case"left":case"right":return t?nT:n_;default:return[]}}(ng(m),"start"===E,_),c&&(u=u.map(e=>e+"-"+c),x&&(u=u.concat(u.map(n$)))),u));let I=[m,...S],O=await nL(e,$),A=[],L=(null==(r=f.flip)?void 0:r.overflows)||[];if(g&&A.push(O[N]),v){let e,t,n,r,l=(void 0===(i=_)&&(i=!1),e=nv(d),n=ny(t=nx(d)),r="x"===t?e===(i?"end":"start")?"right":"left":"start"===e?"bottom":"top",p.reference[n]>p.floating[n]&&(r=nS(r)),[r,nS(r)]);A.push(O[l[0]],O[l[1]])}if(L=[...L,{placement:d,overflows:A}],!A.every(e=>e<=0)){let e=((null==(l=f.flip)?void 0:l.index)||0)+1,t=I[e];if(t&&("alignment"!==v||C===nE(t)||L.every(e=>nE(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(o=L.filter(e=>{if(R){let t=nE(e.placement);return t===C||"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:o[0];e&&(n=e);break}case"initialPlacement":n=m}if(d!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},n7=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...l}=nh(n,e);switch(r){case"referenceHidden":{let n=nk(await nL(e,{...l,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:nM(n)}}}case"escaped":{let n=nk(await nL(e,{...l,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:nM(n)}}}default:return{}}}}),options:[e,t]}},n9={...eJ},re=!1,rt=0,rn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+rt++,rr=n9.useId||function(){let[e,t]=eJ.useState(()=>re?rn():void 0);return tq(()=>{null==e&&t(rn())},[]),eJ.useEffect(()=>{re=!0},[]),e},rl=eJ.createContext(null),ra=eJ.createContext(null);function ro(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t,n;let r,{open:l=!1,onOpenChange:a,elements:o}=e,i=rr(),s=eJ.useRef({}),[c]=eJ.useState(()=>{let e;return e=new Map,{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)}}}),u=null!=((null==(t=eJ.useContext(rl))?void 0:t.id)||null),[d,f]=eJ.useState(o.reference),p=(n=(e,t,n)=>{s.current.openEvent=e?t:void 0,c.emit("openchange",{open:e,event:t,reason:n,nested:u}),null==a||a(e,t,n)},r=eJ.useRef(()=>{}),tW(()=>{r.current=n}),eJ.useCallback(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current(...t)},[])),m=eJ.useMemo(()=>({setPositionReference:f}),[]),b=eJ.useMemo(()=>({reference:d||o.reference||null,floating:o.floating||null,domReference:o.reference}),[d,o.reference,o.floating]);return eJ.useMemo(()=>({dataRef:s,open:l,onOpenChange:p,elements:b,events:c,floatingId:i,refs:m}),[l,p,b,c,i,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,l=r.elements,[a,o]=eJ.useState(null),[i,s]=eJ.useState(null),c=(null==l?void 0:l.domReference)||a,u=eJ.useRef(null),d=eJ.useContext(ra);tq(()=>{c&&(u.current=c)},[c]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:s,open:c}=e,[u,d]=eJ.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eJ.useState(r);n3(f,r)||p(r);let[m,b]=eJ.useState(null),[h,g]=eJ.useState(null),v=eJ.useCallback(e=>{e!==x.current&&(x.current=e,b(e))},[]),y=eJ.useCallback(e=>{e!==$.current&&($.current=e,g(e))},[]),w=a||m,E=o||h,x=eJ.useRef(null),$=eJ.useRef(null),N=eJ.useRef(u),C=null