@iota/apps-ui-kit 0.9.3 → 0.9.5

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 (39) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/index.d.ts +30 -21
  3. package/dist/index.es.js +2173 -2066
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/index.umd.js +12 -12
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/style.css +1 -1
  8. package/package.json +2 -2
  9. package/src/lib/components/atoms/badge/Badge.tsx +13 -6
  10. package/src/lib/components/atoms/badge/badge.classes.ts +0 -2
  11. package/src/lib/components/atoms/badge/badge.enums.ts +5 -0
  12. package/src/lib/components/atoms/button/Button.tsx +4 -2
  13. package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +3 -1
  14. package/src/lib/components/atoms/checkbox/Checkbox.tsx +3 -1
  15. package/src/lib/components/atoms/header/Header.tsx +2 -0
  16. package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +1 -1
  17. package/src/lib/components/atoms/list-item/ListItem.tsx +3 -1
  18. package/src/lib/components/atoms/radio-button/RadioButton.tsx +3 -1
  19. package/src/lib/components/atoms/snackbar/Snackbar.tsx +4 -4
  20. package/src/lib/components/atoms/toggle/Toggle.tsx +4 -1
  21. package/src/lib/components/molecules/account/Account.tsx +2 -2
  22. package/src/lib/components/molecules/address/Address.tsx +4 -2
  23. package/src/lib/components/molecules/card/Card.tsx +6 -2
  24. package/src/lib/components/molecules/chip/Chip.tsx +11 -5
  25. package/src/lib/components/molecules/display-stats/DisplayStats.tsx +1 -1
  26. package/src/lib/components/molecules/input/Input.tsx +2 -0
  27. package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +1 -1
  28. package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +3 -0
  29. package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +3 -0
  30. package/src/lib/components/molecules/search/Search.tsx +11 -1
  31. package/src/lib/components/molecules/select/Select.tsx +32 -24
  32. package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +12 -1
  33. package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +2 -1
  34. package/src/lib/components/organisms/accordion/Accordion.tsx +2 -0
  35. package/src/lib/components/organisms/dialog/Dialog.tsx +9 -2
  36. package/src/lib/components/organisms/navbar/Navbar.tsx +2 -0
  37. package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +1 -0
  38. package/src/lib/components/organisms/table/Table.tsx +4 -0
  39. package/src/lib/tailwind/base.presets.ts +42 -0
package/dist/index.umd.js CHANGED
@@ -1,16 +1,16 @@
1
- (function(b,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],a):(b=typeof globalThis<"u"?globalThis:b||self,a(b["@iota/apps-ui-kit"]={},b.jsxRuntime,b.React,b.ReactDOM))})(this,function(b,a,T,nr){"use strict";function zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=zr(T),Xr=zr(nr);var we=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e))(we||{}),Kr=(e=>(e.Light="light",e.Dark="dark",e.Names="names",e))(Kr||{});const ee=(e,t=16)=>`${e/t}rem`;function Zr(e){return Object.entries(e).reduce((r,[n,o])=>(r[n]=`${o}px`,r),{})}const Yr={"iota-primary":{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},"iota-secondary":{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},"iota-tertiary":{0:"#000000",10:"#071f22",20:"#18393b",30:"#185b60",40:"#317479",50:"#498c91",60:"#64a7ac",70:"#7fc2c7",80:"#9adde2",90:"#c2f1f4",100:"#ffffff"},"iota-error":{0:"#000000",10:"#330009",20:"#610012",30:"#b51431",40:"#ce2d4a",50:"#e64562",60:"#ff607d",70:"#ff889e",80:"#ffb0be",90:"#ffd9e0",100:"#ffffff"},"iota-neutral":{0:"#000000",4:"#0a0f17",6:"#0f141c",10:"#171d26",12:"#1c212b",20:"#253041",30:"#3c4656",40:"#545e6e",50:"#6e7787",60:"#8892a1",70:"#a8b2c0",80:"#cad4e2",90:"#dde4f0",92:"#e3eaf6",96:"#eff4fa",98:"#f8fafc",100:"#ffffff"},"iota-warning":{0:"#000000",10:"#2D1E00",20:"#422C00",30:"#674500",40:"#8C5D00",50:"#A47518",60:"#BE8F32",70:"#D9AA4D",80:"#F4C568",90:"#FFE3AB",100:"#FFFFFF"}},qr={"names-primary":{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},"names-secondary":{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},"names-tertiary":{0:"#000000",10:"#00231F",20:"#00453D",30:"#00685C",40:"#008C7C",50:"#00AF9B",60:"#00D7BE",70:"#17F3D9",80:"#54FFEB",90:"#A6FFF4",100:"#ffffff"},"names-error":{0:"#000000",10:"#3D001F",20:"#620432",30:"#A30251",40:"#C90E6A",50:"#DC2B82",60:"#E35A9E",70:"#EF84B9",80:"#FCADD4",90:"#FFD7EB",100:"#ffffff"},"names-neutral":{0:"#000000",4:"#0A0D23",6:"#0F1228",10:"#181B31",12:"#20233C",20:"#2B2E45",30:"#404359",40:"#585B71",50:"#71748B",60:"#8C8FA5",70:"#ACAFC5",80:"#CED1E7",90:"#DFE2F8",92:"#E5E8FE",96:"#F0F2FF",98:"#F8F9FF",100:"#ffffff"},"names-solid":{blue:"#3131FF",purple:"#A139FF",green:"#14F0D6",neutral:"#20233C"},"names-warning":{0:"#000000",10:"#2D1E00",20:"#422C00",30:"#674500",40:"#8C5D00",50:"#A47518",60:"#BE8F32",70:"#D9AA4D",80:"#F4C568",90:"#FFE3AB",100:"#FFFFFF"}},Qr={"shader-primary-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-inverted-dark":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7",100:"#002f6d"},"shader-neutral-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-primary-light":{0:"#0067ee00",8:"#0067ee14",12:"#0067ee1e",16:"#0067ee28",48:"#0067ee7a",72:"#0067eeb7",100:"#0067ee"},"shader-inverted-light":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-neutral-light":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7",100:"#002f6d"}},mo={none:ee(0),sm:ee(2),DEFAULT:ee(4),md:ee(6),lg:ee(8),xl:ee(12),"2xl":ee(16),"3xl":ee(24),full:ee(120)},bo={none:ee(0),xxxs:ee(2),xxs:ee(4),xs:ee(8),sm:ee(12),md:ee(16),lg:ee(24),xl:ee(32),"2xl":ee(48)},xo={0:"0",8:"0.08",12:"0.12",16:"0.16",40:"0.4",60:"0.6",80:"0.8",100:"1"},wo={...{"text-label-sm":["11px",{lineHeight:"16px",letterSpacing:"0.2px",fontWeight:500}],"text-label-md":["12px",{lineHeight:"16px",letterSpacing:"-0.1px",fontWeight:500}],"text-label-lg":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:500}]},...{"text-body-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-lg":["16px",{lineHeight:"24px",letterSpacing:"0.1px",fontWeight:400}]},...{"text-body-ds-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-ds-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-ds-lg":["16px",{lineHeight:"24px",letterSpacing:"0.2px",fontWeight:400}]},...{"text-title-sm":["14px",{lineHeight:"120%",letterSpacing:"-0.1px",fontWeight:500}],"text-title-md":["16px",{lineHeight:"120%",letterSpacing:"-0.15px",fontWeight:500}],"text-title-lg":["20px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-headline-sm":["24px",{lineHeight:"120%",fontWeight:"var(--headline-sm-font-weight)",letterSpacing:"-0.2px"}],"text-headline-md":["28px",{lineHeight:"120%",fontWeight:"var(--headline-md-font-weight)",letterSpacing:"-0.4px"}],"text-headline-lg":["32px",{lineHeight:"120%",fontWeight:"var(--headline-lg-font-weight)",letterSpacing:"-0.4px"}]},...{"text-display-sm":["36px",{lineHeight:"var(--display-sm-line-height)",fontWeight:"var(--display-sm-font-weight)"}],"text-display-md":["48px",{lineHeight:"var(--display-md-line-height)",fontWeight:"var(--display-md-font-weight)"}],"text-display-lg":["60px",{lineHeight:"var(--display-lg-line-height)",fontWeight:"var(--display-lg-font-weight)"}]}},yo=Object.entries(wo).reduce((e,[t,r])=>{const n=t.startsWith("text-")?t.replace("text-",""):t;return{...e,[n]:r}},{}),Jr={"xs--rs":["4px","8px"],"sm--rs":["8px","12px"],"md--rs":["16px","24px"]};function So(e,t){const r=[we.Sm,we.Md,we.Lg,we.Xl],n=Jr[e];let o=`${n[0]}`;for(let l=1;l<n.length;l++)if(n[l]){const i=t[r[l]];i&&(o=`clamp(${o}, (100vw - ${i}) * 99, ${n[l]})`)}return o}function Eo(e){return Object.keys(Jr).reduce((r,n)=>{const o=So(n,e);return{...r,[n]:o}},{})}const Co={inter:["Inter","sans-serif"],"alliance-no2":["AllianceNo2","sans-serif"],"roboto-flex":["Roboto Flex Variable","sans-serif"]},_o={"default-surface":"var(--default-surface)","on-default":"var(--on-default)","warning-surface":"var(--warning-surface)","on-warning":"var(--on-warning)","error-surface":"var(--error-surface)","on-error":"var(--on-error)","success-surface":"var(--success-surface)","on-success":"var(--on-success)"};var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr={},en={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o){return{handler:n,config:o}}t.withOptions=function(n,o=()=>({})){const l=function(i){return{__options:i,handler:n(i),config:o(i)}};return l.__isOptionsFunction=!0,l.__pluginFunction=n,l.__configFunction=o,l};const r=t})(en),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=r(en);function r(o){return o.__esModule?o:{default:o}}const n=t.default}(Rr);let or=Rr;var No=(or.__esModule?or:{default:or}).default;const tn=ar(No),To=tn(({addVariant:e})=>{e("firefox","@-moz-document url-prefix()")}),Ao=tn(({addVariant:e})=>{e("names","&:is(.names *)")}),Oo={"names-gradient-primary":"var(--names-gradient-primary)"},rn={content:["./src/**/*.{html,js,jsx,ts,tsx}"],darkMode:"selector",plugins:[To,Ao],theme:{extend:{fontSize:{...yo},borderRadius:{...mo},spacing:e=>{const t=e.theme("screens"),r=Eo(t);return{...bo,...r}},opacity:{...xo,30:"0.3"},colors:{...Yr,...qr,...Qr,..._o},fontFamily:Co,backgroundImage:{...Oo}}}};var Ot={exports:{}};Ot.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,l=16,i=9007199254740991,c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",w="[object Error]",S="[object Function]",y="[object GeneratorFunction]",m="[object Map]",E="[object Number]",C="[object Null]",I="[object Object]",_="[object Proxy]",L="[object RegExp]",B="[object Set]",P="[object String]",N="[object Undefined]",k="[object WeakMap]",M="[object ArrayBuffer]",q="[object DataView]",le="[object Float32Array]",Ce="[object Float64Array]",_e="[object Int8Array]",Ve="[object Int16Array]",Qe="[object Int32Array]",U="[object Uint8Array]",F="[object Uint8ClampedArray]",Y="[object Uint16Array]",re="[object Uint32Array]",ne=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,G={};G[le]=G[Ce]=G[_e]=G[Ve]=G[Qe]=G[U]=G[F]=G[Y]=G[re]=!0,G[c]=G[u]=G[M]=G[p]=G[q]=G[h]=G[w]=G[S]=G[m]=G[E]=G[I]=G[L]=G[B]=G[P]=G[k]=!1;var st=typeof At=="object"&&At&&At.Object===Object&&At,Je=typeof self=="object"&&self&&self.Object===Object&&self,Ne=st||Je||Function("return this")(),ct=t&&!t.nodeType&&t,De=ct&&!0&&e&&!e.nodeType&&e,Kt=De&&De.exports===ct,Et=Kt&&st.process,Zt=function(){try{var s=De&&De.require&&De.require("util").types;return s||Et&&Et.binding&&Et.binding("util")}catch{}}(),Yt=Zt&&Zt.isTypedArray;function Ir(s,d,v){switch(v.length){case 0:return s.call(d);case 1:return s.call(d,v[0]);case 2:return s.call(d,v[0],v[1]);case 3:return s.call(d,v[0],v[1],v[2])}return s.apply(d,v)}function Pr(s,d){for(var v=-1,O=Array(s);++v<s;)O[v]=d(v);return O}function qt(s){return function(d){return s(d)}}function kr(s,d){return s==null?void 0:s[d]}function A(s,d){return function(v){return s(d(v))}}var D=Array.prototype,V=Function.prototype,z=Object.prototype,ie=Ne["__core-js_shared__"],X=V.toString,W=z.hasOwnProperty,fe=function(){var s=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),be=z.toString,Te=X.call(Object),Ct=RegExp("^"+X.call(W).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qt=Kt?Ne.Buffer:void 0,eo=Ne.Symbol,to=Ne.Uint8Array;Qt&&Qt.allocUnsafe;var ro=A(Object.getPrototypeOf,Object),no=Object.create,Ed=z.propertyIsEnumerable,Cd=D.splice,Re=eo?eo.toStringTag:void 0,Jt=function(){try{var s=Fr(Object,"defineProperty");return s({},"",{}),s}catch{}}(),_d=Qt?Qt.isBuffer:void 0,ao=Math.max,Nd=Date.now,oo=Fr(Ne,"Map"),_t=Fr(Object,"create"),Td=function(){function s(){}return function(d){if(!tt(d))return{};if(no)return no(d);s.prototype=d;var v=new s;return s.prototype=void 0,v}}();function et(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var O=s[d];this.set(O[0],O[1])}}function Ad(){this.__data__=_t?_t(null):{},this.size=0}function Od(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function Dd(s){var d=this.__data__;if(_t){var v=d[s];return v===n?void 0:v}return W.call(d,s)?d[s]:void 0}function Ld(s){var d=this.__data__;return _t?d[s]!==void 0:W.call(d,s)}function Id(s,d){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=_t&&d===void 0?n:d,this}et.prototype.clear=Ad,et.prototype.delete=Od,et.prototype.get=Dd,et.prototype.has=Ld,et.prototype.set=Id;function Le(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var O=s[d];this.set(O[0],O[1])}}function Pd(){this.__data__=[],this.size=0}function kd(s){var d=this.__data__,v=Rt(d,s);if(v<0)return!1;var O=d.length-1;return v==O?d.pop():Cd.call(d,v,1),--this.size,!0}function Bd(s){var d=this.__data__,v=Rt(d,s);return v<0?void 0:d[v][1]}function Md(s){return Rt(this.__data__,s)>-1}function Fd(s,d){var v=this.__data__,O=Rt(v,s);return O<0?(++this.size,v.push([s,d])):v[O][1]=d,this}Le.prototype.clear=Pd,Le.prototype.delete=kd,Le.prototype.get=Bd,Le.prototype.has=Md,Le.prototype.set=Fd;function dt(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var O=s[d];this.set(O[0],O[1])}}function Vd(){this.size=0,this.__data__={hash:new et,map:new(oo||Le),string:new et}}function Ud(s){var d=tr(this,s).delete(s);return this.size-=d?1:0,d}function Wd(s){return tr(this,s).get(s)}function jd(s){return tr(this,s).has(s)}function Hd(s,d){var v=tr(this,s),O=v.size;return v.set(s,d),this.size+=v.size==O?0:1,this}dt.prototype.clear=Vd,dt.prototype.delete=Ud,dt.prototype.get=Wd,dt.prototype.has=jd,dt.prototype.set=Hd;function ut(s){var d=this.__data__=new Le(s);this.size=d.size}function Gd(){this.__data__=new Le,this.size=0}function $d(s){var d=this.__data__,v=d.delete(s);return this.size=d.size,v}function zd(s){return this.__data__.get(s)}function Xd(s){return this.__data__.has(s)}function Kd(s,d){var v=this.__data__;if(v instanceof Le){var O=v.__data__;if(!oo||O.length<r-1)return O.push([s,d]),this.size=++v.size,this;v=this.__data__=new dt(O)}return v.set(s,d),this.size=v.size,this}ut.prototype.clear=Gd,ut.prototype.delete=$d,ut.prototype.get=zd,ut.prototype.has=Xd,ut.prototype.set=Kd;function Zd(s,d){var v=Wr(s),O=!v&&Ur(s),H=!v&&!O&&uo(s),K=!v&&!O&&!H&&ho(s),Q=v||O||H||K,$=Q?Pr(s.length,String):[],J=$.length;for(var xe in s)Q&&(xe=="length"||H&&(xe=="offset"||xe=="parent")||K&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||so(xe,J))||$.push(xe);return $}function Br(s,d,v){(v!==void 0&&!rr(s[d],v)||v===void 0&&!(d in s))&&Mr(s,d,v)}function Yd(s,d,v){var O=s[d];(!(W.call(s,d)&&rr(O,v))||v===void 0&&!(d in s))&&Mr(s,d,v)}function Rt(s,d){for(var v=s.length;v--;)if(rr(s[v][0],d))return v;return-1}function Mr(s,d,v){d=="__proto__"&&Jt?Jt(s,d,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[d]=v}var qd=cu();function er(s){return s==null?s===void 0?N:C:Re&&Re in Object(s)?du(s):pu(s)}function lo(s){return Nt(s)&&er(s)==c}function Qd(s){if(!tt(s)||vu(s))return!1;var d=Hr(s)?Ct:R;return d.test(wu(s))}function Jd(s){return Nt(s)&&fo(s.length)&&!!G[er(s)]}function Rd(s){if(!tt(s))return gu(s);var d=co(s),v=[];for(var O in s)O=="constructor"&&(d||!W.call(s,O))||v.push(O);return v}function io(s,d,v,O,H){s!==d&&qd(d,function(K,Q){if(H||(H=new ut),tt(K))eu(s,d,Q,v,io,O,H);else{var $=O?O(Vr(s,Q),K,Q+"",s,d,H):void 0;$===void 0&&($=K),Br(s,Q,$)}},vo)}function eu(s,d,v,O,H,K,Q){var $=Vr(s,v),J=Vr(d,v),xe=Q.get(J);if(xe){Br(s,v,xe);return}var de=K?K($,J,v+"",s,d,Q):void 0,Tt=de===void 0;if(Tt){var Gr=Wr(J),$r=!Gr&&uo(J),po=!Gr&&!$r&&ho(J);de=J,Gr||$r||po?Wr($)?de=$:yu($)?de=lu($):$r?(Tt=!1,de=nu(J)):po?(Tt=!1,de=ou(J)):de=[]:Su(J)||Ur(J)?(de=$,Ur($)?de=Eu($):(!tt($)||Hr($))&&(de=uu(J))):Tt=!1}Tt&&(Q.set(J,de),H(de,J,O,K,Q),Q.delete(J)),Br(s,v,de)}function tu(s,d){return bu(mu(s,d,go),s+"")}var ru=Jt?function(s,d){return Jt(s,"toString",{configurable:!0,enumerable:!1,value:_u(d),writable:!0})}:go;function nu(s,d){return s.slice()}function au(s){var d=new s.constructor(s.byteLength);return new to(d).set(new to(s)),d}function ou(s,d){var v=au(s.buffer);return new s.constructor(v,s.byteOffset,s.length)}function lu(s,d){var v=-1,O=s.length;for(d||(d=Array(O));++v<O;)d[v]=s[v];return d}function iu(s,d,v,O){var H=!v;v||(v={});for(var K=-1,Q=d.length;++K<Q;){var $=d[K],J=void 0;J===void 0&&(J=s[$]),H?Mr(v,$,J):Yd(v,$,J)}return v}function su(s){return tu(function(d,v){var O=-1,H=v.length,K=H>1?v[H-1]:void 0,Q=H>2?v[2]:void 0;for(K=s.length>3&&typeof K=="function"?(H--,K):void 0,Q&&fu(v[0],v[1],Q)&&(K=H<3?void 0:K,H=1),d=Object(d);++O<H;){var $=v[O];$&&s(d,$,O,K)}return d})}function cu(s){return function(d,v,O){for(var H=-1,K=Object(d),Q=O(d),$=Q.length;$--;){var J=Q[++H];if(v(K[J],J,K)===!1)break}return d}}function tr(s,d){var v=s.__data__;return hu(d)?v[typeof d=="string"?"string":"hash"]:v.map}function Fr(s,d){var v=kr(s,d);return Qd(v)?v:void 0}function du(s){var d=W.call(s,Re),v=s[Re];try{s[Re]=void 0;var O=!0}catch{}var H=be.call(s);return O&&(d?s[Re]=v:delete s[Re]),H}function uu(s){return typeof s.constructor=="function"&&!co(s)?Td(ro(s)):{}}function so(s,d){var v=typeof s;return d=d??i,!!d&&(v=="number"||v!="symbol"&&ae.test(s))&&s>-1&&s%1==0&&s<d}function fu(s,d,v){if(!tt(v))return!1;var O=typeof d;return(O=="number"?jr(v)&&so(d,v.length):O=="string"&&d in v)?rr(v[d],s):!1}function hu(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function vu(s){return!!fe&&fe in s}function co(s){var d=s&&s.constructor,v=typeof d=="function"&&d.prototype||z;return s===v}function gu(s){var d=[];if(s!=null)for(var v in Object(s))d.push(v);return d}function pu(s){return be.call(s)}function mu(s,d,v){return d=ao(d===void 0?s.length-1:d,0),function(){for(var O=arguments,H=-1,K=ao(O.length-d,0),Q=Array(K);++H<K;)Q[H]=O[d+H];H=-1;for(var $=Array(d+1);++H<d;)$[H]=O[H];return $[d]=v(Q),Ir(s,this,$)}}function Vr(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var bu=xu(ru);function xu(s){var d=0,v=0;return function(){var O=Nd(),H=l-(O-v);if(v=O,H>0){if(++d>=o)return arguments[0]}else d=0;return s.apply(void 0,arguments)}}function wu(s){if(s!=null){try{return X.call(s)}catch{}try{return s+""}catch{}}return""}function rr(s,d){return s===d||s!==s&&d!==d}var Ur=lo(function(){return arguments}())?lo:function(s){return Nt(s)&&W.call(s,"callee")&&!Ed.call(s,"callee")},Wr=Array.isArray;function jr(s){return s!=null&&fo(s.length)&&!Hr(s)}function yu(s){return Nt(s)&&jr(s)}var uo=_d||Nu;function Hr(s){if(!tt(s))return!1;var d=er(s);return d==S||d==y||d==f||d==_}function fo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=i}function tt(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function Nt(s){return s!=null&&typeof s=="object"}function Su(s){if(!Nt(s)||er(s)!=I)return!1;var d=ro(s);if(d===null)return!0;var v=W.call(d,"constructor")&&d.constructor;return typeof v=="function"&&v instanceof v&&X.call(v)==Te}var ho=Yt?qt(Yt):Jd;function Eu(s){return iu(s,vo(s))}function vo(s){return jr(s)?Zd(s):Rd(s)}var Cu=su(function(s,d,v){io(s,d,v)});function _u(s){return function(){return s}}function go(s){return s}function Nu(){return!1}e.exports=Cu}(Ot,Ot.exports);var Do=Ot.exports;const nn=ar(Do),Lo={[we.Sm]:768,[we.Md]:1024,[we.Lg]:1400,[we.Xl]:1920},an=Zr(Lo),Io=nn({},rn,{theme:{screens:an,container:{center:!0,screens:an,padding:{DEFAULT:ee(20),md:ee(48),lg:ee(120),xl:ee(240)}}}}),Po=Zr({default:0}),ko=nn({},rn,{theme:{screens:Po},corePlugins:{container:!1}});var on={exports:{}};/*!
1
+ (function(x,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],a):(x=typeof globalThis<"u"?globalThis:x||self,a(x["@iota/apps-ui-kit"]={},x.jsxRuntime,x.React,x.ReactDOM))})(this,function(x,a,T,ar){"use strict";function Xr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=Xr(T),Kr=Xr(ar);var ye=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e))(ye||{}),Zr=(e=>(e.Light="light",e.Dark="dark",e.Names="names",e))(Zr||{});const ee=(e,t=16)=>`${e/t}rem`;function Yr(e){return Object.entries(e).reduce((r,[n,o])=>(r[n]=`${o}px`,r),{})}const qr={"iota-primary":{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},"iota-secondary":{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},"iota-tertiary":{0:"#000000",10:"#071f22",20:"#18393b",30:"#185b60",40:"#317479",50:"#498c91",60:"#64a7ac",70:"#7fc2c7",80:"#9adde2",90:"#c2f1f4",100:"#ffffff"},"iota-error":{0:"#000000",10:"#330009",20:"#610012",30:"#b51431",40:"#ce2d4a",50:"#e64562",60:"#ff607d",70:"#ff889e",80:"#ffb0be",90:"#ffd9e0",100:"#ffffff"},"iota-neutral":{0:"#000000",4:"#0a0f17",6:"#0f141c",10:"#171d26",12:"#1c212b",20:"#253041",30:"#3c4656",40:"#545e6e",50:"#6e7787",60:"#8892a1",70:"#a8b2c0",80:"#cad4e2",90:"#dde4f0",92:"#e3eaf6",96:"#eff4fa",98:"#f8fafc",100:"#ffffff"},"iota-warning":{0:"#000000",10:"#2D1E00",20:"#422C00",30:"#674500",40:"#8C5D00",50:"#A47518",60:"#BE8F32",70:"#D9AA4D",80:"#F4C568",90:"#FFE3AB",100:"#FFFFFF"}},Qr={"names-primary":{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},"names-secondary":{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},"names-tertiary":{0:"#000000",10:"#00231F",20:"#00453D",30:"#00685C",40:"#008C7C",50:"#00AF9B",60:"#00D7BE",70:"#17F3D9",80:"#54FFEB",90:"#A6FFF4",100:"#ffffff"},"names-error":{0:"#000000",10:"#3D001F",20:"#620432",30:"#A30251",40:"#C90E6A",50:"#DC2B82",60:"#E35A9E",70:"#EF84B9",80:"#FCADD4",90:"#FFD7EB",100:"#ffffff"},"names-neutral":{0:"#000000",4:"#0A0D23",6:"#0F1228",10:"#181B31",12:"#20233C",20:"#2B2E45",30:"#404359",40:"#585B71",50:"#71748B",60:"#8C8FA5",70:"#ACAFC5",80:"#CED1E7",90:"#DFE2F8",92:"#E5E8FE",96:"#F0F2FF",98:"#F8F9FF",100:"#ffffff"},"names-solid":{blue:"#3131FF",purple:"#A139FF",green:"#14F0D6",neutral:"#20233C"},"names-warning":{0:"#000000",10:"#2D1E00",20:"#422C00",30:"#674500",40:"#8C5D00",50:"#A47518",60:"#BE8F32",70:"#D9AA4D",80:"#F4C568",90:"#FFE3AB",100:"#FFFFFF"}},Jr={"shader-primary-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-inverted-dark":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7",100:"#002f6d"},"shader-neutral-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-primary-light":{0:"#0067ee00",8:"#0067ee14",12:"#0067ee1e",16:"#0067ee28",48:"#0067ee7a",72:"#0067eeb7",100:"#0067ee"},"shader-inverted-light":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7",100:"#bed8ff"},"shader-neutral-light":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7",100:"#002f6d"}},bo={none:ee(0),sm:ee(2),DEFAULT:ee(4),md:ee(6),lg:ee(8),xl:ee(12),"2xl":ee(16),"3xl":ee(24),full:ee(120)},xo={none:ee(0),xxxs:ee(2),xxs:ee(4),xs:ee(8),sm:ee(12),md:ee(16),lg:ee(24),xl:ee(32),"2xl":ee(48)},wo={0:"0",8:"0.08",12:"0.12",16:"0.16",40:"0.4",60:"0.6",80:"0.8",100:"1"},yo={...{"text-label-sm":["11px",{lineHeight:"16px",letterSpacing:"0.2px",fontWeight:500}],"text-label-md":["12px",{lineHeight:"16px",letterSpacing:"-0.1px",fontWeight:500}],"text-label-lg":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:500}]},...{"text-body-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-lg":["16px",{lineHeight:"24px",letterSpacing:"0.1px",fontWeight:400}]},...{"text-body-ds-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-ds-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-ds-lg":["16px",{lineHeight:"24px",letterSpacing:"0.2px",fontWeight:400}]},...{"text-title-sm":["14px",{lineHeight:"120%",letterSpacing:"-0.1px",fontWeight:500}],"text-title-md":["16px",{lineHeight:"120%",letterSpacing:"-0.15px",fontWeight:500}],"text-title-lg":["20px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-headline-sm":["24px",{lineHeight:"120%",fontWeight:"var(--headline-sm-font-weight)",letterSpacing:"-0.2px"}],"text-headline-md":["28px",{lineHeight:"120%",fontWeight:"var(--headline-md-font-weight)",letterSpacing:"-0.4px"}],"text-headline-lg":["32px",{lineHeight:"120%",fontWeight:"var(--headline-lg-font-weight)",letterSpacing:"-0.4px"}]},...{"text-display-sm":["36px",{lineHeight:"var(--display-sm-line-height)",fontWeight:"var(--display-sm-font-weight)"}],"text-display-md":["48px",{lineHeight:"var(--display-md-line-height)",fontWeight:"var(--display-md-font-weight)"}],"text-display-lg":["60px",{lineHeight:"var(--display-lg-line-height)",fontWeight:"var(--display-lg-font-weight)"}]}},So=Object.entries(yo).reduce((e,[t,r])=>{const n=t.startsWith("text-")?t.replace("text-",""):t;return{...e,[n]:r}},{}),Rr={"xs--rs":["4px","8px"],"sm--rs":["8px","12px"],"md--rs":["16px","24px"]};function Eo(e,t){const r=[ye.Sm,ye.Md,ye.Lg,ye.Xl],n=Rr[e];let o=`${n[0]}`;for(let l=1;l<n.length;l++)if(n[l]){const i=t[r[l]];i&&(o=`clamp(${o}, (100vw - ${i}) * 99, ${n[l]})`)}return o}function Co(e){return Object.keys(Rr).reduce((r,n)=>{const o=Eo(n,e);return{...r,[n]:o}},{})}const _o={inter:["Inter","sans-serif"],"alliance-no2":["AllianceNo2","sans-serif"],"roboto-flex":["Roboto Flex Variable","sans-serif"]},No={"default-surface":"var(--default-surface)","on-default":"var(--on-default)","warning-surface":"var(--warning-surface)","on-warning":"var(--on-warning)","error-surface":"var(--error-surface)","on-error":"var(--on-error)","success-surface":"var(--success-surface)","on-success":"var(--on-success)"};var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en={},tn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o){return{handler:n,config:o}}t.withOptions=function(n,o=()=>({})){const l=function(i){return{__options:i,handler:n(i),config:o(i)}};return l.__isOptionsFunction=!0,l.__pluginFunction=n,l.__configFunction=o,l};const r=t})(tn),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=r(tn);function r(o){return o.__esModule?o:{default:o}}const n=t.default}(en);let lr=en;var To=(lr.__esModule?lr:{default:lr}).default;const rn=or(To),Ao=rn(({addVariant:e})=>{e("firefox","@-moz-document url-prefix()")}),Oo=rn(({addVariant:e})=>{e("names","&:is(.names *)")}),Do={"names-gradient-primary":"var(--names-gradient-primary)"},nn={content:["./src/**/*.{html,js,jsx,ts,tsx}"],darkMode:"selector",plugins:[Ao,Oo],theme:{extend:{fontSize:{...So},borderRadius:{...bo},spacing:e=>{const t=e.theme("screens"),r=Co(t);return{...xo,...r}},opacity:{...wo,30:"0.3"},colors:{...qr,...Qr,...Jr,...No},fontFamily:_o,backgroundImage:{...Do},keyframes:{"dialog-overlay-show":{from:{opacity:"0"},to:{opacity:"1"}},"dialog-content-show":{from:{opacity:"0",transform:"translate(-50%, -50%) scale(0.92)"},to:{opacity:"1",transform:"translate(-50%, -50%) scale(1)"}},"dialog-panel-show":{from:{opacity:"0",transform:"translateX(12px)"},to:{opacity:"1",transform:"translateX(0)"}},"dropdown-show":{from:{opacity:"0",transform:"scale(0.94)"},to:{opacity:"1",transform:"scale(1)"}}},animation:{"dialog-overlay-show":"dialog-overlay-show 170ms ease-out","dialog-content-show":"dialog-content-show 170ms ease-out","dialog-panel-show":"dialog-panel-show 210ms ease-out","dropdown-show":"dropdown-show 125ms ease-out"}}}};var At={exports:{}};At.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,l=16,i=9007199254740991,c="[object Arguments]",f="[object Array]",u="[object AsyncFunction]",v="[object Boolean]",m="[object Date]",b="[object Error]",S="[object Function]",y="[object GeneratorFunction]",p="[object Map]",E="[object Number]",C="[object Null]",I="[object Object]",_="[object Proxy]",P="[object RegExp]",k="[object Set]",K="[object String]",N="[object Undefined]",A="[object WeakMap]",G="[object ArrayBuffer]",V="[object DataView]",re="[object Float32Array]",ce="[object Float64Array]",_e="[object Int8Array]",We="[object Int16Array]",Qe="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",ne="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,H={};H[re]=H[ce]=H[_e]=H[We]=H[Qe]=H[F]=H[B]=H[q]=H[ne]=!0,H[c]=H[f]=H[G]=H[v]=H[V]=H[m]=H[b]=H[S]=H[p]=H[E]=H[I]=H[P]=H[k]=H[K]=H[A]=!1;var st=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,Je=typeof self=="object"&&self&&self.Object===Object&&self,Ne=st||Je||Function("return this")(),ct=t&&!t.nodeType&&t,Le=ct&&!0&&e&&!e.nodeType&&e,Zt=Le&&Le.exports===ct,St=Zt&&st.process,Yt=function(){try{var s=Le&&Le.require&&Le.require("util").types;return s||St&&St.binding&&St.binding("util")}catch{}}(),qt=Yt&&Yt.isTypedArray;function Pr(s,d,h){switch(h.length){case 0:return s.call(d);case 1:return s.call(d,h[0]);case 2:return s.call(d,h[0],h[1]);case 3:return s.call(d,h[0],h[1],h[2])}return s.apply(d,h)}function kr(s,d){for(var h=-1,D=Array(s);++h<s;)D[h]=d(h);return D}function Qt(s){return function(d){return s(d)}}function Br(s,d){return s==null?void 0:s[d]}function O(s,d){return function(h){return s(d(h))}}var L=Array.prototype,M=Function.prototype,z=Object.prototype,ie=Ne["__core-js_shared__"],X=M.toString,U=z.hasOwnProperty,he=function(){var s=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),xe=z.toString,Te=X.call(Object),Et=RegExp("^"+X.call(U).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=Zt?Ne.Buffer:void 0,to=Ne.Symbol,ro=Ne.Uint8Array;Jt&&Jt.allocUnsafe;var no=O(Object.getPrototypeOf,Object),ao=Object.create,Ed=z.propertyIsEnumerable,Cd=L.splice,Re=to?to.toStringTag:void 0,Rt=function(){try{var s=Vr(Object,"defineProperty");return s({},"",{}),s}catch{}}(),_d=Jt?Jt.isBuffer:void 0,oo=Math.max,Nd=Date.now,lo=Vr(Ne,"Map"),Ct=Vr(Object,"create"),Td=function(){function s(){}return function(d){if(!tt(d))return{};if(ao)return ao(d);s.prototype=d;var h=new s;return s.prototype=void 0,h}}();function et(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Ad(){this.__data__=Ct?Ct(null):{},this.size=0}function Od(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function Dd(s){var d=this.__data__;if(Ct){var h=d[s];return h===n?void 0:h}return U.call(d,s)?d[s]:void 0}function Ld(s){var d=this.__data__;return Ct?d[s]!==void 0:U.call(d,s)}function Id(s,d){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=Ct&&d===void 0?n:d,this}et.prototype.clear=Ad,et.prototype.delete=Od,et.prototype.get=Dd,et.prototype.has=Ld,et.prototype.set=Id;function Ie(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Pd(){this.__data__=[],this.size=0}function kd(s){var d=this.__data__,h=er(d,s);if(h<0)return!1;var D=d.length-1;return h==D?d.pop():Cd.call(d,h,1),--this.size,!0}function Bd(s){var d=this.__data__,h=er(d,s);return h<0?void 0:d[h][1]}function Md(s){return er(this.__data__,s)>-1}function Fd(s,d){var h=this.__data__,D=er(h,s);return D<0?(++this.size,h.push([s,d])):h[D][1]=d,this}Ie.prototype.clear=Pd,Ie.prototype.delete=kd,Ie.prototype.get=Bd,Ie.prototype.has=Md,Ie.prototype.set=Fd;function dt(s){var d=-1,h=s==null?0:s.length;for(this.clear();++d<h;){var D=s[d];this.set(D[0],D[1])}}function Vd(){this.size=0,this.__data__={hash:new et,map:new(lo||Ie),string:new et}}function Ud(s){var d=rr(this,s).delete(s);return this.size-=d?1:0,d}function Wd(s){return rr(this,s).get(s)}function jd(s){return rr(this,s).has(s)}function Hd(s,d){var h=rr(this,s),D=h.size;return h.set(s,d),this.size+=h.size==D?0:1,this}dt.prototype.clear=Vd,dt.prototype.delete=Ud,dt.prototype.get=Wd,dt.prototype.has=jd,dt.prototype.set=Hd;function ut(s){var d=this.__data__=new Ie(s);this.size=d.size}function Gd(){this.__data__=new Ie,this.size=0}function $d(s){var d=this.__data__,h=d.delete(s);return this.size=d.size,h}function zd(s){return this.__data__.get(s)}function Xd(s){return this.__data__.has(s)}function Kd(s,d){var h=this.__data__;if(h instanceof Ie){var D=h.__data__;if(!lo||D.length<r-1)return D.push([s,d]),this.size=++h.size,this;h=this.__data__=new dt(D)}return h.set(s,d),this.size=h.size,this}ut.prototype.clear=Gd,ut.prototype.delete=$d,ut.prototype.get=zd,ut.prototype.has=Xd,ut.prototype.set=Kd;function Zd(s,d){var h=jr(s),D=!h&&Wr(s),j=!h&&!D&&fo(s),Z=!h&&!D&&!j&&go(s),Q=h||D||j||Z,$=Q?kr(s.length,String):[],J=$.length;for(var we in s)Q&&(we=="length"||j&&(we=="offset"||we=="parent")||Z&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||co(we,J))||$.push(we);return $}function Mr(s,d,h){(h!==void 0&&!nr(s[d],h)||h===void 0&&!(d in s))&&Fr(s,d,h)}function Yd(s,d,h){var D=s[d];(!(U.call(s,d)&&nr(D,h))||h===void 0&&!(d in s))&&Fr(s,d,h)}function er(s,d){for(var h=s.length;h--;)if(nr(s[h][0],d))return h;return-1}function Fr(s,d,h){d=="__proto__"&&Rt?Rt(s,d,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[d]=h}var qd=cu();function tr(s){return s==null?s===void 0?N:C:Re&&Re in Object(s)?du(s):pu(s)}function io(s){return _t(s)&&tr(s)==c}function Qd(s){if(!tt(s)||gu(s))return!1;var d=Gr(s)?Et:R;return d.test(wu(s))}function Jd(s){return _t(s)&&ho(s.length)&&!!H[tr(s)]}function Rd(s){if(!tt(s))return vu(s);var d=uo(s),h=[];for(var D in s)D=="constructor"&&(d||!U.call(s,D))||h.push(D);return h}function so(s,d,h,D,j){s!==d&&qd(d,function(Z,Q){if(j||(j=new ut),tt(Z))eu(s,d,Q,h,so,D,j);else{var $=D?D(Ur(s,Q),Z,Q+"",s,d,j):void 0;$===void 0&&($=Z),Mr(s,Q,$)}},vo)}function eu(s,d,h,D,j,Z,Q){var $=Ur(s,h),J=Ur(d,h),we=Q.get(J);if(we){Mr(s,h,we);return}var ue=Z?Z($,J,h+"",s,d,Q):void 0,Nt=ue===void 0;if(Nt){var $r=jr(J),zr=!$r&&fo(J),mo=!$r&&!zr&&go(J);ue=J,$r||zr||mo?jr($)?ue=$:yu($)?ue=lu($):zr?(Nt=!1,ue=nu(J)):mo?(Nt=!1,ue=ou(J)):ue=[]:Su(J)||Wr(J)?(ue=$,Wr($)?ue=Eu($):(!tt($)||Gr($))&&(ue=uu(J))):Nt=!1}Nt&&(Q.set(J,ue),j(ue,J,D,Z,Q),Q.delete(J)),Mr(s,h,ue)}function tu(s,d){return bu(mu(s,d,po),s+"")}var ru=Rt?function(s,d){return Rt(s,"toString",{configurable:!0,enumerable:!1,value:_u(d),writable:!0})}:po;function nu(s,d){return s.slice()}function au(s){var d=new s.constructor(s.byteLength);return new ro(d).set(new ro(s)),d}function ou(s,d){var h=au(s.buffer);return new s.constructor(h,s.byteOffset,s.length)}function lu(s,d){var h=-1,D=s.length;for(d||(d=Array(D));++h<D;)d[h]=s[h];return d}function iu(s,d,h,D){var j=!h;h||(h={});for(var Z=-1,Q=d.length;++Z<Q;){var $=d[Z],J=void 0;J===void 0&&(J=s[$]),j?Fr(h,$,J):Yd(h,$,J)}return h}function su(s){return tu(function(d,h){var D=-1,j=h.length,Z=j>1?h[j-1]:void 0,Q=j>2?h[2]:void 0;for(Z=s.length>3&&typeof Z=="function"?(j--,Z):void 0,Q&&fu(h[0],h[1],Q)&&(Z=j<3?void 0:Z,j=1),d=Object(d);++D<j;){var $=h[D];$&&s(d,$,D,Z)}return d})}function cu(s){return function(d,h,D){for(var j=-1,Z=Object(d),Q=D(d),$=Q.length;$--;){var J=Q[++j];if(h(Z[J],J,Z)===!1)break}return d}}function rr(s,d){var h=s.__data__;return hu(d)?h[typeof d=="string"?"string":"hash"]:h.map}function Vr(s,d){var h=Br(s,d);return Qd(h)?h:void 0}function du(s){var d=U.call(s,Re),h=s[Re];try{s[Re]=void 0;var D=!0}catch{}var j=xe.call(s);return D&&(d?s[Re]=h:delete s[Re]),j}function uu(s){return typeof s.constructor=="function"&&!uo(s)?Td(no(s)):{}}function co(s,d){var h=typeof s;return d=d??i,!!d&&(h=="number"||h!="symbol"&&oe.test(s))&&s>-1&&s%1==0&&s<d}function fu(s,d,h){if(!tt(h))return!1;var D=typeof d;return(D=="number"?Hr(h)&&co(d,h.length):D=="string"&&d in h)?nr(h[d],s):!1}function hu(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function gu(s){return!!he&&he in s}function uo(s){var d=s&&s.constructor,h=typeof d=="function"&&d.prototype||z;return s===h}function vu(s){var d=[];if(s!=null)for(var h in Object(s))d.push(h);return d}function pu(s){return xe.call(s)}function mu(s,d,h){return d=oo(d===void 0?s.length-1:d,0),function(){for(var D=arguments,j=-1,Z=oo(D.length-d,0),Q=Array(Z);++j<Z;)Q[j]=D[d+j];j=-1;for(var $=Array(d+1);++j<d;)$[j]=D[j];return $[d]=h(Q),Pr(s,this,$)}}function Ur(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var bu=xu(ru);function xu(s){var d=0,h=0;return function(){var D=Nd(),j=l-(D-h);if(h=D,j>0){if(++d>=o)return arguments[0]}else d=0;return s.apply(void 0,arguments)}}function wu(s){if(s!=null){try{return X.call(s)}catch{}try{return s+""}catch{}}return""}function nr(s,d){return s===d||s!==s&&d!==d}var Wr=io(function(){return arguments}())?io:function(s){return _t(s)&&U.call(s,"callee")&&!Ed.call(s,"callee")},jr=Array.isArray;function Hr(s){return s!=null&&ho(s.length)&&!Gr(s)}function yu(s){return _t(s)&&Hr(s)}var fo=_d||Nu;function Gr(s){if(!tt(s))return!1;var d=tr(s);return d==S||d==y||d==u||d==_}function ho(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=i}function tt(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function _t(s){return s!=null&&typeof s=="object"}function Su(s){if(!_t(s)||tr(s)!=I)return!1;var d=no(s);if(d===null)return!0;var h=U.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&X.call(h)==Te}var go=qt?Qt(qt):Jd;function Eu(s){return iu(s,vo(s))}function vo(s){return Hr(s)?Zd(s):Rd(s)}var Cu=su(function(s,d,h){so(s,d,h)});function _u(s){return function(){return s}}function po(s){return s}function Nu(){return!1}e.exports=Cu}(At,At.exports);var Lo=At.exports;const an=or(Lo),Io={[ye.Sm]:768,[ye.Md]:1024,[ye.Lg]:1400,[ye.Xl]:1920},on=Yr(Io),Po=an({},nn,{theme:{screens:on,container:{center:!0,screens:on,padding:{DEFAULT:ee(20),md:ee(48),lg:ee(120),xl:ee(240)}}}}),ko=Yr({default:0}),Bo=an({},nn,{theme:{screens:ko},corePlugins:{container:!1}});var ln={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(l=o(l,n(c)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var i="";for(var c in l)t.call(l,c)&&l[c]&&(i=o(i,c));return i}function o(l,i){return i?l?l+" "+i:l+i:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(on);var Bo=on.exports;const x=ar(Bo);var te=(e=>(e.Neutral="neutral",e.PrimarySolid="primary-solid",e.PrimarySoft="primary-soft",e.Success="success",e.Warning="warning",e.Error="error",e))(te||{});const Mo={[te.PrimarySolid]:"badge-bg-color-primary",[te.Neutral]:"badge-bg-color-neutral",[te.PrimarySoft]:"badge-bg-color-primary-soft",[te.Success]:"bg-success-surface",[te.Warning]:"bg-warning-surface",[te.Error]:"bg-error-surface"},Fo={[te.PrimarySolid]:"badge-text-color-primary",[te.Neutral]:"badge-text-color-neutral",[te.PrimarySoft]:"badge-text-color-primary-soft",[te.Success]:"text-on-success",[te.Warning]:"text-on-warning",[te.Error]:"text-on-error"},Vo={[te.PrimarySolid]:"badge-border-color-primary",[te.Neutral]:"badge-border-color-neutral",[te.PrimarySoft]:"badge-border-color-soft",[te.Success]:"border-success-surface",[te.Warning]:"border-warning-surface",[te.Error]:"border-error-surface"},Uo="text-label-md";function ft({type:e,label:t}){const r=Mo[e],n=Fo[e],o=Vo[e],l=t?"px-xs py-xxs":"h-1.5 w-1.5";return a.jsx("div",{className:x("inline-flex items-center space-x-2 rounded-full border disabled:opacity-30",r,o,l),children:a.jsx("span",{className:x(Uo,n),children:t})})}var oe=(e=>(e.Small="small",e.Medium="medium",e))(oe||{}),j=(e=>(e.Primary="primary",e.Secondary="secondary",e.Ghost="ghost",e.Outlined="outlined",e.Destructive="destructive",e))(j||{}),ht=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e))(ht||{});const Wo={[oe.Small]:"px-md py-xs",[oe.Medium]:"px-md py-sm"},jo={[oe.Small]:"p-xs",[oe.Medium]:"p-sm"},Ho={[j.Primary]:"button-bg-color-primary",[j.Secondary]:"button-bg-color-secondary",[j.Ghost]:"bg-transparent",[j.Outlined]:"bg-transparent button-border-color-outline",[j.Destructive]:"button-bg-color-error"},Go={[j.Primary]:"button-bg-color-disabled-primary",[j.Secondary]:"button-bg-color-secondary",[j.Ghost]:"bg-transparent",[j.Outlined]:"bg-transparent button-border-color-outline",[j.Destructive]:"button-bg-color-error"},Ue="button-text-color-neutral",$o={[j.Primary]:"button-text-color-primary",[j.Secondary]:Ue,[j.Ghost]:Ue,[j.Outlined]:Ue,[j.Destructive]:"button-text-color-error"},zo={[oe.Small]:"text-label-md",[oe.Medium]:"text-label-lg"},Xo={[j.Primary]:Ue,[j.Secondary]:Ue,[j.Ghost]:Ue,[j.Outlined]:Ue,[j.Destructive]:"button-text-color-error"},ue=T.forwardRef(({icon:e,text:t,disabled:r,onClick:n,fullWidth:o,htmlType:l=ht.Button,size:i=oe.Medium,type:c=j.Primary,iconAfterText:u=!1,tabIndex:f=0,testId:p},h)=>{const w=e&&!t?jo[i]:Wo[i],S=zo[i],y=r?Go[c]:Ho[c],m=r?Xo[c]:$o[c];return a.jsxs("button",{ref:h,onClick:n,type:l,className:x("state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40",w,y,o&&"w-full",u?"flex-row-reverse":"flex-row",`btn btn-${c}`),disabled:r,tabIndex:f,"data-testid":p,children:[e&&a.jsx("span",{className:x(m),children:e}),t&&a.jsx("span",{className:x("font-inter",m,S),children:t})]})});function Ko({htmlType:e=ht.Button,children:t,tabIndex:r=0,...n}){return a.jsx("button",{className:"button-pill-border-color button-pill-text-color flex items-center justify-center rounded-xl border px-sm text-body-md disabled:opacity-40",type:e,tabIndex:r,...n,children:t})}function se({htmlType:e=ht.Button,children:t,className:r,tabIndex:n=0,testId:o,...l}){return a.jsx("button",{type:e,...l,className:x("appearance-none",r),tabIndex:n,"data-testid":o,children:t})}function ln(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z"})})}function Zo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128"})})}function Yo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})})}function lr(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414"})})}function qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z"})})}function Qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z",clipRule:"evenodd"})})}function Jo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.405l2.846 2.846a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009",clipRule:"evenodd"})})}function vt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z",clipRule:"evenodd"})})}function ir(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z",clipRule:"evenodd"})})}function Ro(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("rect",{width:10,height:2,x:7,y:11,fill:"currentColor",rx:1})})}function el(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"}),a.jsx("path",{fill:"currentColor",d:"M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})]})}function tl(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"}),a.jsx("path",{fill:"currentColor",d:"M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"})]})}function Dt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z",clipRule:"evenodd"})})}function rl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675"})})}function sn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321",clipRule:"evenodd"})})}function nl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1"})})}function cn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})})}function al(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6zm2 0a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3.871a19.13 19.13 0 0 1-16 0zm0 6.051V16a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-1.949a21.13 21.13 0 0 1-16 0",clipRule:"evenodd"})]})}function dn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})})}function ol(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),a.jsx("path",{fill:"currentColor",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})]})}function ll(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0",clipRule:"evenodd"})})}function il(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1"})})}function un(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z"})})}function sl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z"})})}function fn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z"})]})}function hn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18c-3.261 0-6.157-2.092-7.983-3.805-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",clipRule:"evenodd"})]})}function cl({id:e,name:t,label:r,supportingLabel:n,body:o,isChecked:l,isDisabled:i,onChange:c}){const u=l?ol:dn;return a.jsxs("label",{className:x("flex flex-row items-center gap-x-1 text-center has-[:disabled]:opacity-40",{disabled:i,"cursor-pointer":!i}),children:[a.jsxs("div",{className:x("relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full",{"state-layer-secondary":!i}),children:[a.jsx("input",{id:e,name:t,type:"radio",checked:l,onChange:c,disabled:i,className:x("peer appearance-none")}),a.jsx("span",{className:"radio-icon-color peer-checked:radio-icon-checked-color peer-checked:peer-disabled:radio-icon-checked-disabled-color absolute size-6",children:a.jsx(u,{className:"size-full"})})]}),a.jsxs("div",{className:"flex flex-col items-start gap-xxs text-start",children:[a.jsxs("span",{className:"radio-label-color inline-flex items-center justify-center gap-1 text-label-lg",children:[r,n&&a.jsx("span",{className:"text-iota-neutral-60 dark:text-iota-neutral-40",children:n})]}),o&&a.jsx("p",{className:"text-body-sm text-iota-neutral-40 dark:text-iota-neutral-60",children:o})]})]})}const dl="bg-transparent",ul="button-segment-bg-color-selected",fl="button-segment-text-color-default button-segment-text-color-hover button-segment-text-color-focused",hl="button-segment-text-color-selected",vl=`
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(l=o(l,n(c)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var i="";for(var c in l)t.call(l,c)&&l[c]&&(i=o(i,c));return i}function o(l,i){return i?l?l+" "+i:l+i:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ln);var Mo=ln.exports;const w=or(Mo);var te=(e=>(e.Neutral="neutral",e.PrimarySolid="primary-solid",e.PrimarySoft="primary-soft",e.Success="success",e.Warning="warning",e.Error="error",e))(te||{}),Ot=(e=>(e.Medium="medium",e.Small="small",e))(Ot||{});const Fo={[te.PrimarySolid]:"badge-bg-color-primary",[te.Neutral]:"badge-bg-color-neutral",[te.PrimarySoft]:"badge-bg-color-primary-soft",[te.Success]:"bg-success-surface",[te.Warning]:"bg-warning-surface",[te.Error]:"bg-error-surface"},Vo={[te.PrimarySolid]:"badge-text-color-primary",[te.Neutral]:"badge-text-color-neutral",[te.PrimarySoft]:"badge-text-color-primary-soft",[te.Success]:"text-on-success",[te.Warning]:"text-on-warning",[te.Error]:"text-on-error"},Uo={[te.PrimarySolid]:"badge-border-color-primary",[te.Neutral]:"badge-border-color-neutral",[te.PrimarySoft]:"badge-border-color-soft",[te.Success]:"border-success-surface",[te.Warning]:"border-warning-surface",[te.Error]:"border-error-surface"};function ft({type:e,label:t,size:r=Ot.Medium}){const n=Fo[e],o=Vo[e],l=r===Ot.Small,i=t?"px-xs py-xxs":"h-1.5 w-1.5",c=l?"text-label-sm":"text-label-md";return a.jsx("div",{className:w("inline-flex items-center space-x-2 rounded-full disabled:opacity-30",{border:!l},n,{[Uo[e]]:!l},i),children:a.jsx("span",{className:w(c,o),children:t})})}var le=(e=>(e.Small="small",e.Medium="medium",e))(le||{}),W=(e=>(e.Primary="primary",e.Secondary="secondary",e.Ghost="ghost",e.Outlined="outlined",e.Destructive="destructive",e))(W||{}),ht=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e))(ht||{});const Wo={[le.Small]:"px-md py-xs",[le.Medium]:"px-md py-sm"},jo={[le.Small]:"p-xs",[le.Medium]:"p-sm"},Ho={[W.Primary]:"button-bg-color-primary",[W.Secondary]:"button-bg-color-secondary",[W.Ghost]:"bg-transparent",[W.Outlined]:"bg-transparent button-border-color-outline",[W.Destructive]:"button-bg-color-error"},Go={[W.Primary]:"button-bg-color-disabled-primary",[W.Secondary]:"button-bg-color-secondary",[W.Ghost]:"bg-transparent",[W.Outlined]:"bg-transparent button-border-color-outline",[W.Destructive]:"button-bg-color-error"},je="button-text-color-neutral",$o={[W.Primary]:"button-text-color-primary",[W.Secondary]:je,[W.Ghost]:je,[W.Outlined]:je,[W.Destructive]:"button-text-color-error"},zo={[le.Small]:"text-label-md",[le.Medium]:"text-label-lg"},Xo={[W.Primary]:je,[W.Secondary]:je,[W.Ghost]:je,[W.Outlined]:je,[W.Destructive]:"button-text-color-error"},fe=T.forwardRef(({icon:e,text:t,disabled:r,onClick:n,fullWidth:o,htmlType:l=ht.Button,size:i=le.Medium,type:c=W.Primary,iconAfterText:f=!1,tabIndex:u=0,testId:v,...m},b)=>{const S=e&&!t?jo[i]:Wo[i],y=zo[i],p=r?Go[c]:Ho[c],E=r?Xo[c]:$o[c];return a.jsxs("button",{type:l,...m,ref:b,onClick:n,className:w("state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40",S,p,o&&"w-full",f?"flex-row-reverse":"flex-row",`btn btn-${c}`),disabled:r,tabIndex:u,"data-testid":v,children:[e&&a.jsx("span",{className:w(E),children:e}),t&&a.jsx("span",{className:w("font-inter",E,y),children:t})]})});function Ko({htmlType:e=ht.Button,children:t,tabIndex:r=0,...n}){return a.jsx("button",{className:"button-pill-border-color button-pill-text-color flex items-center justify-center rounded-xl border px-sm text-body-md disabled:opacity-40",type:e,tabIndex:r,...n,children:t})}function se({htmlType:e=ht.Button,children:t,className:r,tabIndex:n=0,testId:o,...l}){return a.jsx("button",{type:e,...l,className:w("appearance-none",r),tabIndex:n,"data-testid":o,children:t})}function sn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z"})})}function Zo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128"})})}function Yo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})})}function ir(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414"})})}function qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z"})})}function Qo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z",clipRule:"evenodd"})})}function Jo(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.405l2.846 2.846a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009",clipRule:"evenodd"})})}function gt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z",clipRule:"evenodd"})})}function sr(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z",clipRule:"evenodd"})})}function Ro(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("rect",{width:10,height:2,x:7,y:11,fill:"currentColor",rx:1})})}function el(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"}),a.jsx("path",{fill:"currentColor",d:"M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})]})}function tl(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"}),a.jsx("path",{fill:"currentColor",d:"M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"})]})}function Dt(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z",clipRule:"evenodd"})})}function rl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675"})})}function cn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321",clipRule:"evenodd"})})}function nl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1"})})}function dn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})})}function al(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6zm2 0a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3.871a19.13 19.13 0 0 1-16 0zm0 6.051V16a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-1.949a21.13 21.13 0 0 1-16 0",clipRule:"evenodd"})]})}function un(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})})}function ol(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),a.jsx("path",{fill:"currentColor",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})]})}function ll(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0",clipRule:"evenodd"})})}function il(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1"})})}function fn(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z"})})}function sl(e){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:a.jsx("path",{fill:"currentColor",d:"M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z"})})}function hn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z"})]})}function gn(e){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[a.jsx("path",{fill:"currentColor",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18c-3.261 0-6.157-2.092-7.983-3.805-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",clipRule:"evenodd"})]})}function cl({id:e,name:t,label:r,supportingLabel:n,body:o,isChecked:l,isDisabled:i,onChange:c,...f}){const u=l?ol:un;return a.jsxs("label",{className:w("flex flex-row items-center gap-x-1 text-center has-[:disabled]:opacity-40",{disabled:i,"cursor-pointer":!i}),children:[a.jsxs("div",{className:w("relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full",{"state-layer-secondary":!i}),children:[a.jsx("input",{id:e,name:t,type:"radio",checked:l,onChange:c,disabled:i,className:w("peer appearance-none"),...f}),a.jsx("span",{className:"radio-icon-color peer-checked:radio-icon-checked-color peer-checked:peer-disabled:radio-icon-checked-disabled-color absolute size-6",children:a.jsx(u,{className:"size-full"})})]}),a.jsxs("div",{className:"flex flex-col items-start gap-xxs text-start",children:[a.jsxs("span",{className:"radio-label-color inline-flex items-center justify-center gap-1 text-label-lg",children:[r,n&&a.jsx("span",{className:"text-iota-neutral-60 dark:text-iota-neutral-40",children:n})]}),o&&a.jsx("p",{className:"text-body-sm text-iota-neutral-40 dark:text-iota-neutral-60",children:o})]})]})}const dl="bg-transparent",ul="button-segment-bg-color-selected",fl="button-segment-text-color-default button-segment-text-color-hover button-segment-text-color-focused",hl="button-segment-text-color-selected",gl=`
6
6
  button-segment-underline-base
7
7
  before:bottom-0
8
8
  button-segment-underline-hover
9
9
  button-segment-underline-hover-color
10
- `,gl=`
10
+ `,vl=`
11
11
  button-segment-underline-base
12
12
  button-segment-underline-selected
13
- `;var We=(e=>(e.Rounded="rounded",e.Underlined="underlined",e))(We||{});function pl({icon:e,label:t,selected:r,disabled:n,onClick:o,type:l=We.Rounded,isNested:i=!1}){const c=l===We.Underlined,u=r?c?"bg-transparent":ul:dl,f=c?r?gl:vl:"",p=r?hl:fl,h=c?i?"px-md py-sm":"px-lg py-md":"px-sm py-[6px]",w=c?"":"rounded-full",S=i?c?"text-title-sm":"text-label-md":c?"text-title-md":"text-label-lg";return a.jsx(se,{onClick:o,className:x("enabled:state-layer-secondary relative flex items-center disabled:opacity-40",u,p,h,w,f,{"pl-xs":!!e&&!c}),disabled:n,children:a.jsxs("div",{className:x("flex flex-row items-center justify-center gap-2",S),children:[e&&a.jsx("span",{children:e}),a.jsx("span",{className:"text-start font-inter",children:t})]})})}const sr=T.forwardRef(({isChecked:e,isIndeterminate:t,label:r,isLabelFirst:n,isDisabled:o,onCheckedChange:l,name:i},c)=>{const u=T.useRef(null);T.useEffect(()=>{u.current&&(u.current.indeterminate=t??!1)},[t,u]);const f=t?Ro:Qo;function p(h){c&&(typeof c=="function"?c(h):c.current=h),u.current=h}return a.jsxs("div",{className:x("group inline-flex has-[:disabled]:opacity-40",n?"flex-row-reverse":"flex-row",{disabled:o,"gap-x-2":r}),children:[a.jsx("input",{id:i,name:i,type:"checkbox",className:"peer hidden appearance-none",checked:e,ref:p,disabled:o,onChange:h=>{l==null||l(h)}}),a.jsx("span",{onClick:()=>{var h;return(h=u.current)==null?void 0:h.click()},className:x("checkbox-base checkbox-state checkbox-icon checkbox-icon-hidden","checkbox-border-default","peer-[&:is(:checked,:indeterminate)]:checkbox-border-checked","peer-[&:is(:checked,:indeterminate)]:checkbox-bg-checked","peer-[&:is(:checked,:indeterminate)]:checkbox-text-checked","peer-disabled:peer-[&:not(:checked,:indeterminate)]:checkbox-border-color-disabled","peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-border-color-disabled-checked","peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-bg-color-disabled-checked"),children:a.jsx(f,{})}),a.jsx(ml,{label:r,name:i})]})});function ml({label:e,name:t}){return a.jsx("label",{htmlFor:t,className:"checkbox-label checkbox-label-disabled",children:e})}var Ie=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Ie||{});const bl="divider-bg-color",xl={[Ie.Horizontal]:"w-full",[Ie.Vertical]:"h-full"},wl="1px";function vn({type:e=Ie.Horizontal,width:t,height:r,lineHeight:n=wl}){const o={...e===Ie.Horizontal?{height:n}:{width:n}};let l=xl[e];return t&&e===Ie.Horizontal?l=t:r&&e===Ie.Vertical&&(l=r),a.jsx("div",{className:x(bl,l),style:o})}var gt=(e=>(e.Small="small",e.Medium="medium",e))(gt||{}),Pe=(e=>(e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e))(Pe||{});function je({text:e,position:t=Pe.Top,maxWidth:r="max-w-[200px]",offset:n=8,openDelay:o=0,closeDelay:l=100,children:i}){const c=T.useRef(null),u=T.useRef(null),[f,p]=T.useState(!1),[h,w]=T.useState({top:0,left:0}),S=T.useRef(),y=T.useRef(),m=()=>{clearTimeout(S.current),clearTimeout(y.current)},E=()=>{m(),S.current=setTimeout(()=>p(!0),o)},C=()=>{m(),y.current=setTimeout(()=>p(!1),l)};return T.useLayoutEffect(()=>{var B;if(!f)return;const _=(B=c.current)==null?void 0:B.getBoundingClientRect();if(!_)return;const L={[Pe.Top]:{top:_.top-n,left:_.left+_.width/2,transform:"translate(-50%, -100%)"},[Pe.Bottom]:{top:_.bottom+n,left:_.left+_.width/2,transform:"translate(-50%, 0)"},[Pe.Left]:{top:_.top+_.height/2,left:_.left-n,transform:"translate(-100%, -50%)"},[Pe.Right]:{top:_.top+_.height/2,left:_.right+n,transform:"translate(0, -50%)"}}[t];w({top:L.top,left:L.left}),u.current.style.transform=L.transform},[f,t,n]),T.useLayoutEffect(()=>{if(!f)return;const _=()=>{var B;const L=(B=c.current)==null?void 0:B.getBoundingClientRect();L&&w(P=>({...P,left:L.left+L.width/2}))};return window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),()=>{window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_)}},[f]),a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:c,className:"inline-block cursor-pointer",onMouseEnter:E,onFocus:E,onMouseLeave:C,onBlur:C,children:i}),f&&nr.createPortal(a.jsx("div",{ref:u,role:"tooltip",style:{position:"fixed",top:h.top,left:h.left,transition:"opacity .15s ease",opacity:1},className:x("z-[9999999999] w-max rounded p-xs tooltip-bg tooltip-text-color",r),onMouseEnter:E,onMouseLeave:C,children:a.jsx("p",{className:"w-full break-words",children:e})}),document.body)]})}function yl({keyText:e,value:t,tooltipPosition:r,tooltipText:n,supportingLabel:o,size:l=gt.Small,isTruncated:i=!1,copyText:c,onCopySuccess:u,onCopyError:f,fullwidth:p,isReverse:h=!1,valueHoverTitle:w}){const S=h?"flex-row-reverse":"flex-row";async function y(m){if(navigator.clipboard&&c)try{await navigator.clipboard.writeText(c),u==null||u(m,c)}catch(E){console.error("Failed to copy:",E),f==null||f(E,c)}}return a.jsxs("div",{className:x("flex w-full items-baseline gap-xs py-xxs font-inter",S,{"justify-between":p}),children:[a.jsxs("div",{className:x("flex shrink-0 flex-row items-center gap-x-0.5",{"w-1/4":!p}),children:[a.jsx("span",{className:"key-value-key-text-color text-body-md",children:e}),n&&a.jsx(je,{text:n,position:r,children:a.jsx(Dt,{className:"key-supporting-text-color"})})]}),a.jsxs("div",{className:x("flex flex-row items-baseline gap-1 break-all",{"w-3/4":!p,truncate:i}),children:[a.jsx("span",{title:w,className:x("key-value-hover-text-color",l===gt.Medium?"text-body-lg":"text-body-md",{truncate:i}),children:t}),o&&a.jsx("span",{className:x("key-supporting-text-color",l===gt.Medium?"text-body-md":"text-body-sm"),children:o}),a.jsx("div",{className:"self-center",children:c&&a.jsx(se,{onClick:y,children:a.jsx(ir,{className:"key-supporting-text-color"})})})]})]})}var ce=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(ce||{});const Sl={[ce.Small]:"text-title-sm",[ce.Medium]:"text-title-md",[ce.Large]:"text-title-lg"},El={[ce.Small]:"text-label-md",[ce.Medium]:"text-label-md",[ce.Large]:"text-label-lg"},Cl={[ce.Small]:"text-label-md",[ce.Medium]:"text-label-md",[ce.Large]:"text-label-lg"};function _l({size:e=ce.Medium,isCentered:t,supportingLabel:r,label:n,text:o,tooltipPosition:l,tooltipText:i}){const c=Sl[e],u=El[e],f=Cl[e],p=t?"items-center":"items-start",h=e===ce.Small?"gap-0.5":"gap-1";return a.jsxs("div",{className:x("flex flex-col",p,h),children:[a.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-0.5",children:[a.jsx("span",{className:x("label-text-primary-neutral font-inter",c),children:o}),r&&a.jsx("span",{className:x("label-text-secondary-neutral font-inter",u),children:r})]}),a.jsx("div",{className:"flex flex-row items-center gap-x-0.5",children:a.jsxs("span",{className:x("label-text-secondary-neutral flex items-center font-inter",f),children:[n,i&&a.jsx("div",{className:"ml-xxxs flex items-center",children:a.jsx(je,{text:i,position:l,children:a.jsx(Dt,{className:"label-text-secondary-neutral"})})})]})})]})}function gn({showRightIcon:e,hideBottomBorder:t,onClick:r,isDisabled:n,children:o,isHighlighted:l}){function i(u){(u.key==="Enter"||u.key===" ")&&!n&&r&&r()}function c(){!n&&r&&r()}return a.jsx("div",{className:x("w-full",{"list-item-border-color border-b pb-xs":!t},{"opacity-40":n}),children:a.jsxs("div",{onClick:c,role:"button",tabIndex:0,onKeyDown:i,className:x("list-item-color relative flex flex-row items-center justify-between px-md py-sm",!n&&r?"cursor-pointer":"cursor-default",{"list-item-highlight-bg":l,"state-layer-secondary":!n}),children:[o,e&&a.jsx(ue,{size:oe.Small,type:j.Ghost,disabled:n,icon:a.jsx(lr,{})})]})})}function Nl({title:e,titleCentered:t,onBack:r,onClose:n,testId:o}){const l=t?"text-center":r?"ml-1":"",i=t&&(!r||!n);return a.jsxs("div",{className:"header-bg-color header-text-color flex min-h-[56px] w-full items-center px-md--rs pb-xs pt-sm [&_svg]:h-5 [&_svg]:w-5",children:[r?a.jsx(ue,{size:oe.Small,type:j.Ghost,onClick:r,icon:a.jsx(ln,{})}):i&&a.jsx("div",{className:"w-9"}),a.jsx("div",{className:x("flex-grow",l),children:a.jsx("span",{className:"font-inter text-title-lg","data-testid":o,children:e})}),n?a.jsx(ue,{size:oe.Small,type:j.Ghost,onClick:n,icon:a.jsx(vt,{}),testId:"close-icon"}):i&&a.jsx("div",{className:"w-9"})]})}function Tl({children:e,hasBorder:t,bgColor:r="panel-bg"}){const n=t?"border panel-border-color":"border border-transparent";return a.jsx("div",{className:x("flex w-full flex-col rounded-xl",r,n),children:e})}function pn(){return a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-iota-neutral-96 dark:bg-iota-neutral-10",children:a.jsx(al,{className:"h-4 w-4 text-iota-neutral-40 dark:text-iota-neutral-60"})})}const mn=T.forwardRef(({onError:e,renderFallback:t,...r},n)=>{const[o,l]=T.useState(!1);function i(c){l(!0),e==null||e(c)}return o||!r.src?t||a.jsx(pn,{}):a.jsx(cr,{onError:i,ref:n,...r})}),cr=T.forwardRef((e,t)=>a.jsx("img",{className:"h-full w-full object-cover",ref:t,...e}));var ye=(e=>(e.Default="default",e.Error="error",e.Success="success",e.Warning="warning",e))(ye||{}),pt=(e=>(e.Default="default",e.Elevated="elevated",e))(pt||{});const Al={[ye.Default]:"bg-default-surface text-on-default",[ye.Error]:"bg-error-surface text-on-error",[ye.Success]:"bg-success-surface text-on-success",[ye.Warning]:"bg-warning-surface text-on-warning"},Ol={[ye.Default]:"bg-default-surface",[ye.Error]:"bg-error-surface",[ye.Success]:"bg-success-surface",[ye.Warning]:"bg-warning-surface"};function Dl({icon:e,title:t,supportingText:r,type:n,style:o}){const l=Al[n],i=o===pt.Elevated?Ol[n]:"";return a.jsxs("div",{className:x("flex flex-row items-start gap-4 py-xs pr-lg",i,{"rounded-lg pl-xs":o===pt.Elevated}),children:[e&&a.jsx("span",{className:x("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4",l,{"p-xs":o===pt.Default}),children:e}),a.jsxs("div",{className:"flex flex-col gap-1",children:[t&&a.jsx("span",{className:"infobox-text-title text-title-sm",children:t}),r&&a.jsx("span",{className:"infobox-supporting-text text-body-sm",children:r})]})]})}var he=(e=>(e.Default="default",e.Error="error",e.Warning="warning",e.Success="success",e))(he||{});const bn={[he.Default]:"text-on-default",[he.Error]:"text-on-error",[he.Warning]:"text-on-warning",[he.Success]:"text-on-success"},Ll={[he.Default]:"bg-default-surface",[he.Error]:"bg-error-surface",[he.Warning]:"bg-warning-surface",[he.Success]:"bg-success-surface"};function Il({text:e,duration:t=2e3,onClose:r,showClose:n,type:o=he.Default}){return T.useEffect(()=>{if(t){const l=setTimeout(r,t);return()=>clearTimeout(l)}},[t,r]),a.jsxs("div",{className:x("transition-all duration-300 ease-out","z-99 bottom-0","flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm",Ll[o]),children:[a.jsx("div",{className:x("w-full text-left text-body-md",bn[o]),children:e}),n&&a.jsx(vt,{className:x("h-5 w-5 cursor-pointer",bn[o]),onClick:r})]})}function Pl({color:e="loading-indicator-color",size:t="w-5 h-5",text:r,testId:n}){return a.jsxs("div",{className:"flex items-center justify-center gap-xs",children:[a.jsx(sn,{className:x("animate-spin",e,t),"data-testid":n}),r&&a.jsx("span",{className:x("text-body-sm",e),children:r})]})}function xn({width:e="w-full",height:t="h-4"}){return a.jsx("div",{className:x("animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8",e,t)})}function kl({children:e,className:t,hasSecondaryColors:r}){return a.jsx("div",{className:x("h-3 w-full animate-pulse rounded-full",r?"skeleton-secondary-bg":"skeleton-bg",t),children:e})}const Bl={autoPlay:!0,muted:!0,playsInline:!0,controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},Ml={autoPlay:!0,muted:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},wn=T.forwardRef(({width:e="100%",height:t="auto",isAutoPlayEnabled:r,disableControls:n,...o},l)=>{const i=r?n?Ml:Bl:{preload:"metadata",autoPlay:!1};return a.jsx("video",{ref:l,width:e,height:t,...i,...o,children:"Your browser does not support the video tag."})});var Ae=(e=>(e.Small="small",e.Default="default",e))(Ae||{}),Lt=(e=>(e.Left="left",e.Right="right",e))(Lt||{});const Fl="relative inline-flex items-center p-xxs border rounded-full cursor-pointer",It={active:"toggle-bg-active toggle-border-active",inactive:"toggle-bg-inactive toggle-border-inactive",disabledActive:"toggle-bg-disabled-active toggle-border-disabled-active",disabled:"opacity-40 cursor-not-allowed"},Vl={[Ae.Small]:"h-5 w-10",[Ae.Default]:"h-6 w-12"},Ul="absolute rounded-full transition-all duration-200 ease-in-out",yn={[Ae.Small]:{unchecked:"left-1",checked:"left-[34px] -translate-x-full"},[Ae.Default]:{unchecked:"left-1",checked:"left-[42px] -translate-x-full"}},Sn={unchecked:"toggle-thumb-color",checked:"toggle-thumb-color-checked"},Wl={[Ae.Small]:"h-3 w-3",[Ae.Default]:"h-4 w-4"},jl="inline-flex items-center gap-2",Hl="text-label-lg toggle-label-color",Gl=T.forwardRef(({label:e,isToggled:t,labelPosition:r=Lt.Right,isDisabled:n=!1,onChange:o,name:l,size:i=Ae.Default,testId:c},u)=>{const f=T.useRef(null);function p(E){const C=E.target.checked;o==null||o(C,E)}function h(E){u&&(typeof u=="function"?u(E):u.current=E),f.current=E}const w=x(Fl,{[It.active]:t&&!n,[It.inactive]:!t,[It.disabledActive]:n&&t,[It.disabled]:n,[Vl[i]]:!0}),S=x(Ul,{[yn[i].unchecked]:!t,[yn[i].checked]:t,[Sn.unchecked]:!t,[Sn.checked]:t,[Wl[i]]:!0}),y=x(jl,{"flex-row-reverse":r===Lt.Left,"cursor-not-allowed":n}),m=x(Hl,{"opacity-40":n&&!t});return a.jsxs("div",{className:y,children:[a.jsx("input",{id:l,name:l,type:"checkbox",className:"sr-only",checked:t,ref:h,disabled:n,onChange:p,"data-testid":c}),a.jsx("span",{role:"switch",onClick:()=>{var E;return(E=f.current)==null?void 0:E.click()},className:w,children:a.jsx("span",{className:S})}),e&&a.jsx("label",{htmlFor:l,className:m,children:e})]})});function mt({children:e,hasErrorStyles:t}){return a.jsx("p",{className:x("secondary-text-color text-label-lg",{["group-[.errored]:w-full group-[.errored]:secondary-text-error-color group-[.errored]:bg-error-surface group-[.errored]:rounded-xl group-[.errored]:py-1 group-[.errored]:px-2"]:t}),children:e})}function En({text:e,isCopyable:t,isExternal:r,externalLink:n,copyText:o=e,onCopySuccess:l,onCopyError:i,onOpen:c}){async function u(p){if(navigator.clipboard){p==null||p.stopPropagation();try{await navigator.clipboard.writeText(o),l==null||l(p,o)}catch(h){console.error("Failed to copy:",h),i==null||i(h,o)}}}function f(p){if(p==null||p.stopPropagation(),n){const h=window.open(n,"_blank","noopener noreferrer");h&&(h.opener=null)}c==null||c(p)}return a.jsxs("div",{className:"address-text-color group flex flex-row items-center gap-1",children:[a.jsx("span",{className:x("font-inter text-body-sm"),children:e}),t&&a.jsx(se,{onClick:u,className:"opacity-0 group-hover:opacity-100",children:a.jsx(ir,{})}),r&&a.jsx(se,{onClick:f,className:"opacity-0 group-hover:opacity-100",children:a.jsx(qo,{})})]})}var dr=(e=>(e.Image="image",e.Video="video",e))(dr||{});function Cn({src:e,isAutoPlayEnabled:t,assetType:r,altText:n,showFallback:o,disableControls:l}){return r===dr.Video?a.jsx(wn,{src:e,isAutoPlayEnabled:t,disableControls:l}):o?a.jsx(mn,{src:e,alt:n}):a.jsx(cr,{src:e,alt:n})}var Z=(e=>(e.Outline="outline",e.Elevated="elevated",e.Success="success",e.Brand="brand",e.Error="error",e))(Z||{}),Pt=(e=>(e.Small="small",e.Default="default",e))(Pt||{});const _n="rounded-full",$l={[Z.Outline]:"bg-transparent",[Z.Elevated]:"chip-bg-elevated",[Z.Success]:"bg-success-surface",[Z.Brand]:"chip-bg-brand",[Z.Error]:"bg-error-surface"},zl="outline outline-1 hover:chip-outline-color-hover active:chip-outline-color-active hover:chip-bg-color-hover active:chip-bg-color-active group-focus:chip-bg-color-focus",Xl={[Z.Outline]:"chip-bg-selected-outline"},Kl="chip-bg-selected-overlay",Zl={[Z.Outline]:"chip-text-secondary"},Yl={[Z.Outline]:"chip-border-default",[Z.Elevated]:"border-transparent",[Z.Success]:"border-success-surface",[Z.Brand]:"chip-border-color-brand",[Z.Error]:"border-error-surface"},ql={[Z.Outline]:"chip-text-default",[Z.Elevated]:"chip-text-secondary",[Z.Success]:"chip-text-secondary",[Z.Brand]:"chip-text-brand",[Z.Error]:"chip-text-secondary"},Ql="focus-visible:shadow-[0_0_0_2px] focus-visible:chip-focus-ring focus-visible:outline-none",Jl="chip-close-icon-opacity group-hover:opacity-100 group-focus:opacity-100 group-active:opacity-100";function Rl({label:e,type:t=Z.Outline,selected:r,showClose:n,onClose:o,onClick:l,avatar:i,leadingElement:c,trailingElement:u,disabled:f,size:p=Pt.Default}){const h=t===Z.Outline&&r,w=r?t===Z.Outline?"outline-transparent names:outline-names-neutral-20":"chip-outline-color":"outline-transparent",S=x("group-focus:chip-outline-color-active",t===Z.Outline&&"names:group-focus:outline-transparent"),y=r&&!f&&t!==Z.Outline?Kl:"";return a.jsx(se,{onClick:l,className:x("group border disabled:opacity-40",_n,h?Xl[Z.Outline]:$l[t],r?"border-transparent":Yl[t]),disabled:f,children:a.jsxs("span",{className:x("flex h-full w-full flex-row items-center gap-x-2",i?"py-xxs":"py-[6px]",i?"pl-xxs":c?"pl-xs":"pl-sm",n?"pr-xs":"pr-sm",_n,h?Zl[Z.Outline]:ql[t],w,!f&&S,!f&&zl,Ql,y),children:[i??c,a.jsx("span",{className:x(p===Pt.Small?"text-label-md":"text-body-md"),children:e}),u,n&&a.jsx("div",{onClick:o,className:x(f?"cursor-default":"cursor-pointer"),children:a.jsx(vt,{className:x("h-4 w-4 transition-opacity duration-150",f?"":r?"opacity-100":Jl)})})]})})}var He=(e=>(e.Outlined="outlined",e.Filled="filled",e.Transparent="transparent",e))(He||{});const ei={[He.Outlined]:"bg-transparent",[He.Filled]:"segmented-filled-bg-color",[He.Transparent]:"bg-transparent"},ti="border segmented-outlined-border";function ri({type:e=He.Filled,children:t,shape:r=We.Rounded}){const n=ei[e],o=e===He.Outlined?ti:"",l=r===We.Rounded?"rounded-full gap-1 p-xxs":"",i=r===We.Rounded?"flex-wrap":"flex-nowrap overflow-x-auto";return a.jsx("div",{className:x("flex flex-row",n,o,l,i),children:t})}var Ge=(e=>(e.Small="small",e.Medium="medium",e))(Ge||{});const ni={[Ge.Small]:"px-md py-sm--rs",[Ge.Medium]:"px-md--rs py-sm--rs"},ai={[Ge.Small]:"text-title-md",[Ge.Medium]:"text-title-lg"};function oi({title:e,subtitle:t,trailingElement:r,tooltipText:n,supportingElement:o,tooltipPosition:l,size:i=Ge.Medium,testId:c}){return a.jsxs("div",{className:x("flex flex-row items-center justify-between",ni[i]),"data-testid":c,children:[a.jsxs("div",{className:"flex flex-row items-center gap-x-xxxs",children:[a.jsxs("div",{className:"flex flex-col justify-start",children:[a.jsxs("div",{className:"title-main-color flex flex-row items-center gap-x-0.5",children:[a.jsx("h4",{className:x(ai[i]),children:e}),n&&a.jsx(je,{text:n,position:l,children:a.jsx(Dt,{className:"title-icon-color"})})]}),a.jsx("p",{className:"title-subtitle-color text-label-md",children:t})]}),o]}),r]})}const Nn="w-full input-caret-color bg-transparent text-body-lg caret-input-caret-color focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed",Tn="input-text-color",An="input-placeholder-color",li="[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed",On="px-md py-sm rounded-lg border input-border-color input-border-color-disabled group-[.enabled]:cursor-text input-border-error-color hover:group-[.enabled]:input-border-color-hover input-border-color-focus",ii="flex flex-col gap-y-2 text-label-lg input-label-color";var Dn=(e=>(e.Label="label",e.Div="div",e))(Dn||{});function ur({label:e,caption:t,disabled:r,errorMessage:n,amountCounter:o,required:l,labelHtmlTag:i="label",children:c}){return a.jsxs("div",{className:x("group flex w-full flex-col gap-y-2",{"cursor-not-allowed opacity-40":r,errored:n,enabled:!r,required:l}),children:[e?a.jsxs(si,{labelHtmlTag:i,children:[e,c]}):c,(n||t||o)&&a.jsxs("div",{className:x("flex flex-row items-center",t||n?"justify-between gap-md":"justify-end"),children:[(n||t)&&a.jsx(mt,{hasErrorStyles:!0,children:n||t}),o&&a.jsx(mt,{children:o})]})]})}function si({labelHtmlTag:e,children:t}){return T.createElement(e,{className:ii},t)}var ve=(e=>(e.Text="text",e.Password="password",e.Number="number",e.NumericFormat="numericFormat",e))(ve||{}),Ln=(e=>(e.None="none",e.Vertical="vertical",e))(Ln||{});function In(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var bt;(function(e){e.event="event",e.props="prop"})(bt||(bt={}));function ke(){}function ci(e){var t,r=void 0;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t&&n.length===t.length&&n.every(function(l,i){return l===t[i]})||(t=n,r=e.apply(void 0,n)),r}}function xt(e){return!!(e||"").match(/\d/)}function rt(e){return e==null}function di(e){return typeof e=="number"&&isNaN(e)}function Pn(e){return rt(e)||di(e)||typeof e=="number"&&!isFinite(e)}function kn(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ui(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function fi(e,t,r){var n=ui(r),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}function hi(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t.current.apply(t,n)});return r.current}function fr(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var o=e.split("."),l=o[0],i=o[1]||"";return{beforeDecimal:l,afterDecimal:i,hasNegation:r,addNegation:n}}function vi(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return(t?"-":"")+n+(o?"."+o:"")}function Bn(e,t,r){for(var n="",o=r?"0":"",l=0;l<=t-1;l++)n+=e[l]||o;return n}function Mn(e,t){return Array(t+1).join(e)}function Fn(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),o=n[0],l=n[1];if(l=Number(l),!l)return r+o;o=o.replace(".","");var i=1+l,c=o.length;return i<0?o="0."+Mn("0",Math.abs(i))+o:i>=c?o=o+Mn("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),r+o}function Vn(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,o=fr(e),l=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,u=parseFloat("0."+(i||"0")),f=i.length<=t?"0."+i:u.toFixed(t),p=f.split("."),h=l;l&&Number(p[0])&&(h=l.split("").reverse().reduce(function(m,E,C){return m.length>C?(Number(m[0])+Number(E)).toString()+m.substring(1,m.length):E+m},p[0]));var w=Bn(p[1]||"",t,r),S=c?"-":"",y=n?".":"";return""+S+h+y+w}function $e(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Un=ci(function(e,t){for(var r=0,n=0,o=e.length,l=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[l-1-n]&&l-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:l-n}}}),gi=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function pi(e,t,r){return Math.min(Math.max(e,t),r)}function hr(e){return Math.max(e.selectionStart,e.selectionEnd)}function mi(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function bi(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xi(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function wi(e,t,r,n,o,l,i){i===void 0&&(i=xi);var c=o.findIndex(function(L){return L}),u=e.slice(0,c);!t&&!r.startsWith(u)&&(t=u,r=u+r,n=n+u.length);for(var f=r.length,p=e.length,h={},w=new Array(f),S=0;S<f;S++){w[S]=-1;for(var y=0,m=p;y<m;y++){var E=i({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:S,formattedValueIndex:y});if(E&&h[y]!==!0){w[S]=y,h[y]=!0;break}}}for(var C=n;C<f&&(w[C]===-1||!l(r[C]));)C++;var I=C===f||w[C]===-1?p:w[C];for(C=n-1;C>0&&w[C]===-1;)C--;var _=C===-1||w[C]===-1?0:w[C]+1;return _>I?I:n-_<I-n?_:I}function Wn(e,t,r,n){var o=e.length;if(t=pi(t,0,o),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return t===-1&&(t=o),t}function yi(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(xt(e[r])||xt(e[r-1]));return t}function jn(e,t,r,n,o,l){l===void 0&&(l=ke);var i=hi(function(y,m){var E,C;return Pn(y)?(C="",E=""):typeof y=="number"||m?(C=typeof y=="number"?Fn(y):y,E=n(C)):(C=o(y,void 0),E=n(C)),{formattedValue:E,numAsString:C}}),c=T.useState(function(){return i(rt(e)?t:e,r)}),u=c[0],f=c[1],p=function(y,m){y.formattedValue!==u.formattedValue&&f({formattedValue:y.formattedValue,numAsString:y.value}),l(y,m)},h=e,w=r;rt(e)&&(h=u.numAsString,w=!0);var S=i(h,w);return T.useMemo(function(){f(S)},[S.formattedValue]),[u,p]}function Si(e){return e.replace(/[^0-9]/g,"")}function Ei(e){return e}function Ci(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,o=e.renderText,l=e.getInputRef,i=e.format;i===void 0&&(i=Ei);var c=e.removeFormatting;c===void 0&&(c=Si);var u=e.defaultValue,f=e.valueIsNumericString,p=e.onValueChange,h=e.isAllowed,w=e.onChange;w===void 0&&(w=ke);var S=e.onKeyDown;S===void 0&&(S=ke);var y=e.onMouseUp;y===void 0&&(y=ke);var m=e.onFocus;m===void 0&&(m=ke);var E=e.onBlur;E===void 0&&(E=ke);var C=e.value,I=e.getCaretBoundary;I===void 0&&(I=yi);var _=e.isValidInputCharacter;_===void 0&&(_=xt);var L=e.isCharacterSame,B=In(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),P=jn(C,u,!!f,i,c,p),N=P[0],k=N.formattedValue,M=N.numAsString,q=P[1],le=T.useRef(),Ce=T.useRef({formattedValue:k,numAsString:M}),_e=function(A,D){Ce.current={formattedValue:A.formattedValue,numAsString:A.value},q(A,D)},Ve=T.useState(!1),Qe=Ve[0],U=Ve[1],F=T.useRef(null),Y=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return U(!0),function(){clearTimeout(Y.current.setCaretTimeout),clearTimeout(Y.current.focusTimeout)}},[]);var re=i,ne=function(A,D){var V=parseFloat(D);return{formattedValue:A,value:D,floatValue:isNaN(V)?void 0:V}},R=function(A,D,V){A.selectionStart===0&&A.selectionEnd===A.value.length||($e(A,D),Y.current.setCaretTimeout=setTimeout(function(){A.value===V&&A.selectionStart!==D&&$e(A,D)},0))},ae=function(A,D,V){return Wn(A,D,I(A),V)},G=function(A,D,V){var z=I(D),ie=wi(D,k,A,V,z,_,L);return ie=Wn(D,ie,z),ie},st=function(A){var D=A.formattedValue;D===void 0&&(D="");var V=A.input,z=A.source,ie=A.event,X=A.numAsString,W;if(V){var fe=A.inputValue||V.value,be=hr(V);V.value=D,W=G(fe,D,be),W!==void 0&&R(V,W,D)}D!==k&&_e(ne(D,X),{event:ie,source:z})};T.useEffect(function(){var A=Ce.current,D=A.formattedValue,V=A.numAsString;(k!==D||M!==V)&&_e(ne(k,M),{event:void 0,source:bt.props})},[k,M]);var Je=F.current?hr(F.current):void 0,Ne=typeof window<"u"?T.useLayoutEffect:T.useEffect;Ne(function(){var A=F.current;if(k!==Ce.current.formattedValue&&A){var D=G(Ce.current.formattedValue,k,Je);A.value=k,R(A,D,k)}},[k]);var ct=function(A,D,V){var z=D.target,ie=le.current?gi(le.current,z.selectionEnd):Un(k,A),X=Object.assign(Object.assign({},ie),{lastValue:k}),W=c(A,X),fe=re(W);if(W=c(fe,void 0),h&&!h(ne(fe,W))){var be=D.target,Te=hr(be),Ct=G(A,k,Te);return be.value=k,R(be,Ct,k),!1}return st({formattedValue:fe,numAsString:W,inputValue:A,event:D,source:V,input:D.target}),!0},De=function(A,D){D===void 0&&(D=0);var V=A.selectionStart,z=A.selectionEnd;le.current={selectionStart:V,selectionEnd:z+D}},Kt=function(A){var D=A.target,V=D.value,z=ct(V,A,bt.event);z&&w(A),le.current=void 0},Et=function(A){var D=A.target,V=A.key,z=D.selectionStart,ie=D.selectionEnd,X=D.value;X===void 0&&(X="");var W;V==="ArrowLeft"||V==="Backspace"?W=Math.max(z-1,0):V==="ArrowRight"?W=Math.min(z+1,X.length):V==="Delete"&&(W=z);var fe=0;V==="Delete"&&z===ie&&(fe=1);var be=V==="ArrowLeft"||V==="ArrowRight";if(W===void 0||z!==ie&&!be){S(A),De(D,fe);return}var Te=W;if(be){var Ct=V==="ArrowLeft"?"left":"right";Te=ae(X,W,Ct),Te!==W&&A.preventDefault()}else V==="Delete"&&!_(X[W])?Te=ae(X,W,"right"):V==="Backspace"&&!_(X[W])&&(Te=ae(X,W,"left"));Te!==W&&R(D,Te,X),S(A),De(D,fe)},Zt=function(A){var D=A.target,V=function(){var z=D.selectionStart,ie=D.selectionEnd,X=D.value;if(X===void 0&&(X=""),z===ie){var W=ae(X,z);W!==z&&R(D,W,X)}};V(),requestAnimationFrame(function(){V()}),y(A),De(D)},Yt=function(A){A.persist&&A.persist();var D=A.target,V=A.currentTarget;F.current=D,Y.current.focusTimeout=setTimeout(function(){var z=D.selectionStart,ie=D.selectionEnd,X=D.value;X===void 0&&(X="");var W=ae(X,z);W!==z&&!(z===0&&ie===X.length)&&R(D,W,X),m(Object.assign(Object.assign({},A),{currentTarget:V}))},0)},Ir=function(A){F.current=null,clearTimeout(Y.current.focusTimeout),clearTimeout(Y.current.setCaretTimeout),E(A)},Pr=Qe&&mi()?"numeric":void 0,qt=Object.assign({inputMode:Pr},B,{type:t,value:k,onChange:Kt,onKeyDown:Et,onMouseUp:Zt,onFocus:Yt,onBlur:Ir});if(r==="text")return o?T.createElement(T.Fragment,null,o(k,B)||null):T.createElement("span",Object.assign({},B,{ref:l}),k);if(n){var kr=n;return T.createElement(kr,Object.assign({},qt,{ref:l}))}return T.createElement("input",Object.assign({},qt,{ref:l}))}function Hn(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var l=t.suffix;l===void 0&&(l="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var u=kt(t),f=u.thousandSeparator,p=u.decimalSeparator,h=r!==0&&e.indexOf(".")!==-1||r&&n,w=fr(e,i),S=w.beforeDecimal,y=w.afterDecimal,m=w.addNegation;return r!==void 0&&(y=Bn(y,r,!!n)),f&&(S=fi(S,f,c)),o&&(S=o+S),l&&(y=y+l),m&&(S="-"+S),e=S+(h&&p||"")+y,e}function kt(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function _i(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),l=n.test(e);return e=e.replace(/-/g,""),o&&!l&&t&&(e="-"+e),e}function Ni(e,t){return new RegExp("(^-)|[0-9]|"+kn(e),"g")}function Ti(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ai(e,t,r){var n;t===void 0&&(t=bi(e));var o=r.allowNegative,l=r.prefix;l===void 0&&(l="");var i=r.suffix;i===void 0&&(i="");var c=r.decimalScale,u=t.from,f=t.to,p=f.start,h=f.end,w=kt(r),S=w.allowedDecimalSeparators,y=w.decimalSeparator,m=e[h]===y;if(xt(e)&&(e===l||e===i)&&t.lastValue==="")return e;if(h-p===1&&S.indexOf(e[p])!==-1){var E=c===0?"":y;e=e.substring(0,p)+E+e.substring(p+1,e.length)}var C=function(F,Y,re){var ne=!1,R=!1;l.startsWith("-")?ne=!1:F.startsWith("--")?(ne=!1,R=!0):i.startsWith("-")&&F.length===i.length?ne=!1:F[0]==="-"&&(ne=!0);var ae=ne?1:0;return R&&(ae=2),ae&&(F=F.substring(ae),Y-=ae,re-=ae),{value:F,start:Y,end:re,hasNegation:ne}},I=C(e,p,h),_=I.hasNegation;n=I,e=n.value,p=n.start,h=n.end;var L=C(t.lastValue,u.start,u.end),B=L.start,P=L.end,N=L.value,k=e.substring(p,h);e.length&&N.length&&(B>N.length-i.length||P<l.length)&&!(k&&i.startsWith(k))&&(e=N);var M=0;e.startsWith(l)?M+=l.length:p<l.length&&(M=p),e=e.substring(M),h-=M;var q=e.length,le=e.length-i.length;e.endsWith(i)?q=le:(h>le||h>e.length-i.length)&&(q=h),e=e.substring(0,q),e=_i(_?"-"+e:e,o),e=(e.match(Ni(y))||[]).join("");var Ce=e.indexOf(y);e=e.replace(new RegExp(kn(y),"g"),function(F,Y){return Y===Ce?".":""});var _e=fr(e,o),Ve=_e.beforeDecimal,Qe=_e.afterDecimal,U=_e.addNegation;return f.end-f.start<u.end-u.start&&Ve===""&&m&&!parseFloat(Qe)&&(e=U?"-":""),e}function Oi(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var o=Array.from({length:e.length+1}).map(function(){return!0}),l=e[0]==="-";o.fill(!1,0,r.length+(l?1:0));var i=e.length;return o.fill(!1,i-n.length+1,i+1),o}function Di(e){var t=kt(e),r=t.thousandSeparator,n=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var l=e.allowNegative;if(l===void 0&&(l=!0),r===n)throw new Error(`
13
+ `;var He=(e=>(e.Rounded="rounded",e.Underlined="underlined",e))(He||{});function pl({icon:e,label:t,selected:r,disabled:n,onClick:o,type:l=He.Rounded,isNested:i=!1,...c}){const f=l===He.Underlined,u=r?f?"bg-transparent":ul:dl,v=f?r?vl:gl:"",m=r?hl:fl,b=f?i?"px-md py-sm":"px-lg py-md":"px-sm py-[6px]",S=f?"":"rounded-full",y=i?f?"text-title-sm":"text-label-md":f?"text-title-md":"text-label-lg";return a.jsx(se,{onClick:o,className:w("enabled:state-layer-secondary relative flex items-center disabled:opacity-40",u,m,b,S,v,{"pl-xs":!!e&&!f}),disabled:n,...c,children:a.jsxs("div",{className:w("flex flex-row items-center justify-center gap-2",y),children:[e&&a.jsx("span",{children:e}),a.jsx("span",{className:"text-start font-inter",children:t})]})})}const cr=T.forwardRef(({isChecked:e,isIndeterminate:t,label:r,isLabelFirst:n,isDisabled:o,onCheckedChange:l,name:i,...c},f)=>{const u=T.useRef(null);T.useEffect(()=>{u.current&&(u.current.indeterminate=t??!1)},[t,u]);const v=t?Ro:Qo;function m(b){f&&(typeof f=="function"?f(b):f.current=b),u.current=b}return a.jsxs("div",{className:w("group inline-flex has-[:disabled]:opacity-40",n?"flex-row-reverse":"flex-row",{disabled:o,"gap-x-2":r}),children:[a.jsx("input",{id:i,name:i,type:"checkbox",className:"peer hidden appearance-none",checked:e,ref:m,disabled:o,onChange:b=>{l==null||l(b)},...c}),a.jsx("span",{onClick:()=>{var b;return(b=u.current)==null?void 0:b.click()},className:w("checkbox-base checkbox-state checkbox-icon checkbox-icon-hidden","checkbox-border-default","peer-[&:is(:checked,:indeterminate)]:checkbox-border-checked","peer-[&:is(:checked,:indeterminate)]:checkbox-bg-checked","peer-[&:is(:checked,:indeterminate)]:checkbox-text-checked","peer-disabled:peer-[&:not(:checked,:indeterminate)]:checkbox-border-color-disabled","peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-border-color-disabled-checked","peer-disabled:peer-[&:is(:checked,:indeterminate)]:checkbox-bg-color-disabled-checked"),children:a.jsx(v,{})}),a.jsx(ml,{label:r,name:i})]})});function ml({label:e,name:t}){return a.jsx("label",{htmlFor:t,className:"checkbox-label checkbox-label-disabled",children:e})}var Pe=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Pe||{});const bl="divider-bg-color",xl={[Pe.Horizontal]:"w-full",[Pe.Vertical]:"h-full"},wl="1px";function vn({type:e=Pe.Horizontal,width:t,height:r,lineHeight:n=wl}){const o={...e===Pe.Horizontal?{height:n}:{width:n}};let l=xl[e];return t&&e===Pe.Horizontal?l=t:r&&e===Pe.Vertical&&(l=r),a.jsx("div",{className:w(bl,l),style:o})}var vt=(e=>(e.Small="small",e.Medium="medium",e))(vt||{}),ke=(e=>(e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e))(ke||{});function Ge({text:e,position:t=ke.Top,maxWidth:r="max-w-[200px]",offset:n=8,openDelay:o=0,closeDelay:l=100,children:i}){const c=T.useRef(null),f=T.useRef(null),[u,v]=T.useState(!1),[m,b]=T.useState({top:0,left:0}),S=T.useRef(),y=T.useRef(),p=()=>{clearTimeout(S.current),clearTimeout(y.current)},E=()=>{p(),S.current=setTimeout(()=>v(!0),o)},C=()=>{p(),y.current=setTimeout(()=>v(!1),l)};return T.useLayoutEffect(()=>{var k;if(!u)return;const _=(k=c.current)==null?void 0:k.getBoundingClientRect();if(!_)return;const P={[ke.Top]:{top:_.top-n,left:_.left+_.width/2,transform:"translate(-50%, -100%)"},[ke.Bottom]:{top:_.bottom+n,left:_.left+_.width/2,transform:"translate(-50%, 0)"},[ke.Left]:{top:_.top+_.height/2,left:_.left-n,transform:"translate(-100%, -50%)"},[ke.Right]:{top:_.top+_.height/2,left:_.right+n,transform:"translate(0, -50%)"}}[t];b({top:P.top,left:P.left}),f.current.style.transform=P.transform},[u,t,n]),T.useLayoutEffect(()=>{if(!u)return;const _=()=>{var k;const P=(k=c.current)==null?void 0:k.getBoundingClientRect();P&&b(K=>({...K,left:P.left+P.width/2}))};return window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),()=>{window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_)}},[u]),a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:c,className:"inline-block cursor-pointer",onMouseEnter:E,onFocus:E,onMouseLeave:C,onBlur:C,children:i}),u&&ar.createPortal(a.jsx("div",{ref:f,role:"tooltip",style:{position:"fixed",top:m.top,left:m.left,transition:"opacity .15s ease",opacity:1},className:w("z-[9999999999] w-max rounded p-xs tooltip-bg tooltip-text-color",r),onMouseEnter:E,onMouseLeave:C,children:a.jsx("p",{className:"w-full break-words",children:e})}),document.body)]})}function yl({keyText:e,value:t,tooltipPosition:r,tooltipText:n,supportingLabel:o,size:l=vt.Small,isTruncated:i=!1,copyText:c,onCopySuccess:f,onCopyError:u,fullwidth:v,isReverse:m=!1,valueHoverTitle:b}){const S=m?"flex-row-reverse":"flex-row";async function y(p){if(navigator.clipboard&&c)try{await navigator.clipboard.writeText(c),f==null||f(p,c)}catch(E){console.error("Failed to copy:",E),u==null||u(E,c)}}return a.jsxs("div",{className:w("flex w-full items-baseline gap-xs py-xxs font-inter",S,{"justify-between":v}),children:[a.jsxs("div",{className:w("flex shrink-0 flex-row items-center gap-x-0.5",{"w-1/4":!v}),children:[a.jsx("span",{className:"key-value-key-text-color text-body-md",children:e}),n&&a.jsx(Ge,{text:n,position:r,children:a.jsx(Dt,{className:"key-supporting-text-color"})})]}),a.jsxs("div",{className:w("flex flex-row items-baseline gap-1 break-all",{"w-3/4":!v,truncate:i}),children:[a.jsx("span",{title:b,className:w("key-value-hover-text-color",l===vt.Medium?"text-body-lg":"text-body-md",{truncate:i}),children:t}),o&&a.jsx("span",{className:w("key-supporting-text-color",l===vt.Medium?"text-body-md":"text-body-sm"),children:o}),a.jsx("div",{className:"self-center",children:c&&a.jsx(se,{onClick:y,"aria-label":"Copy to clipboard",children:a.jsx(sr,{className:"key-supporting-text-color"})})})]})]})}var de=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(de||{});const Sl={[de.Small]:"text-title-sm",[de.Medium]:"text-title-md",[de.Large]:"text-title-lg"},El={[de.Small]:"text-label-md",[de.Medium]:"text-label-md",[de.Large]:"text-label-lg"},Cl={[de.Small]:"text-label-md",[de.Medium]:"text-label-md",[de.Large]:"text-label-lg"};function _l({size:e=de.Medium,isCentered:t,supportingLabel:r,label:n,text:o,tooltipPosition:l,tooltipText:i}){const c=Sl[e],f=El[e],u=Cl[e],v=t?"items-center":"items-start",m=e===de.Small?"gap-0.5":"gap-1";return a.jsxs("div",{className:w("flex flex-col",v,m),children:[a.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-0.5",children:[a.jsx("span",{className:w("label-text-primary-neutral font-inter",c),children:o}),r&&a.jsx("span",{className:w("label-text-secondary-neutral font-inter",f),children:r})]}),a.jsx("div",{className:"flex flex-row items-center gap-x-0.5",children:a.jsxs("span",{className:w("label-text-secondary-neutral flex items-center font-inter",u),children:[n,i&&a.jsx("div",{className:"ml-xxxs flex items-center",children:a.jsx(Ge,{text:i,position:l,children:a.jsx(Dt,{className:"label-text-secondary-neutral"})})})]})})]})}function pn({showRightIcon:e,hideBottomBorder:t,onClick:r,isDisabled:n,children:o,isHighlighted:l,...i}){function c(u){(u.key==="Enter"||u.key===" ")&&!n&&r&&r()}function f(){!n&&r&&r()}return a.jsx("div",{className:w("w-full",{"list-item-border-color border-b pb-xs":!t},{"opacity-40":n}),children:a.jsxs("div",{onClick:f,role:"button",tabIndex:0,onKeyDown:c,...i,className:w("list-item-color relative flex flex-row items-center justify-between px-md py-sm",!n&&r?"cursor-pointer":"cursor-default",{"list-item-highlight-bg":l,"state-layer-secondary":!n}),children:[o,e&&a.jsx(fe,{size:le.Small,type:W.Ghost,disabled:n,icon:a.jsx(ir,{})})]})})}function Nl({title:e,titleCentered:t,onBack:r,onClose:n,testId:o}){const l=t?"text-center":r?"ml-1":"",i=t&&(!r||!n);return a.jsxs("div",{className:"header-bg-color header-text-color flex min-h-[56px] w-full items-center px-md--rs pb-xs pt-sm [&_svg]:h-5 [&_svg]:w-5",children:[r?a.jsx(fe,{size:le.Small,type:W.Ghost,onClick:r,icon:a.jsx(sn,{}),"aria-label":"Back"}):i&&a.jsx("div",{className:"w-9"}),a.jsx("div",{className:w("flex-grow",l),children:a.jsx("span",{className:"font-inter text-title-lg","data-testid":o,children:e})}),n?a.jsx(fe,{size:le.Small,type:W.Ghost,onClick:n,icon:a.jsx(gt,{}),testId:"close-icon","aria-label":"Close"}):i&&a.jsx("div",{className:"w-9"})]})}function Tl({children:e,hasBorder:t,bgColor:r="panel-bg"}){const n=t?"border panel-border-color":"border border-transparent";return a.jsx("div",{className:w("flex w-full flex-col rounded-xl",r,n),children:e})}function mn(){return a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-iota-neutral-96 dark:bg-iota-neutral-10",children:a.jsx(al,{className:"h-4 w-4 text-iota-neutral-40 dark:text-iota-neutral-60"})})}const bn=T.forwardRef(({onError:e,renderFallback:t,...r},n)=>{const[o,l]=T.useState(!1);function i(c){l(!0),e==null||e(c)}return o||!r.src?t||a.jsx(mn,{}):a.jsx(dr,{onError:i,ref:n,...r})}),dr=T.forwardRef((e,t)=>a.jsx("img",{className:"h-full w-full object-cover",ref:t,...e}));var Se=(e=>(e.Default="default",e.Error="error",e.Success="success",e.Warning="warning",e))(Se||{}),pt=(e=>(e.Default="default",e.Elevated="elevated",e))(pt||{});const Al={[Se.Default]:"bg-default-surface text-on-default",[Se.Error]:"bg-error-surface text-on-error",[Se.Success]:"bg-success-surface text-on-success",[Se.Warning]:"bg-warning-surface text-on-warning"},Ol={[Se.Default]:"bg-default-surface",[Se.Error]:"bg-error-surface",[Se.Success]:"bg-success-surface",[Se.Warning]:"bg-warning-surface"};function Dl({icon:e,title:t,supportingText:r,type:n,style:o}){const l=Al[n],i=o===pt.Elevated?Ol[n]:"";return a.jsxs("div",{className:w("flex flex-row items-start gap-4 py-xs pr-lg",i,{"rounded-lg pl-xs":o===pt.Elevated}),children:[e&&a.jsx("span",{className:w("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4",l,{"p-xs":o===pt.Default}),children:e}),a.jsxs("div",{className:"flex flex-col gap-1",children:[t&&a.jsx("span",{className:"infobox-text-title text-title-sm",children:t}),r&&a.jsx("span",{className:"infobox-supporting-text text-body-sm",children:r})]})]})}var ge=(e=>(e.Default="default",e.Error="error",e.Warning="warning",e.Success="success",e))(ge||{});const xn={[ge.Default]:"text-on-default",[ge.Error]:"text-on-error",[ge.Warning]:"text-on-warning",[ge.Success]:"text-on-success"},Ll={[ge.Default]:"bg-default-surface",[ge.Error]:"bg-error-surface",[ge.Warning]:"bg-warning-surface",[ge.Success]:"bg-success-surface"};function Il({text:e,duration:t=2e3,onClose:r,showClose:n,type:o=ge.Default}){return T.useEffect(()=>{if(t){const l=setTimeout(r,t);return()=>clearTimeout(l)}},[t,r]),a.jsxs("div",{className:w("transition-all duration-300 ease-out","z-99 bottom-0","flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm",Ll[o]),children:[a.jsx("div",{className:w("w-full text-left text-body-md",xn[o]),children:e}),n&&a.jsx(se,{onClick:r,"aria-label":"Close",children:a.jsx(gt,{className:w("h-5 w-5",xn[o])})})]})}function Pl({color:e="loading-indicator-color",size:t="w-5 h-5",text:r,testId:n}){return a.jsxs("div",{className:"flex items-center justify-center gap-xs",children:[a.jsx(cn,{className:w("animate-spin",e,t),"data-testid":n}),r&&a.jsx("span",{className:w("text-body-sm",e),children:r})]})}function wn({width:e="w-full",height:t="h-4"}){return a.jsx("div",{className:w("animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8",e,t)})}function kl({children:e,className:t,hasSecondaryColors:r}){return a.jsx("div",{className:w("h-3 w-full animate-pulse rounded-full",r?"skeleton-secondary-bg":"skeleton-bg",t),children:e})}const Bl={autoPlay:!0,muted:!0,playsInline:!0,controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},Ml={autoPlay:!0,muted:!0,playsInline:!0,controls:!1,disablePictureInPicture:!0,preload:"auto",loop:!0,width:"100%",height:"auto"},yn=T.forwardRef(({width:e="100%",height:t="auto",isAutoPlayEnabled:r,disableControls:n,...o},l)=>{const i=r?n?Ml:Bl:{preload:"metadata",autoPlay:!1};return a.jsx("video",{ref:l,width:e,height:t,...i,...o,children:"Your browser does not support the video tag."})});var Ae=(e=>(e.Small="small",e.Default="default",e))(Ae||{}),Lt=(e=>(e.Left="left",e.Right="right",e))(Lt||{});const Fl="relative inline-flex items-center p-xxs border rounded-full cursor-pointer",It={active:"toggle-bg-active toggle-border-active",inactive:"toggle-bg-inactive toggle-border-inactive",disabledActive:"toggle-bg-disabled-active toggle-border-disabled-active",disabled:"opacity-40 cursor-not-allowed"},Vl={[Ae.Small]:"h-5 w-10",[Ae.Default]:"h-6 w-12"},Ul="absolute rounded-full transition-all duration-200 ease-in-out",Sn={[Ae.Small]:{unchecked:"left-1",checked:"left-[34px] -translate-x-full"},[Ae.Default]:{unchecked:"left-1",checked:"left-[42px] -translate-x-full"}},En={unchecked:"toggle-thumb-color",checked:"toggle-thumb-color-checked"},Wl={[Ae.Small]:"h-3 w-3",[Ae.Default]:"h-4 w-4"},jl="inline-flex items-center gap-2",Hl="text-label-lg toggle-label-color",Gl=T.forwardRef(({label:e,isToggled:t,labelPosition:r=Lt.Right,isDisabled:n=!1,onChange:o,name:l,size:i=Ae.Default,testId:c,...f},u)=>{const v=T.useRef(null);function m(C){const I=C.target.checked;o==null||o(I,C)}function b(C){u&&(typeof u=="function"?u(C):u.current=C),v.current=C}const S=w(Fl,{[It.active]:t&&!n,[It.inactive]:!t,[It.disabledActive]:n&&t,[It.disabled]:n,[Vl[i]]:!0}),y=w(Ul,{[Sn[i].unchecked]:!t,[Sn[i].checked]:t,[En.unchecked]:!t,[En.checked]:t,[Wl[i]]:!0}),p=w(jl,{"flex-row-reverse":r===Lt.Left,"cursor-not-allowed":n}),E=w(Hl,{"opacity-40":n&&!t});return a.jsxs("div",{className:p,children:[a.jsx("input",{id:l,name:l,type:"checkbox",className:"sr-only",checked:t,ref:b,disabled:n,onChange:m,"data-testid":c}),a.jsx("span",{role:"switch","aria-checked":t,onClick:()=>{var C;return(C=v.current)==null?void 0:C.click()},className:S,...f,children:a.jsx("span",{className:y})}),e&&a.jsx("label",{htmlFor:l,className:E,children:e})]})});function mt({children:e,hasErrorStyles:t}){return a.jsx("p",{className:w("secondary-text-color text-label-lg",{["group-[.errored]:w-full group-[.errored]:secondary-text-error-color group-[.errored]:bg-error-surface group-[.errored]:rounded-xl group-[.errored]:py-1 group-[.errored]:px-2"]:t}),children:e})}function Cn({text:e,isCopyable:t,isExternal:r,externalLink:n,copyText:o=e,onCopySuccess:l,onCopyError:i,onOpen:c}){async function f(v){if(navigator.clipboard){v==null||v.stopPropagation();try{await navigator.clipboard.writeText(o),l==null||l(v,o)}catch(m){console.error("Failed to copy:",m),i==null||i(m,o)}}}function u(v){if(v==null||v.stopPropagation(),n){const m=window.open(n,"_blank","noopener noreferrer");m&&(m.opener=null)}c==null||c(v)}return a.jsxs("div",{className:"address-text-color group flex flex-row items-center gap-1",children:[a.jsx("span",{className:w("font-inter text-body-sm"),children:e}),t&&a.jsx(se,{onClick:f,className:"opacity-100","aria-label":"Copy to clipboard",children:a.jsx(sr,{})}),r&&a.jsx(se,{onClick:u,className:"opacity-100","aria-label":"Open in new tab",children:a.jsx(qo,{})})]})}var ur=(e=>(e.Image="image",e.Video="video",e))(ur||{});function _n({src:e,isAutoPlayEnabled:t,assetType:r,altText:n,showFallback:o,disableControls:l}){return r===ur.Video?a.jsx(yn,{src:e,isAutoPlayEnabled:t,disableControls:l}):o?a.jsx(bn,{src:e,alt:n}):a.jsx(dr,{src:e,alt:n})}var Y=(e=>(e.Outline="outline",e.Elevated="elevated",e.Success="success",e.Brand="brand",e.Error="error",e))(Y||{}),Pt=(e=>(e.Small="small",e.Default="default",e))(Pt||{});const Nn="rounded-full",$l={[Y.Outline]:"bg-transparent",[Y.Elevated]:"chip-bg-elevated",[Y.Success]:"bg-success-surface",[Y.Brand]:"chip-bg-brand",[Y.Error]:"bg-error-surface"},zl="outline outline-1 hover:chip-outline-color-hover active:chip-outline-color-active hover:chip-bg-color-hover active:chip-bg-color-active group-focus:chip-bg-color-focus",Xl={[Y.Outline]:"chip-bg-selected-outline"},Kl="chip-bg-selected-overlay",Zl={[Y.Outline]:"chip-text-secondary"},Yl={[Y.Outline]:"chip-border-default",[Y.Elevated]:"border-transparent",[Y.Success]:"border-success-surface",[Y.Brand]:"chip-border-color-brand",[Y.Error]:"border-error-surface"},ql={[Y.Outline]:"chip-text-default",[Y.Elevated]:"chip-text-secondary",[Y.Success]:"chip-text-secondary",[Y.Brand]:"chip-text-brand",[Y.Error]:"chip-text-secondary"},Ql="focus-visible:shadow-[0_0_0_2px] focus-visible:chip-focus-ring focus-visible:outline-none",Jl="chip-close-icon-opacity group-hover:opacity-100 group-focus:opacity-100 group-active:opacity-100";function Rl({label:e,type:t=Y.Outline,selected:r,showClose:n,onClose:o,onClick:l,avatar:i,leadingElement:c,trailingElement:f,disabled:u,size:v=Pt.Default,...m}){const b=t===Y.Outline&&r,S=r?t===Y.Outline?"outline-transparent names:outline-names-neutral-20":"chip-outline-color":"outline-transparent",y=w("group-focus:chip-outline-color-active",t===Y.Outline&&"names:group-focus:outline-transparent"),p=r&&!u&&t!==Y.Outline?Kl:"";return a.jsx(se,{onClick:l,className:w("group border disabled:opacity-40",Nn,b?Xl[Y.Outline]:$l[t],r?"border-transparent":Yl[t]),disabled:u,...m,children:a.jsxs("span",{className:w("flex h-full w-full flex-row items-center gap-x-2",i?"py-xxs":"py-[6px]",i?"pl-xxs":c?"pl-xs":"pl-sm",n?"pr-xs":"pr-sm",Nn,b?Zl[Y.Outline]:ql[t],S,!u&&y,!u&&zl,Ql,p),children:[i??c,a.jsx("span",{className:w(v===Pt.Small?"text-label-md":"text-body-md"),children:e}),f,n&&a.jsx(se,{onClick:E=>{E.stopPropagation(),o==null||o()},disabled:u,"aria-label":"Remove",children:a.jsx(gt,{className:w("h-4 w-4 transition-opacity duration-150",u?"":r?"opacity-100":Jl)})})]})})}var $e=(e=>(e.Outlined="outlined",e.Filled="filled",e.Transparent="transparent",e))($e||{});const ei={[$e.Outlined]:"bg-transparent",[$e.Filled]:"segmented-filled-bg-color",[$e.Transparent]:"bg-transparent"},ti="border segmented-outlined-border";function ri({type:e=$e.Filled,children:t,shape:r=He.Rounded}){const n=ei[e],o=e===$e.Outlined?ti:"",l=r===He.Rounded?"rounded-full gap-1 p-xxs":"",i=r===He.Rounded?"flex-wrap":"flex-nowrap overflow-x-auto";return a.jsx("div",{className:w("flex flex-row",n,o,l,i),children:t})}var ze=(e=>(e.Small="small",e.Medium="medium",e))(ze||{});const ni={[ze.Small]:"px-md py-sm--rs",[ze.Medium]:"px-md--rs py-sm--rs"},ai={[ze.Small]:"text-title-md",[ze.Medium]:"text-title-lg"};function oi({title:e,subtitle:t,trailingElement:r,tooltipText:n,supportingElement:o,tooltipPosition:l,size:i=ze.Medium,testId:c}){return a.jsxs("div",{className:w("flex flex-row items-center justify-between",ni[i]),"data-testid":c,children:[a.jsxs("div",{className:"flex flex-row items-center gap-x-xxxs",children:[a.jsxs("div",{className:"flex flex-col justify-start",children:[a.jsxs("div",{className:"title-main-color flex flex-row items-center gap-x-0.5",children:[a.jsx("h4",{className:w(ai[i]),children:e}),n&&a.jsx(Ge,{text:n,position:l,children:a.jsx(Dt,{className:"title-icon-color"})})]}),a.jsx("p",{className:"title-subtitle-color text-label-md",children:t})]}),o]}),r]})}const Tn="w-full input-caret-color bg-transparent text-body-lg caret-input-caret-color focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed",An="input-text-color",On="input-placeholder-color",li="[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed",Dn="px-md py-sm rounded-lg border input-border-color input-border-color-disabled group-[.enabled]:cursor-text input-border-error-color hover:group-[.enabled]:input-border-color-hover input-border-color-focus",ii="flex flex-col gap-y-2 text-label-lg input-label-color";var Ln=(e=>(e.Label="label",e.Div="div",e))(Ln||{});function fr({label:e,caption:t,disabled:r,errorMessage:n,amountCounter:o,required:l,labelHtmlTag:i="label",children:c}){return a.jsxs("div",{className:w("group flex w-full flex-col gap-y-2",{"cursor-not-allowed opacity-40":r,errored:n,enabled:!r,required:l}),children:[e?a.jsxs(si,{labelHtmlTag:i,children:[e,c]}):c,(n||t||o)&&a.jsxs("div",{className:w("flex flex-row items-center",t||n?"justify-between gap-md":"justify-end"),children:[(n||t)&&a.jsx(mt,{hasErrorStyles:!0,children:n||t}),o&&a.jsx(mt,{children:o})]})]})}function si({labelHtmlTag:e,children:t}){return T.createElement(e,{className:ii},t)}var ve=(e=>(e.Text="text",e.Password="password",e.Number="number",e.NumericFormat="numericFormat",e))(ve||{}),In=(e=>(e.None="none",e.Vertical="vertical",e))(In||{});function Pn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var bt;(function(e){e.event="event",e.props="prop"})(bt||(bt={}));function Be(){}function ci(e){var t,r=void 0;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t&&n.length===t.length&&n.every(function(l,i){return l===t[i]})||(t=n,r=e.apply(void 0,n)),r}}function xt(e){return!!(e||"").match(/\d/)}function rt(e){return e==null}function di(e){return typeof e=="number"&&isNaN(e)}function kn(e){return rt(e)||di(e)||typeof e=="number"&&!isFinite(e)}function Bn(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ui(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function fi(e,t,r){var n=ui(r),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}function hi(e){var t=T.useRef(e);t.current=e;var r=T.useRef(function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t.current.apply(t,n)});return r.current}function hr(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var o=e.split("."),l=o[0],i=o[1]||"";return{beforeDecimal:l,afterDecimal:i,hasNegation:r,addNegation:n}}function gi(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return(t?"-":"")+n+(o?"."+o:"")}function Mn(e,t,r){for(var n="",o=r?"0":"",l=0;l<=t-1;l++)n+=e[l]||o;return n}function Fn(e,t){return Array(t+1).join(e)}function Vn(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),o=n[0],l=n[1];if(l=Number(l),!l)return r+o;o=o.replace(".","");var i=1+l,c=o.length;return i<0?o="0."+Fn("0",Math.abs(i))+o:i>=c?o=o+Fn("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),r+o}function Un(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,o=hr(e),l=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,f=parseFloat("0."+(i||"0")),u=i.length<=t?"0."+i:f.toFixed(t),v=u.split("."),m=l;l&&Number(v[0])&&(m=l.split("").reverse().reduce(function(p,E,C){return p.length>C?(Number(p[0])+Number(E)).toString()+p.substring(1,p.length):E+p},v[0]));var b=Mn(v[1]||"",t,r),S=c?"-":"",y=n?".":"";return""+S+m+y+b}function Xe(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Wn=ci(function(e,t){for(var r=0,n=0,o=e.length,l=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[l-1-n]&&l-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:l-n}}}),vi=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function pi(e,t,r){return Math.min(Math.max(e,t),r)}function gr(e){return Math.max(e.selectionStart,e.selectionEnd)}function mi(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function bi(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xi(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function wi(e,t,r,n,o,l,i){i===void 0&&(i=xi);var c=o.findIndex(function(P){return P}),f=e.slice(0,c);!t&&!r.startsWith(f)&&(t=f,r=f+r,n=n+f.length);for(var u=r.length,v=e.length,m={},b=new Array(u),S=0;S<u;S++){b[S]=-1;for(var y=0,p=v;y<p;y++){var E=i({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:S,formattedValueIndex:y});if(E&&m[y]!==!0){b[S]=y,m[y]=!0;break}}}for(var C=n;C<u&&(b[C]===-1||!l(r[C]));)C++;var I=C===u||b[C]===-1?v:b[C];for(C=n-1;C>0&&b[C]===-1;)C--;var _=C===-1||b[C]===-1?0:b[C]+1;return _>I?I:n-_<I-n?_:I}function jn(e,t,r,n){var o=e.length;if(t=pi(t,0,o),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return t===-1&&(t=o),t}function yi(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(xt(e[r])||xt(e[r-1]));return t}function Hn(e,t,r,n,o,l){l===void 0&&(l=Be);var i=hi(function(y,p){var E,C;return kn(y)?(C="",E=""):typeof y=="number"||p?(C=typeof y=="number"?Vn(y):y,E=n(C)):(C=o(y,void 0),E=n(C)),{formattedValue:E,numAsString:C}}),c=T.useState(function(){return i(rt(e)?t:e,r)}),f=c[0],u=c[1],v=function(y,p){y.formattedValue!==f.formattedValue&&u({formattedValue:y.formattedValue,numAsString:y.value}),l(y,p)},m=e,b=r;rt(e)&&(m=f.numAsString,b=!0);var S=i(m,b);return T.useMemo(function(){u(S)},[S.formattedValue]),[f,v]}function Si(e){return e.replace(/[^0-9]/g,"")}function Ei(e){return e}function Ci(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,o=e.renderText,l=e.getInputRef,i=e.format;i===void 0&&(i=Ei);var c=e.removeFormatting;c===void 0&&(c=Si);var f=e.defaultValue,u=e.valueIsNumericString,v=e.onValueChange,m=e.isAllowed,b=e.onChange;b===void 0&&(b=Be);var S=e.onKeyDown;S===void 0&&(S=Be);var y=e.onMouseUp;y===void 0&&(y=Be);var p=e.onFocus;p===void 0&&(p=Be);var E=e.onBlur;E===void 0&&(E=Be);var C=e.value,I=e.getCaretBoundary;I===void 0&&(I=yi);var _=e.isValidInputCharacter;_===void 0&&(_=xt);var P=e.isCharacterSame,k=Pn(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),K=Hn(C,f,!!u,i,c,v),N=K[0],A=N.formattedValue,G=N.numAsString,V=K[1],re=T.useRef(),ce=T.useRef({formattedValue:A,numAsString:G}),_e=function(O,L){ce.current={formattedValue:O.formattedValue,numAsString:O.value},V(O,L)},We=T.useState(!1),Qe=We[0],F=We[1],B=T.useRef(null),q=T.useRef({setCaretTimeout:null,focusTimeout:null});T.useEffect(function(){return F(!0),function(){clearTimeout(q.current.setCaretTimeout),clearTimeout(q.current.focusTimeout)}},[]);var ne=i,ae=function(O,L){var M=parseFloat(L);return{formattedValue:O,value:L,floatValue:isNaN(M)?void 0:M}},R=function(O,L,M){O.selectionStart===0&&O.selectionEnd===O.value.length||(Xe(O,L),q.current.setCaretTimeout=setTimeout(function(){O.value===M&&O.selectionStart!==L&&Xe(O,L)},0))},oe=function(O,L,M){return jn(O,L,I(O),M)},H=function(O,L,M){var z=I(L),ie=wi(L,A,O,M,z,_,P);return ie=jn(L,ie,z),ie},st=function(O){var L=O.formattedValue;L===void 0&&(L="");var M=O.input,z=O.source,ie=O.event,X=O.numAsString,U;if(M){var he=O.inputValue||M.value,xe=gr(M);M.value=L,U=H(he,L,xe),U!==void 0&&R(M,U,L)}L!==A&&_e(ae(L,X),{event:ie,source:z})};T.useEffect(function(){var O=ce.current,L=O.formattedValue,M=O.numAsString;(A!==L||G!==M)&&_e(ae(A,G),{event:void 0,source:bt.props})},[A,G]);var Je=B.current?gr(B.current):void 0,Ne=typeof window<"u"?T.useLayoutEffect:T.useEffect;Ne(function(){var O=B.current;if(A!==ce.current.formattedValue&&O){var L=H(ce.current.formattedValue,A,Je);O.value=A,R(O,L,A)}},[A]);var ct=function(O,L,M){var z=L.target,ie=re.current?vi(re.current,z.selectionEnd):Wn(A,O),X=Object.assign(Object.assign({},ie),{lastValue:A}),U=c(O,X),he=ne(U);if(U=c(he,void 0),m&&!m(ae(he,U))){var xe=L.target,Te=gr(xe),Et=H(O,A,Te);return xe.value=A,R(xe,Et,A),!1}return st({formattedValue:he,numAsString:U,inputValue:O,event:L,source:M,input:L.target}),!0},Le=function(O,L){L===void 0&&(L=0);var M=O.selectionStart,z=O.selectionEnd;re.current={selectionStart:M,selectionEnd:z+L}},Zt=function(O){var L=O.target,M=L.value,z=ct(M,O,bt.event);z&&b(O),re.current=void 0},St=function(O){var L=O.target,M=O.key,z=L.selectionStart,ie=L.selectionEnd,X=L.value;X===void 0&&(X="");var U;M==="ArrowLeft"||M==="Backspace"?U=Math.max(z-1,0):M==="ArrowRight"?U=Math.min(z+1,X.length):M==="Delete"&&(U=z);var he=0;M==="Delete"&&z===ie&&(he=1);var xe=M==="ArrowLeft"||M==="ArrowRight";if(U===void 0||z!==ie&&!xe){S(O),Le(L,he);return}var Te=U;if(xe){var Et=M==="ArrowLeft"?"left":"right";Te=oe(X,U,Et),Te!==U&&O.preventDefault()}else M==="Delete"&&!_(X[U])?Te=oe(X,U,"right"):M==="Backspace"&&!_(X[U])&&(Te=oe(X,U,"left"));Te!==U&&R(L,Te,X),S(O),Le(L,he)},Yt=function(O){var L=O.target,M=function(){var z=L.selectionStart,ie=L.selectionEnd,X=L.value;if(X===void 0&&(X=""),z===ie){var U=oe(X,z);U!==z&&R(L,U,X)}};M(),requestAnimationFrame(function(){M()}),y(O),Le(L)},qt=function(O){O.persist&&O.persist();var L=O.target,M=O.currentTarget;B.current=L,q.current.focusTimeout=setTimeout(function(){var z=L.selectionStart,ie=L.selectionEnd,X=L.value;X===void 0&&(X="");var U=oe(X,z);U!==z&&!(z===0&&ie===X.length)&&R(L,U,X),p(Object.assign(Object.assign({},O),{currentTarget:M}))},0)},Pr=function(O){B.current=null,clearTimeout(q.current.focusTimeout),clearTimeout(q.current.setCaretTimeout),E(O)},kr=Qe&&mi()?"numeric":void 0,Qt=Object.assign({inputMode:kr},k,{type:t,value:A,onChange:Zt,onKeyDown:St,onMouseUp:Yt,onFocus:qt,onBlur:Pr});if(r==="text")return o?T.createElement(T.Fragment,null,o(A,k)||null):T.createElement("span",Object.assign({},k,{ref:l}),A);if(n){var Br=n;return T.createElement(Br,Object.assign({},Qt,{ref:l}))}return T.createElement("input",Object.assign({},Qt,{ref:l}))}function Gn(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var l=t.suffix;l===void 0&&(l="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var f=kt(t),u=f.thousandSeparator,v=f.decimalSeparator,m=r!==0&&e.indexOf(".")!==-1||r&&n,b=hr(e,i),S=b.beforeDecimal,y=b.afterDecimal,p=b.addNegation;return r!==void 0&&(y=Mn(y,r,!!n)),u&&(S=fi(S,u,c)),o&&(S=o+S),l&&(y=y+l),p&&(S="-"+S),e=S+(m&&v||"")+y,e}function kt(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function _i(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),l=n.test(e);return e=e.replace(/-/g,""),o&&!l&&t&&(e="-"+e),e}function Ni(e,t){return new RegExp("(^-)|[0-9]|"+Bn(e),"g")}function Ti(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Ai(e,t,r){var n;t===void 0&&(t=bi(e));var o=r.allowNegative,l=r.prefix;l===void 0&&(l="");var i=r.suffix;i===void 0&&(i="");var c=r.decimalScale,f=t.from,u=t.to,v=u.start,m=u.end,b=kt(r),S=b.allowedDecimalSeparators,y=b.decimalSeparator,p=e[m]===y;if(xt(e)&&(e===l||e===i)&&t.lastValue==="")return e;if(m-v===1&&S.indexOf(e[v])!==-1){var E=c===0?"":y;e=e.substring(0,v)+E+e.substring(v+1,e.length)}var C=function(B,q,ne){var ae=!1,R=!1;l.startsWith("-")?ae=!1:B.startsWith("--")?(ae=!1,R=!0):i.startsWith("-")&&B.length===i.length?ae=!1:B[0]==="-"&&(ae=!0);var oe=ae?1:0;return R&&(oe=2),oe&&(B=B.substring(oe),q-=oe,ne-=oe),{value:B,start:q,end:ne,hasNegation:ae}},I=C(e,v,m),_=I.hasNegation;n=I,e=n.value,v=n.start,m=n.end;var P=C(t.lastValue,f.start,f.end),k=P.start,K=P.end,N=P.value,A=e.substring(v,m);e.length&&N.length&&(k>N.length-i.length||K<l.length)&&!(A&&i.startsWith(A))&&(e=N);var G=0;e.startsWith(l)?G+=l.length:v<l.length&&(G=v),e=e.substring(G),m-=G;var V=e.length,re=e.length-i.length;e.endsWith(i)?V=re:(m>re||m>e.length-i.length)&&(V=m),e=e.substring(0,V),e=_i(_?"-"+e:e,o),e=(e.match(Ni(y))||[]).join("");var ce=e.indexOf(y);e=e.replace(new RegExp(Bn(y),"g"),function(B,q){return q===ce?".":""});var _e=hr(e,o),We=_e.beforeDecimal,Qe=_e.afterDecimal,F=_e.addNegation;return u.end-u.start<f.end-f.start&&We===""&&p&&!parseFloat(Qe)&&(e=F?"-":""),e}function Oi(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var o=Array.from({length:e.length+1}).map(function(){return!0}),l=e[0]==="-";o.fill(!1,0,r.length+(l?1:0));var i=e.length;return o.fill(!1,i-n.length+1,i+1),o}function Di(e){var t=kt(e),r=t.thousandSeparator,n=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var l=e.allowNegative;if(l===void 0&&(l=!0),r===n)throw new Error(`
14
14
  Decimal separator can't be same as thousand separator.
15
15
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
16
16
  decimalSeparator: `+n+` (default value for decimalSeparator is .)
@@ -18,7 +18,7 @@
18
18
  Prefix can't start with '-' when allowNegative is true.
19
19
  prefix: `+o+`
20
20
  allowNegative: `+l+`
21
- `),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function Li(e){e=Di(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=ke);var l=e.onBlur;l===void 0&&(l=ke);var i=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,f=e.prefix;f===void 0&&(f="");var p=e.defaultValue,h=e.value,w=e.valueIsNumericString,S=e.onValueChange,y=In(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=kt(e),E=m.decimalSeparator,C=m.allowedDecimalSeparators,I=function(U){return Hn(U,e)},_=function(U,F){return Ai(U,F,e)},L=rt(h)?p:h,B=w??Ti(L,f,t);rt(h)?rt(p)||(B=B||typeof p=="number"):B=B||typeof h=="number";var P=function(U){return Pn(U)?U:(typeof U=="number"&&(U=Fn(U)),B&&typeof c=="number"?Vn(U,c,!!u):U)},N=jn(P(h),P(p),!!B,I,_,S),k=N[0],M=k.numAsString,q=k.formattedValue,le=N[1],Ce=function(U){var F=U.target,Y=U.key,re=F.selectionStart,ne=F.selectionEnd,R=F.value;if(R===void 0&&(R=""),(Y==="Backspace"||Y==="Delete")&&ne<f.length){U.preventDefault();return}if(re!==ne){o(U);return}Y==="Backspace"&&R[0]==="-"&&re===f.length+1&&r&&$e(F,1),c&&u&&(Y==="Backspace"&&R[re-1]===E?($e(F,re-1),U.preventDefault()):Y==="Delete"&&R[re]===E&&U.preventDefault()),C!=null&&C.includes(Y)&&R[re]===E&&$e(F,re+1);var ae=i===!0?",":i;Y==="Backspace"&&R[re-1]===ae&&$e(F,re-1),Y==="Delete"&&R[re]===ae&&$e(F,re+1),o(U)},_e=function(U){var F=M;if(F.match(/\d/g)||(F=""),n||(F=vi(F)),u&&c&&(F=Vn(F,c,u)),F!==M){var Y=Hn(F,e);le({formattedValue:Y,value:F,floatValue:parseFloat(F)},{event:U,source:bt.event})}l(U)},Ve=function(U){return U===E?!0:xt(U)},Qe=function(U){var F=U.currentValue,Y=U.lastValue,re=U.formattedValue,ne=U.currentValueIndex,R=U.formattedValueIndex,ae=F[ne],G=re[R],st=Un(Y,F),Je=st.to,Ne=function(ct){return _(ct).indexOf(".")+f.length};return h===0&&u&&c&&F[Je.start]===E&&Ne(F)<ne&&Ne(re)>R?!1:ne>=Je.start&&ne<Je.end&&C&&C.includes(ae)&&G===E?!0:ae===G};return Object.assign(Object.assign({},y),{value:q,valueIsNumericString:!1,isValidInputCharacter:Ve,isCharacterSame:Qe,onValueChange:le,format:I,removeFormatting:_,getCaretBoundary:function(U){return Oi(U,e)},onKeyDown:Ce,onBlur:_e})}function Ii(e){var t=Li(e);return T.createElement(Ci,Object.assign({},t))}const Pi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,leadingIcon:l,supportingText:i,amountCounter:c,trailingElement:u,isContentVisible:f,value:p,supportingValue:h,defaultValue:w,onClearInput:S,isVisibilityToggleEnabled:y,type:m,...E},C){y??(y=m===ve.Password);const I=T.useRef(null),[_,L]=T.useState(f??m!==ve.Password);T.useEffect(()=>{L(f??m!==ve.Password)},[m,f]);function B(){L(N=>!N)}function P(){var N;I.current&&((N=I.current.querySelector("input"))==null||N.focus())}return a.jsx(ur,{label:t,caption:r,disabled:n,errorMessage:o,amountCounter:c,required:E.required,children:a.jsxs("div",{className:x("input-container relative flex flex-row items-center gap-x-3",On),onClick:P,ref:I,children:[l&&a.jsx("span",{className:"input-icon-color",children:l}),a.jsxs("div",{className:"flex flex-1 flex-col items-start",children:[a.jsx(ki,{...E,inputRef:C,value:p,type:m===ve.Password&&_?ve.Text:m,disabled:n,className:x(Nn,Tn,An,li)}),h&&a.jsx("span",{className:"text-label-md text-iota-neutral-60 names:text-iota-neutral-60 dark:text-iota-neutral-40",children:h})]}),i&&a.jsx(mt,{children:i}),a.jsx(Mi,{value:p,type:m,onClearInput:S,isContentVisible:_,trailingElement:u,isVisibilityToggleEnabled:y,onToggleButtonClick:B})]})})});function ki({type:e,inputRef:t,...r}){function n(o){if(e===ve.Number){const l=o.currentTarget;l.blur(),o.stopPropagation(),setTimeout(()=>{l.focus({preventScroll:!0})},0)}}return e===ve.NumericFormat?a.jsx(Bi,{inputRef:t,...r,type:e}):a.jsx("input",{ref:t,...r,type:e,onWheel:o=>{var l;n(o),(l=r.onWheel)==null||l.call(r,o)}})}function Bi({inputRef:e,className:t,type:r,...n}){return a.jsx(Ii,{className:t,valueIsNumericString:!0,getInputRef:e,...n})}function Mi({value:e,type:t,onClearInput:r,isContentVisible:n,trailingElement:o,onToggleButtonClick:l,isVisibilityToggleEnabled:i}){const c=!!(t===ve.Text&&e&&r),u=!!(t===ve.Password&&i),f=!!(o&&!c&&!u);if(c)return a.jsx(se,{className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",onClick:r,tabIndex:-1,children:a.jsx(vt,{})});if(u)return a.jsx(se,{onClick:l,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:n?a.jsx(hn,{}):a.jsx(fn,{})});if(f)return a.jsx(T.Fragment,{children:o})}const Fi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,value:l,amountCounter:i,isVisibilityToggleEnabled:c,isResizeEnabled:u,required:f,isContentVisible:p,defaultValue:h,...w},S){const[y,m]=T.useState(p??!0);T.useEffect(()=>{m(p??!0)},[p]);function E(){m(C=>!C)}return a.jsx(ur,{label:t,caption:r,disabled:n||!y,errorMessage:o,amountCounter:i,required:f,children:a.jsxs("div",{className:"relative",children:[a.jsx("textarea",{disabled:n||!y,required:f,ref:S,className:x("text-area-container peer block min-h-[50px]",On,Nn,Tn,An,y&&u?"resize-y":"resize-none",!y&&"not-visible select-none text-transparent"),defaultValue:y&&h?h:void 0,value:y&&l?l:void 0,...w}),!y&&a.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none",children:a.jsx(Vi,{rows:3,halfWidthRow:3})}),c&&a.jsx("span",{className:"absolute bottom-4 right-4 flex",children:a.jsx(se,{onClick:E,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:y?a.jsx(hn,{}):a.jsx(fn,{})})})]})})});function Vi({rows:e,halfWidthRow:t}){return a.jsx(a.Fragment,{children:Array.from({length:e}).map((r,n)=>{const l=t===n+1?"w-1/2":"w-full";return a.jsx("div",{className:`input-visibility-bar h-2.5 rounded ${l}`},n)})})}var Bt=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(Bt||{});const Gn="navbar-item-icon-selected-color",$n="navbar-item-icon-color",Ui="py-xxs px-sm",Wi="p-sm",zn="bg-shader-primary-light-12 dark:bg-shader-primary-dark-12",ji="-top-3 right-3",Hi="-top-1 right-3",Xn="navbar-item-label-selected-color",Kn="navbar-item-label-color";function Gi({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1}){const i=r?Gn:$n,c=t?Ui:Wi,u=r&&zn,f=t?ji:Hi,p=r?Xn:Kn,h=l?"cursor-not-allowed opacity-60":"state-layer-secondary",w=S=>{if(l){S.preventDefault();return}o==null||o(S)};return a.jsxs("div",{onClick:w,className:x("inline-flex cursor-pointer flex-col items-center justify-center space-y-1"),children:[a.jsxs("div",{className:x("relative inline-flex rounded-full",c,u,h),children:[a.jsx("div",{className:x("inline-flex [&_svg]:h-6 [&_svg]:w-6",i),children:e}),n&&a.jsx("div",{className:x("absolute",f),children:a.jsx(ft,{type:te.PrimarySolid})})]}),t&&a.jsx("span",{className:x("text-center text-label-md",p),children:t})]})}function $i({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1}){const i=r?Gn:$n,c=r&&zn,u=r?Xn:Kn,f=l?"cursor-not-allowed opacity-60":"state-layer-secondary cursor-pointer ",p=h=>{if(l){h.preventDefault();return}o==null||o(h)};return a.jsxs("div",{onClick:p,className:x("relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm",c,f),children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:x("inline-flex [&_svg]:h-6 [&_svg]:w-6",i),children:e}),t&&a.jsx("span",{className:x("text-center text-label-lg",u),children:t})]}),n&&a.jsx(ft,{type:te.PrimarySolid})]})}function vr(e){const{type:t,text:r}=e;return t===Bt.Vertical&&r?a.jsx($i,{...e}):a.jsx(Gi,{...e})}function zi({title:e,subtitle:t,badgeType:r,badgeText:n,avatarContent:o,onOptionsClick:l,onCopy:i,copyText:c,onOpen:u,isCopyable:f,isExternal:p,isSelected:h,isActive:w,showSelected:S,badgeTooltipText:y,badgeTooltipPosition:m=Pe.Bottom}){const E=o;return a.jsx("div",{"data-testid":"account-tile",className:x("state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer",w&&"state-active"),children:a.jsxs("div",{className:"flex w-full items-center gap-x-3",children:[a.jsx("div",{children:a.jsx(E,{})}),a.jsxs("div",{className:"flex w-full min-w-0 flex-col items-start py-xs",children:[a.jsxs("div",{className:"flex w-full min-w-0 items-center space-x-2",children:[a.jsx("p",{className:"account-title-color min-w-0 max-w-full truncate font-inter text-title-md",children:e}),n&&r?y?a.jsx(je,{text:y,position:m,children:a.jsx(ft,{type:r,label:n})}):a.jsx(ft,{type:r,label:n}):null]}),a.jsx(En,{text:t,onCopySuccess:i,copyText:c,onOpen:u,isCopyable:f,isExternal:p})]}),a.jsxs("div",{className:"ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5",children:[a.jsx("div",{className:"account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible",children:l&&a.jsx(se,{onClick:l,children:a.jsx(cn,{})})}),S&&a.jsx(se,{children:h?a.jsx(Jo,{className:"account-check-active-color h-5 w-5"}):a.jsx(dn,{className:"account-check-inactive-color h-5 w-5"})})]})]})})}function Zn({children:e}){return a.jsx("ul",{className:"dropdown-bg dropdown-border-color list-none rounded-lg border py-xs",children:e})}var wt=(e=>(e.Top="top",e.Bottom="bottom",e))(wt||{});function Yn({children:e,hasLastBorderNoneClass:t,isContentCentered:r}){return a.jsx("td",{className:x("table-cell-border-color h-14 border-b px-md",{"last:border-none":t},{"flex items-center justify-center":r}),children:e})}function Xi({children:e,supportingLabel:t}){return a.jsxs("div",{className:"flex flex-row items-baseline gap-1",children:[a.jsx("span",{children:e}),t&&a.jsx("span",{className:"table-cell-supporting-label-color text-body-sm",children:t})]})}function Ki(){return a.jsx(xn,{})}var yt=(e=>(e.Small="small",e.Default="default",e))(yt||{});const Zi=T.forwardRef(({disabled:e,label:t,leadingIcon:r,supportingText:n,errorMessage:o,caption:l,options:i,placeholder:c,onValueChange:u,onOptionClick:f,value:p,dropdownPosition:h=wt.Bottom,size:w=yt.Default},S)=>{const[y,m]=T.useState(!1),E=B(p,i),C=T.useRef(null),I=E||c,_=w===yt.Small?"px-sm":"px-md",L=w===yt.Small?"text-body-md":"text-body-lg";T.useEffect(()=>{e&&y&&k()},[e,y]),T.useEffect(()=>{if(!y)return;const M=q=>{const le=q.target;C.current&&!C.current.contains(le)&&k()};return document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[y]);function B(M,q=[]){return q.find(le=>typeof le=="string"?le===M:le.id===M)??q[0]}function P(){m(M=>!M)}function N(M){k();const q=typeof M=="string"?M:M.id;f==null||f(q),M!==E&&(u==null||u(q))}function k(){m(!1)}return a.jsx(ur,{label:t,caption:l,disabled:e,errorMessage:o,labelHtmlTag:Dn.Div,children:a.jsxs("div",{className:"relative flex w-full flex-col",ref:C,children:[a.jsxs(se,{ref:S,onClick:P,disabled:e,className:x("select-container select-border-color focus-visible:enabled:select-border-focus-color active:enabled:select-border-focus-color group-[.errored]:select-border-error-color group-[.opened]:select-border-focus-color [&:is(:focus,_:focus-visible,_:active)]:enabled:select-border-focus-color hover:enabled:select-border-hover-color flex flex-row items-center gap-x-3 rounded-lg border py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5",_),children:[r&&a.jsx("span",{className:"select-icon-color",children:r}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-x-3",children:[I&&a.jsx("div",{className:x("select-label-color block w-full text-start",L),children:a.jsx(qn,{option:I})}),n&&a.jsx("div",{className:"ml-auto",children:a.jsx(mt,{children:n})})]}),a.jsx(sl,{className:x("select-icon-color transition-transform",{" rotate-180":y})})]}),y&&a.jsx("div",{className:"fixed left-0 top-0 z-[49] bg-transparent",onClick:k}),a.jsx("div",{className:x("absolute z-50 min-w-full",{hidden:!y,"top-full":!h||h===wt.Bottom,"bottom-full":h===wt.Top}),children:a.jsx(Zn,{children:i.map(M=>{const q=typeof M=="string";return a.jsx(gn,{onClick:()=>N(M),hideBottomBorder:!0,children:a.jsx(qn,{option:M})},q?M:M.id)})})})]})})});function qn({option:e}){return typeof e=="string"?e:"renderLabel"in e?e.renderLabel():e.label}var ze=(e=>(e.Asc="asc",e.Desc="desc",e))(ze||{});function Qn({label:e,columnKey:t,hasSort:r,hasCheckbox:n,isChecked:o,isIndeterminate:l,isContentCentered:i,onSortClick:c,onCheckboxChange:u,sortOrder:f}){const p=()=>{const y=f===ze.Asc?ze.Desc:ze.Asc;c&&c(t,y)},h="table-header-text-color",w="text-label-lg",S=r?f===ze.Asc?a.jsx(un,{className:"shrink-0"}):f===ze.Desc?a.jsx(il,{className:"shrink-0"}):a.jsx(un,{className:"invisible shrink-0 group-hover:visible"}):null;return a.jsx("th",{onClick:r?p:void 0,className:x("state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none",{"cursor-pointer":r}),children:a.jsxs("div",{className:x("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4",h,w,{"justify-center":i}),children:[n?a.jsx(sr,{isChecked:o,isIndeterminate:l,onCheckedChange:u}):a.jsx("span",{className:x({"text-left":!i}),children:e}),S]})})}var ge=(e=>(e.Outlined="outlined",e.Filled="filled",e))(ge||{});const Yi={[ge.Outlined]:"bg-transparent",[ge.Filled]:"search-bg-color-filled"},qi={[ge.Outlined]:"border-l border-r border-t search-border-color",[ge.Filled]:"search-bg-color-filled"},Qi={[ge.Outlined]:"rounded-b-3xl border-b border-l border-r search-border-color search-suggestion-bg-color",[ge.Filled]:"rounded-b-3xl search-bg-color-filled"};function Ji({searchValue:e,suggestions:t,onSearchValueChange:r,onSuggestionClick:n,placeholder:o,isLoading:l=!1,type:i=ge.Outlined,renderSuggestion:c}){const u=T.useRef(null),f=T.useRef(null),[p,h]=T.useState(!0),[w,S]=T.useState(null);function y(P){const N=P.target.value;r(N)}T.useEffect(()=>{const P=N=>{var k;N.key==="Escape"&&(h(!1),(k=u.current)==null||k.blur())};return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[]),T.useEffect(()=>{const P=N=>{var M;const k=u==null?void 0:u.current;!k||k.contains(N==null?void 0:N.target)||(M=f.current)!=null&&M.contains(N.target)||h(!1)};return document.addEventListener("click",P,!0),document.addEventListener("touchstart",P,!0),()=>{document.removeEventListener("click",P,!0),document.removeEventListener("touchstart",P,!0)}},[u]);const m=p&&t&&t.length>0,E=m?x("rounded-t-3xl border-b",i===ge.Outlined?"[&:not(.dark_*,.names_*)]:border-b-transparent":"border-b-transparent"):i===ge.Outlined?"rounded-3xl border-b":"rounded-full",C=qi[i],I=Yi[i],_=Qi[i],L=P=>{var N;n==null||n(P),r(""),h(!1),S(null),(N=u.current)==null||N.blur()},B=P=>{t&&(t==null?void 0:t.length)>0&&(P.key==="ArrowDown"?(P.preventDefault(),S(N=>N===null||N>=t.length-1?0:N+1)):P.key==="ArrowUp"?(P.preventDefault(),S(N=>N===null||N<=0?t.length-1:N-1)):P.key==="Enter"&&(P.preventDefault(),w!==null&&t[w]?L(t[w]):t.length===1&&L(t[0])))};return a.jsxs("div",{className:"relative w-full",children:[a.jsxs("div",{className:x("search-text-color flex items-center overflow-hidden px-md py-sm [&_svg]:h-6 [&_svg]:w-6",E,C),children:[a.jsx("input",{ref:u,type:"text",value:e,onChange:y,onKeyDown:B,onFocus:()=>h(!0),placeholder:o,className:x("search-placeholder-color w-full flex-1 outline-none",I)}),a.jsx(ll,{})]}),m&&c&&a.jsxs("div",{ref:f,className:x("absolute left-0 top-full flex w-full flex-col items-center overflow-hidden",_),children:[a.jsx(vn,{width:"w-11/12"}),l?a.jsx("div",{className:"px-md py-sm",children:a.jsx(sn,{className:"animate-spin"})}):t.map((P,N)=>a.jsx("div",{onClick:()=>L(P),onMouseEnter:()=>S(N),className:x("w-full cursor-pointer px-md py-sm",w===N?"search-selected-index-bg-color":""),children:c(P,N)},P.id))]})]})}var nt=(e=>(e.Default="default",e.Outlined="outlined",e.Filled="filled",e))(nt||{}),Be=(e=>(e.Placeholder="placeholder",e.BgSolid="bg-solid",e.BgWhite="bg-white",e.BgTransparent="bg-transparent",e))(Be||{}),Xe=(e=>(e.Rounded="rounded",e.SquareRounded="square-rounded",e))(Xe||{}),St=(e=>(e.Link="link",e.SupportingText="supporting-text",e.Button="button",e))(St||{});const Ri="cursor-default opacity-40",Jn="h-10 w-10",Rn={[Xe.SquareRounded]:`${Jn} rounded-md`,[Xe.Rounded]:`${Jn} rounded-full`},es={[Be.Placeholder]:"",[Be.BgSolid]:"card-image-bg-solid",[Be.BgWhite]:"card-image-bg-white",[Be.BgTransparent]:""},ts={[nt.Default]:"border border-transparent",[nt.Outlined]:"border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs",[nt.Filled]:"border border-transparent card-filled-bg p-xs"};function rs({isDisabled:e=!1,type:t=nt.Default,isHoverable:r,onClick:n,children:o,testId:l}){function i(){e||n==null||n()}return a.jsx("div",{onClick:i,className:x("relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs",ts[t],{"state-layer":r||!e&&n,[Ri]:e,"cursor-pointer":n}),"data-testid":l,children:o})}function ns({type:e,onClick:t,subtitle:r,title:n,icon:o,iconAfterText:l,buttonType:i,buttonDisabled:c}){function u(f){t&&(f.stopPropagation(),t())}return e===St.Link?a.jsx("div",{onClick:u,className:"card-action-link-color shrink-0 [&_svg]:h-5 [&_svg]:w-5",children:o||a.jsx(lr,{})}):e===St.SupportingText?a.jsxs("div",{className:"shrink-0 text-right",children:[n&&a.jsx("div",{className:"card-action-title-color font-inter text-label-md",children:n}),r&&a.jsx("div",{className:"card-action-subtitle-color font-inter text-label-sm",children:r})]}):e===St.Button?a.jsx("div",{className:"shrink-0",children:a.jsx(ue,{type:i||j.Outlined,size:oe.Small,text:n,onClick:u,icon:o,iconAfterText:l,disabled:c})}):null}function as({variant:e=Xe.Rounded}){return e===Xe.Rounded?a.jsx(os,{}):a.jsx(ls,{})}function os(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55185)",children:[a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#5B9CFE"}),a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint0_linear_880_55185)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint1_linear_880_55185)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55185",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55185",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55185",children:a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"})})]})]})}function ls(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55190)",children:[a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"#5B9CFE"}),a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint0_linear_880_55190)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint1_linear_880_55190)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55190",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55190",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55190",children:a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"white"})})]})]})}function is({type:e=Be.BgSolid,shape:t=Xe.Rounded,url:r,children:n}){return a.jsxs("div",{className:x(Rn[t],es[e],"flex shrink-0 items-center justify-center overflow-hidden"),children:[e===Be.Placeholder&&!n&&a.jsx(as,{variant:t}),r&&!n&&a.jsx("img",{src:r,className:x(Rn[t],"object-cover"),alt:"Card Image"}),n]})}function ss({title:e,subtitle:t,clickableAction:r,icon:n,isTextTruncated:o,tooltipText:l,tooltipPosition:i}){const c=u=>{u==null||u.stopPropagation()};return a.jsxs("div",{className:x("flex w-full flex-col",{truncate:o}),children:[a.jsxs("div",{className:x("flex flex-row items-center gap-x-xxs",{"grow-1":o}),children:[a.jsx("div",{className:x("card-body-title-color font-inter text-title-md",{truncate:o}),children:e}),l?a.jsx(je,{text:l,position:i,children:n}):a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{onClick:c,className:"flex items-center",children:r})]}),t&&a.jsx("div",{className:x("card-body-subtitle-color font-inter text-body-md",{truncate:o}),children:t})]})}var Oe=(e=>(e.Default="default",e.Highlight="highlight",e.Secondary="secondary",e))(Oe||{}),pe=(e=>(e.Default="default",e.Large="large",e))(pe||{});const cs={[Oe.Default]:"display-stats-bg-default",[Oe.Highlight]:"display-stats-bg-highlight",[Oe.Secondary]:"display-stats-bg-secondary"},ds={[Oe.Default]:"display-stats-text-default",[Oe.Highlight]:"display-stats-text-highlight",[Oe.Secondary]:"display-stats-text-secondary"},us={[pe.Default]:"gap-y-sm",[pe.Large]:"gap-y-md"},fs={[pe.Default]:"text-title-md",[pe.Large]:"text-headline-sm"},hs={[pe.Default]:"text-label-md",[pe.Large]:"text-label-lg"},vs={[pe.Default]:"text-label-sm",[pe.Large]:"text-label-md"};function gs({label:e,tooltipPosition:t,tooltipText:r,value:n,supportingLabel:o,type:l=Oe.Default,size:i=pe.Default,icon:c,copyText:u,onCopySuccess:f,onCopyError:p}){const h=cs[l],w=us[i],S=ds[l],y=fs[i],m=vs[i],E=hs[i];async function C(I){if(navigator.clipboard&&u)try{await navigator.clipboard.writeText(u),f==null||f(I,u)}catch(_){console.error("Failed to copy:",_),p==null||p(_,u)}}return a.jsxs("div",{className:x("flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",h,w,S),children:[a.jsxs("div",{className:x("flex flex-row items-center",{"w-full justify-between":c}),children:[a.jsxs("div",{className:"flex flex-row items-center gap-xxs",children:[a.jsx("span",{className:x(m,"whitespace-pre-line"),children:e}),r&&a.jsx(je,{text:r,position:t,children:a.jsx(Dt,{className:"opacity-40"})})]}),c&&a.jsx("span",{className:"display-stats-icon-color",children:c})]}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-xxs",children:[a.jsx("span",{className:x("break-all",y),children:n}),o&&a.jsx("span",{className:x("opacity-40",E),children:o}),u&&a.jsx("div",{className:"self-center",children:a.jsx(se,{onClick:C,children:a.jsx(ir,{className:"display-stats-copy-icon-color"})})})]})]})}function ps({onIconClick:e,onClick:t,icon:r=a.jsx(cn,{}),assetTitle:n,isHoverable:o=!0,...l}){const i=u=>{e==null||e(u),u==null||u.stopPropagation()},c=!("src"in l);return a.jsxs("div",{className:x("relative aspect-square w-full overflow-hidden rounded-xl",{"group cursor-pointer":o}),onClick:t,children:[!c&&a.jsx(Cn,{...l}),c&&l.renderAsset,o&&a.jsx("div",{className:"absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:names:bg-shader-inverted-light-48 group-hover:dark:bg-shader-primary-dark-48"}),o&&e&&a.jsx(se,{className:"visual-asset-icon-color absolute right-2 top-2 z-10 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5",onClick:i,children:r}),o&&n&&a.jsx("div",{className:"absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:a.jsx("span",{className:"visual-asset-title-color break-words text-title-md",children:n})})]})}function Me(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ms(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ea(...e){return t=>e.forEach(r=>ms(r,t))}function Ke(...e){return g.useCallback(ea(...e),e)}function bs(e,t){const r=g.createContext(t);function n(l){const{children:i,...c}=l,u=g.useMemo(()=>c,Object.values(c));return a.jsx(r.Provider,{value:u,children:i})}function o(l){const i=g.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function xs(e,t=[]){let r=[];function n(l,i){const c=g.createContext(i),u=r.length;r=[...r,i];function f(h){const{scope:w,children:S,...y}=h,m=(w==null?void 0:w[e][u])||c,E=g.useMemo(()=>y,Object.values(y));return a.jsx(m.Provider,{value:E,children:S})}function p(h,w){const S=(w==null?void 0:w[e][u])||c,y=g.useContext(S);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${l}\``)}return f.displayName=l+"Provider",[f,p]}const o=()=>{const l=r.map(i=>g.createContext(i));return function(c){const u=(c==null?void 0:c[e])||l;return g.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[n,ws(o,...t)]}function ws(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=n.reduce((c,{useScope:u,scopeName:f})=>{const h=u(l)[`__scope${f}`];return{...c,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Mt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ys=g.useId||(()=>{}),Ss=0;function gr(e){const[t,r]=g.useState(ys());return Mt(()=>{e||r(n=>n??String(Ss++))},[e]),e||(t?`radix-${t}`:"")}function Ze(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Es({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Cs({defaultProp:t,onChange:r}),l=e!==void 0,i=l?e:n,c=Ze(r),u=g.useCallback(f=>{if(l){const h=typeof f=="function"?f(e):f;h!==e&&c(h)}else o(f)},[l,e,o,c]);return[i,u]}function Cs({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,o=g.useRef(n),l=Ze(t);return g.useEffect(()=>{o.current!==n&&(l(n),o.current=n)},[n,o,l]),r}var pr=g.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.Children.toArray(r),l=o.find(Ns);if(l){const i=l.props.children,c=o.map(u=>u===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:u);return a.jsx(mr,{...n,ref:t,children:g.isValidElement(i)?g.cloneElement(i,void 0,c):null})}return a.jsx(mr,{...n,ref:t,children:r})});pr.displayName="Slot";var mr=g.forwardRef((e,t)=>{const{children:r,...n}=e;if(g.isValidElement(r)){const o=As(r);return g.cloneElement(r,{...Ts(n,r.props),ref:t?ea(t,o):o})}return g.Children.count(r)>1?g.Children.only(null):null});mr.displayName="SlotClone";var _s=({children:e})=>a.jsx(a.Fragment,{children:e});function Ns(e){return g.isValidElement(e)&&e.type===_s}function Ts(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...c)=>{l(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function As(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=Os.reduce((e,t)=>{const r=g.forwardRef((n,o)=>{const{asChild:l,...i}=n,c=l?pr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ds(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}function Ls(e,t=globalThis==null?void 0:globalThis.document){const r=Ze(e);g.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Is="DismissableLayer",br="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",ks="dismissableLayer.focusOutside",ta,ra=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),na=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:c,...u}=e,f=g.useContext(ra),[p,h]=g.useState(null),w=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=g.useState({}),y=Ke(t,N=>h(N)),m=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=m.indexOf(E),I=p?m.indexOf(p):-1,_=f.layersWithOutsidePointerEventsDisabled.size>0,L=I>=C,B=Fs(N=>{const k=N.target,M=[...f.branches].some(q=>q.contains(k));!L||M||(o==null||o(N),i==null||i(N),N.defaultPrevented||c==null||c())},w),P=Vs(N=>{const k=N.target;[...f.branches].some(q=>q.contains(k))||(l==null||l(N),i==null||i(N),N.defaultPrevented||c==null||c())},w);return Ls(N=>{I===f.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},w),g.useEffect(()=>{if(p)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ta=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),aa(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=ta)}},[p,w,r,f]),g.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),aa())},[p,f]),g.useEffect(()=>{const N=()=>S({});return document.addEventListener(br,N),()=>document.removeEventListener(br,N)},[]),a.jsx(Se.div,{...u,ref:y,style:{pointerEvents:_?L?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,B.onPointerDownCapture)})});na.displayName=Is;var Bs="DismissableLayerBranch",Ms=g.forwardRef((e,t)=>{const r=g.useContext(ra),n=g.useRef(null),o=Ke(t,n);return g.useEffect(()=>{const l=n.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),a.jsx(Se.div,{...e,ref:o})});Ms.displayName=Bs;function Fs(e,t=globalThis==null?void 0:globalThis.document){const r=Ze(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const l=c=>{if(c.target&&!n.current){let u=function(){oa(Ps,r,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Vs(e,t=globalThis==null?void 0:globalThis.document){const r=Ze(e),n=g.useRef(!1);return g.useEffect(()=>{const o=l=>{l.target&&!n.current&&oa(ks,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function aa(){const e=new CustomEvent(br);document.dispatchEvent(e)}function oa(e,t,r,{discrete:n}){const o=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ds(o,l):o.dispatchEvent(l)}var xr="focusScope.autoFocusOnMount",wr="focusScope.autoFocusOnUnmount",la={bubbles:!1,cancelable:!0},Us="FocusScope",ia=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[c,u]=g.useState(null),f=Ze(o),p=Ze(l),h=g.useRef(null),w=Ke(t,m=>u(m)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let m=function(_){if(S.paused||!c)return;const L=_.target;c.contains(L)?h.current=L:Fe(h.current,{select:!0})},E=function(_){if(S.paused||!c)return;const L=_.relatedTarget;L!==null&&(c.contains(L)||Fe(h.current,{select:!0}))},C=function(_){if(document.activeElement===document.body)for(const B of _)B.removedNodes.length>0&&Fe(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",E);const I=new MutationObserver(C);return c&&I.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",E),I.disconnect()}}},[n,c,S.paused]),g.useEffect(()=>{if(c){da.add(S);const m=document.activeElement;if(!c.contains(m)){const C=new CustomEvent(xr,la);c.addEventListener(xr,f),c.dispatchEvent(C),C.defaultPrevented||(Ws(zs(sa(c)),{select:!0}),document.activeElement===m&&Fe(c))}return()=>{c.removeEventListener(xr,f),setTimeout(()=>{const C=new CustomEvent(wr,la);c.addEventListener(wr,p),c.dispatchEvent(C),C.defaultPrevented||Fe(m??document.body,{select:!0}),c.removeEventListener(wr,p),da.remove(S)},0)}}},[c,f,p,S]);const y=g.useCallback(m=>{if(!r&&!n||S.paused)return;const E=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(E&&C){const I=m.currentTarget,[_,L]=js(I);_&&L?!m.shiftKey&&C===L?(m.preventDefault(),r&&Fe(_,{select:!0})):m.shiftKey&&C===_&&(m.preventDefault(),r&&Fe(L,{select:!0})):C===I&&m.preventDefault()}},[r,n,S.paused]);return a.jsx(Se.div,{tabIndex:-1,...i,ref:w,onKeyDown:y})});ia.displayName=Us;function Ws(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Fe(n,{select:t}),document.activeElement!==r)return}function js(e){const t=sa(e),r=ca(t,e),n=ca(t.reverse(),e);return[r,n]}function sa(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ca(e,t){for(const r of e)if(!Hs(r,{upTo:t}))return r}function Hs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Gs(e){return e instanceof HTMLInputElement&&"select"in e}function Fe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gs(e)&&t&&e.select()}}var da=$s();function $s(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ua(e,t),e.unshift(t)},remove(t){var r;e=ua(e,t),(r=e[0])==null||r.resume()}}}function ua(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function zs(e){return e.filter(t=>t.tagName!=="A")}var Xs="Portal",fa=g.forwardRef((e,t)=>{var c;const{container:r,...n}=e,[o,l]=g.useState(!1);Mt(()=>l(!0),[]);const i=r||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?nr.createPortal(a.jsx(Se.div,{...n,ref:t}),i):null});fa.displayName=Xs;function Ks(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Ft=e=>{const{present:t,children:r}=e,n=Zs(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),l=Ke(n.ref,Ys(o));return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:l}):null};Ft.displayName="Presence";function Zs(e){const[t,r]=g.useState(),n=g.useRef({}),o=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Ks(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const f=Vt(n.current);l.current=c==="mounted"?f:"none"},[c]),Mt(()=>{const f=n.current,p=o.current;if(p!==e){const w=l.current,S=Vt(f);e?u("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(p&&w!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Mt(()=>{if(t){const f=h=>{const S=Vt(n.current).includes(h.animationName);h.target===t&&S&&Xr.flushSync(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(l.current=Vt(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(f=>{f&&(n.current=getComputedStyle(f)),r(f)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function Ys(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yr=0;function qs(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ha()),document.body.insertAdjacentElement("beforeend",e[1]??ha()),yr++,()=>{yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yr--}},[])}function ha(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Ee.apply(this,arguments)};function va(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Qs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,l;n<o;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ut="right-scroll-bar-position",Wt="width-before-scroll-bar",Js="with-scroll-bars-hidden",Rs="--removed-body-scroll-bar-size";function Sr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ec(e,t){var r=T.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tc=typeof window<"u"?g.useLayoutEffect:g.useEffect,ga=new WeakMap;function rc(e,t){var r=ec(null,function(n){return e.forEach(function(o){return Sr(o,n)})});return tc(function(){var n=ga.get(r);if(n){var o=new Set(n),l=new Set(e),i=r.current;o.forEach(function(c){l.has(c)||Sr(c,null)}),l.forEach(function(c){o.has(c)||Sr(c,i)})}ga.set(r,e)},[e]),r}function nc(e){return e}function ac(e,t){t===void 0&&(t=nc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var i=t(l,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(l){for(n=!0;r.length;){var i=r;r=[],i.forEach(l)}r={push:function(c){return l(c)},filter:function(){return r}}},assignMedium:function(l){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(l),i=r}var u=function(){var p=i;i=[],p.forEach(l)},f=function(){return Promise.resolve().then(u)};f(),r={push:function(p){i.push(p),f()},filter:function(p){return i=i.filter(p),r}}}};return o}function oc(e){e===void 0&&(e={});var t=ac(null);return t.options=Ee({async:!0,ssr:!1},e),t}var pa=function(e){var t=e.sideCar,r=va(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Ee({},r))};pa.isSideCarExport=!0;function lc(e,t){return e.useMedium(t),pa}var ma=oc(),Er=function(){},jt=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:Er,onWheelCapture:Er,onTouchMoveCapture:Er}),o=n[0],l=n[1],i=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,w=e.sideCar,S=e.noIsolation,y=e.inert,m=e.allowPinchZoom,E=e.as,C=E===void 0?"div":E,I=e.gapMode,_=va(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,B=rc([r,t]),P=Ee(Ee({},_),o);return g.createElement(g.Fragment,null,p&&g.createElement(L,{sideCar:ma,removeScrollBar:f,shards:h,noIsolation:S,inert:y,setCallbacks:l,allowPinchZoom:!!m,lockRef:r,gapMode:I}),i?g.cloneElement(g.Children.only(c),Ee(Ee({},P),{ref:B})):g.createElement(C,Ee({},P,{className:u,ref:B}),c))});jt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jt.classNames={fullWidth:Wt,zeroRight:Ut};var ba=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ic(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ba();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ic())&&(sc(t,r),cc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uc=function(){var e=dc();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fc=function(){var e=uc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},hc={left:0,top:0,right:0,gap:0},Cr=function(e){return parseInt(e||"",10)||0},vc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Cr(r),Cr(n),Cr(o)]},gc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hc;var t=vc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},pc=fc(),at="data-scroll-locked",mc=function(e,t,r,n){var o=e.left,l=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
21
+ `),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function Li(e){e=Di(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Be);var l=e.onBlur;l===void 0&&(l=Be);var i=e.thousandSeparator,c=e.decimalScale,f=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var v=e.defaultValue,m=e.value,b=e.valueIsNumericString,S=e.onValueChange,y=Pn(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=kt(e),E=p.decimalSeparator,C=p.allowedDecimalSeparators,I=function(F){return Gn(F,e)},_=function(F,B){return Ai(F,B,e)},P=rt(m)?v:m,k=b??Ti(P,u,t);rt(m)?rt(v)||(k=k||typeof v=="number"):k=k||typeof m=="number";var K=function(F){return kn(F)?F:(typeof F=="number"&&(F=Vn(F)),k&&typeof c=="number"?Un(F,c,!!f):F)},N=Hn(K(m),K(v),!!k,I,_,S),A=N[0],G=A.numAsString,V=A.formattedValue,re=N[1],ce=function(F){var B=F.target,q=F.key,ne=B.selectionStart,ae=B.selectionEnd,R=B.value;if(R===void 0&&(R=""),(q==="Backspace"||q==="Delete")&&ae<u.length){F.preventDefault();return}if(ne!==ae){o(F);return}q==="Backspace"&&R[0]==="-"&&ne===u.length+1&&r&&Xe(B,1),c&&f&&(q==="Backspace"&&R[ne-1]===E?(Xe(B,ne-1),F.preventDefault()):q==="Delete"&&R[ne]===E&&F.preventDefault()),C!=null&&C.includes(q)&&R[ne]===E&&Xe(B,ne+1);var oe=i===!0?",":i;q==="Backspace"&&R[ne-1]===oe&&Xe(B,ne-1),q==="Delete"&&R[ne]===oe&&Xe(B,ne+1),o(F)},_e=function(F){var B=G;if(B.match(/\d/g)||(B=""),n||(B=gi(B)),f&&c&&(B=Un(B,c,f)),B!==G){var q=Gn(B,e);re({formattedValue:q,value:B,floatValue:parseFloat(B)},{event:F,source:bt.event})}l(F)},We=function(F){return F===E?!0:xt(F)},Qe=function(F){var B=F.currentValue,q=F.lastValue,ne=F.formattedValue,ae=F.currentValueIndex,R=F.formattedValueIndex,oe=B[ae],H=ne[R],st=Wn(q,B),Je=st.to,Ne=function(ct){return _(ct).indexOf(".")+u.length};return m===0&&f&&c&&B[Je.start]===E&&Ne(B)<ae&&Ne(ne)>R?!1:ae>=Je.start&&ae<Je.end&&C&&C.includes(oe)&&H===E?!0:oe===H};return Object.assign(Object.assign({},y),{value:V,valueIsNumericString:!1,isValidInputCharacter:We,isCharacterSame:Qe,onValueChange:re,format:I,removeFormatting:_,getCaretBoundary:function(F){return Oi(F,e)},onKeyDown:ce,onBlur:_e})}function Ii(e){var t=Li(e);return T.createElement(Ci,Object.assign({},t))}const Pi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,leadingIcon:l,supportingText:i,amountCounter:c,trailingElement:f,isContentVisible:u,value:v,supportingValue:m,defaultValue:b,onClearInput:S,isVisibilityToggleEnabled:y,type:p,...E},C){y??(y=p===ve.Password);const I=T.useRef(null),[_,P]=T.useState(u??p!==ve.Password);T.useEffect(()=>{P(u??p!==ve.Password)},[p,u]);function k(){P(N=>!N)}function K(){var N;I.current&&((N=I.current.querySelector("input"))==null||N.focus())}return a.jsx(fr,{label:t,caption:r,disabled:n,errorMessage:o,amountCounter:c,required:E.required,children:a.jsxs("div",{className:w("input-container relative flex flex-row items-center gap-x-3",Dn),onClick:K,ref:I,children:[l&&a.jsx("span",{className:"input-icon-color",children:l}),a.jsxs("div",{className:"flex flex-1 flex-col items-start",children:[a.jsx(ki,{...E,inputRef:C,value:v,type:p===ve.Password&&_?ve.Text:p,disabled:n,className:w(Tn,An,On,li)}),m&&a.jsx("span",{className:"text-label-md text-iota-neutral-60 names:text-iota-neutral-60 dark:text-iota-neutral-40",children:m})]}),i&&a.jsx(mt,{children:i}),a.jsx(Mi,{value:v,type:p,onClearInput:S,isContentVisible:_,trailingElement:f,isVisibilityToggleEnabled:y,onToggleButtonClick:k})]})})});function ki({type:e,inputRef:t,...r}){function n(o){if(e===ve.Number){const l=o.currentTarget;l.blur(),o.stopPropagation(),setTimeout(()=>{l.focus({preventScroll:!0})},0)}}return e===ve.NumericFormat?a.jsx(Bi,{inputRef:t,...r,type:e}):a.jsx("input",{ref:t,...r,type:e,onWheel:o=>{var l;n(o),(l=r.onWheel)==null||l.call(r,o)}})}function Bi({inputRef:e,className:t,type:r,...n}){return a.jsx(Ii,{className:t,valueIsNumericString:!0,getInputRef:e,...n})}function Mi({value:e,type:t,onClearInput:r,isContentVisible:n,trailingElement:o,onToggleButtonClick:l,isVisibilityToggleEnabled:i}){const c=!!(t===ve.Text&&e&&r),f=!!(t===ve.Password&&i),u=!!(o&&!c&&!f);if(c)return a.jsx(se,{className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",onClick:r,tabIndex:-1,"aria-label":"Clear input",children:a.jsx(gt,{})});if(f)return a.jsx(se,{onClick:l,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,"aria-label":"Toggle visibility",children:n?a.jsx(gn,{}):a.jsx(hn,{})});if(u)return a.jsx(T.Fragment,{children:o})}const Fi=T.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,value:l,amountCounter:i,isVisibilityToggleEnabled:c,isResizeEnabled:f,required:u,isContentVisible:v,defaultValue:m,...b},S){const[y,p]=T.useState(v??!0);T.useEffect(()=>{p(v??!0)},[v]);function E(){p(C=>!C)}return a.jsx(fr,{label:t,caption:r,disabled:n||!y,errorMessage:o,amountCounter:i,required:u,children:a.jsxs("div",{className:"relative",children:[a.jsx("textarea",{disabled:n||!y,required:u,ref:S,className:w("text-area-container peer block min-h-[50px]",Dn,Tn,An,On,y&&f?"resize-y":"resize-none",!y&&"not-visible select-none text-transparent"),defaultValue:y&&m?m:void 0,value:y&&l?l:void 0,...b}),!y&&a.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none",children:a.jsx(Vi,{rows:3,halfWidthRow:3})}),c&&a.jsx("span",{className:"absolute bottom-4 right-4 flex",children:a.jsx(se,{onClick:E,className:"input-icon-color [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:y?a.jsx(gn,{}):a.jsx(hn,{})})})]})})});function Vi({rows:e,halfWidthRow:t}){return a.jsx(a.Fragment,{children:Array.from({length:e}).map((r,n)=>{const l=t===n+1?"w-1/2":"w-full";return a.jsx("div",{className:`input-visibility-bar h-2.5 rounded ${l}`},n)})})}var Bt=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(Bt||{});const $n="navbar-item-icon-selected-color",zn="navbar-item-icon-color",Ui="py-xxs px-sm",Wi="p-sm",Xn="bg-shader-primary-light-12 dark:bg-shader-primary-dark-12",ji="-top-3 right-3",Hi="-top-1 right-3",Kn="navbar-item-label-selected-color",Zn="navbar-item-label-color";function Gi({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1,...i}){const c=r?$n:zn,f=t?Ui:Wi,u=r&&Xn,v=t?ji:Hi,m=r?Kn:Zn,b=l?"cursor-not-allowed opacity-60":"state-layer-secondary",S=y=>{if(l){y.preventDefault();return}o==null||o(y)};return a.jsxs("div",{onClick:S,role:"button",className:w("inline-flex cursor-pointer flex-col items-center justify-center space-y-1"),...i,children:[a.jsxs("div",{className:w("relative inline-flex rounded-full",f,u,b),children:[a.jsx("div",{className:w("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),n&&a.jsx("div",{className:w("absolute",v),children:a.jsx(ft,{type:te.PrimarySolid})})]}),t&&a.jsx("span",{className:w("text-center text-label-md",m),children:t})]})}function $i({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:l=!1,...i}){const c=r?$n:zn,f=r&&Xn,u=r?Kn:Zn,v=l?"cursor-not-allowed opacity-60":"state-layer-secondary cursor-pointer ",m=b=>{if(l){b.preventDefault();return}o==null||o(b)};return a.jsxs("div",{onClick:m,role:"button",className:w("relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm",f,v),...i,children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:w("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),t&&a.jsx("span",{className:w("text-center text-label-lg",u),children:t})]}),n&&a.jsx(ft,{type:te.PrimarySolid})]})}function vr(e){const{type:t,text:r}=e;return t===Bt.Vertical&&r?a.jsx($i,{...e}):a.jsx(Gi,{...e})}function zi({title:e,subtitle:t,badgeType:r,badgeText:n,avatarContent:o,onOptionsClick:l,onCopy:i,copyText:c,onOpen:f,isCopyable:u,isExternal:v,isSelected:m,isActive:b,showSelected:S,badgeTooltipText:y,badgeTooltipPosition:p=ke.Bottom}){const E=o;return a.jsx("div",{"data-testid":"account-tile",className:w("state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer",b&&"state-active"),children:a.jsxs("div",{className:"flex w-full items-center gap-x-3",children:[a.jsx("div",{children:a.jsx(E,{})}),a.jsxs("div",{className:"flex w-full min-w-0 flex-col items-start py-xs",children:[a.jsxs("div",{className:"flex w-full min-w-0 items-center space-x-2",children:[a.jsx("p",{className:"account-title-color min-w-0 max-w-full truncate font-inter text-title-md",children:e}),n&&r?y?a.jsx(Ge,{text:y,position:p,children:a.jsx(ft,{type:r,label:n})}):a.jsx(ft,{type:r,label:n}):null]}),a.jsx(Cn,{text:t,onCopySuccess:i,copyText:c,onOpen:f,isCopyable:u,isExternal:v})]}),a.jsxs("div",{className:"ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5",children:[a.jsx("div",{className:"account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible",children:l&&a.jsx(se,{onClick:l,"aria-label":"More options",children:a.jsx(dn,{})})}),S&&a.jsx(se,{"aria-label":"Checkmark",children:m?a.jsx(Jo,{className:"account-check-active-color h-5 w-5"}):a.jsx(un,{className:"account-check-inactive-color h-5 w-5"})})]})]})})}function Yn({children:e}){return a.jsx("ul",{className:"dropdown-bg dropdown-border-color list-none rounded-lg border py-xs",children:e})}var Mt=(e=>(e.Top="top",e.Bottom="bottom",e))(Mt||{});function qn({children:e,hasLastBorderNoneClass:t,isContentCentered:r}){return a.jsx("td",{className:w("table-cell-border-color h-14 border-b px-md",{"last:border-none":t},{"flex items-center justify-center":r}),children:e})}function Xi({children:e,supportingLabel:t}){return a.jsxs("div",{className:"flex flex-row items-baseline gap-1",children:[a.jsx("span",{children:e}),t&&a.jsx("span",{className:"table-cell-supporting-label-color text-body-sm",children:t})]})}function Ki(){return a.jsx(wn,{})}var wt=(e=>(e.Small="small",e.Default="default",e))(wt||{});const Zi=T.forwardRef(({disabled:e,label:t,leadingIcon:r,supportingText:n,errorMessage:o,caption:l,options:i,placeholder:c,onValueChange:f,onOptionClick:u,value:v,dropdownPosition:m=Mt.Bottom,size:b=wt.Default,...S},y)=>{const[p,E]=T.useState(!1),C=K(v,i),I=T.useRef(null),_=C||c,P=b===wt.Small?"px-sm":"px-md",k=b===wt.Small?"text-body-md":"text-body-lg";T.useEffect(()=>{e&&p&&G()},[e,p]),T.useEffect(()=>{if(!p)return;const V=re=>{const ce=re.target;I.current&&!I.current.contains(ce)&&G()};return document.addEventListener("mousedown",V),()=>{document.removeEventListener("mousedown",V)}},[p]);function K(V,re=[]){return re.find(ce=>typeof ce=="string"?ce===V:ce.id===V)??re[0]}function N(){E(V=>!V)}function A(V){G();const re=typeof V=="string"?V:V.id;u==null||u(re),V!==C&&(f==null||f(re))}function G(){E(!1)}return a.jsx(fr,{label:t,caption:l,disabled:e,errorMessage:o,labelHtmlTag:Ln.Div,children:a.jsxs("div",{className:"relative flex w-full flex-col",ref:I,children:[a.jsxs(se,{ref:y,onClick:N,disabled:e,"aria-expanded":p,"aria-haspopup":"listbox",className:w("select-container select-border-color focus-visible:enabled:select-border-focus-color active:enabled:select-border-focus-color group-[.errored]:select-border-error-color group-[.opened]:select-border-focus-color [&:is(:focus,_:focus-visible,_:active)]:enabled:select-border-focus-color hover:enabled:select-border-hover-color flex flex-row items-center gap-x-3 rounded-lg border py-sm disabled:cursor-not-allowed [&_svg]:h-5 [&_svg]:w-5",P),...S,children:[r&&a.jsx("span",{className:"select-icon-color",children:r}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-x-3",children:[_&&a.jsx("div",{className:w("select-label-color block w-full text-start",k),children:a.jsx(Qn,{option:_})}),n&&a.jsx("div",{className:"ml-auto",children:a.jsx(mt,{children:n})})]}),a.jsx(sl,{className:w("select-icon-color transition-transform",{" rotate-180":p})})]}),p&&a.jsx("div",{className:"fixed left-0 top-0 z-[49] bg-transparent",onClick:G}),p&&a.jsx("div",{className:w("absolute z-50 min-w-full animate-dropdown-show",m===Mt.Top?"bottom-full origin-bottom":"top-full origin-top"),children:a.jsx(Yn,{children:i.map(V=>{const re=typeof V=="string";return a.jsx(pn,{onClick:()=>A(V),hideBottomBorder:!0,children:a.jsx(Qn,{option:V})},re?V:V.id)})})})]})})});function Qn({option:e}){return typeof e=="string"?e:"renderLabel"in e?e.renderLabel():e.label}var Oe=(e=>(e.Asc="asc",e.Desc="desc",e))(Oe||{});function Jn({label:e,columnKey:t,hasSort:r,hasCheckbox:n,isChecked:o,isIndeterminate:l,isContentCentered:i,onSortClick:c,onCheckboxChange:f,sortOrder:u,...v}){const m=()=>{const p=u===Oe.Asc?Oe.Desc:Oe.Asc;c&&c(t,p)},b="table-header-text-color",S="text-label-lg",y=r?u===Oe.Asc?a.jsx(fn,{className:"shrink-0"}):u===Oe.Desc?a.jsx(il,{className:"shrink-0"}):a.jsx(fn,{className:"invisible shrink-0 group-hover:visible"}):null;return a.jsx("th",{onClick:r?m:void 0,className:w("state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none",{"cursor-pointer":r}),"aria-sort":r?u===Oe.Asc?"ascending":u===Oe.Desc?"descending":"none":void 0,...v,children:a.jsxs("div",{className:w("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4",b,S,{"justify-center":i}),children:[n?a.jsx(cr,{isChecked:o,isIndeterminate:l,onCheckedChange:f}):a.jsx("span",{className:w({"text-left":!i}),children:e}),y]})})}var pe=(e=>(e.Outlined="outlined",e.Filled="filled",e))(pe||{});const Yi={[pe.Outlined]:"bg-transparent",[pe.Filled]:"search-bg-color-filled"},qi={[pe.Outlined]:"border-l border-r border-t search-border-color",[pe.Filled]:"search-bg-color-filled"},Qi={[pe.Outlined]:"rounded-b-3xl border-b border-l border-r search-border-color search-suggestion-bg-color",[pe.Filled]:"rounded-b-3xl search-bg-color-filled"};function Ji({searchValue:e,suggestions:t,onSearchValueChange:r,onSuggestionClick:n,placeholder:o,isLoading:l=!1,type:i=pe.Outlined,renderSuggestion:c,...f}){const u=T.useRef(null),v=T.useRef(null),[m,b]=T.useState(!0),[S,y]=T.useState(null);function p(N){const A=N.target.value;r(A)}T.useEffect(()=>{const N=A=>{var G;A.key==="Escape"&&(b(!1),(G=u.current)==null||G.blur())};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[]),T.useEffect(()=>{const N=A=>{var V;const G=u==null?void 0:u.current;!G||G.contains(A==null?void 0:A.target)||(V=v.current)!=null&&V.contains(A.target)||b(!1)};return document.addEventListener("click",N,!0),document.addEventListener("touchstart",N,!0),()=>{document.removeEventListener("click",N,!0),document.removeEventListener("touchstart",N,!0)}},[u]);const E=m&&t&&t.length>0,C=E?w("rounded-t-3xl border-b",i===pe.Outlined?"[&:not(.dark_*,.names_*)]:border-b-transparent":"border-b-transparent"):i===pe.Outlined?"rounded-3xl border-b":"rounded-full",I=qi[i],_=Yi[i],P=Qi[i],k=N=>{var A;n==null||n(N),r(""),b(!1),y(null),(A=u.current)==null||A.blur()},K=N=>{t&&(t==null?void 0:t.length)>0&&(N.key==="ArrowDown"?(N.preventDefault(),y(A=>A===null||A>=t.length-1?0:A+1)):N.key==="ArrowUp"?(N.preventDefault(),y(A=>A===null||A<=0?t.length-1:A-1)):N.key==="Enter"&&(N.preventDefault(),S!==null&&t[S]?k(t[S]):t.length===1&&k(t[0])))};return a.jsxs("div",{className:"relative w-full",children:[a.jsxs("div",{className:w("search-text-color flex items-center overflow-hidden px-md py-sm [&_svg]:h-6 [&_svg]:w-6",C,I),children:[a.jsx("input",{ref:u,type:"text",value:e,onChange:p,onKeyDown:K,onFocus:()=>b(!0),placeholder:o,className:w("search-placeholder-color w-full flex-1 outline-none",_),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-autocomplete":"list",...f}),a.jsx(ll,{})]}),E&&c&&a.jsxs("div",{ref:v,className:w("absolute left-0 top-full flex w-full flex-col items-center overflow-hidden",P),role:"listbox",children:[a.jsx(vn,{width:"w-11/12"}),l?a.jsx("div",{className:"px-md py-sm",children:a.jsx(cn,{className:"animate-spin"})}):t.map((N,A)=>a.jsx("div",{onClick:()=>k(N),onMouseEnter:()=>y(A),className:w("w-full cursor-pointer px-md py-sm",S===A?"search-selected-index-bg-color":""),role:"option","aria-selected":S===A,"aria-label":N.label,children:c(N,A)},N.id))]})]})}var nt=(e=>(e.Default="default",e.Outlined="outlined",e.Filled="filled",e))(nt||{}),Me=(e=>(e.Placeholder="placeholder",e.BgSolid="bg-solid",e.BgWhite="bg-white",e.BgTransparent="bg-transparent",e))(Me||{}),Ke=(e=>(e.Rounded="rounded",e.SquareRounded="square-rounded",e))(Ke||{}),yt=(e=>(e.Link="link",e.SupportingText="supporting-text",e.Button="button",e))(yt||{});const Ri="cursor-default opacity-40",Rn="h-10 w-10",ea={[Ke.SquareRounded]:`${Rn} rounded-md`,[Ke.Rounded]:`${Rn} rounded-full`},es={[Me.Placeholder]:"",[Me.BgSolid]:"card-image-bg-solid",[Me.BgWhite]:"card-image-bg-white",[Me.BgTransparent]:""},ts={[nt.Default]:"border border-transparent",[nt.Outlined]:"border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs",[nt.Filled]:"border border-transparent card-filled-bg p-xs"};function rs({isDisabled:e=!1,type:t=nt.Default,isHoverable:r,onClick:n,children:o,testId:l,...i}){function c(){e||n==null||n()}const f=!e&&n;return a.jsx("div",{onClick:c,role:f?"button":void 0,className:w("relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs",ts[t],{"state-layer":r||f,[Ri]:e,"cursor-pointer":n}),"data-testid":l,...i,children:o})}function ns({type:e,onClick:t,subtitle:r,title:n,icon:o,iconAfterText:l,buttonType:i,buttonDisabled:c}){function f(u){t&&(u.stopPropagation(),t())}return e===yt.Link?a.jsx("div",{onClick:f,className:"card-action-link-color shrink-0 [&_svg]:h-5 [&_svg]:w-5",children:o||a.jsx(ir,{})}):e===yt.SupportingText?a.jsxs("div",{className:"shrink-0 text-right",children:[n&&a.jsx("div",{className:"card-action-title-color font-inter text-label-md",children:n}),r&&a.jsx("div",{className:"card-action-subtitle-color font-inter text-label-sm",children:r})]}):e===yt.Button?a.jsx("div",{className:"shrink-0",children:a.jsx(fe,{type:i||W.Outlined,size:le.Small,text:n,onClick:f,icon:o,iconAfterText:l,disabled:c})}):null}function as({variant:e=Ke.Rounded}){return e===Ke.Rounded?a.jsx(os,{}):a.jsx(ls,{})}function os(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55185)",children:[a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#5B9CFE"}),a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint0_linear_880_55185)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint1_linear_880_55185)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55185",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55185",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55185",children:a.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"})})]})]})}function ls(){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[a.jsxs("g",{"clip-path":"url(#clip0_880_55190)",children:[a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"#5B9CFE"}),a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint0_linear_880_55190)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint1_linear_880_55190)","fill-opacity":"0.2"}),a.jsx("path",{d:"M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"paint0_linear_880_55190",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsxs("linearGradient",{id:"paint1_linear_880_55190",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),a.jsx("stop",{offset:"1"})]}),a.jsx("clipPath",{id:"clip0_880_55190",children:a.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"white"})})]})]})}function is({type:e=Me.BgSolid,shape:t=Ke.Rounded,url:r,children:n}){return a.jsxs("div",{className:w(ea[t],es[e],"flex shrink-0 items-center justify-center overflow-hidden"),children:[e===Me.Placeholder&&!n&&a.jsx(as,{variant:t}),r&&!n&&a.jsx("img",{src:r,className:w(ea[t],"object-cover"),alt:"Card Image"}),n]})}function ss({title:e,subtitle:t,clickableAction:r,icon:n,isTextTruncated:o,tooltipText:l,tooltipPosition:i}){const c=f=>{f==null||f.stopPropagation()};return a.jsxs("div",{className:w("flex w-full flex-col",{truncate:o}),children:[a.jsxs("div",{className:w("flex flex-row items-center gap-x-xxs",{"grow-1":o}),children:[a.jsx("div",{className:w("card-body-title-color font-inter text-title-md",{truncate:o}),children:e}),l?a.jsx(Ge,{text:l,position:i,children:n}):a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{onClick:c,className:"flex items-center",children:r})]}),t&&a.jsx("div",{className:w("card-body-subtitle-color font-inter text-body-md",{truncate:o}),children:t})]})}var De=(e=>(e.Default="default",e.Highlight="highlight",e.Secondary="secondary",e))(De||{}),me=(e=>(e.Default="default",e.Large="large",e))(me||{});const cs={[De.Default]:"display-stats-bg-default",[De.Highlight]:"display-stats-bg-highlight",[De.Secondary]:"display-stats-bg-secondary"},ds={[De.Default]:"display-stats-text-default",[De.Highlight]:"display-stats-text-highlight",[De.Secondary]:"display-stats-text-secondary"},us={[me.Default]:"gap-y-sm",[me.Large]:"gap-y-md"},fs={[me.Default]:"text-title-md",[me.Large]:"text-headline-sm"},hs={[me.Default]:"text-label-md",[me.Large]:"text-label-lg"},gs={[me.Default]:"text-label-sm",[me.Large]:"text-label-md"};function vs({label:e,tooltipPosition:t,tooltipText:r,value:n,supportingLabel:o,type:l=De.Default,size:i=me.Default,icon:c,copyText:f,onCopySuccess:u,onCopyError:v}){const m=cs[l],b=us[i],S=ds[l],y=fs[i],p=gs[i],E=hs[i];async function C(I){if(navigator.clipboard&&f)try{await navigator.clipboard.writeText(f),u==null||u(I,f)}catch(_){console.error("Failed to copy:",_),v==null||v(_,f)}}return a.jsxs("div",{className:w("flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",m,b,S),children:[a.jsxs("div",{className:w("flex flex-row items-center",{"w-full justify-between":c}),children:[a.jsxs("div",{className:"flex flex-row items-center gap-xxs",children:[a.jsx("span",{className:w(p,"whitespace-pre-line"),children:e}),r&&a.jsx(Ge,{text:r,position:t,children:a.jsx(Dt,{className:"opacity-40"})})]}),c&&a.jsx("span",{className:"display-stats-icon-color",children:c})]}),a.jsxs("div",{className:"flex w-full flex-row items-baseline gap-xxs",children:[a.jsx("span",{className:w("break-all",y),children:n}),o&&a.jsx("span",{className:w("opacity-40",E),children:o}),f&&a.jsx("div",{className:"self-center",children:a.jsx(se,{onClick:C,"aria-label":"Copy to clipboard",children:a.jsx(sr,{className:"display-stats-copy-icon-color"})})})]})]})}function ps({onIconClick:e,onClick:t,icon:r=a.jsx(dn,{}),assetTitle:n,isHoverable:o=!0,...l}){const i=f=>{e==null||e(f),f==null||f.stopPropagation()},c=!("src"in l);return a.jsxs("div",{className:w("relative aspect-square w-full overflow-hidden rounded-xl",{"group cursor-pointer":o}),onClick:t,children:[!c&&a.jsx(_n,{...l}),c&&l.renderAsset,o&&a.jsx("div",{className:"absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:names:bg-shader-inverted-light-48 group-hover:dark:bg-shader-primary-dark-48"}),o&&e&&a.jsx(se,{className:"visual-asset-icon-color absolute right-2 top-2 z-10 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5",onClick:i,"aria-label":"More options",children:r}),o&&n&&a.jsx("div",{className:"absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:a.jsx("span",{className:"visual-asset-title-color break-words text-title-md",children:n})})]})}function Fe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ms(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ta(...e){return t=>e.forEach(r=>ms(r,t))}function Ze(...e){return g.useCallback(ta(...e),e)}function bs(e,t){const r=g.createContext(t);function n(l){const{children:i,...c}=l,f=g.useMemo(()=>c,Object.values(c));return a.jsx(r.Provider,{value:f,children:i})}function o(l){const i=g.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function xs(e,t=[]){let r=[];function n(l,i){const c=g.createContext(i),f=r.length;r=[...r,i];function u(m){const{scope:b,children:S,...y}=m,p=(b==null?void 0:b[e][f])||c,E=g.useMemo(()=>y,Object.values(y));return a.jsx(p.Provider,{value:E,children:S})}function v(m,b){const S=(b==null?void 0:b[e][f])||c,y=g.useContext(S);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,v]}const o=()=>{const l=r.map(i=>g.createContext(i));return function(c){const f=(c==null?void 0:c[e])||l;return g.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return o.scopeName=e,[n,ws(o,...t)]}function ws(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=n.reduce((c,{useScope:f,scopeName:u})=>{const m=f(l)[`__scope${u}`];return{...c,...m}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Ft=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ys=g.useId||(()=>{}),Ss=0;function pr(e){const[t,r]=g.useState(ys());return Ft(()=>{e||r(n=>n??String(Ss++))},[e]),e||(t?`radix-${t}`:"")}function Ye(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Es({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Cs({defaultProp:t,onChange:r}),l=e!==void 0,i=l?e:n,c=Ye(r),f=g.useCallback(u=>{if(l){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else o(u)},[l,e,o,c]);return[i,f]}function Cs({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,o=g.useRef(n),l=Ye(t);return g.useEffect(()=>{o.current!==n&&(l(n),o.current=n)},[n,o,l]),r}var mr=g.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.Children.toArray(r),l=o.find(Ns);if(l){const i=l.props.children,c=o.map(f=>f===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:f);return a.jsx(br,{...n,ref:t,children:g.isValidElement(i)?g.cloneElement(i,void 0,c):null})}return a.jsx(br,{...n,ref:t,children:r})});mr.displayName="Slot";var br=g.forwardRef((e,t)=>{const{children:r,...n}=e;if(g.isValidElement(r)){const o=As(r);return g.cloneElement(r,{...Ts(n,r.props),ref:t?ta(t,o):o})}return g.Children.count(r)>1?g.Children.only(null):null});br.displayName="SlotClone";var _s=({children:e})=>a.jsx(a.Fragment,{children:e});function Ns(e){return g.isValidElement(e)&&e.type===_s}function Ts(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...c)=>{l(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function As(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=Os.reduce((e,t)=>{const r=g.forwardRef((n,o)=>{const{asChild:l,...i}=n,c=l?mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ds(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}function Ls(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e);g.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Is="DismissableLayer",xr="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",ks="dismissableLayer.focusOutside",ra,na=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),aa=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:c,...f}=e,u=g.useContext(na),[v,m]=g.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=g.useState({}),y=Ze(t,N=>m(N)),p=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=p.indexOf(E),I=v?p.indexOf(v):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,P=I>=C,k=Fs(N=>{const A=N.target,G=[...u.branches].some(V=>V.contains(A));!P||G||(o==null||o(N),i==null||i(N),N.defaultPrevented||c==null||c())},b),K=Vs(N=>{const A=N.target;[...u.branches].some(V=>V.contains(A))||(l==null||l(N),i==null||i(N),N.defaultPrevented||c==null||c())},b);return Ls(N=>{I===u.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},b),g.useEffect(()=>{if(v)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ra=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(v)),u.layers.add(v),oa(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=ra)}},[v,b,r,u]),g.useEffect(()=>()=>{v&&(u.layers.delete(v),u.layersWithOutsidePointerEventsDisabled.delete(v),oa())},[v,u]),g.useEffect(()=>{const N=()=>S({});return document.addEventListener(xr,N),()=>document.removeEventListener(xr,N)},[]),a.jsx(Ee.div,{...f,ref:y,style:{pointerEvents:_?P?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,k.onPointerDownCapture)})});aa.displayName=Is;var Bs="DismissableLayerBranch",Ms=g.forwardRef((e,t)=>{const r=g.useContext(na),n=g.useRef(null),o=Ze(t,n);return g.useEffect(()=>{const l=n.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),a.jsx(Ee.div,{...e,ref:o})});Ms.displayName=Bs;function Fs(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const l=c=>{if(c.target&&!n.current){let f=function(){la(Ps,r,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Vs(e,t=globalThis==null?void 0:globalThis.document){const r=Ye(e),n=g.useRef(!1);return g.useEffect(()=>{const o=l=>{l.target&&!n.current&&la(ks,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function oa(){const e=new CustomEvent(xr);document.dispatchEvent(e)}function la(e,t,r,{discrete:n}){const o=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ds(o,l):o.dispatchEvent(l)}var wr="focusScope.autoFocusOnMount",yr="focusScope.autoFocusOnUnmount",ia={bubbles:!1,cancelable:!0},Us="FocusScope",sa=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[c,f]=g.useState(null),u=Ye(o),v=Ye(l),m=g.useRef(null),b=Ze(t,p=>f(p)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let p=function(_){if(S.paused||!c)return;const P=_.target;c.contains(P)?m.current=P:Ve(m.current,{select:!0})},E=function(_){if(S.paused||!c)return;const P=_.relatedTarget;P!==null&&(c.contains(P)||Ve(m.current,{select:!0}))},C=function(_){if(document.activeElement===document.body)for(const k of _)k.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",E);const I=new MutationObserver(C);return c&&I.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",E),I.disconnect()}}},[n,c,S.paused]),g.useEffect(()=>{if(c){ua.add(S);const p=document.activeElement;if(!c.contains(p)){const C=new CustomEvent(wr,ia);c.addEventListener(wr,u),c.dispatchEvent(C),C.defaultPrevented||(Ws(zs(ca(c)),{select:!0}),document.activeElement===p&&Ve(c))}return()=>{c.removeEventListener(wr,u),setTimeout(()=>{const C=new CustomEvent(yr,ia);c.addEventListener(yr,v),c.dispatchEvent(C),C.defaultPrevented||Ve(p??document.body,{select:!0}),c.removeEventListener(yr,v),ua.remove(S)},0)}}},[c,u,v,S]);const y=g.useCallback(p=>{if(!r&&!n||S.paused)return;const E=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,C=document.activeElement;if(E&&C){const I=p.currentTarget,[_,P]=js(I);_&&P?!p.shiftKey&&C===P?(p.preventDefault(),r&&Ve(_,{select:!0})):p.shiftKey&&C===_&&(p.preventDefault(),r&&Ve(P,{select:!0})):C===I&&p.preventDefault()}},[r,n,S.paused]);return a.jsx(Ee.div,{tabIndex:-1,...i,ref:b,onKeyDown:y})});sa.displayName=Us;function Ws(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ve(n,{select:t}),document.activeElement!==r)return}function js(e){const t=ca(e),r=da(t,e),n=da(t.reverse(),e);return[r,n]}function ca(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function da(e,t){for(const r of e)if(!Hs(r,{upTo:t}))return r}function Hs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Gs(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gs(e)&&t&&e.select()}}var ua=$s();function $s(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=fa(e,t),e.unshift(t)},remove(t){var r;e=fa(e,t),(r=e[0])==null||r.resume()}}}function fa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function zs(e){return e.filter(t=>t.tagName!=="A")}var Xs="Portal",ha=g.forwardRef((e,t)=>{var c;const{container:r,...n}=e,[o,l]=g.useState(!1);Ft(()=>l(!0),[]);const i=r||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?ar.createPortal(a.jsx(Ee.div,{...n,ref:t}),i):null});ha.displayName=Xs;function Ks(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Vt=e=>{const{present:t,children:r}=e,n=Zs(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),l=Ze(n.ref,Ys(o));return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:l}):null};Vt.displayName="Presence";function Zs(e){const[t,r]=g.useState(),n=g.useRef({}),o=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[c,f]=Ks(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=Ut(n.current);l.current=c==="mounted"?u:"none"},[c]),Ft(()=>{const u=n.current,v=o.current;if(v!==e){const b=l.current,S=Ut(u);e?f("MOUNT"):S==="none"||(u==null?void 0:u.display)==="none"?f("UNMOUNT"):f(v&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),Ft(()=>{if(t){const u=m=>{const S=Ut(n.current).includes(m.animationName);m.target===t&&S&&Kr.flushSync(()=>f("ANIMATION_END"))},v=m=>{m.target===t&&(l.current=Ut(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Ut(e){return(e==null?void 0:e.animationName)||"none"}function Ys(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Sr=0;function qs(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ga()),document.body.insertAdjacentElement("beforeend",e[1]??ga()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function ga(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ce=function(){return Ce=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Ce.apply(this,arguments)};function va(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Qs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,l;n<o;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Wt="right-scroll-bar-position",jt="width-before-scroll-bar",Js="with-scroll-bars-hidden",Rs="--removed-body-scroll-bar-size";function Er(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ec(e,t){var r=T.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tc=typeof window<"u"?g.useLayoutEffect:g.useEffect,pa=new WeakMap;function rc(e,t){var r=ec(null,function(n){return e.forEach(function(o){return Er(o,n)})});return tc(function(){var n=pa.get(r);if(n){var o=new Set(n),l=new Set(e),i=r.current;o.forEach(function(c){l.has(c)||Er(c,null)}),l.forEach(function(c){o.has(c)||Er(c,i)})}pa.set(r,e)},[e]),r}function nc(e){return e}function ac(e,t){t===void 0&&(t=nc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var i=t(l,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(l){for(n=!0;r.length;){var i=r;r=[],i.forEach(l)}r={push:function(c){return l(c)},filter:function(){return r}}},assignMedium:function(l){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(l),i=r}var f=function(){var v=i;i=[],v.forEach(l)},u=function(){return Promise.resolve().then(f)};u(),r={push:function(v){i.push(v),u()},filter:function(v){return i=i.filter(v),r}}}};return o}function oc(e){e===void 0&&(e={});var t=ac(null);return t.options=Ce({async:!0,ssr:!1},e),t}var ma=function(e){var t=e.sideCar,r=va(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Ce({},r))};ma.isSideCarExport=!0;function lc(e,t){return e.useMedium(t),ma}var ba=oc(),Cr=function(){},Ht=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:Cr,onWheelCapture:Cr,onTouchMoveCapture:Cr}),o=n[0],l=n[1],i=e.forwardProps,c=e.children,f=e.className,u=e.removeScrollBar,v=e.enabled,m=e.shards,b=e.sideCar,S=e.noIsolation,y=e.inert,p=e.allowPinchZoom,E=e.as,C=E===void 0?"div":E,I=e.gapMode,_=va(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,k=rc([r,t]),K=Ce(Ce({},_),o);return g.createElement(g.Fragment,null,v&&g.createElement(P,{sideCar:ba,removeScrollBar:u,shards:m,noIsolation:S,inert:y,setCallbacks:l,allowPinchZoom:!!p,lockRef:r,gapMode:I}),i?g.cloneElement(g.Children.only(c),Ce(Ce({},K),{ref:k})):g.createElement(C,Ce({},K,{className:f,ref:k}),c))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:jt,zeroRight:Wt};var xa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ic(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xa();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ic())&&(sc(t,r),cc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uc=function(){var e=dc();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fc=function(){var e=uc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},hc={left:0,top:0,right:0,gap:0},_r=function(e){return parseInt(e||"",10)||0},gc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_r(r),_r(n),_r(o)]},vc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hc;var t=gc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},pc=fc(),at="data-scroll-locked",mc=function(e,t,r,n){var o=e.left,l=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
22
22
  .`.concat(Js,` {
23
23
  overflow: hidden `).concat(n,`;
24
24
  padding-right: `).concat(c,"px ").concat(n,`;
@@ -36,31 +36,31 @@
36
36
  `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
37
37
  }
38
38
 
39
- .`).concat(Ut,` {
39
+ .`).concat(Wt,` {
40
40
  right: `).concat(c,"px ").concat(n,`;
41
41
  }
42
42
 
43
- .`).concat(Wt,` {
43
+ .`).concat(jt,` {
44
44
  margin-right: `).concat(c,"px ").concat(n,`;
45
45
  }
46
46
 
47
- .`).concat(Ut," .").concat(Ut,` {
47
+ .`).concat(Wt," .").concat(Wt,` {
48
48
  right: 0 `).concat(n,`;
49
49
  }
50
50
 
51
- .`).concat(Wt," .").concat(Wt,` {
51
+ .`).concat(jt," .").concat(jt,` {
52
52
  margin-right: 0 `).concat(n,`;
53
53
  }
54
54
 
55
55
  body[`).concat(at,`] {
56
56
  `).concat(Rs,": ").concat(c,`px;
57
57
  }
58
- `)},xa=function(){var e=parseInt(document.body.getAttribute(at)||"0",10);return isFinite(e)?e:0},bc=function(){g.useEffect(function(){return document.body.setAttribute(at,(xa()+1).toString()),function(){var e=xa()-1;e<=0?document.body.removeAttribute(at):document.body.setAttribute(at,e.toString())}},[])},xc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bc();var l=g.useMemo(function(){return gc(o)},[o]);return g.createElement(pc,{styles:mc(l,!t,o,r?"":"!important")})};function wc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ba();return t&&e.setAttribute("nonce",t),e}function yc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ec=function(){var e=0,t=null;return{add:function(r){e==0&&(t=wc())&&(yc(t,r),Sc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cc=function(){var e=Ec();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},_c=function(){var e=Cc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},_r=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return _r=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{_r=!1}var ot=_r?{passive:!1}:!1,Nc=function(e){return e.tagName==="TEXTAREA"},wa=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Nc(e)&&r[t]==="visible")},Tc=function(e){return wa(e,"overflowY")},Ac=function(e){return wa(e,"overflowX")},ya=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Sa(e,n);if(o){var l=Ea(e,n),i=l[1],c=l[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Oc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Dc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Sa=function(e,t){return e==="v"?Tc(t):Ac(t)},Ea=function(e,t){return e==="v"?Oc(t):Dc(t)},Lc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ic=function(e,t,r,n,o){var l=Lc(e,window.getComputedStyle(t).direction),i=l*n,c=r.target,u=t.contains(c),f=!1,p=i>0,h=0,w=0;do{var S=Ea(e,c),y=S[0],m=S[1],E=S[2],C=m-E-l*y;(y||C)&&Sa(e,c)&&(h+=C,w+=y),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&Math.abs(h)<1||!p&&Math.abs(w)<1)&&(f=!0),f},Gt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ca=function(e){return[e.deltaX,e.deltaY]},_a=function(e){return e&&"current"in e?e.current:e},Pc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kc=function(e){return`
58
+ `)},wa=function(){var e=parseInt(document.body.getAttribute(at)||"0",10);return isFinite(e)?e:0},bc=function(){g.useEffect(function(){return document.body.setAttribute(at,(wa()+1).toString()),function(){var e=wa()-1;e<=0?document.body.removeAttribute(at):document.body.setAttribute(at,e.toString())}},[])},xc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bc();var l=g.useMemo(function(){return vc(o)},[o]);return g.createElement(pc,{styles:mc(l,!t,o,r?"":"!important")})};function wc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xa();return t&&e.setAttribute("nonce",t),e}function yc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ec=function(){var e=0,t=null;return{add:function(r){e==0&&(t=wc())&&(yc(t,r),Sc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cc=function(){var e=Ec();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},_c=function(){var e=Cc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Nr=!1;if(typeof window<"u")try{var Gt=Object.defineProperty({},"passive",{get:function(){return Nr=!0,!0}});window.addEventListener("test",Gt,Gt),window.removeEventListener("test",Gt,Gt)}catch{Nr=!1}var ot=Nr?{passive:!1}:!1,Nc=function(e){return e.tagName==="TEXTAREA"},ya=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Nc(e)&&r[t]==="visible")},Tc=function(e){return ya(e,"overflowY")},Ac=function(e){return ya(e,"overflowX")},Sa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ea(e,n);if(o){var l=Ca(e,n),i=l[1],c=l[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Oc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Dc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ea=function(e,t){return e==="v"?Tc(t):Ac(t)},Ca=function(e,t){return e==="v"?Oc(t):Dc(t)},Lc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ic=function(e,t,r,n,o){var l=Lc(e,window.getComputedStyle(t).direction),i=l*n,c=r.target,f=t.contains(c),u=!1,v=i>0,m=0,b=0;do{var S=Ca(e,c),y=S[0],p=S[1],E=S[2],C=p-E-l*y;(y||C)&&Ea(e,c)&&(m+=C,b+=y),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(v&&Math.abs(m)<1||!v&&Math.abs(b)<1)&&(u=!0),u},$t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_a=function(e){return[e.deltaX,e.deltaY]},Na=function(e){return e&&"current"in e?e.current:e},Pc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kc=function(e){return`
59
59
  .block-interactivity-`.concat(e,` {pointer-events: none;}
60
60
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
61
- `)},Bc=0,lt=[];function Mc(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(Bc++)[0],l=g.useState(_c)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Qs([e.lockRef.current],(e.shards||[]).map(_a),!0).filter(Boolean);return m.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(m,E){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var C=Gt(m),I=r.current,_="deltaX"in m?m.deltaX:I[0]-C[0],L="deltaY"in m?m.deltaY:I[1]-C[1],B,P=m.target,N=Math.abs(_)>Math.abs(L)?"h":"v";if("touches"in m&&N==="h"&&P.type==="range")return!1;var k=ya(N,P);if(!k)return!0;if(k?B=N:(B=N==="v"?"h":"v",k=ya(N,P)),!k)return!1;if(!n.current&&"changedTouches"in m&&(_||L)&&(n.current=B),!B)return!0;var M=n.current||B;return Ic(M,E,m,M==="h"?_:L)},[]),u=g.useCallback(function(m){var E=m;if(!(!lt.length||lt[lt.length-1]!==l)){var C="deltaY"in E?Ca(E):Gt(E),I=t.current.filter(function(B){return B.name===E.type&&(B.target===E.target||E.target===B.shadowParent)&&Pc(B.delta,C)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var _=(i.current.shards||[]).map(_a).filter(Boolean).filter(function(B){return B.contains(E.target)}),L=_.length>0?c(E,_[0]):!i.current.noIsolation;L&&E.cancelable&&E.preventDefault()}}},[]),f=g.useCallback(function(m,E,C,I){var _={name:m,delta:E,target:C,should:I,shadowParent:Fc(C)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(L){return L!==_})},1)},[]),p=g.useCallback(function(m){r.current=Gt(m),n.current=void 0},[]),h=g.useCallback(function(m){f(m.type,Ca(m),m.target,c(m,e.lockRef.current))},[]),w=g.useCallback(function(m){f(m.type,Gt(m),m.target,c(m,e.lockRef.current))},[]);g.useEffect(function(){return lt.push(l),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:w}),document.addEventListener("wheel",u,ot),document.addEventListener("touchmove",u,ot),document.addEventListener("touchstart",p,ot),function(){lt=lt.filter(function(m){return m!==l}),document.removeEventListener("wheel",u,ot),document.removeEventListener("touchmove",u,ot),document.removeEventListener("touchstart",p,ot)}},[]);var S=e.removeScrollBar,y=e.inert;return g.createElement(g.Fragment,null,y?g.createElement(l,{styles:kc(o)}):null,S?g.createElement(xc,{gapMode:e.gapMode}):null)}function Fc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vc=lc(ma,Mc);var Na=g.forwardRef(function(e,t){return g.createElement(jt,Ee({},e,{ref:t,sideCar:Vc}))});Na.classNames=jt.classNames;var Uc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},it=new WeakMap,$t=new WeakMap,zt={},Nr=0,Ta=function(e){return e&&(e.host||Ta(e.parentNode))},Wc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ta(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},jc=function(e,t,r,n){var o=Wc(t,Array.isArray(e)?e:[e]);zt[r]||(zt[r]=new WeakMap);var l=zt[r],i=[],c=new Set,u=new Set(o),f=function(h){!h||c.has(h)||(c.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(w){if(c.has(w))p(w);else try{var S=w.getAttribute(n),y=S!==null&&S!=="false",m=(it.get(w)||0)+1,E=(l.get(w)||0)+1;it.set(w,m),l.set(w,E),i.push(w),m===1&&y&&$t.set(w,!0),E===1&&w.setAttribute(r,"true"),y||w.setAttribute(n,"true")}catch(C){console.error("aria-hidden: cannot operate on ",w,C)}})};return p(t),c.clear(),Nr++,function(){i.forEach(function(h){var w=it.get(h)-1,S=l.get(h)-1;it.set(h,w),l.set(h,S),w||($t.has(h)||h.removeAttribute(n),$t.delete(h)),S||h.removeAttribute(r)}),Nr--,Nr||(it=new WeakMap,it=new WeakMap,$t=new WeakMap,zt={})}},Hc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Uc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),jc(n,o,r,"aria-hidden")):function(){return null}},Tr="Dialog",[Aa,Uu]=xs(Tr),[Gc,me]=Aa(Tr),Oa=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:l,modal:i=!0}=e,c=g.useRef(null),u=g.useRef(null),[f=!1,p]=Es({prop:n,defaultProp:o,onChange:l});return a.jsx(Gc,{scope:t,triggerRef:c,contentRef:u,contentId:gr(),titleId:gr(),descriptionId:gr(),open:f,onOpenChange:p,onOpenToggle:g.useCallback(()=>p(h=>!h),[p]),modal:i,children:r})};Oa.displayName=Tr;var Da="DialogTrigger",La=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Da,r),l=Ke(t,o.triggerRef);return a.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dr(o.open),...n,ref:l,onClick:Me(e.onClick,o.onOpenToggle)})});La.displayName=Da;var Ar="DialogPortal",[$c,Ia]=Aa(Ar,{forceMount:void 0}),Pa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,l=me(Ar,t);return a.jsx($c,{scope:t,forceMount:r,children:g.Children.map(n,i=>a.jsx(Ft,{present:r||l.open,children:a.jsx(fa,{asChild:!0,container:o,children:i})}))})};Pa.displayName=Ar;var Xt="DialogOverlay",ka=g.forwardRef((e,t)=>{const r=Ia(Xt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=me(Xt,e.__scopeDialog);return l.modal?a.jsx(Ft,{present:n||l.open,children:a.jsx(zc,{...o,ref:t})}):null});ka.displayName=Xt;var zc=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Xt,r);return a.jsx(Na,{as:pr,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Se.div,{"data-state":Dr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ye="DialogContent",Ba=g.forwardRef((e,t)=>{const r=Ia(Ye,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=me(Ye,e.__scopeDialog);return a.jsx(Ft,{present:n||l.open,children:l.modal?a.jsx(Xc,{...o,ref:t}):a.jsx(Kc,{...o,ref:t})})});Ba.displayName=Ye;var Xc=g.forwardRef((e,t)=>{const r=me(Ye,e.__scopeDialog),n=g.useRef(null),o=Ke(t,r.contentRef,n);return g.useEffect(()=>{const l=n.current;if(l)return Hc(l)},[]),a.jsx(Ma,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&l.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,l=>l.preventDefault())})}),Kc=g.forwardRef((e,t)=>{const r=me(Ye,e.__scopeDialog),n=g.useRef(!1),o=g.useRef(!1);return a.jsx(Ma,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,l),l.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),l.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:l=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,l),l.defaultPrevented||(n.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=l.target;((f=r.triggerRef.current)==null?void 0:f.contains(i))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),Ma=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=e,c=me(Ye,r),u=g.useRef(null),f=Ke(t,u);return qs(),a.jsxs(a.Fragment,{children:[a.jsx(ia,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:l,children:a.jsx(na,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Dr(c.open),...i,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(Zc,{titleId:c.titleId}),a.jsx(qc,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Or="DialogTitle",Fa=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Or,r);return a.jsx(Se.h2,{id:o.titleId,...n,ref:t})});Fa.displayName=Or;var Va="DialogDescription",Ua=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Va,r);return a.jsx(Se.p,{id:o.descriptionId,...n,ref:t})});Ua.displayName=Va;var Wa="DialogClose",ja=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Wa,r);return a.jsx(Se.button,{type:"button",...n,ref:t,onClick:Me(e.onClick,()=>o.onOpenChange(!1))})});ja.displayName=Wa;function Dr(e){return e?"open":"closed"}var Ha="DialogTitleWarning",[Wu,Ga]=bs(Ha,{contentName:Ye,titleName:Or,docsSlug:"dialog"}),Zc=({titleId:e})=>{const t=Ga(Ha),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
61
+ `)},Bc=0,lt=[];function Mc(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(Bc++)[0],l=g.useState(_c)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Qs([e.lockRef.current],(e.shards||[]).map(Na),!0).filter(Boolean);return p.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(p,E){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var C=$t(p),I=r.current,_="deltaX"in p?p.deltaX:I[0]-C[0],P="deltaY"in p?p.deltaY:I[1]-C[1],k,K=p.target,N=Math.abs(_)>Math.abs(P)?"h":"v";if("touches"in p&&N==="h"&&K.type==="range")return!1;var A=Sa(N,K);if(!A)return!0;if(A?k=N:(k=N==="v"?"h":"v",A=Sa(N,K)),!A)return!1;if(!n.current&&"changedTouches"in p&&(_||P)&&(n.current=k),!k)return!0;var G=n.current||k;return Ic(G,E,p,G==="h"?_:P)},[]),f=g.useCallback(function(p){var E=p;if(!(!lt.length||lt[lt.length-1]!==l)){var C="deltaY"in E?_a(E):$t(E),I=t.current.filter(function(k){return k.name===E.type&&(k.target===E.target||E.target===k.shadowParent)&&Pc(k.delta,C)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var _=(i.current.shards||[]).map(Na).filter(Boolean).filter(function(k){return k.contains(E.target)}),P=_.length>0?c(E,_[0]):!i.current.noIsolation;P&&E.cancelable&&E.preventDefault()}}},[]),u=g.useCallback(function(p,E,C,I){var _={name:p,delta:E,target:C,should:I,shadowParent:Fc(C)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(P){return P!==_})},1)},[]),v=g.useCallback(function(p){r.current=$t(p),n.current=void 0},[]),m=g.useCallback(function(p){u(p.type,_a(p),p.target,c(p,e.lockRef.current))},[]),b=g.useCallback(function(p){u(p.type,$t(p),p.target,c(p,e.lockRef.current))},[]);g.useEffect(function(){return lt.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",f,ot),document.addEventListener("touchmove",f,ot),document.addEventListener("touchstart",v,ot),function(){lt=lt.filter(function(p){return p!==l}),document.removeEventListener("wheel",f,ot),document.removeEventListener("touchmove",f,ot),document.removeEventListener("touchstart",v,ot)}},[]);var S=e.removeScrollBar,y=e.inert;return g.createElement(g.Fragment,null,y?g.createElement(l,{styles:kc(o)}):null,S?g.createElement(xc,{gapMode:e.gapMode}):null)}function Fc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vc=lc(ba,Mc);var Ta=g.forwardRef(function(e,t){return g.createElement(Ht,Ce({},e,{ref:t,sideCar:Vc}))});Ta.classNames=Ht.classNames;var Uc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},it=new WeakMap,zt=new WeakMap,Xt={},Tr=0,Aa=function(e){return e&&(e.host||Aa(e.parentNode))},Wc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Aa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},jc=function(e,t,r,n){var o=Wc(t,Array.isArray(e)?e:[e]);Xt[r]||(Xt[r]=new WeakMap);var l=Xt[r],i=[],c=new Set,f=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var v=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(b){if(c.has(b))v(b);else try{var S=b.getAttribute(n),y=S!==null&&S!=="false",p=(it.get(b)||0)+1,E=(l.get(b)||0)+1;it.set(b,p),l.set(b,E),i.push(b),p===1&&y&&zt.set(b,!0),E===1&&b.setAttribute(r,"true"),y||b.setAttribute(n,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return v(t),c.clear(),Tr++,function(){i.forEach(function(m){var b=it.get(m)-1,S=l.get(m)-1;it.set(m,b),l.set(m,S),b||(zt.has(m)||m.removeAttribute(n),zt.delete(m)),S||m.removeAttribute(r)}),Tr--,Tr||(it=new WeakMap,it=new WeakMap,zt=new WeakMap,Xt={})}},Hc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Uc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),jc(n,o,r,"aria-hidden")):function(){return null}},Ar="Dialog",[Oa,Uu]=xs(Ar),[Gc,be]=Oa(Ar),Da=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:l,modal:i=!0}=e,c=g.useRef(null),f=g.useRef(null),[u=!1,v]=Es({prop:n,defaultProp:o,onChange:l});return a.jsx(Gc,{scope:t,triggerRef:c,contentRef:f,contentId:pr(),titleId:pr(),descriptionId:pr(),open:u,onOpenChange:v,onOpenToggle:g.useCallback(()=>v(m=>!m),[v]),modal:i,children:r})};Da.displayName=Ar;var La="DialogTrigger",Ia=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=be(La,r),l=Ze(t,o.triggerRef);return a.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:l,onClick:Fe(e.onClick,o.onOpenToggle)})});Ia.displayName=La;var Or="DialogPortal",[$c,Pa]=Oa(Or,{forceMount:void 0}),ka=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,l=be(Or,t);return a.jsx($c,{scope:t,forceMount:r,children:g.Children.map(n,i=>a.jsx(Vt,{present:r||l.open,children:a.jsx(ha,{asChild:!0,container:o,children:i})}))})};ka.displayName=Or;var Kt="DialogOverlay",Ba=g.forwardRef((e,t)=>{const r=Pa(Kt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=be(Kt,e.__scopeDialog);return l.modal?a.jsx(Vt,{present:n||l.open,children:a.jsx(zc,{...o,ref:t})}):null});Ba.displayName=Kt;var zc=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=be(Kt,r);return a.jsx(Ta,{as:mr,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Ee.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),qe="DialogContent",Ma=g.forwardRef((e,t)=>{const r=Pa(qe,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=be(qe,e.__scopeDialog);return a.jsx(Vt,{present:n||l.open,children:l.modal?a.jsx(Xc,{...o,ref:t}):a.jsx(Kc,{...o,ref:t})})});Ma.displayName=qe;var Xc=g.forwardRef((e,t)=>{const r=be(qe,e.__scopeDialog),n=g.useRef(null),o=Ze(t,r.contentRef,n);return g.useEffect(()=>{const l=n.current;if(l)return Hc(l)},[]),a.jsx(Fa,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fe(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Fe(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&l.preventDefault()}),onFocusOutside:Fe(e.onFocusOutside,l=>l.preventDefault())})}),Kc=g.forwardRef((e,t)=>{const r=be(qe,e.__scopeDialog),n=g.useRef(!1),o=g.useRef(!1);return a.jsx(Fa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,l),l.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),l.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:l=>{var f,u;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(n.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=l.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),Fa=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=e,c=be(qe,r),f=g.useRef(null),u=Ze(t,f);return qs(),a.jsxs(a.Fragment,{children:[a.jsx(sa,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:l,children:a.jsx(aa,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Lr(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(Zc,{titleId:c.titleId}),a.jsx(qc,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Dr="DialogTitle",Va=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=be(Dr,r);return a.jsx(Ee.h2,{id:o.titleId,...n,ref:t})});Va.displayName=Dr;var Ua="DialogDescription",Wa=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=be(Ua,r);return a.jsx(Ee.p,{id:o.descriptionId,...n,ref:t})});Wa.displayName=Ua;var ja="DialogClose",Ha=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=be(ja,r);return a.jsx(Ee.button,{type:"button",...n,ref:t,onClick:Fe(e.onClick,()=>o.onOpenChange(!1))})});Ha.displayName=ja;function Lr(e){return e?"open":"closed"}var Ga="DialogTitleWarning",[Wu,$a]=bs(Ga,{contentName:qe,titleName:Dr,docsSlug:"dialog"}),Zc=({titleId:e})=>{const t=$a(Ga),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
62
62
 
63
63
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
64
64
 
65
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Yc="DialogDescriptionWarning",qc=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ga(Yc).contentName}}.`;return g.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Qc=Oa,Jc=La,Rc=Pa,$a=ka,za=Ba,Lr=Fa,ed=Ua,td=ja,rd="VisuallyHidden",Xa=g.forwardRef((e,t)=>a.jsx(Se.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Xa.displayName=rd;var nd=Xa,qe=(e=>(e.Center="center",e.Right="right",e))(qe||{});const ad=({open:e,onOpenChange:t,children:r,...n})=>{const o=l=>{const i=document.querySelector(".toast-layer:hover");!l&&i||t==null||t(l)};return a.jsx(Qc,{open:e,onOpenChange:o,...n,children:r})},od=Jc,Ka=td,Za=g.forwardRef(({showCloseIcon:e,position:t,...r},n)=>a.jsx($a,{ref:n,className:x(" dialog-overlay-bg absolute h-full w-full backdrop-blur-md names:backdrop-blur-lg"),...r,children:a.jsx(Ka,{className:x("fixed right-3 top-3",{hidden:!e}),children:a.jsx(vt,{className:"button-text-color-neutral"})})}));Za.displayName=$a.displayName;const ld=g.forwardRef((e,t)=>a.jsx("div",{className:x("inset-0 z-[99999]",e.isFixedPosition?"fixed":"absolute"),ref:t,children:a.jsx("div",{className:"relative h-full w-full",children:e.children})})),Ya=g.forwardRef(({className:e,containerId:t,showCloseOnOverlay:r,children:n,position:o=qe.Center,customWidth:l="w-80 max-w-[85vw] md:w-96",isFixedPosition:i=o===qe.Right,...c},u)=>{const[f,p]=T.useState(void 0);T.useEffect(()=>{const y=t?document.getElementById(t):void 0;p(y??void 0)},[t]);const h=o===qe.Right?"overflow-hidden right-0 h-screen top-0 w-full":"overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl",w=o===qe.Right?"md:w-96 max-w-[500px]":l,S=o===qe.Right?"h-screen":"max-h-[90vh] h-full";return a.jsx(Rc,{container:f,children:a.jsxs(ld,{isFixedPosition:i,children:[a.jsx(Za,{showCloseIcon:r,position:o}),a.jsxs(za,{ref:u,className:x("dialog-content-bg dialog-outline absolute flex flex-col justify-center",h,w),...c,children:[a.jsxs(nd,{children:[a.jsx(Lr,{}),a.jsx(ed,{})]}),a.jsx("div",{className:x("flex flex-1 flex-col",S),children:n})]})]})})});Ya.displayName=za.displayName;const qa=g.forwardRef((e,t)=>a.jsx(Lr,{ref:t,className:"dialog-title-color font-inter text-title-lg",...e}));qa.displayName=Lr.displayName;const Qa=g.forwardRef((e,t)=>a.jsx("div",{ref:t,className:"dialog-body-color flex-1 overflow-y-auto p-md--rs text-body-sm",...e}));Qa.displayName="DialogBody";const Ja=T.createContext({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),Ra=()=>T.useContext(Ja);function id({children:e,selectedRowIndexes:t,rowIndexes:r,...n}){const o=r.length===t.size,l=!o&&t.size>0;return a.jsx(Ja.Provider,{value:{...n,isHeaderChecked:o,selectedRowIndexes:t,isHeaderIndeterminate:l},children:e})}function sd({paginationOptions:e,action:t,supportingLabel:r,selectedRowIndexes:n=new Set,rowIndexes:o,children:l,pageSizeSelector:i,heightFull:c=!1}){return a.jsx(id,{selectedRowIndexes:n,rowIndexes:o,children:a.jsxs("div",{className:x("w-full",{"h-full":c}),children:[a.jsx("div",{className:x("overflow-auto",{"h-full":c}),children:a.jsx("table",{className:x("w-full table-auto",{"h-full":c}),children:l})}),a.jsxs("div",{className:x("flex w-full items-center gap-sm pt-md",{hidden:!r&&!e&&!t,"flex-col justify-between sm:flex-row":e,"justify-end":!e&&t}),children:[(e||t)&&a.jsxs("div",{className:"flex gap-2",children:[e&&a.jsxs(a.Fragment,{children:[a.jsx(ue,{type:j.Secondary,size:oe.Small,icon:a.jsx(el,{}),disabled:!e.hasFirst,onClick:e.onFirst}),a.jsx(ue,{type:j.Secondary,size:oe.Small,icon:a.jsx(Yo,{}),disabled:!e.hasPrev,onClick:e.onPrev}),a.jsx(ue,{type:j.Secondary,size:oe.Small,icon:a.jsx(lr,{}),disabled:!e.hasNext,onClick:e.onNext}),a.jsx(ue,{type:j.Secondary,size:oe.Small,icon:a.jsx(tl,{}),disabled:!e.hasLast,onClick:e.onLast})]}),t&&t]}),r||i?a.jsxs("div",{className:"flex flex-row items-center gap-x-sm",children:[r&&a.jsx("span",{className:"table-text-color text-label-md",children:r}),i&&a.jsx("div",{className:"ml-2",children:i})]}):null]})]})})}function cd(e){return a.jsx(ue,{type:j.Secondary,size:oe.Small,...e})}function dd({children:e}){return a.jsx("thead",{children:e})}function ud({children:e,leading:t}){return a.jsxs("tr",{children:[t,e]})}const fd="table-text-color",hd="text-body-md";function vd({children:e}){return a.jsx("tbody",{className:x(fd,hd),children:e})}function gd({rowIndex:e,onCheckboxChange:t,isDisabled:r}){const{selectedRowIndexes:n}=Ra();return a.jsx(Yn,{isContentCentered:!0,children:a.jsx(sr,{onCheckedChange:o=>{t(o.target.checked)},isChecked:n.has(e),isDisabled:r})})}function pd({onCheckboxChange:e}){const{isHeaderChecked:t,isHeaderIndeterminate:r}=Ra();return a.jsx(Qn,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:n=>{e(n.target.checked)},isChecked:t,columnKey:1,isIndeterminate:r})}function md({items:e,activeId:t,onClickItem:r,isCollapsible:n=!1,onToggleNavbar:o}){return a.jsxs("div",{className:x("flex h-fit w-full",{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":n}),children:[n&&a.jsxs("div",{className:"flex w-full items-center justify-between sm:mb-[48px] sm:flex-col",children:[a.jsx("div",{className:"flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]",children:a.jsx(rl,{className:"navbar-icon-color"})}),a.jsx("div",{className:"state-layer navbar-icon-color relative rounded-full p-xs hover:cursor-pointer sm:hidden [&_svg]:h-6 [&_svg]:w-6",onClick:o,children:a.jsx(nl,{})})]}),a.jsx("div",{className:x({"flex w-full justify-between px-sm py-xxs":!n,"hidden sm:flex sm:flex-col sm:gap-2":n}),children:e.map(l=>a.jsx("div",{className:x("flex items-center",{"px-xs py-xxs":!n,"py-xxs pl-xs pr-sm":n}),"data-testid":`nav-${l.id}`,children:a.jsx(vr,{...l,isSelected:l.id===t,onClick:i=>{l.onClick&&l.onClick(i),l.isDisabled||r(l.id)}})},l.id))})]})}function bd({items:e,activeId:t,onClickItem:r,isOpen:n,onToggleNavbar:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{onClick:o,className:x("duration-800 transition-opacity ease-out",{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":n,"-translate-x-full opacity-0":!n})}),a.jsx("div",{className:x("z-999 rounded-tb-3xl navbar-slideout-bg fixed left-0 top-0 h-full w-11/12 rounded-tr-3xl px-lg py-lg transition-transform duration-300 ease-out",{"translate-x-0":n,"-translate-x-full":!n}),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(ue,{type:j.Ghost,onClick:o,icon:a.jsx(ln,{})})}),e.map(l=>a.jsx(vr,{...l,type:Bt.Vertical,isSelected:l.id===t,onClick:()=>{r(l.id),o&&o()}},l.id))]})})]})}const xd="accordion-icon-color transition-transform ease-linear";function wd({onToggle:e,children:t,isExpanded:r,hideArrow:n}){return a.jsxs("div",{onClick:e,className:x("state-layer relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs",{"pr-md--rs":!n}),children:[t,!n&&a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(ue,{type:j.Ghost,icon:a.jsx(Zo,{className:x(xd,{"rotate-180":r})})})})]})}function yd({isExpanded:e,children:t}){return a.jsx("div",{className:x({hidden:!e}),children:t})}function Sd({children:e,hideBorder:t}){return a.jsx("div",{className:x("accordion-bg rounded-xl",{"accordion-border-color border":!t}),children:e})}b.Accordion=Sd,b.AccordionContent=yd,b.AccordionHeader=wd,b.Account=zi,b.Address=En,b.AssetMediaRenderer=Cn,b.Badge=ft,b.BadgeType=te,b.Button=ue,b.ButtonHtmlType=ht,b.ButtonPill=Ko,b.ButtonSegment=pl,b.ButtonSegmentType=We,b.ButtonSize=oe,b.ButtonType=j,b.ButtonUnstyled=se,b.Card=rs,b.CardAction=ns,b.CardActionType=St,b.CardBody=ss,b.CardImage=is,b.CardType=nt,b.Checkbox=sr,b.Chip=Rl,b.ChipSize=Pt,b.ChipType=Z,b.Dialog=ad,b.DialogBody=Qa,b.DialogClose=Ka,b.DialogContent=Ya,b.DialogPosition=qe,b.DialogTitle=qa,b.DialogTrigger=od,b.DisplayStats=gs,b.DisplayStatsSize=pe,b.DisplayStatsType=Oe,b.Divider=vn,b.DividerType=Ie,b.Dropdown=Zn,b.DropdownPosition=wt,b.Header=Nl,b.IOTA_NAMES_COLOR_PALETTE=qr,b.IOTA_PRIMITIVES_COLOR_PALETTE=Yr,b.Image=cr,b.ImageShape=Xe,b.ImageType=Be,b.ImageWithFallback=mn,b.InfoBox=Dl,b.InfoBoxStyle=pt,b.InfoBoxType=ye,b.Input=Pi,b.InputType=ve,b.KeyValueInfo=yl,b.LabelText=_l,b.LabelTextSize=ce,b.ListItem=gn,b.LoadingIndicator=Pl,b.MediaFallback=pn,b.Navbar=md,b.NavbarItem=vr,b.NavbarItemType=Bt,b.NavbarSlideout=bd,b.Panel=Tl,b.Placeholder=xn,b.RadioButton=cl,b.Resize=Ln,b.SHADER_COLOR_PALETTE=Qr,b.ScreenSize=we,b.Search=Ji,b.SearchBarType=ge,b.SecondaryText=mt,b.SegmentedButton=ri,b.SegmentedButtonType=He,b.Select=Zi,b.SelectSize=yt,b.Skeleton=kl,b.Snackbar=Il,b.SnackbarType=he,b.Table=sd,b.TableActionButton=cd,b.TableBody=vd,b.TableCellBase=Yn,b.TableCellPlaceholder=Ki,b.TableCellText=Xi,b.TableHeader=dd,b.TableHeaderCell=Qn,b.TableHeaderCellSortOrder=ze,b.TableHeaderCheckbox=pd,b.TableRow=ud,b.TableRowCheckbox=gd,b.TextArea=Fi,b.Title=oi,b.TitleSize=Ge,b.Toggle=Gl,b.ToggleLabelPosition=Lt,b.ToggleSize=Ae,b.Tooltip=je,b.TooltipPosition=Pe,b.UIKitTheme=Kr,b.ValueSize=gt,b.Video=wn,b.VisualAssetCard=ps,b.VisualAssetType=dr,b.uiKitResponsivePreset=Io,b.uiKitStaticPreset=ko,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
65
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Yc="DialogDescriptionWarning",qc=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$a(Yc).contentName}}.`;return g.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Qc=Da,Jc=Ia,Rc=ka,za=Ba,Xa=Ma,Ir=Va,ed=Wa,td=Ha,rd="VisuallyHidden",Ka=g.forwardRef((e,t)=>a.jsx(Ee.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Ka.displayName=rd;var nd=Ka,Ue=(e=>(e.Center="center",e.Right="right",e))(Ue||{});const ad=({open:e,onOpenChange:t,children:r,...n})=>{const o=l=>{const i=document.querySelector(".toast-layer:hover");!l&&i||t==null||t(l)};return a.jsx(Qc,{open:e,onOpenChange:o,...n,children:r})},od=Jc,Za=td,Ya=g.forwardRef(({showCloseIcon:e,position:t,...r},n)=>a.jsx(za,{ref:n,className:w("dialog-overlay-bg absolute h-full w-full backdrop-blur-md names:backdrop-blur-lg","data-[state=open]:animate-dialog-overlay-show"),...r,children:a.jsx(Za,{className:w("fixed right-3 top-3",{hidden:!e}),"aria-label":"Close",children:a.jsx(gt,{className:"button-text-color-neutral"})})}));Ya.displayName=za.displayName;const ld=g.forwardRef((e,t)=>a.jsx("div",{className:w("inset-0 z-[99999]",e.isFixedPosition?"fixed":"absolute"),ref:t,children:a.jsx("div",{className:"relative h-full w-full",children:e.children})})),qa=g.forwardRef(({className:e,containerId:t,showCloseOnOverlay:r,children:n,position:o=Ue.Center,customWidth:l="w-80 max-w-[85vw] md:w-96",isFixedPosition:i=o===Ue.Right,...c},f)=>{const[u,v]=T.useState(void 0);T.useEffect(()=>{const y=t?document.getElementById(t):void 0;v(y??void 0)},[t]);const m=o===Ue.Right?"overflow-hidden right-0 h-screen top-0 w-full":"overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl",b=o===Ue.Right?"md:w-96 max-w-[500px]":l,S=o===Ue.Right?"h-screen":"max-h-[90vh] h-full";return a.jsx(Rc,{container:u,children:a.jsxs(ld,{isFixedPosition:i,children:[a.jsx(Ya,{showCloseIcon:r,position:o}),a.jsxs(Xa,{ref:f,className:w("dialog-content-bg dialog-outline absolute flex flex-col justify-center",m,b,o===Ue.Right?"data-[state=open]:animate-dialog-panel-show":"data-[state=open]:animate-dialog-content-show"),...c,children:[a.jsxs(nd,{children:[a.jsx(Ir,{}),a.jsx(ed,{})]}),a.jsx("div",{className:w("flex flex-1 flex-col",S),children:n})]})]})})});qa.displayName=Xa.displayName;const Qa=g.forwardRef((e,t)=>a.jsx(Ir,{ref:t,className:"dialog-title-color font-inter text-title-lg",...e}));Qa.displayName=Ir.displayName;const Ja=g.forwardRef((e,t)=>a.jsx("div",{ref:t,className:"dialog-body-color flex-1 overflow-y-auto p-md--rs text-body-sm",...e}));Ja.displayName="DialogBody";const Ra=T.createContext({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),eo=()=>T.useContext(Ra);function id({children:e,selectedRowIndexes:t,rowIndexes:r,...n}){const o=r.length===t.size,l=!o&&t.size>0;return a.jsx(Ra.Provider,{value:{...n,isHeaderChecked:o,selectedRowIndexes:t,isHeaderIndeterminate:l},children:e})}function sd({paginationOptions:e,action:t,supportingLabel:r,selectedRowIndexes:n=new Set,rowIndexes:o,children:l,pageSizeSelector:i,heightFull:c=!1}){return a.jsx(id,{selectedRowIndexes:n,rowIndexes:o,children:a.jsxs("div",{className:w("w-full",{"h-full":c}),children:[a.jsx("div",{className:w("overflow-auto",{"h-full":c}),children:a.jsx("table",{className:w("w-full table-auto",{"h-full":c}),children:l})}),a.jsxs("div",{className:w("flex w-full items-center gap-sm pt-md",{hidden:!r&&!e&&!t,"flex-col justify-between sm:flex-row":e,"justify-end":!e&&t}),children:[(e||t)&&a.jsxs("div",{className:"flex gap-2",children:[e&&a.jsxs(a.Fragment,{children:[a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(el,{}),disabled:!e.hasFirst,onClick:e.onFirst,"aria-label":"First page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(Yo,{}),disabled:!e.hasPrev,onClick:e.onPrev,"aria-label":"Previous page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(ir,{}),disabled:!e.hasNext,onClick:e.onNext,"aria-label":"Next page"}),a.jsx(fe,{type:W.Secondary,size:le.Small,icon:a.jsx(tl,{}),disabled:!e.hasLast,onClick:e.onLast,"aria-label":"Last page"})]}),t&&t]}),r||i?a.jsxs("div",{className:"flex flex-row items-center gap-x-sm",children:[r&&a.jsx("span",{className:"table-text-color text-label-md",children:r}),i&&a.jsx("div",{className:"ml-2",children:i})]}):null]})]})})}function cd(e){return a.jsx(fe,{type:W.Secondary,size:le.Small,...e})}function dd({children:e}){return a.jsx("thead",{children:e})}function ud({children:e,leading:t}){return a.jsxs("tr",{children:[t,e]})}const fd="table-text-color",hd="text-body-md";function gd({children:e}){return a.jsx("tbody",{className:w(fd,hd),children:e})}function vd({rowIndex:e,onCheckboxChange:t,isDisabled:r}){const{selectedRowIndexes:n}=eo();return a.jsx(qn,{isContentCentered:!0,children:a.jsx(cr,{onCheckedChange:o=>{t(o.target.checked)},isChecked:n.has(e),isDisabled:r})})}function pd({onCheckboxChange:e}){const{isHeaderChecked:t,isHeaderIndeterminate:r}=eo();return a.jsx(Jn,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:n=>{e(n.target.checked)},isChecked:t,columnKey:1,isIndeterminate:r})}function md({items:e,activeId:t,onClickItem:r,isCollapsible:n=!1,onToggleNavbar:o}){return a.jsxs("div",{className:w("flex h-fit w-full",{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":n}),children:[n&&a.jsxs("div",{className:"flex w-full items-center justify-between sm:mb-[48px] sm:flex-col",children:[a.jsx("div",{className:"flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]",children:a.jsx(rl,{className:"navbar-icon-color"})}),a.jsx("div",{className:"state-layer navbar-icon-color relative rounded-full p-xs hover:cursor-pointer sm:hidden [&_svg]:h-6 [&_svg]:w-6",onClick:o,role:"button","aria-label":"Toggle menu",children:a.jsx(nl,{})})]}),a.jsx("div",{className:w({"flex w-full justify-between px-sm py-xxs":!n,"hidden sm:flex sm:flex-col sm:gap-2":n}),children:e.map(l=>a.jsx("div",{className:w("flex items-center",{"px-xs py-xxs":!n,"py-xxs pl-xs pr-sm":n}),"data-testid":`nav-${l.id}`,children:a.jsx(vr,{...l,isSelected:l.id===t,onClick:i=>{l.onClick&&l.onClick(i),l.isDisabled||r(l.id)}})},l.id))})]})}function bd({items:e,activeId:t,onClickItem:r,isOpen:n,onToggleNavbar:o}){return a.jsxs(a.Fragment,{children:[a.jsx("div",{onClick:o,className:w("duration-800 transition-opacity ease-out",{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":n,"-translate-x-full opacity-0":!n})}),a.jsx("div",{className:w("z-999 rounded-tb-3xl navbar-slideout-bg fixed left-0 top-0 h-full w-11/12 rounded-tr-3xl px-lg py-lg transition-transform duration-300 ease-out",{"translate-x-0":n,"-translate-x-full":!n}),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(fe,{type:W.Ghost,onClick:o,icon:a.jsx(sn,{}),"aria-label":"Close menu"})}),e.map(l=>a.jsx(vr,{...l,type:Bt.Vertical,isSelected:l.id===t,onClick:()=>{r(l.id),o&&o()}},l.id))]})})]})}const xd="accordion-icon-color transition-transform ease-linear";function wd({onToggle:e,children:t,isExpanded:r,hideArrow:n}){return a.jsxs("div",{onClick:e,role:"button","aria-expanded":r,className:w("state-layer relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs",{"pr-md--rs":!n}),children:[t,!n&&a.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:a.jsx(fe,{type:W.Ghost,icon:a.jsx(Zo,{className:w(xd,{"rotate-180":r})})})})]})}function yd({isExpanded:e,children:t}){return a.jsx("div",{className:w({hidden:!e}),children:t})}function Sd({children:e,hideBorder:t}){return a.jsx("div",{className:w("accordion-bg rounded-xl",{"accordion-border-color border":!t}),children:e})}x.Accordion=Sd,x.AccordionContent=yd,x.AccordionHeader=wd,x.Account=zi,x.Address=Cn,x.AssetMediaRenderer=_n,x.Badge=ft,x.BadgeSize=Ot,x.BadgeType=te,x.Button=fe,x.ButtonHtmlType=ht,x.ButtonPill=Ko,x.ButtonSegment=pl,x.ButtonSegmentType=He,x.ButtonSize=le,x.ButtonType=W,x.ButtonUnstyled=se,x.Card=rs,x.CardAction=ns,x.CardActionType=yt,x.CardBody=ss,x.CardImage=is,x.CardType=nt,x.Checkbox=cr,x.Chip=Rl,x.ChipSize=Pt,x.ChipType=Y,x.Dialog=ad,x.DialogBody=Ja,x.DialogClose=Za,x.DialogContent=qa,x.DialogPosition=Ue,x.DialogTitle=Qa,x.DialogTrigger=od,x.DisplayStats=vs,x.DisplayStatsSize=me,x.DisplayStatsType=De,x.Divider=vn,x.DividerType=Pe,x.Dropdown=Yn,x.DropdownPosition=Mt,x.Header=Nl,x.IOTA_NAMES_COLOR_PALETTE=Qr,x.IOTA_PRIMITIVES_COLOR_PALETTE=qr,x.Image=dr,x.ImageShape=Ke,x.ImageType=Me,x.ImageWithFallback=bn,x.InfoBox=Dl,x.InfoBoxStyle=pt,x.InfoBoxType=Se,x.Input=Pi,x.InputType=ve,x.KeyValueInfo=yl,x.LabelText=_l,x.LabelTextSize=de,x.ListItem=pn,x.LoadingIndicator=Pl,x.MediaFallback=mn,x.Navbar=md,x.NavbarItem=vr,x.NavbarItemType=Bt,x.NavbarSlideout=bd,x.Panel=Tl,x.Placeholder=wn,x.RadioButton=cl,x.Resize=In,x.SHADER_COLOR_PALETTE=Jr,x.ScreenSize=ye,x.Search=Ji,x.SearchBarType=pe,x.SecondaryText=mt,x.SegmentedButton=ri,x.SegmentedButtonType=$e,x.Select=Zi,x.SelectSize=wt,x.Skeleton=kl,x.Snackbar=Il,x.SnackbarType=ge,x.Table=sd,x.TableActionButton=cd,x.TableBody=gd,x.TableCellBase=qn,x.TableCellPlaceholder=Ki,x.TableCellText=Xi,x.TableHeader=dd,x.TableHeaderCell=Jn,x.TableHeaderCellSortOrder=Oe,x.TableHeaderCheckbox=pd,x.TableRow=ud,x.TableRowCheckbox=vd,x.TextArea=Fi,x.Title=oi,x.TitleSize=ze,x.Toggle=Gl,x.ToggleLabelPosition=Lt,x.ToggleSize=Ae,x.Tooltip=Ge,x.TooltipPosition=ke,x.UIKitTheme=Zr,x.ValueSize=vt,x.Video=yn,x.VisualAssetCard=ps,x.VisualAssetType=ur,x.uiKitResponsivePreset=Po,x.uiKitStaticPreset=Bo,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
66
66
  //# sourceMappingURL=index.umd.js.map