@odigos/ui-kit 0.0.294 → 0.0.296

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 (55) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/lib/chunks/{helpers-BbLwXwCP.js → helpers-BV_MHw06.js} +1 -1
  3. package/lib/chunks/index-vZsC8Ggg.js +353 -0
  4. package/lib/chunks/{source-instrument-form-context-TaNVlKMt.js → source-instrument-form-context-CWv4NCRf.js} +1 -1
  5. package/lib/chunks/{ui-components-CnvJIMbW.js → ui-components-BlmdA--F.js} +303 -304
  6. package/lib/components/field-title/index.d.ts +1 -1
  7. package/lib/components/input/index.d.ts +3 -1
  8. package/lib/components/table/types.d.ts +8 -0
  9. package/lib/components/tooltip/index.d.ts +0 -2
  10. package/lib/components/trace-view/types.d.ts +2 -1
  11. package/lib/components.js +1 -1
  12. package/lib/constants.js +1 -1
  13. package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/helpers.d.ts +2 -2
  14. package/lib/containers/insights/service-with-language-icons.d.ts +12 -0
  15. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/db-access-view/helpers.d.ts +0 -4
  16. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/db-access-view/map.d.ts +0 -1
  17. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/helpers.d.ts +0 -4
  18. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/map.d.ts +0 -1
  19. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/helpers.d.ts +0 -4
  20. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/map.d.ts +0 -1
  21. package/lib/containers/service-map/helpers/types.d.ts +2 -1
  22. package/lib/containers/service-map/react-flow/edges/animated-traffic-edge.d.ts +5 -1
  23. package/lib/containers/service-map/react-flow/edges/self-loop-edge.d.ts +6 -0
  24. package/lib/containers/service-map/service-map-context.d.ts +3 -0
  25. package/lib/containers.js +556 -621
  26. package/lib/contexts/odigos-api/types.d.ts +1 -0
  27. package/lib/contexts.js +1 -1
  28. package/lib/functions/find-source-by-service/index.d.ts +3 -0
  29. package/lib/functions/index.d.ts +1 -0
  30. package/lib/functions/parse-raw-otlp/index.d.ts +2 -1
  31. package/lib/functions.js +1 -1
  32. package/lib/hooks/useCopy.d.ts +1 -1
  33. package/lib/hooks.js +1 -1
  34. package/lib/icons/common/index.d.ts +1 -0
  35. package/lib/icons/common/self-loop-icon/index.d.ts +2 -0
  36. package/lib/icons.js +1 -1
  37. package/lib/snippets/blast-radius/helpers.d.ts +5 -5
  38. package/lib/snippets/blast-radius/index.d.ts +0 -1
  39. package/lib/snippets/blast-radius/types.d.ts +0 -4
  40. package/lib/snippets/graph-flow/animated-edge.d.ts +12 -0
  41. package/lib/snippets/graph-flow/auto-fit-view.d.ts +14 -0
  42. package/lib/snippets/graph-flow/elk-layout.d.ts +6 -0
  43. package/lib/snippets/graph-flow/get-edge-path.d.ts +14 -0
  44. package/lib/snippets/graph-flow/graph-flow.d.ts +9 -0
  45. package/lib/snippets/graph-flow/index.d.ts +5 -0
  46. package/lib/snippets/graph-flow/types.d.ts +61 -0
  47. package/lib/snippets/index.d.ts +1 -0
  48. package/lib/snippets.js +1 -1
  49. package/lib/store.js +1 -1
  50. package/lib/theme.js +1 -1
  51. package/lib/types.js +1 -1
  52. package/lib/visuals.js +1 -1
  53. package/package.json +9 -9
  54. package/lib/chunks/index-DrntqYmU.js +0 -338
  55. package/lib/snippets/blast-radius/animated-edge.d.ts +0 -10
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as r,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as b,NginxLogo as y,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as _,AwsXrayLogo as D,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as W,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as _e,AxiomLogo as De,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as Xe,HeadersCollectionIcon as We,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as kt,XIcon as It,PlusIcon as _t,TrashIcon as Dt,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Xt,useCallback as Wt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oi,ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,_i,Di,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Xi,Wi,Gi,Vi,Ki;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(e=>{e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(e=>{e.DataStream="DataStream"})(Ci||(Ci={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup",e.SourceScopes="sourceScopes"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(Oi||(Oi={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ai||(Ai={})),(e=>{e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"})(ki||(ki={})),(e=>{e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"})(Ii||(Ii={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_i||(_i={})),(e=>{e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"})(Di||(Di={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OdigosProfileDiagnostic="odigos_profile_diagnostic",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(Ri||(Ri={})),(e=>{e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"})(Li||(Li={})),(e=>{e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"})(Pi||(Pi={})),(e=>{e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class Ji{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Xi||(Xi={})),(e=>{e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"})(Wi||(Wi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",description:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",description:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",description:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",description:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},_n=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),Dn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Xn="Choose override scope",Wn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="Every detected signal adds its weight (points) to a 0–100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",_r="Insights has not seen any other services to allow as callers",Dr="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Xr="api.example.com:443",Wr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",_o="All",Do="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Xo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Wo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:Do},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",xa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ca=["http.response.status_code","rpc.grpc.status_code"],Ea=["user.id","URLs","request ids"],Ta="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Oa="No dimensions configured — transactions use the entry span name only.",Na="Add dimension",Aa="e.g. http.response.status_code",ka="On",Ia="Identity dimensions changed",_a="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Da="Reset all transactions",Ra="Keep existing transactions",La="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Pa="Save settings",Ua="System settings are not available.",Ma=5,Fa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],za=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ba,ja,Ha;(e=>{e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"})(Ba||(Ba={})),(e=>{e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"})(ja||(ja={})),(e=>{e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"})(Ha||(Ha={}));const Xa=new Set(Object.values(Ha)),Wa=(e,t)=>{if("string"!=typeof(i=t)||!Xa.has(i))return t;var i;switch(t){case Ha.Primary:return e.v2.colors.white[500];case Ha.Secondary:return e.v2.colors.silver[200];case Ha.Tertiary:return e.v2.colors.black[500];case Ha.Disable:return e.v2.colors.grey[400];case Ha.Error:return e.v2.colors.red[500];case Ha.Mandatory:return e.v2.colors.red[600];case Ha.Link:return e.v2.colors.purple[400];case Ha.Success:return e.v2.colors.green[400];default:return}},Ga=n.p`
1
+ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as r,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as b,NginxLogo as y,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as _,AwsXrayLogo as D,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as W,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as _e,AxiomLogo as De,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as kt,XIcon as It,PlusIcon as _t,TrashIcon as Dt,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Wt,useCallback as Xt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oi,ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,_i,Di,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(e=>{e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(e=>{e.DataStream="DataStream"})(Ci||(Ci={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup",e.SourceScopes="sourceScopes"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(Oi||(Oi={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ai||(Ai={})),(e=>{e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"})(ki||(ki={})),(e=>{e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"})(Ii||(Ii={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_i||(_i={})),(e=>{e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"})(Di||(Di={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OdigosProfileDiagnostic="odigos_profile_diagnostic",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(Ri||(Ri={})),(e=>{e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"})(Li||(Li={})),(e=>{e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"})(Pi||(Pi={})),(e=>{e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class Ji{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wi||(Wi={})),(e=>{e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"})(Xi||(Xi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",description:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",description:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",description:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",description:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",allowedSignals:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},_n=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),Dn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Wn="Choose override scope",Xn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="Every detected signal adds its weight (points) to a 0–100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",_r="Insights has not seen any other services to allow as callers",Dr="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Wr="api.example.com:443",Xr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",_o="All",Do="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Wo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Xo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:Do},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",xa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ca=["http.response.status_code","rpc.grpc.status_code"],Ea=["user.id","URLs","request ids"],Ta="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Oa="No dimensions configured — transactions use the entry span name only.",Na="Add dimension",Aa="e.g. http.response.status_code",ka="On",Ia="Identity dimensions changed",_a="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Da="Reset all transactions",Ra="Keep existing transactions",La="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Pa="Save settings",Ua="System settings are not available.",Ma=5,Fa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],za=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ba,ja,Ha;(e=>{e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"})(Ba||(Ba={})),(e=>{e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"})(ja||(ja={})),(e=>{e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"})(Ha||(Ha={}));const Wa=new Set(Object.values(Ha)),Xa=(e,t)=>{if("string"!=typeof(i=t)||!Wa.has(i))return t;var i;switch(t){case Ha.Primary:return e.v2.colors.white[500];case Ha.Secondary:return e.v2.colors.silver[200];case Ha.Tertiary:return e.v2.colors.black[500];case Ha.Disable:return e.v2.colors.grey[400];case Ha.Error:return e.v2.colors.red[500];case Ha.Mandatory:return e.v2.colors.red[600];case Ha.Link:return e.v2.colors.purple[400];case Ha.Success:return e.v2.colors.green[400];default:return}},Ga=n.p`
2
2
  margin: 0;
3
- color: ${({$color:e,theme:t})=>Wa(t,e)||t.v2.colors.grey[50]};
3
+ color: ${({$color:e,theme:t})=>Xa(t,e)||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e,$fontFamily:t="primary"})=>e.font_family[t]};
5
5
  font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
6
  font-weight: ${({$weight:e})=>e};
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
38
38
  text-decoration: underline;
39
39
  }
40
40
  `}
41
- `,Va=Bt(({children:i,variant:n=Ba.P,color:r,size:o=ja.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ga,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Va.displayName="Typography";const Ka="https://docs.odigos.io",Ya="default",Ja="this-cluster",qa="This Cluster",Qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},Za={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:"Invalid version format, must start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},es={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",ADD_SOURCES:"Add Sources",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect all",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},ts={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},is=(e,t)=>e===Oi.Success?es.HEALTHY:e===Oi.Error?es.NOT_HEALTHY:za(t),ns=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},rs=(e,t,i="reason",n)=>{const r=ns(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?za(e?.reasonEnum):is(r,e?.reasonEnum)),tooltip:e?.message,textSize:ja.XXXS,invertColors:!0,useSecondaryTone:!0}:null},os=e=>e.charAt(0).toUpperCase()+e.slice(1);var as;(e=>{e.SIGNALS="SIGNALS"})(as||(as={}));const ss=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===as.SIGNALS)switch(r){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function ls(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ds=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),cs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),us=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},ps=e=>"string"==typeof e?{id:e,label:e}:e??{},hs=(e,t)=>e.label||e.displayName||t,gs=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):us(t)},ms=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=cs(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:i?JSON.stringify(i):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},fs=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...fs(e.segments))):t.push(...e.items)}),t},bs=(e,t,i={})=>{const n=[],r=i.signals||[],o=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!ss(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ls(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ds(!!p)});case Ei.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(ps).find(t=>String(t.id??"")===e);return i?hs(i,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const n=ps(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:hs(n,r),badge:ds(!0===e[r])})});const i=cs(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=ps(e),n=String(t.id??"");return n&&i[n]?hs(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&cs(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&cs(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ei.KeyValuePair:return l(),cs(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const i=cs(e)?e:{};return{id:`${u}-${t}`,title:String(i.key??""),label:String(i.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&cs(p)?p[e]:p)?e&&cs(p)?p[e]:p:[],i=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,n=Array.isArray(i)?i.map(ps):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,r)=>{const o=t.length>1?`${c} #${r+1}`:c,a=[],s=cs(e)?{...e}:{};null!=s.method&&""!==s.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,n,r]=t,o=null==e?.[i]?"":String(e[i]);switch(n){case"=":case"==":case"===":return o===r;case"!=":case"!==":return o!==r;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${r}-${e.keyName}`,title:e.label||os(za(e.keyName))||e.keyName,label:gs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:us(t)})}),n.push({kind:"group",id:`${u}-${r}`,title:o,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ms).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=cs(o)?o:{},d=t.length?bs(l,t,i):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],i)=>({id:`${u}-${a}-${i}-${e}`,title:e,label:us(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:us(p)})}var g}),l(),n},ys=(e,t,i={})=>fs(bs(e,t,i)),vs=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},$s=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ss=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},xs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},Cs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ts=(e,t)=>{let i=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));i=i.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));i=i.filter(({runtimeInfo:t,containers:i})=>t?.detectedLanguages?.some(t=>e.has(t))||i?.some(t=>{const i=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!i&&e.has(i)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));i=i.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));i=i.filter(({instrumentationReport:t})=>{const i=t?.state||t?.progressStage;return!!i&&e.has(i)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));i=i.filter(t=>{const i=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(i)})}return t.onlyErrors&&(i=i.filter(e=>ns(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ya&&!e.dataStreamNames?.length):[],Ns=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Ns(e,n,i):i[n]=e}):i[o]=r:Ns(r,o,i)}return i},As=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},ks=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},Is=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},_s=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ns(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ds=e=>Array.isArray(e?.statuses)?_s(e.statuses):e?.conditions??[],Rs=e=>e?Array.isArray(e)?Ls(e):Ls(_s(Object.values(e))):Ls([]),Ls=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.Loading),o=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:o?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Ps=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Us=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Ms=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,Fs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,zs=e=>e?.map(e=>Us(Ms(e)))||[],Bs=e=>e?.map(e=>Us(e))||[],js=e=>e.runtimeInfo?.detectedLanguages?.length?Bs(e.runtimeInfo?.detectedLanguages):zs(e.containers),Hs=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:De,[Ri.AzureBlob]:_e,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:W,[Ri.S3]:X,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:D,[Ri.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xs=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Ws=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Gs=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Vs=e=>Gs(Ws(e)),Ks=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Ys=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Js=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:We,[Mi.PayloadCollection]:Xe,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),qs=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Qs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>qs(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>qs(e)!==wi.Unknown);return r?qs(r):wi.Unknown},Zs=(e,t,i)=>(t===xi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},el=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),tl=(e,t)=>Object.values(ja).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),il=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,nl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",rl=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...rl(e,t,i)),r}):[]},ol={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},al=e=>{if(!e)return"";if(ol[e])return ol[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},sl=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},ll=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},dl=e=>{switch(e){case Hi.Updating:case Xi.Pending:case Wi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Xi.Succeeded:case Xi.Running:case Wi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Xi.Failed:case Wi.Error:case Wi.CrashLoopBackOff:case Wi.CreateContainerError:case Wi.CreateContainerConfigError:case Wi.ErrImagePull:case Wi.ErrImageNeverPull:case Wi.ImagePullBackOff:case Wi.InvalidImageName:case Wi.RegistryUnavailable:case Wi.NetworkNotReady:case Wi.OOMKilled:case Wi.ContainerCannotRun:case Gi.Terminated:case Wi.DeadlineExceeded:case Wi.StartError:return Oi.Error;case Hi.Down:case Wi.Completed:return Oi.Disabled;case Hi.Unknown:case Xi.Unknown:default:return Oi.Unknown}},cl=n.div`
41
+ `,Va=Bt(({children:i,variant:n=Ba.P,color:r,size:o=ja.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ga,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Va.displayName="Typography";const Ka="https://docs.odigos.io",Ya="default",Ja="this-cluster",qa="This Cluster",Qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},Za={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:"Invalid version format, must start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},es={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",ADD_SOURCES:"Add Sources",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect all",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},ts={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},is=(e,t)=>e===Oi.Success?es.HEALTHY:e===Oi.Error?es.NOT_HEALTHY:za(t),ns=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},rs=(e,t,i="reason",n)=>{const r=ns(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?za(e?.reasonEnum):is(r,e?.reasonEnum)),tooltip:e?.message,textSize:ja.XXXS,invertColors:!0,useSecondaryTone:!0}:null},os=e=>e.charAt(0).toUpperCase()+e.slice(1);var as;(e=>{e.SIGNALS="SIGNALS"})(as||(as={}));const ss=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===as.SIGNALS)switch(r){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function ls(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ds=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),cs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),us=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},ps=e=>"string"==typeof e?{id:e,label:e}:e??{},hs=(e,t)=>e.label||e.displayName||t,gs=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):us(t)},ms=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=cs(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:i?JSON.stringify(i):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},fs=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...fs(e.segments))):t.push(...e.items)}),t},bs=(e,t,i={})=>{const n=[],r=i.signals||[],o=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!ss(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ls(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ds(!!p)});case Ei.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(ps).find(t=>String(t.id??"")===e);return i?hs(i,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const n=ps(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:hs(n,r),badge:ds(!0===e[r])})});const i=cs(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=ps(e),n=String(t.id??"");return n&&i[n]?hs(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&cs(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&cs(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ei.KeyValuePair:return l(),cs(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const i=cs(e)?e:{};return{id:`${u}-${t}`,title:String(i.key??""),label:String(i.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&cs(p)?p[e]:p)?e&&cs(p)?p[e]:p:[],i=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,n=Array.isArray(i)?i.map(ps):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,r)=>{const o=t.length>1?`${c} #${r+1}`:c,a=[],s=cs(e)?{...e}:{};null!=s.method&&""!==s.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,n,r]=t,o=null==e?.[i]?"":String(e[i]);switch(n){case"=":case"==":case"===":return o===r;case"!=":case"!==":return o!==r;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${r}-${e.keyName}`,title:e.label||os(za(e.keyName))||e.keyName,label:gs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:us(t)})}),n.push({kind:"group",id:`${u}-${r}`,title:o,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ms).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=cs(o)?o:{},d=t.length?bs(l,t,i):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],i)=>({id:`${u}-${a}-${i}-${e}`,title:e,label:us(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:us(p)})}var g}),l(),n},ys=(e,t,i={})=>fs(bs(e,t,i)),vs=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},$s=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ss=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},xs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},Cs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ts=(e,t)=>{let i=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));i=i.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));i=i.filter(({runtimeInfo:t,containers:i})=>t?.detectedLanguages?.some(t=>e.has(t))||i?.some(t=>{const i=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!i&&e.has(i)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));i=i.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));i=i.filter(({instrumentationReport:t})=>{const i=t?.state||t?.progressStage;return!!i&&e.has(i)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));i=i.filter(t=>{const i=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(i)})}return t.onlyErrors&&(i=i.filter(e=>ns(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ya&&!e.dataStreamNames?.length):[],Ns=(e,t,i)=>{if(!t)return;const n=e.filter(e=>e.serviceName===t||e.id.name===t);if(n.length){if(i){const e=n.find(e=>e.id.namespace===i);if(e)return e}return n[0]}},As=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?As(e,n,i):i[n]=e}):i[o]=r:As(r,o,i)}return i},ks=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Is=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},_s=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},Ds=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ns(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Rs=e=>Array.isArray(e?.statuses)?Ds(e.statuses):e?.conditions??[],Ls=e=>e?Array.isArray(e)?Ps(e):Ps(Ds(Object.values(e))):Ps([]),Ps=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.Loading),o=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:o?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Us=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ms=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Fs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,zs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Bs=e=>e?.map(e=>Ms(Fs(e)))||[],js=e=>e?.map(e=>Ms(e))||[],Hs=e=>e.runtimeInfo?.detectedLanguages?.length?js(e.runtimeInfo?.detectedLanguages):Bs(e.containers),Ws=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:De,[Ri.AzureBlob]:_e,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:X,[Ri.S3]:W,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:D,[Ri.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xs=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Gs=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Vs=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Ks=e=>Vs(Gs(e)),Ys=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Js=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},qs=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:Xe,[Mi.PayloadCollection]:We,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),Qs=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Zs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>Qs(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>Qs(e)!==wi.Unknown);return r?Qs(r):wi.Unknown},el=(e,t,i)=>(t===xi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},tl=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),il=(e,t)=>Object.values(ja).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),nl=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,rl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",ol=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...ol(e,t,i)),r}):[]},al={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},sl=e=>{if(!e)return"";if(al[e])return al[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ll=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},dl=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},cl=e=>{switch(e){case Hi.Updating:case Wi.Pending:case Xi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Wi.Succeeded:case Wi.Running:case Xi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Wi.Failed:case Xi.Error:case Xi.CrashLoopBackOff:case Xi.CreateContainerError:case Xi.CreateContainerConfigError:case Xi.ErrImagePull:case Xi.ErrImageNeverPull:case Xi.ImagePullBackOff:case Xi.InvalidImageName:case Xi.RegistryUnavailable:case Xi.NetworkNotReady:case Xi.OOMKilled:case Xi.ContainerCannotRun:case Gi.Terminated:case Xi.DeadlineExceeded:case Xi.StartError:return Oi.Error;case Hi.Down:case Xi.Completed:return Oi.Disabled;case Hi.Unknown:case Wi.Unknown:default:return Oi.Unknown}},ul=n.div`
42
42
  border-radius: 100%;
43
43
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
44
  position: relative;
45
- `,ul=n.div`
45
+ `,pl=n.div`
46
46
  width: 80px;
47
47
  height: 80px;
48
48
  border-radius: 100%;
@@ -56,12 +56,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
56
56
  transform: rotate(360deg);
57
57
  }
58
58
  }
59
- `,pl=n(Va)`
59
+ `,hl=n(Va)`
60
60
  position: absolute;
61
61
  top: 50%;
62
62
  left: 50%;
63
63
  transform: translate(-50%, -50%);
64
- `,hl=({percentage:i})=>e(cl,{children:[t(ul,{}),"number"==typeof i?t(pl,{size:ja.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),gl={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ml(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return gl[n]?{value:t,unit:n}:{value:t,unit:"px"}}function fl(e){const t=ml(e);return`${t.value}${t.unit}`}const bl=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),yl=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=ml(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},b=(e,t)=>({position:"absolute",width:fl(1.5),height:fl(4),borderRadius:fl(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${bl} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},vl=n.div`
64
+ `,gl=({percentage:i})=>e(ul,{children:[t(pl,{}),"number"==typeof i?t(hl,{size:ja.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),ml={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function fl(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return ml[n]?{value:t,unit:n}:{value:t,unit:"px"}}function bl(e){const t=fl(e);return`${t.value}${t.unit}`}const yl=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),vl=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=fl(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},b=(e,t)=>({position:"absolute",width:bl(1.5),height:bl(4),borderRadius:bl(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${yl} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},$l=n.div`
65
65
  width: ${({$size:e})=>e}px;
66
66
  height: ${({$size:e})=>e}px;
67
67
  border-radius: 100%;
@@ -69,7 +69,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
69
69
  display: flex;
70
70
  align-items: center;
71
71
  justify-content: center;
72
- `,$l=({scale:e,icon:i})=>{const n=o();return t(vl,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(vl,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(vl,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(vl,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(vl,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},wl=434,Sl=635,xl=n.div`
72
+ `,wl=({scale:e,icon:i})=>{const n=o();return t($l,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t($l,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t($l,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t($l,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t($l,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},Sl=434,xl=635,Cl=n.div`
73
73
  width: ${434}px;
74
74
  height: ${635}px;
75
75
  display: flex;
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
79
79
  padding: 16px;
80
80
  background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
81
81
  position: relative;
82
- `,Cl=n.div`
82
+ `,El=n.div`
83
83
  position: absolute;
84
84
  top: 50%;
85
85
  left: 50%;
86
86
  transform: translate(-50%, -50%);
87
- `,El=()=>e(xl,{children:[t(Cl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(Cl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Cl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Cl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Cl,{children:t(ee,{size:112})})]}),Tl=n.div`
87
+ `,Tl=()=>e(Cl,{children:[t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:t(ee,{size:112})})]}),Ol=n.div`
88
88
  width: ${({$size:e})=>e}px;
89
89
  height: ${({$size:e})=>e}px;
90
90
  border-radius: 100%;
@@ -92,7 +92,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
92
92
  display: flex;
93
93
  align-items: center;
94
94
  justify-content: center;
95
- `,Ol=({scale:e=1,icon:i})=>{const n=o();return t(Tl,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Tl,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Tl,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Tl,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Tl,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Nl=n.div`
95
+ `,Nl=({scale:e=1,icon:i})=>{const n=o();return t(Ol,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Ol,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Ol,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Ol,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Ol,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Al=n.div`
96
96
  flex: 1;
97
97
  align-self: stretch;
98
98
  min-height: 0;
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
102
102
  overflow-y: auto;
103
103
  overflow-x: auto;
104
104
  padding: 12px;
105
- `,Al=n.div`
105
+ `,kl=n.div`
106
106
  position: relative;
107
107
 
108
108
  // inherit all the properties of the parent (PageContent)
@@ -112,9 +112,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
112
112
  display: inherit;
113
113
  flex-direction: inherit;
114
114
  gap: inherit;
115
- `,kl=n.div`
116
- padding: ${({$padding:e})=>e||"12px"};
117
115
  `,Il=n.div`
116
+ padding: ${({$padding:e})=>e||"12px"};
117
+ `,_l=n.div`
118
118
  display: flex;
119
119
  flex-direction: row;
120
120
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -126,7 +126,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
126
126
  margin: ${({$margin:e="unset"})=>e};
127
127
  padding: ${({$padding:e="unset"})=>e};
128
128
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
129
- `,_l=n.div`
129
+ `,Dl=n.div`
130
130
  display: flex;
131
131
  flex-direction: column;
132
132
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -138,19 +138,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
138
138
  margin: ${({$margin:e="unset"})=>e};
139
139
  padding: ${({$padding:e="unset"})=>e};
140
140
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
141
- `,Dl=n(_l)`
141
+ `,Rl=n(Dl)`
142
142
  width: ${({$width:e})=>e||"100%"};
143
143
  height: ${({$height:e})=>e||"unset"};
144
144
  padding: ${({$padding:e})=>e||"unset"};
145
145
  align-items: center;
146
146
  justify-content: center;
147
147
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
148
- `,Rl=n.div`
148
+ `,Ll=n.div`
149
149
  display: flex;
150
150
  flex-direction: column;
151
151
  padding: 12px;
152
152
  overflow-y: scroll;
153
- `,Ll=n.div`
153
+ `,Pl=n.div`
154
154
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
155
155
  top: 0;
156
156
  left: 0;
@@ -163,37 +163,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
163
163
  z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
164
164
  background: rgba(0, 0, 0, 0.6);
165
165
  backdrop-filter: blur(2px);
166
- `,Pl=n.div`
166
+ `,Ul=n.div`
167
167
  width: 800px;
168
168
  min-height: ${({$minHeight:e})=>e||"unset"};
169
169
  height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
170
170
  margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
171
171
  padding: 0 2px;
172
172
  overflow-y: scroll;
173
- `,Ul=n(_l)`
173
+ `,Ml=n(Dl)`
174
174
  max-width: ${({$maxWidth:e})=>e||"unset"};
175
175
  width: 100%;
176
- `,Ml=n(Il)`
176
+ `,Fl=n(_l)`
177
177
  gap: 16px;
178
178
  padding: 16px;
179
- `,Fl=n.div`
179
+ `,zl=n.div`
180
180
  width: 100%;
181
181
  max-height: ${({$maxHeight:e})=>e||"unset"};
182
182
  overflow-y: auto;
183
- `,zl=a`
183
+ `,Bl=a`
184
184
  0% {
185
185
  background-position: 0% 50%;
186
186
  }
187
187
  100% {
188
188
  background-position: 100% 50%;
189
189
  }
190
- `,Bl=n(Va)`
190
+ `,jl=n(Va)`
191
191
  background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
192
192
  background-size: 250% 100%; /* Expand background to allow movement */
193
193
  background-clip: text;
194
194
  color: transparent;
195
- animation: ${zl} 1s reverse linear infinite;
196
- `,jl=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),r=i%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Hl=({icon:i,title:n,titleColor:r,titleSize:a=ja.S,subTitle:s,subTitleColor:l,subTitleSize:d=ja.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=Ht(()=>c?jl(c):"");Xt(()=>{if(!c)return;w(jl(c));const e=setInterval(()=>w(jl(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(_l,{$gap:16,$alignItems:"center",children:[b?t($l,{scale:1.7,icon:y}):h?t(hl,{percentage:f}):g?t(yl,{scale:m}):null,(n||s||c||i||u)&&e(_l,{$gap:8,$alignItems:"center",children:[e(Il,{$gap:4,children:[i&&t(i,{}),u?t(Bl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Va,{align:"center",size:a,color:S,children:n}):null]}),s?t(Va,{align:"center",size:d,color:x,children:s}):null,$?t(Va,{align:"center",size:d,color:S,children:$}):null]})]})},Xl=(e,t)=>({[Oi.Default]:i=>ee({fill:ll(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:ll(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:ll(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:ll(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:ll(t,e,"500"),...i}),[Oi.Loading]:e=>Hl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:ll(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:ll(t,e,"300"),...i})}[e]),Wl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Gl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Vl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Kl={sts:bt,dynamodb:ft,s3:X,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Yl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Vl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Vl[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Kl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Vl))if(o.includes(e))return t;return ze},Jl=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:i,kind:n,region:r}=e;return{namespace:t,name:i,kind:n,region:r||void 0}},ql=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ls(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&i.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Ql=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Oi.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Zl(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function ed(e){if(!e)return null;const t=[];for(const i of e.sources??[])t.push({workloadName:i.name||null,workloadKind:i.kind||null,workloadNamespace:i.namespace||null});for(const i of e.namespaces??[])t.push({workloadNamespace:i});for(const i of e.languages??[])t.push({workloadLanguage:i});return t.length?t:null}function td(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:Zl(t??null)}}function id(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:ed(t??null)}}const nd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),rd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),od=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},ad=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},sd=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ld=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,dd=e=>ld.test(e),cd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:za(t),reason:i?za(i):"",message:n}))||[],ud=(e,t)=>{const i=ls(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},pd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],hd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],gd=e=>{let t=e.replace(/[^\d.]/g,"");const i=t.indexOf(".");return-1!==i&&(t=t.slice(0,i+1)+t.slice(i+1).replace(/\./g,"")),t},md=e=>e.replace(/[^\d]/g,""),fd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},bd=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},yd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},vd={0:"",1:"OK",2:"ERROR"};class $d{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const i=this.buf[this.offset++];if(e|=BigInt(127&i)<<t,!(128&i))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new $d(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const wd=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},Sd=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push(Sd(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=xd(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readBytes();if(!n)break;const r=wd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},xd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?Sd(i):void 0}else e.skip(i.wire)}return t},Cd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=xd(i);void 0===n.key&&void 0===n.value||t.push(n)},Ed=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;2===i.field&&2===i.wire?t.message=e.readString()??void 0:3===i.field&&0===i.wire?t.code=e.readVarintNumber()??void 0:e.skip(i.wire)}return t},Td=e=>{const t={attrs:[]};for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:1===i.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(i.wire);break;case 2:2===i.wire?t.name=e.readString()??void 0:e.skip(i.wire);break;case 3:2===i.wire?Cd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Od=(e,t,i)=>{const n={attrs:[],events:[],service:t,scope:i};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=wd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=wd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=wd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?Cd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Td(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Ed(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Nd=e=>{let t;for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const i=e.readMessage();if(!i)continue;const n=xd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Ad=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},kd=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=Ad(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Od(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Id=e=>{let t;const i=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const i=e.readMessage();i&&(t=Nd(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...kd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},_d=e=>({key:e.key??null,value:e.value??null}),Dd=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?vd[e.statusCode]??null:null,u=(e.attrs??[]).map(_d);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,i=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(i)/1e6,attrs:(e.attrs??[]).map(_d)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?yd[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of i.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},Rd=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new $d(e),i=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&i.push(...Id(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Dd(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Ld=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const n=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(i);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Pd=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Pd(e)))}else if("object"==typeof n&&null!==n){const e=Pd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Ud=(e,t=2)=>JSON.stringify(e||{},null,t),Md=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Fd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),zd=ri("v1.33"),Bd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],jd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<zd},Hd=ri("v1.20"),Xd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Hd},Wd=e=>e?Bd.map(t=>e[t]??null):[],Gd={PID:"process.pid",VPID:"process.vpid"},Vd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Kd=[{id:wi.Go,label:Vd[wi.Go],icon:Us(wi.Go)},{id:wi.Java,label:Vd[wi.Java],icon:Us(wi.Java)},{id:wi.JavaScript,label:Vd[wi.JavaScript],icon:Us(wi.JavaScript)},{id:wi.Python,label:Vd[wi.Python],icon:Us(wi.Python)},{id:wi.Php,label:Vd[wi.Php],icon:Us(wi.Php)},{id:wi.Ruby,label:Vd[wi.Ruby],icon:Us(wi.Ruby)},{id:wi.Rust,label:Vd[wi.Rust],icon:Us(wi.Rust)},{id:wi.DotNet,label:Vd[wi.DotNet],icon:Us(wi.DotNet)},{id:wi.CSharp,label:Vd[wi.CSharp],icon:Us(wi.CSharp)},{id:wi.CPlusPlus,label:Vd[wi.CPlusPlus],icon:Us(wi.CPlusPlus)},{id:wi.Swift,label:Vd[wi.Swift],icon:Us(wi.Swift)},{id:wi.Elixir,label:Vd[wi.Elixir],icon:Us(wi.Elixir)}],Yd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},Jd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Us(wi.Go)},Yd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Us(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Us(wi.JavaScript)},Yd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Us(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Us(wi.Python)},Yd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Us(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Us(wi.Java)},Yd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Us(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Us(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Us(wi.DotNet)},Yd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Us(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Us(wi.Ruby)},Yd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Us(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Us(wi.Php)},Yd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Us(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Us(wi.MySql)}]},[wi.CPlusPlus]:{community:[Yd],enterprise:[]},[wi.Rust]:{community:[Yd],enterprise:[]},[wi.Swift]:{community:[Yd],enterprise:[]},[wi.Elixir]:{community:[Yd],enterprise:[]},[wi.Nginx]:{community:[Yd],enterprise:[]},[wi.Postgres]:{community:[Yd],enterprise:[]},[wi.Redis]:{community:[Yd],enterprise:[]},[wi.Kafka]:{community:[Yd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Yd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},qd="*",Qd=e=>!!e?.includes(qd),Zd=e=>e?.length?Qd(e)?[qd]:e:[],ec=e=>{if(e?.length&&!Qd(e))return e.filter(e=>e!==qd)},tc=e=>e===qd?"All languages":Vd[e]??e,ic=e=>e===qd?vt:Us(e),nc=ri("v1.26"),rc=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=nc},oc=[Mi.NetworkMetrics],ac=e=>!oc.includes(e),sc=[{type:Mi.CodeAttributes,icon:Js(Mi.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:Js(Mi.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:Js(Mi.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:Js(Mi.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[wi.Go,wi.JavaScript]}],lc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Js(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},dc="Recommendations",cc="Optimize your observability setup with actionable recommendations.",uc="Recommended",pc="Applied",hc="Dismissed",gc="Not applicable",mc={[wn.Recommended]:uc,[wn.Applied]:pc,[wn.Dismissed]:hc,[wn.NotApplicable]:gc},fc="Accept",bc="Dismiss",yc="Restore",vc="Docs",$c="Benefits",wc="Considerations",Sc="Apply Recommendation",xc="Apply via UI",Cc="Apply via GitOps",Ec="Via UI",Tc="Via GitOps",Oc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Nc="There are 2 ways to apply this recommendation.",Ac="Odigos applies the selected change immediately.",kc="Commit the configuration to your repository and let your GitOps controller apply it.",Ic="UI changes apply only to this cluster and will not carry over if you re-install odigos.",_c="No recommendations",Dc="There are no recommendations for this cluster right now.",Rc="This recommendation does not currently apply to your cluster.",Lc="Recommendation dismissed",Pc="Recommendation restored",Uc="Recommendation applied successfully",Mc="Failed to apply recommendation",Fc={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},zc={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},Bc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},jc="Cancel",Hc="Save",Xc="Edit rule",Wc="Edit auto rule",Gc="Create rule",Vc="Delete rule",Kc="Save",Yc="Create your first rule",Jc="No Rules Exist",qc="No Results",Qc=e=>`No rules match the search term "${e}"`,Zc="Rule name",eu="Rule type",tu="Select the type of condition that makes a trace highly relevant.",iu="Rule Enabled",nu="Rule Disabled",ru="Enabled",ou="Disabled",au="Note",su="HTTP route",lu="Method",du="Keep Percentage",cu="Keep traces with duration larger than",uu="Keep traces with errors",pu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",hu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",gu="Custom percentage",mu="Disabled rule",fu="Sample",bu="Keep all",yu="Drop all",vu="Operation type",$u="HTTP route prefix",wu="Templated path",Su="Templated path prefix",xu="Kafka topic",Cu="Custom duration (ms)",Eu="No preview available",Tu="Server address",Ou="Drop at most this percentage of matching traces",Nu="Unnamed rule",Au="Sampling Preview",ku="Source Scope",Iu="Unknown source",_u="Operation",Du="Duration",Ru="Errors",Lu="Keep Percentage",Pu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Uu="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Mu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Fu="Retain traces with errors from the selected services and operations.",zu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Bu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ju={highlyRelevant:zu,noisy:Bu,costReduction:void 0},Hu="Type rule name",Xu="Add note here...",Wu="Type here",Gu="Search source name",Vu="e.g. collector.my.vendor.com",Ku="Optional notes (not used by the system). Add any context or details for this sampling rule.",Yu="Rule will apply to all sources in the cluster",Ju="If multiple source scopes are set, they must all match simultaneously.",qu="All sources",Qu="-",Zu="All",ep="Sources",tp="Namespaces",ip="Languages",np="any of",rp="AND",op="All operations",ap="HTTP server endpoint",sp="HTTP client endpoint",lp="Kafka consumer",dp="Kafka producer",cp="Sampling Rules",up='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',pp="Refresh",hp="Create rule",gp="Sampling docs",mp="75vw",fp="Delete rule?",bp="Are you sure you want to delete this sampling rule?",yp="Delete",vp="Cancel",$p="Kubernetes Health Probes",wp="Keep All Error Traces",Sp="Drop Traces Cluster-Wide",xp="A rule with the same matching conditions already exists.",Cp="Create this rule as-is?",Ep="This rule still uses the default configuration.\nDo you want to create it anyway?",Tp="Rule preview",Op="Continue editing",Np="Create 'Noisy Operation Kubernetes Health Probes' rule",Ap="Edit 'Noisy Operation Kubernetes Health Probes' rule",kp="Automatically detect and sample health probe traces across the cluster.",Ip="Create 'Highly Relevant Operations' rule",_p="Edit 'Highly Relevant Operations' rule",Dp="Automatically keep all error traces across the entire cluster.",Rp="Create 'Cost Reduction' rule",Lp="Edit 'Cost Reduction' rule",Pp="Automatically drop a percentage of traces across the entire cluster.",Up="Skip setup",Mp="Start setup",Fp="Next",zp="Go to Sampling",Bp="Read more",jp="Welcome to Sampling",Hp="Cut costs without losing what matters",Xp="Odigos sampling works in three stages:",Wp="Filter noisy traffic",Gp="Remove non-actionable traces like health checks.",Vp="Guarantee highly relevance operations",Kp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Yp="Reduce cost",Jp="Sample routine traffic using percentages.",qp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Qp="Filter noisy operations",Zp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",eh="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",th="Preset Rules",ih="Kubernetes Health Probes",nh="Automatically ignore health checks",rh="You can review, adjust, and add additional custom rules later.",oh="Choose your sampling strategy",ah="Pick the approach that best fits your balance of cost vs data-completeness",sh="Keep List",lh="Budget Friendly",dh="Define which traces must be kept, while all others are sampled by default to minimize cost.",ch="Cost-oriented - keeps only what you explicitly select.",uh="Best for very large clusters with high volumes of traces and high costs.",ph="Higher risk of missing important traces without ongoing review.",hh="Drop List",gh="Safe Choice",mh="Define which traces must be aggressively dropped, while all others are kept by default.",fh="Preserves most data unless explicitly filtered.",bh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",yh="Advanced",vh="Maximum Flexibility",$h="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",wh="'Keep List' profile",Sh="Protect important traces",xh="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Ch="Traces with errors",Eh="Slow requests (duration above threshold)",Th="Mission-Critical endpoints or services",Oh="Services under test or evaluation",Nh="New deployments",Ah="You can review, adjust, and add rules once onboarding is complete.",kh="Common Rules",Ih="Preset Rules",_h="Error collection - entire cluster",Dh="Keep all traces with errors",Rh="Ambient sampling percentage",Lh="'Drop List' profile",Ph="Reduce high-volume traffic",Uh="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Mh="Advanced Configuration",Fh="Configure sampling rules",zh="Advanced mode allows you to configure all sampling categories:",Bh="Noise Filtering - remove non-actionable traces",jh="Highly Relevance - guarantee important traces are kept",Hh='Cost Control - drop traces for "Normal" operations',Xh="Rules can target:",Wh="Services",Gh="HTTP Endpoints",Vh="DB Operations",Kh="Errors",Yh="Latency and more...",Jh="Sampling configured successfully!",qh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Qh="Odigos will now:",Zh="Filter noisy operations",eg="Guarantee important traces",tg="Reduce cost using controlled sampling",ig="Recommended",ng={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},rg={noisy:Np,highlyRelevant:Ip,costReduction:Rp},og={noisy:Ap,highlyRelevant:_p,costReduction:Lp},ag={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},sg=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],lg=6048e5,dg="URL templatization",cg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",ug="Default templatization",pg="Custom and default URL templatization scopes across URL templatization actions.",hg="Default templatization is not enabled",gg="Automatically detect and templatize dynamic URL segments when no custom template matches.",mg="Enable for entire cluster",fg="Custom URL templates",bg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",yg="View by:",vg="Groups",$g="Tree",wg="List",Sg="Create templating scope",xg="Edit scoped templates",Cg="Edit",Eg="Add template",Tg="Add templatization rules",Og="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Ng="Add templatization rule",Ag="Choose how to templatize dynamic URLs",kg="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Ig="Before",_g="After",Dg="/users/123/orders/456",Rg="/users/{id}/orders/{orderId}",Lg="Automatic templatization",Pg="Recommended",Ug="Detect and templatize dynamic URL segments when no custom rule matches.",Mg="Applies to: Entire cluster",Fg="Reversible at any time",zg="Enabled",Bg="Need more control?",jg="Create a custom rule for specific URL patterns.",Hg="Create custom rule",Xg="Learn how it works",Wg="Docs",Gg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Vg="Default templatization is enabled — editor coming next.",Kg="746px",Yg="Add default templatization rule",Jg="Edit default templatization rule",qg="Disable for a scope",Qg="UI template rules",Zg="Source Scope",em="Scope",tm="Choose which sources this template rule applies to.",im="Sources where this template is tested and applied.",nm="This rule will apply to all sources in the cluster.",rm="Default templatization",om="Automatically templatize dynamic URL segments when no custom template matches.",am="Enable automatic URL templatization for this scope",sm=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],lm="default templatization for this scope",dm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",cm="Disable",um="Skip policy",pm="Advanced",hm=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],gm=hm.join(" "),mm="Skip default templatization for all non-2xx responses",fm="Skip default templatization for specific HTTP status codes",bm="Example: 404, 401",ym="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",vm="This rule will take effect in the cluster immediately after it is added.",$m="This rule will take effect in the cluster immediately after it is saved.",wm="No template changes. Save will keep the current templates.";function Sm(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:wm}const xm="Add rule",Cm="Save",Em="Cancel",Tm="Cancel without saving",Om="Delete",Nm="templating scope";function Am(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const km="Enter valid HTTP status codes between 100 and 599, separated by commas.",Im="Create custom template",_m="Create new scoped template",Dm="Add URL templates",Rm="UI template rules",Lm=e=>`To ${e}`,Pm=e=>`Applies to ${e} source${1===e?"":"s"}`,Um=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Mm=e=>`Applies to ${e} language${1===e?"":"s"}`,Fm="Applies to entire cluster",zm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Bm="Where should this rule apply?",jm=Bm,Hm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Xm="Specific scope",Wm="Entire cluster",Gm="Apply the rule only where it is needed.",Vm="Apply to every source in this cluster.",Km="Quick start",Ym="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Jm="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",qm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Qm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",Zm="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",ef="Add to existing template group",tf="Create new template group",nf="Add here",rf="Create New",of="Existing templating scope",af="Templating scopes",sf="Select where to add the new template",lf="A template group already uses this scope",df="Choose where to add the new templates.",cf="Add to existing template group",uf="Create a separate template group",pf="Use different settings or behavior for the same scope.",hf="View action settings",gf="Default settings",mf=e=>of,ff=e=>1===e?"1 template":`${e} templates`,bf="Templating scope",yf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,vf="Template group will be added to the default action. Expand Select action to choose a different one.",$f="Select action",wf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Sf="Advanced settings",xf="Default UI-managed action · Recommended",Cf="Create a new action",Ef="Select action",Tf="Default UI-managed action",Of="Add this template group to the default UI-managed action.",Nf="Select action",Af="Choose an existing action or create a new one for this template group.",kf="Search template group by type action name or scope (languages, namespaces, sources)",If="Selected Template group:",_f="URL templatization action",Df="Create new action",Rf="__odigos_create_new_url_templatization_action__",Lf=Af,Pf="New action name",Uf="New action group",Mf="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",Ff="Create new template group",zf="Next",Bf="Back",jf="Action name",Hf="Action",Xf="UI template rules",Wf="__odigos_default_url_templatization_action__",Gf="UI-owned",Vf="Externally synced",Kf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Yf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Jf=Gf,qf="Templates",Qf="Other templates in this group",Zf="Additional templates that share the same source scope and Action as this rule.",eb="e.g. /api/users/{id}",tb="Language",ib="Namespace",nb="Source",rb="AND",ob="Entire cluster",ab="Unset",sb="Enabled globally",lb="Default templating disabled",db="Enabled",cb="Default templatization is unset. No default rules are configured on an enabled action.",ub="Default templatization is enabled globally.",pb="Default templatization is disabled for the entire cluster.";function hb(e){return e<=0?ub:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const gb="Disabled for these scopes",mb="Disable for a scope",fb="Delete",bb="disabled scope",yb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",vb="Automatic templatization",$b="Active",wb="Custom and default URL templatization scopes across URL templatization actions.",Sb="Custom templates take precedence over automatic templatization.",xb="Scope",Cb="Status codes",Eb="Disabled",Tb="Entire cluster",Ob="All",Nb="None",Ab="Disabled",kb="No disabled scope configured",Ib="Add disabled",_b="Disabled scopes",Db="Advanced",Rb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Lb="Automatic templatization off for matching traffic.",Pb="Disable for a scope",Ub="Scope",Mb="Effective behavior",Fb="Status",zb="Automatic templatization off",Bb="Covered by broader exception",jb="Disabled",Hb="Redundant",Xb="No disabled scope configured",Wb="Disable automatic templatization for specific scopes when needed.",Gb=(e,t)=>`${e} configured • ${t} effective`,Vb=e=>1===e?"1 scope":`${e} scopes`,Kb="Default templatization is enabled for all HTTP status codes.";function Yb(e){return e<=0?Kb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Jb="HTTP status code policies",qb="No skip policy configured",Qb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Zb="Add skip policy for a scope",ey="Add skip policy for a scope",ty="Skip default templatization on HTTP errors",iy="Delete",ny="skip policy",ry="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",oy="Template details",ay="Template",sy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",ly="Created via",dy="Action name",cy="Kubernetes name",uy="Odigos Action (Kubernetes resource) where this template is managed.",py="Try a URL",hy="/users/12/orders/345685335358",gy="Test URL",my="Close",fy="Result",by="Templated URL path",yy="Match found",vy="This URL matches the template.",$y="No match",wy="This URL doesn't match the template.",Sy="Check the URL structure and parameter positions, then try again.",xy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ya},Cy=Ft(e=>({...xy,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(xy)}));var Ey;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Ey||(Ey={}));const Ty=e=>`add-${za(e).replaceAll(" ","-").toLowerCase()}`,Oy=e=>`edit-${za(e).replaceAll(" ","-").toLowerCase()}`,Ny=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Ay=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),ky=Ft(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Ay})),Iy=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var _y;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(_y||(_y={}));const Dy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ry=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Ly=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Dy();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...r.progress,[i]:Ry(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Dy(i,o.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...o.progress,[i]:Ry(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Py=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Uy={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},My=(e,t)=>e.destinationType.type!==t.destinationType.type,Fy=Ft(e=>({...Uy,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>My(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>My(e,t))})),clearStore:()=>e(()=>({...Uy}))})),zy=e=>{function t(){return void 0===e?{}:$s(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(t()),l=Wt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Gt(()=>!d(a,i),[a,i]);Xt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Wt((e,t)=>ws("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=$s(e);let n=i;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,i}),o(e=>{const t=i,n=r[r.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?o(i=>({...i,[e]:t})):o(e=>{const n=$s(e);let r=n;for(let e=0;e<i.length-1;e++){const t=i[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[i[i.length-1]]=t,n})}else i&&o({...i})},resetFormData:e=>{const i=e||t();n(i),s(i),o({})},getNestedValue:u}},By={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},jy=()=>{const{addNotification:e}=Iy(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=zy(By);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:o,validateForm:i=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":nd(t)&&(n[e]=Za.FIELD_IS_REQUIRED)}}),t.type===oi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Za.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Oi.Warning,title:i.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...$s(By),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case si.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Hy=e=>{Xt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Xt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},Wy="data-ignore-outside-click",Gy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Wy))return!0;t=t.parentNode}return!1},Vy=(e,t)=>{const i=Vt(t);i.current=t,Xt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Gy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Ky=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Vy(r,()=>{o&&(a(!1),i?.())}),{popupRef:r,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(i,o)=>{if("local"===n)return void l({top:o,left:i});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=i;if(g>=s/2&&(g+=-u),"center"===h){m=i-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=i-d);l({top:g,left:m})}}},Yy=n.div`
195
+ animation: ${Bl} 1s reverse linear infinite;
196
+ `,Hl=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),r=i%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Wl=({icon:i,title:n,titleColor:r,titleSize:a=ja.S,subTitle:s,subTitleColor:l,subTitleSize:d=ja.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=Ht(()=>c?Hl(c):"");Wt(()=>{if(!c)return;w(Hl(c));const e=setInterval(()=>w(Hl(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Dl,{$gap:16,$alignItems:"center",children:[b?t(wl,{scale:1.7,icon:y}):h?t(gl,{percentage:f}):g?t(vl,{scale:m}):null,(n||s||c||i||u)&&e(Dl,{$gap:8,$alignItems:"center",children:[e(_l,{$gap:4,children:[i&&t(i,{}),u?t(jl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Va,{align:"center",size:a,color:S,children:n}):null]}),s?t(Va,{align:"center",size:d,color:x,children:s}):null,$?t(Va,{align:"center",size:d,color:S,children:$}):null]})]})},Xl=(e,t)=>({[Oi.Default]:i=>ee({fill:dl(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:dl(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:dl(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:dl(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:dl(t,e,"500"),...i}),[Oi.Loading]:e=>Wl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:dl(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:dl(t,e,"300"),...i})}[e]),Gl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Vl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Kl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Yl={sts:bt,dynamodb:ft,s3:W,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Jl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Kl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Kl[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Yl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Kl))if(o.includes(e))return t;return ze},ql=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:i,kind:n,region:r}=e;return{namespace:t,name:i,kind:n,region:r||void 0}},Ql=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ls(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&i.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Zl=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Oi.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function ed(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function td(e){if(!e)return null;const t=[];for(const i of e.sources??[])t.push({workloadName:i.name||null,workloadKind:i.kind||null,workloadNamespace:i.namespace||null});for(const i of e.namespaces??[])t.push({workloadNamespace:i});for(const i of e.languages??[])t.push({workloadLanguage:i});return t.length?t:null}function id(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:ed(t??null)}}function nd(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:td(t??null)}}const rd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),od=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ad=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},sd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ld=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,dd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,cd=e=>dd.test(e),ud=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:za(t),reason:i?za(i):"",message:n}))||[],pd=(e,t)=>{const i=ls(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},hd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],gd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],md=e=>{let t=e.replace(/[^\d.]/g,"");const i=t.indexOf(".");return-1!==i&&(t=t.slice(0,i+1)+t.slice(i+1).replace(/\./g,"")),t},fd=e=>e.replace(/[^\d]/g,""),bd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},yd=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},vd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},$d={0:"",1:"OK",2:"ERROR"};class wd{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const i=this.buf[this.offset++];if(e|=BigInt(127&i)<<t,!(128&i))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new wd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Sd=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},xd=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push(xd(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=Cd(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readBytes();if(!n)break;const r=Sd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Cd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?xd(i):void 0}else e.skip(i.wire)}return t},Ed=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Cd(i);void 0===n.key&&void 0===n.value||t.push(n)},Td=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;2===i.field&&2===i.wire?t.message=e.readString()??void 0:3===i.field&&0===i.wire?t.code=e.readVarintNumber()??void 0:e.skip(i.wire)}return t},Od=e=>{const t={attrs:[]};for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:1===i.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(i.wire);break;case 2:2===i.wire?t.name=e.readString()??void 0:e.skip(i.wire);break;case 3:2===i.wire?Ed(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Nd=(e,t,i)=>{const n={attrs:[],events:[],service:t,scope:i};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=Sd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=Sd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=Sd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?Ed(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Od(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Td(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ad=e=>{let t;for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const i=e.readMessage();if(!i)continue;const n=Cd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},kd=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},Id=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=kd(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Nd(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},_d=e=>{let t;const i=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const i=e.readMessage();i&&(t=Ad(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Id(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Dd=e=>({key:e.key??null,value:e.value??null}),Rd=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?$d[e.statusCode]??null:null,u=(e.attrs??[]).map(Dd);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,i=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(i)/1e6,attrs:(e.attrs??[]).map(Dd)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?vd[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of i.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},Ld=(e,t)=>{if(null==t||""===t)return{error:null};try{const i=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(t);if(!i||0===i.length)return{error:"Invalid base64 rawOtlp"};const n=(e=>{const t=new wd(e),i=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&i.push(..._d(e))}else t.skip(e.wire)}return i})(i);return n.length?{traceId:e,spans:Rd(n),error:null}:{error:"No spans found in OTLP payload"}}catch(e){return{error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Pd=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const n=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(i);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Ud=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Ud(e)))}else if("object"==typeof n&&null!==n){const e=Ud(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Md=(e,t=2)=>JSON.stringify(e||{},null,t),Fd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),zd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Bd=ri("v1.33"),jd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Hd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<Bd},Wd=ri("v1.20"),Xd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Wd},Gd=e=>e?jd.map(t=>e[t]??null):[],Vd={PID:"process.pid",VPID:"process.vpid"},Kd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Yd=[{id:wi.Go,label:Kd[wi.Go],icon:Ms(wi.Go)},{id:wi.Java,label:Kd[wi.Java],icon:Ms(wi.Java)},{id:wi.JavaScript,label:Kd[wi.JavaScript],icon:Ms(wi.JavaScript)},{id:wi.Python,label:Kd[wi.Python],icon:Ms(wi.Python)},{id:wi.Php,label:Kd[wi.Php],icon:Ms(wi.Php)},{id:wi.Ruby,label:Kd[wi.Ruby],icon:Ms(wi.Ruby)},{id:wi.Rust,label:Kd[wi.Rust],icon:Ms(wi.Rust)},{id:wi.DotNet,label:Kd[wi.DotNet],icon:Ms(wi.DotNet)},{id:wi.CSharp,label:Kd[wi.CSharp],icon:Ms(wi.CSharp)},{id:wi.CPlusPlus,label:Kd[wi.CPlusPlus],icon:Ms(wi.CPlusPlus)},{id:wi.Swift,label:Kd[wi.Swift],icon:Ms(wi.Swift)},{id:wi.Elixir,label:Kd[wi.Elixir],icon:Ms(wi.Elixir)}],Jd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},qd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Ms(wi.Go)},Jd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Ms(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Ms(wi.JavaScript)},Jd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Ms(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Ms(wi.Python)},Jd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Ms(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Ms(wi.Java)},Jd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Ms(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Ms(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Ms(wi.DotNet)},Jd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Ms(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Ms(wi.Ruby)},Jd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Ms(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Ms(wi.Php)},Jd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Ms(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Ms(wi.MySql)}]},[wi.CPlusPlus]:{community:[Jd],enterprise:[]},[wi.Rust]:{community:[Jd],enterprise:[]},[wi.Swift]:{community:[Jd],enterprise:[]},[wi.Elixir]:{community:[Jd],enterprise:[]},[wi.Nginx]:{community:[Jd],enterprise:[]},[wi.Postgres]:{community:[Jd],enterprise:[]},[wi.Redis]:{community:[Jd],enterprise:[]},[wi.Kafka]:{community:[Jd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Jd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Qd="*",Zd=e=>!!e?.includes(Qd),ec=e=>e?.length?Zd(e)?[Qd]:e:[],tc=e=>{if(e?.length&&!Zd(e))return e.filter(e=>e!==Qd)},ic=e=>e===Qd?"All languages":Kd[e]??e,nc=e=>e===Qd?vt:Ms(e),rc=ri("v1.26"),oc=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=rc},ac=[Mi.NetworkMetrics],sc=e=>!ac.includes(e),lc=[{type:Mi.CodeAttributes,icon:qs(Mi.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:qs(Mi.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:qs(Mi.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:qs(Mi.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[wi.Go,wi.JavaScript]}],dc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:qs(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},cc="Recommendations",uc="Optimize your observability setup with actionable recommendations.",pc="Recommended",hc="Applied",gc="Dismissed",mc="Not applicable",fc={[wn.Recommended]:pc,[wn.Applied]:hc,[wn.Dismissed]:gc,[wn.NotApplicable]:mc},bc="Accept",yc="Dismiss",vc="Restore",$c="Docs",wc="Benefits",Sc="Considerations",xc="Apply Recommendation",Cc="Apply via UI",Ec="Apply via GitOps",Tc="Via UI",Oc="Via GitOps",Nc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Ac="There are 2 ways to apply this recommendation.",kc="Odigos applies the selected change immediately.",Ic="Commit the configuration to your repository and let your GitOps controller apply it.",_c="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Dc="No recommendations",Rc="There are no recommendations for this cluster right now.",Lc="This recommendation does not currently apply to your cluster.",Pc="Recommendation dismissed",Uc="Recommendation restored",Mc="Recommendation applied successfully",Fc="Failed to apply recommendation",zc={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},Bc={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},jc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Hc="Cancel",Wc="Save",Xc="Edit rule",Gc="Edit auto rule",Vc="Create rule",Kc="Delete rule",Yc="Save",Jc="Create your first rule",qc="No Rules Exist",Qc="No Results",Zc=e=>`No rules match the search term "${e}"`,eu="Rule name",tu="Rule type",iu="Select the type of condition that makes a trace highly relevant.",nu="Rule Enabled",ru="Rule Disabled",ou="Enabled",au="Disabled",su="Note",lu="HTTP route",du="Method",cu="Keep Percentage",uu="Keep traces with duration larger than",pu="Keep traces with errors",hu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",gu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",mu="Custom percentage",fu="Disabled rule",bu="Sample",yu="Keep all",vu="Drop all",$u="Operation type",wu="HTTP route prefix",Su="Templated path",xu="Templated path prefix",Cu="Kafka topic",Eu="Custom duration (ms)",Tu="No preview available",Ou="Server address",Nu="Drop at most this percentage of matching traces",Au="Unnamed rule",ku="Sampling Preview",Iu="Source Scope",_u="Unknown source",Du="Operation",Ru="Duration",Lu="Errors",Pu="Keep Percentage",Uu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Mu="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Fu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",zu="Retain traces with errors from the selected services and operations.",Bu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",ju="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Hu={highlyRelevant:Bu,noisy:ju,costReduction:void 0},Wu="Type rule name",Xu="Add note here...",Gu="Type here",Vu="Search source name",Ku="e.g. collector.my.vendor.com",Yu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ju="Rule will apply to all sources in the cluster",qu="If multiple source scopes are set, they must all match simultaneously.",Qu="All sources",Zu="-",ep="All",tp="Sources",ip="Namespaces",np="Languages",rp="any of",op="AND",ap="All operations",sp="HTTP server endpoint",lp="HTTP client endpoint",dp="Kafka consumer",cp="Kafka producer",up="Sampling Rules",pp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',hp="Refresh",gp="Create rule",mp="Sampling docs",fp="75vw",bp="Delete rule?",yp="Are you sure you want to delete this sampling rule?",vp="Delete",$p="Cancel",wp="Kubernetes Health Probes",Sp="Keep All Error Traces",xp="Drop Traces Cluster-Wide",Cp="A rule with the same matching conditions already exists.",Ep="Create this rule as-is?",Tp="This rule still uses the default configuration.\nDo you want to create it anyway?",Op="Rule preview",Np="Continue editing",Ap="Create 'Noisy Operation Kubernetes Health Probes' rule",kp="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ip="Automatically detect and sample health probe traces across the cluster.",_p="Create 'Highly Relevant Operations' rule",Dp="Edit 'Highly Relevant Operations' rule",Rp="Automatically keep all error traces across the entire cluster.",Lp="Create 'Cost Reduction' rule",Pp="Edit 'Cost Reduction' rule",Up="Automatically drop a percentage of traces across the entire cluster.",Mp="Skip setup",Fp="Start setup",zp="Next",Bp="Go to Sampling",jp="Read more",Hp="Welcome to Sampling",Wp="Cut costs without losing what matters",Xp="Odigos sampling works in three stages:",Gp="Filter noisy traffic",Vp="Remove non-actionable traces like health checks.",Kp="Guarantee highly relevance operations",Yp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Jp="Reduce cost",qp="Sample routine traffic using percentages.",Qp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Zp="Filter noisy operations",eh="Cut traces with little or no observability value (health-checks, metric scarping, etc)",th="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",ih="Preset Rules",nh="Kubernetes Health Probes",rh="Automatically ignore health checks",oh="You can review, adjust, and add additional custom rules later.",ah="Choose your sampling strategy",sh="Pick the approach that best fits your balance of cost vs data-completeness",lh="Keep List",dh="Budget Friendly",ch="Define which traces must be kept, while all others are sampled by default to minimize cost.",uh="Cost-oriented - keeps only what you explicitly select.",ph="Best for very large clusters with high volumes of traces and high costs.",hh="Higher risk of missing important traces without ongoing review.",gh="Drop List",mh="Safe Choice",fh="Define which traces must be aggressively dropped, while all others are kept by default.",bh="Preserves most data unless explicitly filtered.",yh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",vh="Advanced",$h="Maximum Flexibility",wh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Sh="'Keep List' profile",xh="Protect important traces",Ch="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Eh="Traces with errors",Th="Slow requests (duration above threshold)",Oh="Mission-Critical endpoints or services",Nh="Services under test or evaluation",Ah="New deployments",kh="You can review, adjust, and add rules once onboarding is complete.",Ih="Common Rules",_h="Preset Rules",Dh="Error collection - entire cluster",Rh="Keep all traces with errors",Lh="Ambient sampling percentage",Ph="'Drop List' profile",Uh="Reduce high-volume traffic",Mh="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Fh="Advanced Configuration",zh="Configure sampling rules",Bh="Advanced mode allows you to configure all sampling categories:",jh="Noise Filtering - remove non-actionable traces",Hh="Highly Relevance - guarantee important traces are kept",Wh='Cost Control - drop traces for "Normal" operations',Xh="Rules can target:",Gh="Services",Vh="HTTP Endpoints",Kh="DB Operations",Yh="Errors",Jh="Latency and more...",qh="Sampling configured successfully!",Qh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Zh="Odigos will now:",eg="Filter noisy operations",tg="Guarantee important traces",ig="Reduce cost using controlled sampling",ng="Recommended",rg={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},og={noisy:Ap,highlyRelevant:_p,costReduction:Lp},ag={noisy:kp,highlyRelevant:Dp,costReduction:Pp},sg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},lg=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],dg=6048e5,cg="URL templatization",ug="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",pg="Default templatization",hg="Custom and default URL templatization scopes across URL templatization actions.",gg="Default templatization is not enabled",mg="Automatically detect and templatize dynamic URL segments when no custom template matches.",fg="Enable for entire cluster",bg="Custom URL templates",yg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",vg="View by:",$g="Groups",wg="Tree",Sg="List",xg="Create templating scope",Cg="Edit scoped templates",Eg="Edit",Tg="Add template",Og="Add templatization rules",Ng="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Ag="Add templatization rule",kg="Choose how to templatize dynamic URLs",Ig="Reduce route cardinality by replacing changing path segments with reusable placeholders.",_g="Before",Dg="After",Rg="/users/123/orders/456",Lg="/users/{id}/orders/{orderId}",Pg="Automatic templatization",Ug="Recommended",Mg="Detect and templatize dynamic URL segments when no custom rule matches.",Fg="Applies to: Entire cluster",zg="Reversible at any time",Bg="Enabled",jg="Need more control?",Hg="Create a custom rule for specific URL patterns.",Wg="Create custom rule",Xg="Learn how it works",Gg="Docs",Vg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Kg="Default templatization is enabled — editor coming next.",Yg="746px",Jg="Add default templatization rule",qg="Edit default templatization rule",Qg="Disable for a scope",Zg="UI template rules",em="Source Scope",tm="Scope",im="Choose which sources this template rule applies to.",nm="Sources where this template is tested and applied.",rm="This rule will apply to all sources in the cluster.",om="Default templatization",am="Automatically templatize dynamic URL segments when no custom template matches.",sm="Enable automatic URL templatization for this scope",lm=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],dm="default templatization for this scope",cm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",um="Disable",pm="Skip policy",hm="Advanced",gm=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],mm=gm.join(" "),fm="Skip default templatization for all non-2xx responses",bm="Skip default templatization for specific HTTP status codes",ym="Example: 404, 401",vm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",$m="This rule will take effect in the cluster immediately after it is added.",wm="This rule will take effect in the cluster immediately after it is saved.",Sm="No template changes. Save will keep the current templates.";function xm(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:Sm}const Cm="Add rule",Em="Save",Tm="Cancel",Om="Cancel without saving",Nm="Delete",Am="templating scope";function km(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Im="Enter valid HTTP status codes between 100 and 599, separated by commas.",_m="Create custom template",Dm="Create new scoped template",Rm="Add URL templates",Lm="UI template rules",Pm=e=>`To ${e}`,Um=e=>`Applies to ${e} source${1===e?"":"s"}`,Mm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Fm=e=>`Applies to ${e} language${1===e?"":"s"}`,zm="Applies to entire cluster",Bm=e=>`Applies to ${e} scope${1===e?"":"s"}`,jm="Where should this rule apply?",Hm=jm,Wm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Xm="Specific scope",Gm="Entire cluster",Vm="Apply the rule only where it is needed.",Km="Apply to every source in this cluster.",Ym="Quick start",Jm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",qm="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Qm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Zm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",ef="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",tf="Add to existing template group",nf="Create new template group",rf="Add here",of="Create New",af="Existing templating scope",sf="Templating scopes",lf="Select where to add the new template",df="A template group already uses this scope",cf="Choose where to add the new templates.",uf="Add to existing template group",pf="Create a separate template group",hf="Use different settings or behavior for the same scope.",gf="View action settings",mf="Default settings",ff=e=>af,bf=e=>1===e?"1 template":`${e} templates`,yf="Templating scope",vf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,$f="Template group will be added to the default action. Expand Select action to choose a different one.",wf="Select action",Sf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",xf="Advanced settings",Cf="Default UI-managed action · Recommended",Ef="Create a new action",Tf="Select action",Of="Default UI-managed action",Nf="Add this template group to the default UI-managed action.",Af="Select action",kf="Choose an existing action or create a new one for this template group.",If="Search template group by type action name or scope (languages, namespaces, sources)",_f="Selected Template group:",Df="URL templatization action",Rf="Create new action",Lf="__odigos_create_new_url_templatization_action__",Pf=kf,Uf="New action name",Mf="New action group",Ff="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",zf="Create new template group",Bf="Next",jf="Back",Hf="Action name",Wf="Action",Xf="UI template rules",Gf="__odigos_default_url_templatization_action__",Vf="UI-owned",Kf="Externally synced",Yf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Jf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],qf=Vf,Qf="Templates",Zf="Other templates in this group",eb="Additional templates that share the same source scope and Action as this rule.",tb="e.g. /api/users/{id}",ib="Language",nb="Namespace",rb="Source",ob="AND",ab="Entire cluster",sb="Unset",lb="Enabled globally",db="Default templating disabled",cb="Enabled",ub="Default templatization is unset. No default rules are configured on an enabled action.",pb="Default templatization is enabled globally.",hb="Default templatization is disabled for the entire cluster.";function gb(e){return e<=0?pb:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const mb="Disabled for these scopes",fb="Disable for a scope",bb="Delete",yb="disabled scope",vb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",$b="Automatic templatization",wb="Active",Sb="Custom and default URL templatization scopes across URL templatization actions.",xb="Custom templates take precedence over automatic templatization.",Cb="Scope",Eb="Status codes",Tb="Disabled",Ob="Entire cluster",Nb="All",Ab="None",kb="Disabled",Ib="No disabled scope configured",_b="Add disabled",Db="Disabled scopes",Rb="Advanced",Lb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Pb="Automatic templatization off for matching traffic.",Ub="Disable for a scope",Mb="Scope",Fb="Effective behavior",zb="Status",Bb="Automatic templatization off",jb="Covered by broader exception",Hb="Disabled",Wb="Redundant",Xb="No disabled scope configured",Gb="Disable automatic templatization for specific scopes when needed.",Vb=(e,t)=>`${e} configured • ${t} effective`,Kb=e=>1===e?"1 scope":`${e} scopes`,Yb="Default templatization is enabled for all HTTP status codes.";function Jb(e){return e<=0?Yb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const qb="HTTP status code policies",Qb="No skip policy configured",Zb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",ey="Add skip policy for a scope",ty="Add skip policy for a scope",iy="Skip default templatization on HTTP errors",ny="Delete",ry="skip policy",oy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",ay="Template details",sy="Template",ly="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",dy="Created via",cy="Action name",uy="Kubernetes name",py="Odigos Action (Kubernetes resource) where this template is managed.",hy="Try a URL",gy="/users/12/orders/345685335358",my="Test URL",fy="Close",by="Result",yy="Templated URL path",vy="Match found",$y="This URL matches the template.",wy="No match",Sy="This URL doesn't match the template.",xy="Check the URL structure and parameter positions, then try again.",Cy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ya},Ey=Ft(e=>({...Cy,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Cy)}));var Ty;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Ty||(Ty={}));const Oy=e=>`add-${za(e).replaceAll(" ","-").toLowerCase()}`,Ny=e=>`edit-${za(e).replaceAll(" ","-").toLowerCase()}`,Ay=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),ky=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Iy=Ft(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:ky})),_y=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Dy;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Dy||(Dy={}));const Ry=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ly=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Py=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Ry();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...r.progress,[i]:Ly(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Ry(i,o.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...o.progress,[i]:Ly(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Uy=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),My={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Fy=(e,t)=>e.destinationType.type!==t.destinationType.type,zy=Ft(e=>({...My,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>Fy(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Fy(e,t))})),clearStore:()=>e(()=>({...My}))})),By=e=>{function t(){return void 0===e?{}:$s(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(t()),l=Xt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Gt(()=>!d(a,i),[a,i]);Wt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>ws("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=$s(e);let n=i;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,i}),o(e=>{const t=i,n=r[r.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?o(i=>({...i,[e]:t})):o(e=>{const n=$s(e);let r=n;for(let e=0;e<i.length-1;e++){const t=i[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[i[i.length-1]]=t,n})}else i&&o({...i})},resetFormData:e=>{const i=e||t();n(i),s(i),o({})},getNestedValue:u}},jy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Hy=()=>{const{addNotification:e}=_y(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=By(jy);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:o,validateForm:i=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":rd(t)&&(n[e]=Za.FIELD_IS_REQUIRED)}}),t.type===oi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Za.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Oi.Warning,title:i.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...$s(jy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case si.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Wy=e=>{Wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Wt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},Gy="data-ignore-outside-click",Vy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Gy))return!0;t=t.parentNode}return!1},Ky=(e,t)=>{const i=Vt(t);i.current=t,Wt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Vy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Yy=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Ky(r,()=>{o&&(a(!1),i?.())}),{popupRef:r,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(i,o)=>{if("local"===n)return void l({top:o,left:i});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=i;if(g>=s/2&&(g+=-u),"center"===h){m=i-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=i-d);l({top:g,left:m})}}},Jy=n.div`
197
197
  width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
198
198
  position: relative;
199
199
  display: ${({$inline:e})=>e?"inline":"flex"};
@@ -205,7 +205,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
205
205
  text-overflow: ellipsis;
206
206
  white-space: nowrap;
207
207
  `}
208
- `,Jy=n.div`
208
+ `,qy=n.div`
209
209
  position: fixed;
210
210
  top: ${({$top:e})=>e}px;
211
211
  left: ${({$left:e})=>e}px;
@@ -217,21 +217,21 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
217
217
  min-width: 0;
218
218
 
219
219
  ${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
220
- `,qy=n.div`
220
+ `,Qy=n.div`
221
221
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
222
222
  border-radius: 4px;
223
223
  padding: 8px;
224
224
  max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
225
225
  box-sizing: border-box;
226
226
  min-width: 0;
227
- `,Qy=n.div`
227
+ `,Zy=n.div`
228
228
  display: flex;
229
229
  flex-direction: column;
230
230
  align-items: flex-start;
231
231
  gap: 8px;
232
232
  width: 100%;
233
233
  min-width: 0;
234
- `,Zy=n.div`
234
+ `,ev=n.div`
235
235
  display: flex;
236
236
  width: 100%;
237
237
  flex-shrink: 0;
@@ -241,7 +241,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
241
241
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
242
242
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
243
243
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
244
- `,ev=n.div`
244
+ `,tv=n.div`
245
245
  width: 0;
246
246
  height: 0;
247
247
  border-style: solid;
@@ -250,7 +250,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
250
250
  flex-shrink: 0;
251
251
 
252
252
  ${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
253
- `,tv=({typographyProps:n,withIcon:r,titleIcon:a,title:s,text:l,timestamp:d,children:c,fullWidth:u=!1,inline:p=!1,maxWidth:h="270px",keepAlive:g=!1,ellipsis:m=!1})=>{const f=o(),b=Gt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(l),[l]),y=b.join(" "),{popupRef:v,popupOpen:$,setPopupOpen:w,popupPosition:S,arrowPlacement:x,handlePosition:C}=Ky({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),E=Gt(()=>b.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[b]),T=e=>{const{type:t,clientX:i,clientY:n}=e;E?C(S.left||i,S.top||n):C(i,n),w("mouseleave"!==t)};if(!b.length&&!g)return t(i,{children:c});const O=$&&b.length>0;return e(Yy,{$fullWidth:u,$ellipsis:m,$inline:p,onMouseEnter:T,onMouseMove:T,onMouseLeave:T,children:[t(Va,{...n,children:c}),r&&t(tt,{fill:f.v2.colors.white[500]}),O&&Qt.createPortal(e(Jy,{ref:v,$top:S.top,$left:S.left,$withPointerEvents:E,onMouseEnter:E?T:void 0,children:["top"===x.edge&&t(Zy,{$align:x.align,children:t(ev,{$pointsUp:!0})}),t(qy,{$maxWidth:h,children:e(Qy,{children:[(!!a||!!s)&&e(Il,{$gap:4,style:{alignItems:"center"},children:[a&&t(a,{size:16},"icon"),s&&t(Va,{size:ja.XS,children:s},"title")]}),b.map((e,i)=>t(Va,{size:ja.XXXS,children:e},i)),!!d&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:new Date(d).toLocaleString()})]})}),"bottom"===x.edge&&t(Zy,{$align:x.align,children:t(ev,{$pointsUp:!1})})]}),document.body)]})};var iv,nv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(iv||(iv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(nv||(nv={}));const rv=n.button`
253
+ `,iv=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Gt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:w,arrowPlacement:S,handlePosition:x}=Yy({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),C=Gt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),E=e=>{const{type:t,clientX:i,clientY:n}=e;C?x(w.left||i,w.top||n):x(i,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(Jy,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&Qt.createPortal(e(qy,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!0})}),t(Qy,{$maxWidth:p,children:e(Zy,{children:[(!!r||!!a)&&e(_l,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Va,{size:ja.XS,children:a},"title")]}),f.map((e,i)=>t(Va,{size:ja.XXXS,children:e},i)),!!l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!1})})]}),document.body)]})};var nv,rv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(nv||(nv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(rv||(rv={}));const ov=n.button`
254
254
  display: flex;
255
255
  align-items: center;
256
256
  justify-content: ${({$align:e})=>e};
@@ -260,26 +260,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
260
260
  `}
261
261
  border: none;
262
262
  border-radius: 6px;
263
- ${({$size:e,$hasLabel:t})=>e===nv.S?r`
264
- height: 32px;
263
+ ${({$size:e,$hasLabel:t})=>e===rv.S?r`
264
+ height: 24px;
265
265
  ${t?r`
266
266
  padding: 8px 16px;
267
267
  `:r`
268
- width: 32px;
268
+ width: 24px;
269
269
  `}
270
- `:e===nv.M?r`
271
- height: 38px;
270
+ `:e===rv.M?r`
271
+ height: 32px;
272
272
  ${t?r`
273
273
  padding: 8px 18px;
274
274
  `:r`
275
- width: 38px;
275
+ width: 32px;
276
276
  `}
277
277
  `:r`
278
- height: 44px;
278
+ height: 42px;
279
279
  ${t?r`
280
280
  padding: 8px 22px;
281
281
  `:r`
282
- width: 44px;
282
+ width: 42px;
283
283
  `}
284
284
  `}
285
285
 
@@ -292,7 +292,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
292
292
  ${({$withShadow:e})=>e?r`
293
293
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
294
294
  `:""}
295
- ${({$variant:e,$isSelected:t})=>e===iv.Primary?r`
295
+ ${({$variant:e,$isSelected:t})=>e===nv.Primary?r`
296
296
  background-color: ${({theme:e})=>t?e.v2.colors.purple[600]:e.v2.colors.purple[500]};
297
297
  &:hover {
298
298
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -300,7 +300,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
300
300
  &:active {
301
301
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
302
302
  }
303
- `:e===iv.Secondary?r`
303
+ `:e===nv.Secondary?r`
304
304
  background-color: ${({theme:e})=>t?e.v2.colors.silver[600]:e.v2.colors.silver[750]};
305
305
  &:hover {
306
306
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -308,7 +308,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
308
308
  &:active {
309
309
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
310
310
  }
311
- `:e===iv.Text?r`
311
+ `:e===nv.Text?r`
312
312
  background-color: ${({theme:e})=>t?e.v2.colors.grey[700]:"transparent"};
313
313
  &:hover {
314
314
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
@@ -318,13 +318,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
318
318
  }
319
319
  `:""}
320
320
  }
321
- `,ov=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=iv.Primary,size:u=nv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===nv.L?18:16),E=u===nv.L?ja.S:ja.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Wt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(rv,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:y,...w,disabled:k,onClick:k?void 0:I,children:t(tv,{text:a,withIcon:!s,children:A?t(Hl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Dl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Va,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Dl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});ov.displayName=ov.name;const av=({onDone:e}={})=>{const[i,n]=Ht(!1),[r,o]=Ht(-1),a=Wt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Wt(({value:e,...n})=>t(ov,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:iv.Secondary,size:nv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},sv=e=>{const{addNotification:t}=Iy(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=zy(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?rd(i.name)?n.name=void 0:(r=!1,n.name=Za.ILLEGAL_K8S_LABEL):(r=!1,n.name=Za.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...$s(e),name:t};n(void 0,void 0,i)}}},lv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},dv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Iy(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=zy(lv),[d,c]=Ht([]),[u,p]=Ht([]);return Xt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:r,initialValue:o,renderCondition:a}=e;if(i===Ei.Dropdown){const e=ls(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:i,title:r,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:r,value:o,renderCondition:a,...ls(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ls(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Xt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Xt(()=>{if(t&&0===pd(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=Za.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...$s(lv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ls(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},cv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},uv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zy(cv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...$s(cv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},pv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Xt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,r,o,a]),null),hv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Xt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&o(i)}),()=>{t=!0}},[t,...i]),n},gv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Vt(null);return Xt(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:i,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,i,n,r]),o},mv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Wt((e,t)=>{a.current[e]=t},[]),c=Wt(e=>{o(e)},[]),u=Wt(e=>{l.current=!0,n(e)},[]);return Xt(()=>{if(!l.current)return;l.current=!1;const e=a.current[i];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[i]),Xt(()=>{const i=a.current,o=e.map(e=>i[e]).filter(Boolean);if(!o.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:r});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:i,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var fv,bv;(e=>{e.Left="left",e.Right="right"})(fv||(fv={})),(e=>{e.Top="top",e.Bottom="bottom"})(bv||(bv={}));const yv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Wt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||fv.Left,y:r||bv.Bottom}),g=Vt(null),m=Vt(!1);Xt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Gy(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,b]=Ht({}),y=Wt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===bv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===bv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===fv.Left?i.left:void 0,right:e===fv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Wt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?fv.Right:fv.Left),y:r||(e.clientY>window.innerHeight/2?bv.Top:bv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Wt(e=>{e.stopPropagation()},[]);return Kt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},vv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ls(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),$v={otelServiceName:"",currentStreamName:""},wv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zy($v);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...$s($v),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const Sv=new Jt(qt.locale),xv=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Cv=(e,{units:t=2,style:i="long",suffix:n=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===i?"0s":n?"just now":"0 seconds";const o=[];for(const e of xv){if(o.length===t)break;const n=Math.floor(r/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;r-=n*e.ms,o.push("short"===i?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===i?o.join(""):o.join(" ");return n&&"long"===i?`${a} ago`:a},Ev=(e,t)=>Cv(6e4*Math.max(0,e),t),Tv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ov=()=>{const[e,t]=Ht(0);return Xt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Wt(e=>{try{return Sv.format(Tv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Wt((e,t)=>{try{const i=Tv(e);return Cv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Nv,Av;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Red="red",e.Green="green",e.Loader="loader"})(Nv||(Nv={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(Av||(Av={}));const kv=(e,t,i)=>{switch(t){case Nv.Purple:return e.v2.colors.purple[i?"300":"900"];case Nv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Nv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Nv.Pink:return e.v2.colors.pink[i?"500":"1000"];case Nv.Red:return e.v2.colors.red[i?"300":"900"];case Nv.Green:return e.v2.colors.green[i?"300":"900"];case Nv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Iv=n.div`
321
+ `,av=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=nv.Primary,size:u=rv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===rv.L?24:u===rv.M?20:16),E=u===rv.L?ja.S:ja.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(ov,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:y,...w,disabled:k,onClick:k?void 0:I,children:t(iv,{text:a,withIcon:!s,fullWidth:!0,children:A?t(Wl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Rl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Va,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Rl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});av.displayName=av.name;const sv=({onDone:e}={})=>{const[i,n]=Ht(!1),[r,o]=Ht(-1),a=Xt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Xt(({value:e,...n})=>t(av,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:nv.Secondary,size:rv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},lv=e=>{const{addNotification:t}=_y(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=By(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?od(i.name)?n.name=void 0:(r=!1,n.name=Za.ILLEGAL_K8S_LABEL):(r=!1,n.name=Za.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...$s(e),name:t};n(void 0,void 0,i)}}},dv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},cv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=_y(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=By(dv),[d,c]=Ht([]),[u,p]=Ht([]);return Wt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:r,initialValue:o,renderCondition:a}=e;if(i===Ei.Dropdown){const e=ls(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:i,title:r,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:r,value:o,renderCondition:a,...ls(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ls(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Wt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Wt(()=>{if(t&&0===hd(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=Za.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...$s(dv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ls(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},uv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},pv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(uv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...$s(uv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},hv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Wt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,r,o,a]),null),gv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Wt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&o(i)}),()=>{t=!0}},[t,...i]),n},mv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Vt(null);return Wt(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:i,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,i,n,r]),o},fv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Wt(()=>{if(!l.current)return;l.current=!1;const e=a.current[i];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[i]),Wt(()=>{const i=a.current,o=e.map(e=>i[e]).filter(Boolean);if(!o.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:r});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:i,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var bv,yv;(e=>{e.Left="left",e.Right="right"})(bv||(bv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const vv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||bv.Left,y:r||yv.Bottom}),g=Vt(null),m=Vt(!1);Wt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Vy(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,b]=Ht({}),y=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===yv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===yv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===bv.Left?i.left:void 0,right:e===bv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?bv.Right:bv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Xt(e=>{e.stopPropagation()},[]);return Kt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},$v=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ls(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wv={otelServiceName:"",currentStreamName:""},Sv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(wv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...$s(wv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const xv=new Jt(qt.locale),Cv=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Ev=(e,{units:t=2,style:i="long",suffix:n=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===i?"0s":n?"just now":"0 seconds";const o=[];for(const e of Cv){if(o.length===t)break;const n=Math.floor(r/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;r-=n*e.ms,o.push("short"===i?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===i?o.join(""):o.join(" ");return n&&"long"===i?`${a} ago`:a},Tv=(e,t)=>Ev(6e4*Math.max(0,e),t),Ov=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Nv=()=>{const[e,t]=Ht(0);return Wt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return xv.format(Ov(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Ov(e);return Ev(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Av,kv;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Red="red",e.Green="green",e.Loader="loader"})(Av||(Av={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(kv||(kv={}));const Iv=(e,t,i)=>{switch(t){case Av.Purple:return e.v2.colors.purple[i?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Av.Blue:return e.v2.colors.blue[i?"300":"1000"];case Av.Pink:return e.v2.colors.pink[i?"500":"1000"];case Av.Red:return e.v2.colors.red[i?"300":"900"];case Av.Green:return e.v2.colors.green[i?"300":"900"];case Av.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},_v=n.div`
322
322
  display: flex;
323
323
  align-items: center;
324
324
  justify-content: center;
325
- gap: ${({$size:e})=>e===Av.Small?2:e===Av.Medium?4:8}px;
326
- padding: ${({$size:e})=>e===Av.Small?"2px 4px":e===Av.Medium?"4px 6px":"4px 8px"};
327
- border-radius: ${({$size:e})=>e===Av.Small?4:6}px;
325
+ gap: ${({$size:e})=>e===kv.Small?2:e===kv.Medium?4:8}px;
326
+ padding: ${({$size:e})=>e===kv.Small?"2px 4px":e===kv.Medium?"4px 6px":"4px 8px"};
327
+ border-radius: ${({$size:e})=>e===kv.Small?4:6}px;
328
328
  border: 1px solid transparent;
329
329
 
330
330
  min-width: ${({$minWidth:e})=>e||"unset"};
@@ -337,16 +337,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
337
337
  ${({$disabled:e,$variant:t,$withClick:i})=>e?r`
338
338
  background-color: ${({theme:e})=>e.v2.colors.grey[800]};
339
339
  `:r`
340
- background-color: ${({theme:e})=>kv(e,t)};
340
+ background-color: ${({theme:e})=>Iv(e,t)};
341
341
  ${i&&r`
342
342
  cursor: pointer;
343
343
  &:hover,
344
344
  &:active {
345
- border: 1px solid ${({theme:e})=>kv(e,t,!0)};
345
+ border: 1px solid ${({theme:e})=>Iv(e,t,!0)};
346
346
  }
347
347
  `}
348
348
  `}
349
- `,_v=({variant:i=Nv.Default,size:n=Av.Medium,label:r,leftIcon:a,rightIcon:s,onClick:l,disabled:d,flex:c,minWidth:u})=>{const p=o(),h=d?p.v2.colors.grey[400]:i===Nv.Default?p.v2.colors.white[500]:kv(p,i,!0),g=n===Av.Small?ja.XXXS:n===Av.Medium?ja.XXS:ja.S,m=n===Av.Small?10:n===Av.Medium?12:16,f=i===Nv.Loader;return e(Iv,{$variant:i,$size:n,$disabled:d,$withClick:!!l,onClick:()=>!d&&l?.(),$flex:c,$minWidth:u,children:[a&&t(a,{fill:h,size:m}),f?t(Hl,{withGradient:!0,title:r,titleSize:g}):t(Va,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Dv=n.div`
349
+ `,Dv=({variant:i=Av.Default,size:n=kv.Medium,label:r,leftIcon:a,rightIcon:s,onClick:l,disabled:d,flex:c,minWidth:u})=>{const p=o(),h=d?p.v2.colors.grey[400]:i===Av.Default?p.v2.colors.white[500]:Iv(p,i,!0),g=n===kv.Small?ja.XXXS:n===kv.Medium?ja.XXS:ja.S,m=n===kv.Small?10:n===kv.Medium?12:16,f=i===Av.Loader;return e(_v,{$variant:i,$size:n,$disabled:d,$withClick:!!l,onClick:()=>!d&&l?.(),$flex:c,$minWidth:u,children:[a&&t(a,{fill:h,size:m}),f?t(Wl,{withGradient:!0,title:r,titleSize:g}):t(Va,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Rv=n.div`
350
350
  display: flex;
351
351
  align-items: center;
352
352
  justify-content: center;
@@ -356,9 +356,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
356
356
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
357
357
  border-radius: 100px;
358
358
  background-color: ${({$backgroundColor:e})=>e};
359
- `,Rv=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Oi.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=i?.toString(),b=Oi.Loading===s,y=s?[Oi.Disabled,Oi.Loading].includes(s)?ll(m,s,d?"400":"700"):[Oi.Unknown].includes(s)?ll(m,s,"600"):ll(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Oi.Unknown].includes(s)?y:[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[400]:[Oi.Error,Oi.Warning,Oi.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Oi.Unknown].includes(s)?[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(tv,{text:a,fullWidth:g,children:e(Dv,{$backgroundColor:$,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Hl,{withGradient:!0,title:f,titleSize:c||ja.XXS}):t(Va,{color:v,size:c||ja.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Lv=n.div`
359
+ `,Lv=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Oi.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=i?.toString(),b=Oi.Loading===s,y=s?[Oi.Disabled,Oi.Loading].includes(s)?dl(m,s,d?"400":"700"):[Oi.Unknown].includes(s)?dl(m,s,"600"):dl(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Oi.Unknown].includes(s)?y:[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[400]:[Oi.Error,Oi.Warning,Oi.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Oi.Unknown].includes(s)?[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(iv,{text:a,fullWidth:g,children:e(Rv,{$backgroundColor:$,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Wl,{withGradient:!0,title:f,titleSize:c||ja.XXS}):t(Va,{color:v,size:c||ja.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Pv=n.div`
360
360
  position: relative;
361
- `,Pv=n.div`
361
+ `,Uv=n.div`
362
362
  position: fixed;
363
363
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
364
364
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -376,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
376
376
  border-radius: 6px;
377
377
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
378
378
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
379
- `,Uv=({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=yv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Lv,{ref:h,onMouseDown:m,children:[t(ov,{label:"Open",variant:iv.Secondary,size:nv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Zt(t(Pv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Mv={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},zIndex:{base:1,island:100,sidebar:500,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Fv={v2:Mv.v2,darkMode:!0,colors:{...Mv.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:Mv.font_family},zv={v2:Mv.v2,darkMode:!1,colors:{...Mv.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:Mv.font_family},Bv=e=>e?Fv:zv,jv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Mv,darkModeTheme:Fv,getTheme:Bv,lightModeTheme:zv},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const Hv=({children:e})=>t(s,{theme:Bv(!0),children:e}),Xv={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"},Wv=Object.freeze(Object.defineProperty({__proto__:null,hex:Xv},Symbol.toStringTag,{value:"Module"})),Gv={in:{left:a`
379
+ `,Mv=({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=vv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Pv,{ref:h,onMouseDown:m,children:[t(av,{label:"Open",variant:nv.Secondary,size:rv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Zt(t(Uv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Fv={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},zIndex:{base:1,island:100,sidebar:500,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},zv={v2:Fv.v2,darkMode:!0,colors:{...Fv.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:Fv.font_family},Bv={v2:Fv.v2,darkMode:!1,colors:{...Fv.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:Fv.font_family},jv=e=>e?zv:Bv,Hv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Fv,darkModeTheme:zv,getTheme:jv,lightModeTheme:Bv},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const Wv=({children:e})=>t(s,{theme:jv(!0),children:e}),Xv={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"},Gv=Object.freeze(Object.defineProperty({__proto__:null,hex:Xv},Symbol.toStringTag,{value:"Module"})),Vv={in:{left:a`
380
380
  from { transform: translateX(-100%); }
381
381
  to { transform: translateX(0); }
382
382
  `,right:a`
@@ -406,7 +406,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
406
406
  `,center:a`
407
407
  from { transform: translate(-50%, -50%); }
408
408
  to { transform: translate(-50%, 100%); }
409
- `}},Vv={in:a`
409
+ `}},Kv={in:a`
410
410
  from {
411
411
  width: 0%;
412
412
  }
@@ -420,7 +420,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
420
420
  to {
421
421
  width: 0%;
422
422
  }
423
- `},Kv=a`
423
+ `},Yv=a`
424
424
  0% {
425
425
  transform: scale(1);
426
426
  opacity: 1;
@@ -429,14 +429,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
429
429
  transform: scale(2);
430
430
  opacity: 0;
431
431
  }
432
- `,Yv=a`
432
+ `,Jv=a`
433
433
  0% {
434
434
  background-position: -500px 0;
435
435
  }
436
436
  100% {
437
437
  background-position: 500px 0;
438
438
  }
439
- `,Jv={in:a`
439
+ `,qv={in:a`
440
440
  from {
441
441
  opacity: 0;
442
442
  }
@@ -450,7 +450,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
450
450
  to {
451
451
  opacity: 0;
452
452
  }
453
- `},qv=Object.freeze(Object.defineProperty({__proto__:null,fade:Jv,ping:Kv,progress:Vv,shimmer:Yv,slide:Gv},Symbol.toStringTag,{value:"Module"}));var Qv,Zv;(e=>{e.S="s",e.L="l"})(Qv||(Qv={})),(e=>{e.Filled="filled",e.Underline="underline"})(Zv||(Zv={}));const e$=n.div`
453
+ `},Qv=Object.freeze(Object.defineProperty({__proto__:null,fade:qv,ping:Yv,progress:Kv,shimmer:Jv,slide:Vv},Symbol.toStringTag,{value:"Module"}));var Zv,e$;(e=>{e.S="s",e.L="l"})(Zv||(Zv={})),(e=>{e.Filled="filled",e.Underline="underline"})(e$||(e$={}));const t$=n.div`
454
454
  display: flex;
455
455
  align-items: center;
456
456
  gap: 2px;
@@ -458,13 +458,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
458
458
  border-radius: 6px;
459
459
  border: none;
460
460
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
461
- `,t$=n.button`
461
+ `,i$=n.button`
462
462
  flex: 1;
463
463
  display: flex;
464
464
  align-items: center;
465
465
  justify-content: center;
466
- gap: ${({$size:e})=>e===Qv.S?"4px":"8px"};
467
- padding: ${({$size:e})=>e===Qv.S?"4px 6px":"8px 12px"};
466
+ gap: ${({$size:e})=>e===Zv.S?"4px":"8px"};
467
+ padding: ${({$size:e})=>e===Zv.S?"4px 6px":"8px 12px"};
468
468
  border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
469
469
  border: 1px solid transparent;
470
470
 
@@ -485,11 +485,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
485
485
  background-color: ${o.v2.colors.silver[600]};
486
486
  }
487
487
  `}
488
- `,i$=n.div`
488
+ `,n$=n.div`
489
489
  display: flex;
490
490
  align-items: stretch;
491
491
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
492
- `,n$=n.button`
492
+ `,r$=n.button`
493
493
  display: flex;
494
494
  height: 34px;
495
495
  padding: 8px 12px 8px 16px;
@@ -508,7 +508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
508
508
  &:hover {
509
509
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
510
510
  }
511
- `,r$=({"data-id":n,size:r=Qv.S,variant:a=Zv.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===Zv.Underline,g=h?n$:t$;return t(h?i$:e$,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:b,selectedTextColor:y,disabled:v},$)=>{const w=0===$,S=$===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===Qv.S?ja.XXS:ja.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:E}),o&&t(Va,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Rv,{...u})]});return t(g,{onClick:e=>{C||(e.preventDefault(),d(n))},$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,disabled:C,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(tv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},o$=n.div`
511
+ `,o$=({"data-id":n,size:r=Zv.S,variant:a=e$.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===e$.Underline,g=h?r$:i$;return t(h?n$:t$,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:b,selectedTextColor:y,disabled:v},$)=>{const w=0===$,S=$===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===Zv.S?ja.XXS:ja.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:E}),o&&t(Va,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Lv,{...u})]});return t(g,{onClick:e=>{C||(e.preventDefault(),d(n))},$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,disabled:C,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(iv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},a$=n.div`
512
512
  box-sizing: border-box !important;
513
513
  width: ${({$width:e})=>e??"fit-content"};
514
514
  flex-shrink: ${({$width:e})=>e?0:1};
@@ -524,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
524
524
  border: none;
525
525
  border-radius: 6px;
526
526
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:i,$emphasizeBackgroundColor:n,theme:r})=>{const o=i??r.v2.colors.silver[800],a=n??r.v2.colors.silver[700];return e||t?a:o}};
527
- `,a$=n.input`
527
+ `,s$=n.input`
528
528
  min-width: 0;
529
529
  flex: 1;
530
530
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -541,7 +541,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
541
541
  overflow: hidden;
542
542
  text-overflow: ellipsis;
543
543
  white-space: nowrap;
544
- `,s$=({"data-id":i,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=Ht(!1),[f,b]=Ht(!1),[y,v]=Ht(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Gt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Gt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(o$,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:$}),t(a$,{"data-id":i??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:$}),w&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(r$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},l$=n.div`
544
+ `,l$=({"data-id":i,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=Ht(!1),[f,b]=Ht(!1),[y,v]=Ht(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Gt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Gt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(a$,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:$}),t(s$,{"data-id":i??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:$}),w&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(o$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},d$=n.div`
545
545
  display: flex;
546
546
  align-items: center;
547
547
  justify-content: center;
@@ -550,41 +550,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
550
550
  padding: 8px;
551
551
  border-radius: 100%;
552
552
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
553
- `,d$=({icon:i=g,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(_l,{$gap:12,$alignItems:"center",children:[e(_l,{$gap:4,$alignItems:"center",children:[!n&&t(l$,{children:t(i,{size:24,fill:d})}),t(Va,{size:ja.XXS,color:Ha.Secondary,align:"center",children:r}),a&&t(Va,{size:ja.XXXS,color:Ha.Disable,align:"center",children:a})]}),s&&t(ov,{variant:iv.Secondary,...s}),l]})},c$=n.span`
553
+ `,c$=({icon:i=g,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Dl,{$gap:12,$alignItems:"center",children:[e(Dl,{$gap:4,$alignItems:"center",children:[!n&&t(d$,{children:t(i,{size:24,fill:d})}),t(Va,{size:ja.XXS,color:Ha.Secondary,align:"center",children:r}),a&&t(Va,{size:ja.XXXS,color:Ha.Disable,align:"center",children:a})]}),s&&t(av,{variant:nv.Secondary,...s}),l]})},u$=n.span`
554
554
  font-family: ${({theme:e})=>e.font_family.primary};
555
- font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
555
+ font-size: ${({$small:e})=>e?"12px":"14px"};
556
556
  font-weight: 400;
557
- color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
558
- `,u$=n.span`
557
+ color: ${({theme:e})=>e.v2.colors.silver[200]};
558
+ `,p$=n.span`
559
559
  font-family: ${({theme:e})=>e.font_family.primary};
560
560
  font-size: 14px;
561
561
  font-weight: 400;
562
562
  color: ${({theme:e})=>e.v2.colors.red[500]};
563
- `,p$=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(Il,{$width:a,$justifyContent:"space-between",children:[i&&t(c$,{$smallAndDark:s,children:i}),e(Il,{$gap:4,children:[o&&t(Rv,{...o,textSize:ja.XXXS}),r&&t(u$,{children:"*"}),n&&t(tv,{text:n,withIcon:!0})]})]}):null,h$=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(Il,{$alignItems:"center",children:[l&&t(_l,{children:l}),t(Va,{size:ja.XXXS,weight:400,color:s,children:i||n||r})]}):null};var g$;(e=>{e.S="small",e.L="large"})(g$||(g$={}));const m$=n.div`
563
+ `,h$=({label:i,tooltip:n,required:r,badge:o,width:a,small:s})=>i||n||r?e(_l,{$width:a,$justifyContent:"space-between",children:[i&&t(u$,{$small:s,children:i}),e(_l,{$gap:4,children:[o&&t(Lv,{...o,textSize:ja.XXXS}),r&&t(p$,{children:"*"}),n&&t(iv,{text:n,withIcon:!0})]})]}):null,g$=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(_l,{$alignItems:"center",children:[l&&t(Dl,{children:l}),t(Va,{size:ja.XXXS,weight:400,color:s,children:i||n||r})]}):null};var m$;(e=>{e.S="small",e.L="large"})(m$||(m$={}));const f$=n.div`
564
564
  width: fit-content;
565
565
  display: flex;
566
566
  align-items: center;
567
567
  gap: 8px;
568
568
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
569
- `,f$=n.div`
570
- width: ${({$size:e})=>e===g$.S?"16px":"20px"};
571
- height: ${({$size:e})=>e===g$.S?"16px":"20px"};
569
+ `,b$=n.div`
570
+ width: ${({$size:e})=>e===m$.S?"16px":"20px"};
571
+ height: ${({$size:e})=>e===m$.S?"16px":"20px"};
572
572
  display: flex;
573
573
  align-items: center;
574
574
  justify-content: center;
575
575
  border-radius: 4px;
576
576
  border: 1px solid ${({$borderColor:e})=>e};
577
577
  background-color: ${({$backgroundColor:e})=>e};
578
- `,b$=({name:i,label:n,tooltip:r,badge:a,size:s=g$.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Ht(!1),y=d||c,v=s===g$.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],w=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(_l,{$gap:4,children:[e(Il,{$justifyContent:"space-between",children:[e(m$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(f$,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(xt,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(Va,{size:s===g$.S?ja.XXS:ja.XS,nowrap:!0,children:n})]}),t(p$,{tooltip:r,badge:a})]}),t(h$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},y$=n.div`
578
+ `,y$=({name:i,label:n,tooltip:r,badge:a,size:s=m$.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Ht(!1),y=d||c,v=s===m$.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],w=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(f$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(b$,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(xt,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(Va,{size:s===m$.S?ja.XXS:ja.XS,nowrap:!0,children:n})]}),t(h$,{tooltip:r,badge:a})]}),t(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},v$=n.div`
579
579
  display: flex;
580
580
  flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
581
581
  gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
582
- `,v$=({direction:i=mi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===g$.S?ja.XXS:ja.XS,u=Gt(()=>s.every(e=>l[e.id]),[s,l]),p=Gt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(i=>{const n={...i};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(y$,{$direction:i,children:[n&&a?t(b$,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Va,{size:c,children:n}):null,s.map(e=>t(b$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},$$=n.div`
582
+ `,$$=({direction:i=mi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===m$.S?ja.XXS:ja.XS,u=Gt(()=>s.every(e=>l[e.id]),[s,l]),p=Gt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(i=>{const n={...i};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(v$,{$direction:i,children:[n&&a?t(y$,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Va,{size:c,children:n}):null,s.map(e=>t(y$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},w$=n.div`
583
583
  position: relative;
584
584
  display: flex;
585
585
  flex-direction: column;
586
586
  gap: 4px;
587
- `,w$=n.div`
587
+ `,S$=n.div`
588
588
  position: fixed;
589
589
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
590
590
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -602,7 +602,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
602
602
  border-radius: 6px;
603
603
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
604
604
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
605
- `,S$=n.div`
605
+ `,x$=n.div`
606
606
  display: flex;
607
607
  flex-direction: column;
608
608
  gap: 0;
@@ -610,7 +610,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
610
610
  width: 100%;
611
611
  max-height: ${({$maxHeight:e})=>e||"230px"};
612
612
  overflow-y: auto;
613
- `,x$=n.div`
613
+ `,C$=n.div`
614
614
  display: flex;
615
615
  align-items: center;
616
616
  gap: 8px;
@@ -626,19 +626,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
626
626
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
627
627
  }
628
628
  `}
629
- `,C$=n.div`
629
+ `,E$=n.div`
630
630
  display: flex;
631
631
  align-items: center;
632
632
  gap: 8px;
633
633
  flex: 1;
634
634
  min-width: 0;
635
- `,E$=n.div`
635
+ `,T$=n.div`
636
636
  flex: 0 1 auto;
637
637
  min-width: 0;
638
638
  overflow: hidden;
639
639
  text-overflow: ellipsis;
640
640
  white-space: nowrap;
641
- `,T$=n.span`
641
+ `,O$=n.span`
642
642
  flex-shrink: 0;
643
643
  width: 88px;
644
644
  display: inline-flex;
@@ -647,14 +647,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
647
647
  border-radius: 4px;
648
648
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
649
649
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
650
- `,O$=n.div`
650
+ `,N$=n.div`
651
651
  flex-shrink: 0;
652
652
  display: inline-flex;
653
653
  align-items: center;
654
654
  gap: 4px;
655
- `,N$=({defaultOpen:i,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:v,children:$})=>{const w=o(),S=!!f||!!b||!!$,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=yv({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[k,I]=Ht(""),_=Gt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:D,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e($$,{ref:T,onMouseDown:N,children:[u&&t(p$,{label:u}),f&&t(ov,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(ov,{variant:iv.Text,size:nv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Et,handleClick:O}):$,x&&Zt(e(w$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(s$,{value:k,onChange:I,width:"100%"}),y?t(Hl,{withSpinner:!0,title:"Loading...",titleSize:ja.XS}):_.length?t(S$,{$maxHeight:m,children:_.map(i=>{if(!i)return null;const{id:n,label:r,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(n);return e(x$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(b$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(T$,{children:t(Va,{size:ja.XXS,nowrap:!0,color:Ha.Secondary,children:s})}),e(C$,{children:[t(E$,{children:t(Va,{size:ja.XS,nowrap:!0,color:i.color||Ha.Primary,children:r})}),l&&e(O$,{children:[t(je,{size:12,fill:w.v2.colors.silver[200]}),t(Va,{size:ja.XS,nowrap:!0,color:Ha.Secondary,children:l})]})]})]},n)})}):t(kl,{$padding:"6px 0",children:t(d$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(ov,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var A$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(A$||(A$={}));const k$=({onAnyClick:e,actions:i})=>t(Il,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case A$.Button:return t(ov,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case A$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(N$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case A$.PopupButton:return t(Uv,{buttonProps:{label:"Open",variant:iv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),I$=n(Il)`
655
+ `,A$=({defaultOpen:i,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:v,children:$})=>{const w=o(),S=!!f||!!b||!!$,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=vv({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[k,I]=Ht(""),_=Gt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:D,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(w$,{ref:T,onMouseDown:N,children:[u&&t(h$,{label:u}),f&&t(av,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(av,{variant:nv.Text,size:rv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Et,handleClick:O}):$,x&&Zt(e(S$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(l$,{value:k,onChange:I,width:"100%"}),y?t(Wl,{withSpinner:!0,title:"Loading...",titleSize:ja.XS}):_.length?t(x$,{$maxHeight:m,children:_.map(i=>{if(!i)return null;const{id:n,label:r,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(n);return e(C$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(y$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(O$,{children:t(Va,{size:ja.XXS,nowrap:!0,color:Ha.Secondary,children:s})}),e(E$,{children:[t(T$,{children:t(Va,{size:ja.XS,nowrap:!0,color:i.color||Ha.Primary,children:r})}),l&&e(N$,{children:[t(je,{size:12,fill:w.v2.colors.silver[200]}),t(Va,{size:ja.XS,nowrap:!0,color:Ha.Secondary,children:l})]})]})]},n)})}):t(Il,{$padding:"6px 0",children:t(c$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(av,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var k$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(k$||(k$={}));const I$=({onAnyClick:e,actions:i})=>t(_l,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case k$.Button:return t(av,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case k$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(A$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case k$.PopupButton:return t(Mv,{buttonProps:{label:"Open",variant:nv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),_$=n(_l)`
656
656
  min-width: 0;
657
- `,_$=n.div`
657
+ `,D$=n.div`
658
658
  display: flex;
659
659
  flex-shrink: 0;
660
660
  align-items: center;
@@ -662,11 +662,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
662
662
  padding: 8px;
663
663
  border-radius: 8px;
664
664
  background-color: ${({theme:e})=>e.v2.colors.white[500]+Xv["004"]};
665
- `,D$=n(_l)`
665
+ `,R$=n(Dl)`
666
666
  flex: 1;
667
667
  min-width: 0;
668
668
  overflow: hidden;
669
- `,R$=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=ja.S,titleColor:a=Ha.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=ja.XXS,subTitleColor:u=Ha.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=av();return e(I$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(_$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(D$,{$gap:b,children:[r||m?e(Il,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Va,{size:o,color:a,nowrap:!s,children:r}),l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(tv,{text:h,withIcon:!0}),m&&t(Rv,{...m})]}):null,d&&t(Va,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(Il,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},L$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Vt(null),a=!!r.maxLines&&r.maxLines>0,s=hv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(tv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Va,{ref:o,...r,children:e})})},P$=n.section`
669
+ `,L$=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=ja.S,titleColor:a=Ha.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=ja.XXS,subTitleColor:u=Ha.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=sv();return e(_$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(D$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(R$,{$gap:b,children:[r||m?e(_l,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Va,{size:o,color:a,nowrap:!s,children:r}),l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(iv,{text:h,withIcon:!0}),m&&t(Lv,{...m})]}):null,d&&t(Va,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(_l,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},P$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Vt(null),a=!!r.maxLines&&r.maxLines>0,s=gv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(iv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Va,{ref:o,...r,children:e})})},U$=n.section`
670
670
  display: flex;
671
671
  flex-direction: column;
672
672
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -694,38 +694,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
694
694
  ${({$overflow:e})=>e&&r`
695
695
  overflow: ${e};
696
696
  `}
697
- `,U$=n(Il)`
697
+ `,M$=n(_l)`
698
698
  width: 100%;
699
699
  min-width: 0;
700
700
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
701
701
  user-select: ${({$clickable:e})=>e?"none":"auto"};
702
- `,M$=n(Il)`
702
+ `,F$=n(_l)`
703
703
  flex-shrink: 0;
704
- `,F$=n.div`
704
+ `,z$=n.div`
705
705
  display: flex;
706
706
  align-items: flex-start;
707
707
  flex-wrap: wrap;
708
708
  width: 100%;
709
- `,z$=n.div`
709
+ `,B$=n.div`
710
710
  ${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
711
711
  margin: 8px;
712
712
  display: flex;
713
713
  flex-direction: column;
714
714
  gap: 4px;
715
715
  min-width: 0;
716
- `,B$=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=av(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(z$,{$cellsPerRow:n,children:[!!a&&t(tv,{text:s,children:t(L$,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:a})}),e(Il,{$gap:4,children:[u&&t(Rv,{...u}),p&&t(_v,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(tv,{text:d,children:t(L$,{size:ja.XS,nowrap:!0,children:l})})]})]})},j$=({bgTint:i="900",width:n,fullHeight:r=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:b,clickStylesRemainActive:y=!1})=>{const[v,$]=Ht(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(P$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(U$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(R$,{...s}):t("div",{}),e(M$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(k$,{actions:u}),E&&t(Il,{$gap:8,children:c.map((e,t)=>Yt(Rv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(Il,{$gap:2,children:[C&&t(N$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(ov,{variant:iv.Text,size:nv.S,leftIcon:v?Ct:Et,onClick:w})]})]})]}),S&&m?t(F$,{children:m.map(e=>t(B$,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var H$;(e=>{e.S="small",e.M="medium"})(H$||(H$={}));const X$=n(Il)`
716
+ `,j$=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=sv(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(B$,{$cellsPerRow:n,children:[!!a&&t(iv,{text:s,children:t(P$,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:a})}),e(_l,{$gap:4,children:[u&&t(Lv,{...u}),p&&t(Dv,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(iv,{text:d,children:t(P$,{size:ja.XS,nowrap:!0,children:l})})]})]})},H$=({bgTint:i="900",width:n,fullHeight:r=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:b,clickStylesRemainActive:y=!1})=>{const[v,$]=Ht(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(U$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(M$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(L$,{...s}):t("div",{}),e(F$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(I$,{actions:u}),E&&t(_l,{$gap:8,children:c.map((e,t)=>Yt(Lv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(_l,{$gap:2,children:[C&&t(A$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(av,{variant:nv.Text,size:rv.S,leftIcon:v?Ct:Et,onClick:w})]})]})]}),S&&m?t(z$,{children:m.map(e=>t(j$,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var W$;(e=>{e.S="small",e.M="medium"})(W$||(W$={}));const X$=n(_l)`
717
717
  flex: 1;
718
718
  min-width: 0;
719
719
  align-items: center;
720
- `,W$=n.div`
720
+ `,G$=n.div`
721
721
  flex-shrink: 1;
722
722
  min-width: 0;
723
- overflow: hidden;
724
- `,G$=n.div`
723
+ /* Clip static rich titles for ellipsis; leave custom titles unclipped so
724
+ dropdowns/popovers (e.g. DataStreamSelect) can escape the header row. */
725
+ overflow: ${({$clip:e})=>e?"hidden":"visible"};
726
+ `,V$=n.div`
725
727
  display: flex;
726
728
  flex-direction: column;
729
+ gap: 12px;
727
730
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
728
- `,V$=n.div`
731
+ `,K$=n.div`
729
732
  display: flex;
730
733
  flex-direction: column;
731
734
  gap: ${({$gap:e})=>e}px;
@@ -736,7 +739,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
736
739
  border-radius: 16px;
737
740
  background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
738
741
  ${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
739
- `,K$=Bt(({id:i,size:n=H$.M,fullHeight:r=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===H$.S?4:16,b="number"==typeof h?h:n===H$.S?12:16,y=a??(o?t(R$,{...o}):null),v=l??(s?t(s$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(V$,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(Il,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(X$,{$gap:f,children:[y?t(W$,{children:y}):null,v,d]}):null,w&&t(k$,{actions:c??[]})]}):null,t(G$,{$fullHeight:r,children:u})]})});K$.displayName="SectionCard";const Y$=n.div`
742
+ `,Y$=Bt(({id:i,size:n=W$.M,fullHeight:r=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===W$.S?4:16,b="number"==typeof h?h:n===W$.S?12:16,y=a??(o?t(L$,{...o}):null),v=l??(s?t(l$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(K$,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(_l,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(X$,{$gap:f,children:[y?t(G$,{$clip:!a,children:y}):null,v,d]}):null,w&&t(I$,{actions:c??[]})]}):null,t(V$,{$fullHeight:r,children:u})]})});Y$.displayName="SectionCard";const J$=n.div`
740
743
  flex: 1;
741
744
  align-self: stretch;
742
745
  display: flex;
@@ -744,8 +747,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
744
747
  gap: 8px;
745
748
  padding: 16px;
746
749
  border-radius: 12px;
747
- background-color: ${({theme:e,$status:t})=>ll(e,t,t===Oi.Unknown?"750":"500")};
748
- `,J$=n.div`
750
+ background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Unknown?"750":"500")};
751
+ `,q$=n.div`
749
752
  display: flex;
750
753
  align-items: center;
751
754
  justify-content: center;
@@ -753,8 +756,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
753
756
  height: fit-content;
754
757
  padding: 8px;
755
758
  border-radius: 12px;
756
- background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?ll(e,t,"800"):ll(e,t,"900")+Xv["015"]};
757
- `,q$=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Xl(i,s),d=[Oi.Default,Oi.Info,Oi.Disabled,Oi.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Y$,{$status:i,children:[t(J$,{$status:i,children:t(l,{size:32,fill:d})}),e(_l,{$gap:2,$justifyContent:"center",children:[t(Va,{size:ja.M,weight:500,color:d,nowrap:!0,children:r}),t(Va,{size:ja.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},Q$=n.div`
759
+ background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?dl(e,t,"800"):dl(e,t,"900")+Xv["015"]};
760
+ `,Q$=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Xl(i,s),d=[Oi.Default,Oi.Info,Oi.Disabled,Oi.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(J$,{$status:i,children:[t(q$,{$status:i,children:t(l,{size:32,fill:d})}),e(Dl,{$gap:2,$justifyContent:"center",children:[t(Va,{size:ja.M,weight:500,color:d,nowrap:!0,children:r}),t(Va,{size:ja.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},Z$=n.div`
758
761
  flex: 0.5;
759
762
  display: flex;
760
763
  flex-direction: column;
@@ -762,7 +765,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
762
765
  padding: 12px;
763
766
  border-radius: 12px;
764
767
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
765
- `,Z$=["-","N/A","undefined","null","undefined/undefined","null/null"],ew=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(Q$,{$bgTint:a,children:[t(tv,{text:n,children:t(Va,{nowrap:!0,size:ja.XXS,color:s.v2.colors.grey[150],children:i})}),t(Il,{$gap:32,children:r.map((n,r)=>e(_l,{$gap:2,children:[!n.isLoading||n.value&&!Z$.includes(n.value)?t(Va,{nowrap:!0,size:n.label?ja.M:ja.L,children:n.value}):t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Va,{nowrap:!0,size:ja.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},tw=n.div`
768
+ `,ew=["-","N/A","undefined","null","undefined/undefined","null/null"],tw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(Z$,{$bgTint:a,children:[t(iv,{text:n,children:t(Va,{nowrap:!0,size:ja.XXS,color:s.v2.colors.grey[150],children:i})}),t(_l,{$gap:32,children:r.map((n,r)=>e(Dl,{$gap:2,children:[!n.isLoading||n.value&&!ew.includes(n.value)?t(Va,{nowrap:!0,size:n.label?ja.M:ja.L,children:n.value}):t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Va,{nowrap:!0,size:ja.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},iw=n.div`
766
769
  padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
767
770
 
768
771
  display: flex;
@@ -775,10 +778,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
775
778
  width: 100%;
776
779
  box-sizing: border-box;
777
780
  `}
778
- cursor: ${({$clickable:e,$disabled:t,$hasSuffix:i,$readOnly:n})=>t?"not-allowed":n?"default":i?"text":e?"pointer":"inherit"};
781
+ cursor: ${({$clickable:e,$disabled:t,$readOnly:i})=>t?"not-allowed":i?e?"pointer":"default":"text"};
779
782
 
780
- border: 1px solid
781
- ${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
783
+ border: 1px solid ${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
782
784
  background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
783
785
  ${({$disabled:e,$error:t,$readOnly:i})=>!e&&!t&&!i&&r`
784
786
  &:hover,
@@ -793,25 +795,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
793
795
  outline-offset: 1px;
794
796
  }
795
797
  `}
796
- `,iw=n.div`
798
+ `,nw=n.div`
797
799
  flex: 1;
798
800
  min-width: 0;
799
801
  display: flex;
800
802
  align-items: center;
801
803
  padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
802
- `,nw=n.span`
804
+ `,rw=n.span`
803
805
  flex-shrink: 0;
804
806
  width: 1px;
805
807
  align-self: stretch;
806
808
  background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
807
- `,rw=n.span`
809
+ `,ow=n.span`
808
810
  flex-shrink: 0;
809
811
  display: flex;
810
812
  align-items: center;
811
813
  justify-content: flex-start;
812
814
  min-width: ${({$small:e})=>e?"unset":"12ch"};
813
815
  padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
814
- `,ow=n.input`
816
+ `,aw=n.input`
815
817
  max-width: ${({$maxWidth:e})=>e||"unset"};
816
818
  width: ${({$width:e})=>e||"unset"};
817
819
 
@@ -849,12 +851,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
849
851
  pointer-events: none;
850
852
  user-select: none;
851
853
  }
852
- `,aw=n.div`
854
+ `,sw=n.div`
853
855
  display: flex;
854
856
  align-items: center;
855
857
  justify-content: center;
856
- cursor: pointer;
857
- `,sw=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,hideFocusOutline:p=!1,errorMessage:h,warnMessage:g,helpMessage:m,type:f=Ti.Text,name:b,value:y,onChange:v,disabled:$,maxWidth:w,width:S,small:x=!1,onClick:C,...E})=>{const T=o(),O=f===Ti.Password,N=f===Ti.Number||f===Ti.Decimal,[A,k]=Ht(!1),[I,_]=Ht(null),D=e=>{e.stopPropagation();const t=e.target.value;if(f===Ti.Number||f===Ti.Decimal){const i=f===Ti.Number?md(t):gd(t),n=null!=E.min?Number(E.min):void 0,r=null!=E.max?Number(E.max):void 0,o=f===Ti.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!o){const e=parseFloat(i);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,_(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}v?.(e)},R=e=>{["Enter"].includes(e.key)||e.stopPropagation()},L=u||!!h||!!I,P=y?T.v2.colors.white[500]:$?T.v2.colors.grey[400]:T.v2.colors.silver[200],U=x?14:18,M=Vt(null),F=hv(M,{deps:[y]}),z=E.readOnly&&F&&null!=y&&""!==y?String(y):"",B=!!c&&!O;return e(_l,{$width:S,$gap:6,children:[t(p$,{label:n,tooltip:a,required:r,badge:s}),t(tw,{$small:x,$disabled:$,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!$,$hasSuffix:B,$hideFocusOutline:p,onClick:$||!C&&!B?void 0:e=>{$||(B&&!E.readOnly&&M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(iw,{$small:x,children:t(tv,{text:z,fullWidth:!0,keepAlive:!0,children:t(ow,{"data-id":b,type:N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:"100%",$small:x,$tabular:N,...E,ref:M})})}),t(nw,{$disabled:$,$error:L}),t(rw,{$small:x,"aria-hidden":"true",children:t(Va,{size:ja.XXXS,color:$?Ha.Disable:Ha.Secondary,nowrap:!0,children:c})})]}):e(tv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(ow,{"data-id":b,type:A||N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:S,$small:x,$tabular:N,...E,ref:M}),O?t(aw,{onClick:()=>k(e=>!e),children:t(A?Ot:Nt,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(h$,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},lw=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Gt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Gt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Gt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Wt(()=>{d(""),u(!0)},[]),b=Wt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Wt(e=>{u(e),e||d("")},[]),v=Wt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(N$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:bv.Bottom,children:t(sw,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},dw=n.button`
858
+ cursor: ${({$notClickable:e})=>e?"default":"pointer"};
859
+ `,lw=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,leftIconClick:d,rightIcon:c,rightIconClick:u,suffix:p,hasError:h,hideFocusOutline:g=!1,errorMessage:m,warnMessage:f,helpMessage:b,type:y=Ti.Text,name:v,value:$,onChange:w,disabled:S,maxWidth:x,width:C,small:E=!1,onClick:T,...O})=>{const N=o(),A=y===Ti.Password,k=y===Ti.Number||y===Ti.Decimal,[I,_]=Ht(!1),[D,R]=Ht(null),L=e=>{e.stopPropagation();const t=e.target.value;if(y===Ti.Number||y===Ti.Decimal){const i=y===Ti.Number?fd(t):md(t),n=null!=O.min?Number(O.min):void 0,r=null!=O.max?Number(O.max):void 0,o=y===Ti.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!o){const e=parseFloat(i);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,R(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}w?.(e)},P=e=>{["Enter"].includes(e.key)||e.stopPropagation()},U=h||!!m||!!D,M=$?N.v2.colors.white[500]:S?N.v2.colors.grey[400]:N.v2.colors.silver[200],F=E?14:18,z=Vt(null),B=gv(z,{deps:[$]}),j=O.readOnly&&B&&null!=$&&""!==$?String($):"",H=!!p&&!A;return e(Dl,{$width:C,$gap:E?2:6,children:[t(h$,{label:n,tooltip:a,required:r,badge:s,small:E}),t(iw,{$small:E,$disabled:S,$readOnly:!!O.readOnly,$error:U,$clickable:!!T&&!S,$hasSuffix:H,$hideFocusOutline:g,onClick:S?void 0:e=>{S||(O.readOnly||z.current?.focus(),T?.(e))},children:H?e(i,{children:[t(nw,{$small:E,children:t(iv,{text:j,fullWidth:!0,keepAlive:!0,children:t(aw,{"data-id":v,type:k?Ti.Text:y,name:v,value:$,onChange:L,onKeyDown:P,disabled:S,$maxWidth:x,$width:"100%",$small:E,$tabular:k,...O,ref:z})})}),t(rw,{$disabled:S,$error:U}),t(ow,{$small:E,"aria-hidden":"true",children:t(Va,{size:ja.XXXS,color:S?Ha.Disable:Ha.Secondary,nowrap:!0,children:p})})]}):e(iv,{text:j,fullWidth:!0,keepAlive:!0,children:[l?t(sw,{$notClickable:!d,onClick:d,children:t(l,{size:F,fill:M})}):null,t(aw,{"data-id":v,type:I||k?Ti.Text:y,name:v,value:$,onChange:L,onKeyDown:P,disabled:S,$maxWidth:x,$width:C,$small:E,$tabular:k,...O,ref:z}),A?t(sw,{onClick:()=>_(e=>!e),children:t(I?Ot:Nt,{size:F,fill:M})}):c?t(sw,{$notClickable:!u,onClick:u,children:t(c,{size:F,fill:M})}):null]})}),t(g$,{errorMessage:D||m,warnMessage:f,helpMessage:b})]})},dw=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Gt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Gt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Gt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Xt(()=>{d(""),u(!0)},[]),b=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(A$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:yv.Bottom,children:t(lw,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},cw=n.button`
858
860
  width: 100%;
859
861
  padding: 0;
860
862
  padding-right: 12px;
@@ -875,7 +877,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
875
877
  cursor: not-allowed;
876
878
  opacity: 0.5;
877
879
  }
878
- `,cw=n.div`
880
+ `,uw=n.div`
879
881
  width: ${({$hasIcon:e})=>e?"56px":"0"};
880
882
  height: 56px;
881
883
  display: flex;
@@ -886,28 +888,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
886
888
  `:r`
887
889
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
888
890
  `}
889
- `,uw=n.div`
891
+ `,pw=n.div`
890
892
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
891
893
  display: flex;
892
894
  justify-content: space-between;
893
895
  align-items: center;
894
896
  gap: 8px;
895
- `,pw=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(dw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(cw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(uw,{$hasIcon:!!n,children:[r?t(Hl,{withGradient:!0,titleSize:ja.S}):t(Va,{variant:Ba.Span,align:"center",children:i}),t(At,{rotate:90,size:24})]})]})},hw=({buttons:e})=>t(_l,{$gap:12,children:e.map((e,i)=>t(pw,{...e},`${e.label}-${i}`))}),gw=[1,.75,.5,.25,0],mw=n.div`
897
+ `,hw=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(cw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(uw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(pw,{$hasIcon:!!n,children:[r?t(Wl,{withGradient:!0,titleSize:ja.S}):t(Va,{variant:Ba.Span,align:"center",children:i}),t(At,{rotate:90,size:24})]})]})},gw=({buttons:e})=>t(Dl,{$gap:12,children:e.map((e,i)=>t(hw,{...e},`${e.label}-${i}`))}),mw=[1,.75,.5,.25,0],fw=n.div`
896
898
  display: flex;
897
899
  flex-direction: column;
898
900
  gap: 32px;
899
901
  width: 100%;
900
902
  min-width: 0;
901
- `,fw=n(Il)`
903
+ `,bw=n(_l)`
902
904
  align-items: center;
903
905
  gap: 4px;
904
- `,bw=n.div`
906
+ `,yw=n.div`
905
907
  display: flex;
906
908
  align-items: flex-start;
907
909
  gap: 4px;
908
910
  width: 100%;
909
911
  min-width: 0;
910
- `,yw=n.div`
912
+ `,vw=n.div`
911
913
  display: flex;
912
914
  flex-direction: column;
913
915
  justify-content: space-between;
@@ -915,19 +917,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
915
917
  flex-shrink: 0;
916
918
  height: ${({$plotHeight:e})=>e}px;
917
919
  padding-bottom: 0;
918
- `,vw=n.div`
920
+ `,$w=n.div`
919
921
  display: flex;
920
922
  flex-direction: column;
921
923
  flex: 1;
922
924
  min-width: 0;
923
- `,$w=n.div`
925
+ `,ww=n.div`
924
926
  position: relative;
925
927
  display: flex;
926
928
  align-items: flex-end;
927
929
  width: 100%;
928
930
  height: ${({$height:e})=>e}px;
929
931
  border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
930
- `,ww=n.div`
932
+ `,Sw=n.div`
931
933
  position: absolute;
932
934
  inset: 0;
933
935
  display: flex;
@@ -935,11 +937,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
935
937
  justify-content: space-between;
936
938
  pointer-events: none;
937
939
  z-index: 0;
938
- `,Sw=n.div`
940
+ `,xw=n.div`
939
941
  width: 100%;
940
942
  height: 0;
941
943
  border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
942
- `,xw=n.div`
944
+ `,Cw=n.div`
943
945
  position: relative;
944
946
  z-index: 1;
945
947
  display: flex;
@@ -947,7 +949,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
947
949
  width: 100%;
948
950
  height: 100%;
949
951
  padding: 0 8px;
950
- `,Cw=n.div`
952
+ `,Ew=n.div`
951
953
  display: flex;
952
954
  flex: 1;
953
955
  align-items: flex-end;
@@ -964,63 +966,63 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
964
966
  height: 100%;
965
967
  max-width: 124px;
966
968
  }
967
- `,Ew=n.div`
969
+ `,Tw=n.div`
968
970
  width: 100%;
969
971
  height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
970
972
  border-radius: 6px 6px 0 0;
971
973
  background-color: ${({$color:e})=>e};
972
974
  min-height: ${({$pct:e})=>e>0?"2px":"0"};
973
- `,Tw=n.div`
975
+ `,Ow=n.div`
974
976
  display: flex;
975
977
  flex-direction: column;
976
978
  gap: 4px;
977
979
  width: 100%;
978
980
  height: ${29}px;
979
981
  padding: 0 8px;
980
- `,Ow=n.div`
982
+ `,Nw=n.div`
981
983
  display: flex;
982
984
  height: 8px;
983
985
  width: 100%;
984
- `,Nw=n.div`
986
+ `,Aw=n.div`
985
987
  display: flex;
986
988
  flex: 1;
987
989
  align-items: center;
988
990
  justify-content: center;
989
991
  min-width: 0;
990
- `,Aw=n.div`
992
+ `,kw=n.div`
991
993
  width: 0;
992
994
  height: 100%;
993
995
  border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
994
- `,kw=n.div`
996
+ `,Iw=n.div`
995
997
  display: flex;
996
998
  width: 100%;
997
999
  height: 17px;
998
- `,Iw=n.div`
1000
+ `,_w=n.div`
999
1001
  display: flex;
1000
1002
  flex: 1;
1001
1003
  align-items: center;
1002
1004
  justify-content: center;
1003
1005
  min-width: 0;
1004
1006
  overflow: hidden;
1005
- `,_w=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Gt(()=>[s.v2.colors.purple[400],s.v2.colors.pink[500],s.v2.colors.red[500],s.v2.colors.orange[500],s.v2.colors.yellow[500],s.v2.colors.green[400],s.v2.colors.mint[500],s.v2.colors.blue[600]],[s]),d=Gt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Gt(()=>gw.map(e=>{return t=d*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[d]);return e(mw,{children:[!!i&&e(fw,{children:[t(Va,{size:ja.S,weight:500,children:i}),!!n&&t(tv,{text:n,withIcon:!0})]}),e(bw,{children:[t(yw,{$plotHeight:a,children:c.map((e,i)=>t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e},gw[i]))}),e(vw,{children:[e($w,{$height:a,children:[t(ww,{children:gw.map(e=>t(Sw,{},e))}),t(xw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Cw,{children:t(tv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Ew,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Tw,{children:[t(Ow,{children:r.map((e,i)=>t(Nw,{children:t(Aw,{})},`tick-${e.label}-${i}`))}),t(kw,{children:r.map((e,i)=>t(Iw,{children:t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Dw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Dw||(Dw={}));const Rw=n.div`
1007
+ `,Dw=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Gt(()=>[s.v2.colors.purple[400],s.v2.colors.pink[500],s.v2.colors.red[500],s.v2.colors.orange[500],s.v2.colors.yellow[500],s.v2.colors.green[400],s.v2.colors.mint[500],s.v2.colors.blue[600]],[s]),d=Gt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Gt(()=>mw.map(e=>{return t=d*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[d]);return e(fw,{children:[!!i&&e(bw,{children:[t(Va,{size:ja.S,weight:500,children:i}),!!n&&t(iv,{text:n,withIcon:!0})]}),e(yw,{children:[t(vw,{$plotHeight:a,children:c.map((e,i)=>t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e},mw[i]))}),e($w,{children:[e(ww,{$height:a,children:[t(Sw,{children:mw.map(e=>t(xw,{},e))}),t(Cw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Ew,{children:t(iv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Tw,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Ow,{children:[t(Nw,{children:r.map((e,i)=>t(Aw,{children:t(kw,{})},`tick-${e.label}-${i}`))}),t(Iw,{children:r.map((e,i)=>t(_w,{children:t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Rw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Rw||(Rw={}));const Lw=n.div`
1006
1008
  display: flex;
1007
1009
  align-items: flex-end;
1008
1010
  justify-content: space-between;
1009
1011
  gap: 24px;
1010
1012
  width: fit-content;
1011
- `,Lw=n.div`
1013
+ `,Pw=n.div`
1012
1014
  position: relative;
1013
1015
  display: flex;
1014
1016
  flex-direction: column;
1015
1017
  align-items: center;
1016
1018
  width: ${({$width:e})=>e??150}px;
1017
1019
  flex-shrink: 0;
1018
- `,Pw=n.svg`
1020
+ `,Uw=n.svg`
1019
1021
  display: block;
1020
1022
  width: 100%;
1021
1023
  height: auto;
1022
1024
  overflow: visible;
1023
- `,Uw=n(_l)`
1025
+ `,Mw=n(Dl)`
1024
1026
  position: absolute;
1025
1027
  left: 0;
1026
1028
  right: 0;
@@ -1028,14 +1030,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1028
1030
  align-items: center;
1029
1031
  gap: 2px;
1030
1032
  pointer-events: none;
1031
- `,Mw=n.span`
1033
+ `,Fw=n.span`
1032
1034
  display: inline-block;
1033
1035
  flex-shrink: 0;
1034
1036
  width: 9px;
1035
1037
  height: 9px;
1036
1038
  border-radius: 50%;
1037
1039
  background-color: ${({$color:e})=>e};
1038
- `,Fw=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},zw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},Bw=(e,t,i,n,r)=>{const o=zw(e,t,i,n),a=zw(e,t,i,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${o.x} ${o.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},jw=({variant:i=Dw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Fw(a),{number:g}=Fw(s),{number:m,prefix:f,suffix:b}=Fw(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,w=v>0?Bw(60,60,55,180,$):null,S=v<1?Bw(60,60,55,$,0):null,x=zw(60,60,55,180),C=zw(60,60,55,0),E=c??(i===Dw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Dw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,k=i===Dw.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",_="primary"===O?A(m):"secondary"===O?A(k):"",D=()=>N("primary"),R=()=>N("secondary"),L=()=>N(null);var P;return e(Rw,{children:[e(Lw,{$width:n,children:[t(tv,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(Pw,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[w&&t("path",{d:w,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:R,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:E,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(Uw,{children:[t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Va,{size:ja.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(_l,{$gap:7,children:[e(Il,{$gap:8,$alignItems:"center",children:[t(Mw,{$color:E}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(Il,{$gap:8,$alignItems:"center",children:[t(Mw,{$color:T}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Hw=n(Il)`
1040
+ `,zw=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},Bw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},jw=(e,t,i,n,r)=>{const o=Bw(e,t,i,n),a=Bw(e,t,i,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${o.x} ${o.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},Hw=({variant:i=Rw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=zw(a),{number:g}=zw(s),{number:m,prefix:f,suffix:b}=zw(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,w=v>0?jw(60,60,55,180,$):null,S=v<1?jw(60,60,55,$,0):null,x=Bw(60,60,55,180),C=Bw(60,60,55,0),E=c??(i===Rw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Rw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,k=i===Rw.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",_="primary"===O?A(m):"secondary"===O?A(k):"",D=()=>N("primary"),R=()=>N("secondary"),L=()=>N(null);var P;return e(Lw,{children:[e(Pw,{$width:n,children:[t(iv,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(Uw,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[w&&t("path",{d:w,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:R,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:E,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(Mw,{children:[t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Va,{size:ja.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Dl,{$gap:7,children:[e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:E}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:T}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Ww=n(_l)`
1039
1041
  width: 100%;
1040
1042
  padding: 8px 12px;
1041
1043
  border-radius: 6px;
@@ -1050,20 +1052,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1050
1052
  display: flex;
1051
1053
  align-items: center;
1052
1054
  gap: 4px;
1053
- `,Ww=n.pre`
1055
+ `,Gw=n.pre`
1054
1056
  flex: 1;
1055
1057
  margin: 0;
1056
1058
  padding: 0;
1057
1059
  font-size: 12px;
1058
1060
  color: #5ffb98; // TODO: add to theme
1059
1061
  overflow-x: auto;
1060
- `,Gw=n.span`
1062
+ `,Vw=n.span`
1061
1063
  flex-shrink: 0;
1062
1064
  font-size: 14px;
1063
1065
  color: #5ffb98; // TODO: add to theme
1064
- `,Vw=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=av({onDone:a}),l=Vt(null),[d,c]=Ht(!1);return Xt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),e(_l,{$gap:4,children:[n&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:n}),e(Hw,{$bgTint:i,children:[e(Xw,{$hideCopy:o,children:[t(Ww,{ref:l,children:r}),d&&t(Gw,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Kw=n(Il)`
1066
+ `,Kw=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=sv({onDone:a}),l=Vt(null),[d,c]=Ht(!1);return Wt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),e(Dl,{$gap:4,children:[n&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:n}),e(Ww,{$bgTint:i,children:[e(Xw,{$hideCopy:o,children:[t(Gw,{ref:l,children:r}),d&&t(Vw,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Yw=n(_l)`
1065
1067
  gap: 0;
1066
- `,Yw=n.button`
1068
+ `,Jw=n.button`
1067
1069
  padding: 4px 8px;
1068
1070
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
1069
1071
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -1075,20 +1077,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1075
1077
  &:hover {
1076
1078
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1077
1079
  }
1078
- `,Jw=({isPrettyMode:i,setIsPrettyMode:n})=>e(Kw,{children:[t(Yw,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(Yw,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),qw=n.table`
1080
+ `,qw=({isPrettyMode:i,setIsPrettyMode:n})=>e(Yw,{children:[t(Jw,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(Jw,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),Qw=n.table`
1079
1081
  border-collapse: collapse;
1080
1082
  font-family: ${({theme:e})=>e.font_family.primary};
1081
- `,Qw=n.tbody``,Zw=n.tr`
1083
+ `,Zw=n.tbody``,eS=n.tr`
1082
1084
  td:first-child {
1083
1085
  padding-left: 0 !important;
1084
1086
  }
1085
1087
  td:last-child {
1086
1088
  padding-right: 0 !important;
1087
1089
  }
1088
- `,eS=n.td`
1090
+ `,tS=n.td`
1089
1091
  vertical-align: top;
1090
1092
  padding: 4px 6px;
1091
- `,tS=n.span`
1093
+ `,iS=n.span`
1092
1094
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
1093
1095
  overflow-wrap: break-word;
1094
1096
  word-break: break-word;
@@ -1096,7 +1098,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1096
1098
  /* Fallback for older browsers */
1097
1099
  -ms-word-break: break-all;
1098
1100
  font-size: 12px;
1099
- `,iS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ti[n]:s?ti.palenight:ti.vsLight;let d="";if("json"===e){const e=ls(i,{}),t=Pd(e);d=Ud(r?Ns(t):t)}else d=i;return a&&"json"===e?t(nS,{darkMode:s,str:d}):t(ei,{theme:l||(s?ti.palenight:ti.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:i,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(tS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},nS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(Zw,{...i,children:[t(eS,{}),t(eS,{})]}));return t(jt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(ei,{theme:i?ti.palenight:ti.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(qw,{children:t(Qw,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),d=i({line:l});return 1===l.length&&"property"===l[0].types[0]?e(jt,{children:[a(2,s),e(Zw,{...d,children:[t(eS,{children:t(Va,{nowrap:!0,children:l[0].content})}),t(eS,{})]})]},`line-${s}`):2===l.length?t(Zw,{...d,children:l.map((i,o)=>{const{text:a,components:l}=((e,i)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,o]=e.split("=");switch(r){case"tooltip":return t(tv,{withIcon:!0,text:o},`${r}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${r}-${o}-${n}`);let e=Xl(o,i);return e||(e=Xl(Oi.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(eS,{children:e(Il,{children:[t(Il,{children:l}),t(tS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},rS=n.div`
1101
+ `,nS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ti[n]:s?ti.palenight:ti.vsLight;let d="";if("json"===e){const e=ls(i,{}),t=Ud(e);d=Md(r?As(t):t)}else d=i;return a&&"json"===e?t(rS,{darkMode:s,str:d}):t(ei,{theme:l||(s?ti.palenight:ti.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:i,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(iS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},rS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(eS,{...i,children:[t(tS,{}),t(tS,{})]}));return t(jt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(ei,{theme:i?ti.palenight:ti.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(Qw,{children:t(Zw,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),d=i({line:l});return 1===l.length&&"property"===l[0].types[0]?e(jt,{children:[a(2,s),e(eS,{...d,children:[t(tS,{children:t(Va,{nowrap:!0,children:l[0].content})}),t(tS,{})]})]},`line-${s}`):2===l.length?t(eS,{...d,children:l.map((i,o)=>{const{text:a,components:l}=((e,i)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,o]=e.split("=");switch(r){case"tooltip":return t(iv,{withIcon:!0,text:o},`${r}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${r}-${o}-${n}`);let e=Xl(o,i);return e||(e=Xl(Oi.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(tS,{children:e(_l,{children:[t(_l,{children:l}),t(iS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},oS=n.div`
1100
1102
  display: flex;
1101
1103
  align-items: ${({$slim:e})=>e?"flex-start":"center"};
1102
1104
  gap: 8px;
@@ -1112,7 +1114,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1112
1114
  background-color: ${t?"transparent":i};
1113
1115
  }
1114
1116
  `}
1115
- `,oS=n.div`
1117
+ `,aS=n.div`
1116
1118
  display: flex;
1117
1119
  align-items: center;
1118
1120
  justify-content: center;
@@ -1131,54 +1133,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1131
1133
  transform: scale(1.2);
1132
1134
  }
1133
1135
  `}
1134
- `,aS=n(_l)`
1136
+ `,sS=n(Dl)`
1135
1137
  flex: 1;
1136
1138
  align-self: ${({$slim:e})=>e?"flex-start":"center"};
1137
1139
  min-width: 0;
1138
- `,sS=n(_l)`
1140
+ `,lS=n(Dl)`
1139
1141
  align-self: stretch;
1140
1142
  flex-shrink: 0;
1141
- `,lS=n.div`
1143
+ `,dS=n.div`
1142
1144
  display: flex;
1143
1145
  align-items: center;
1144
1146
  justify-content: center;
1145
1147
  flex-shrink: 0;
1146
1148
  width: 24px;
1147
1149
  height: 24px;
1148
- `,dS=({status:i,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:b=!1})=>{const y=o(),v=Xl(i,y),$=p?u?Ct:Et:void 0,w=i===Oi.Unknown,S=i===Oi.Disabled,x=i===Oi.Loading||d,C=[Oi.Error,Oi.Warning,Oi.Success].includes(i),E=ll(y,i,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:C?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?E:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":ll(y,i,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:E,k=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:ll(y,i,"600");return e(rS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(oS,{$backgroundColor:N,$slim:b,children:x?t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(aS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(Il,{$gap:10,$alignItems:"center",children:[t(Va,{size:b?ja.XS:ja.S,weight:500,color:O,children:n}),l&&t(Rv,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:ja.XXXS})]}),r&&t(Va,{size:ja.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(sS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(Il,{$gap:8,children:c.map(e=>t(ov,{...e,variant:iv.Secondary,size:nv.S},e["data-id"]??e.label))}),s]}),$&&t(lS,{children:t($,{size:24,fill:T})})]})},cS=n.div`
1150
+ `,cS=({status:i,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:b=!1})=>{const y=o(),v=Xl(i,y),$=p?u?Ct:Et:void 0,w=i===Oi.Unknown,S=i===Oi.Disabled,x=i===Oi.Loading||d,C=[Oi.Error,Oi.Warning,Oi.Success].includes(i),E=dl(y,i,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:C?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?E:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":dl(y,i,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:E,k=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:dl(y,i,"600");return e(oS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(aS,{$backgroundColor:N,$slim:b,children:x?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(sS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(_l,{$gap:10,$alignItems:"center",children:[t(Va,{size:b?ja.XS:ja.S,weight:500,color:O,children:n}),l&&t(Lv,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:ja.XXXS})]}),r&&t(Va,{size:ja.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(lS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(_l,{$gap:8,children:c.map(e=>t(av,{...e,variant:nv.Secondary,size:rv.S},e["data-id"]??e.label))}),s]}),$&&t(dS,{children:t($,{size:24,fill:T})})]})},uS=n.div`
1149
1151
  display: flex;
1150
1152
  flex-direction: column;
1151
1153
  width: 100%;
1152
1154
  border-radius: 12px;
1153
1155
  overflow: hidden;
1154
- `,uS=n.div`
1156
+ `,pS=n.div`
1155
1157
  display: flex;
1156
1158
  flex-direction: column;
1157
1159
  gap: 8px;
1158
1160
  padding: 8px 12px 16px 12px;
1159
1161
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1160
- `,pS=n.div`
1162
+ `,hS=n.div`
1161
1163
  display: flex;
1162
1164
  align-items: center;
1163
1165
  gap: 8px;
1164
- `,hS=n.div`
1166
+ `,gS=n.div`
1165
1167
  display: flex;
1166
1168
  align-items: center;
1167
1169
  justify-content: center;
1168
1170
  flex-shrink: 0;
1169
1171
  width: 18px;
1170
1172
  height: 18px;
1171
- `,gS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Ht(!1),d=Wt(()=>l(e=>!e),[]),c=Gt(()=>cd(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Gt(()=>Rs(c),[c]);Xt(()=>{l(p||g||m)},[p,g,m]);const b=Gt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Gt(()=>p?Oi.Error:g?Oi.Warning:m?Oi.Info:Oi.Success,[p,g,m]),v=Gt(()=>n||(1===c.length?za(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:i,loading:n})=>e?"Something Failed":t||i?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[n,c,p,g,m,b]),$=Gt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Gt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(cS,{children:[t(dS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(uS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Oi.Loading,d=i===Oi.Disabled?Oi.Info:i,c=l?null:Xl(d,a),u=i===Oi.Error?ll(a,Oi.Error,"500"):i===Oi.Warning?ll(a,Oi.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(pS,{children:[t(hS,{children:l||!c?t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Va,{size:ja.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},mS=n.div`
1173
+ `,mS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Ht(!1),d=Xt(()=>l(e=>!e),[]),c=Gt(()=>ud(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Gt(()=>Ls(c),[c]);Wt(()=>{l(p||g||m)},[p,g,m]);const b=Gt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Gt(()=>p?Oi.Error:g?Oi.Warning:m?Oi.Info:Oi.Success,[p,g,m]),v=Gt(()=>n||(1===c.length?za(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:i,loading:n})=>e?"Something Failed":t||i?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[n,c,p,g,m,b]),$=Gt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Gt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(uS,{children:[t(cS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(pS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Oi.Loading,d=i===Oi.Disabled?Oi.Info:i,c=l?null:Xl(d,a),u=i===Oi.Error?dl(a,Oi.Error,"500"):i===Oi.Warning?dl(a,Oi.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(hS,{children:[t(gS,{children:l||!c?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Va,{size:ja.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},fS=n.div`
1172
1174
  width: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Vertical?`${t}px`:i||"100%"};
1173
1175
  height: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Horizontal?`${t}px`:i||"100%"};
1174
1176
  margin: ${({$orientation:e,$margin:t})=>t||(e===mi.Horizontal?"8px 0":"0 8px")};
1175
- background-color: ${({$type:e,theme:t})=>e?ll(t,e):t.v2.colors.silver[500]};
1177
+ background-color: ${({$type:e,theme:t})=>e?dl(t,e):t.v2.colors.silver[500]};
1176
1178
  opacity: ${({$opacity:e})=>e||1};
1177
- `,fS=({orientation:e=mi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(mS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var bS,yS,vS;(e=>{e.Default="default",e.SuccessError="successError"})(bS||(bS={})),(e=>{e.S="small",e.L="large"})(yS||(yS={})),(e=>{e.Left="left",e.Right="right"})(vS||(vS={}));const $S=n.div`
1179
+ `,bS=({orientation:e=mi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(fS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var yS,vS,$S;(e=>{e.Default="default",e.SuccessError="successError"})(yS||(yS={})),(e=>{e.S="small",e.L="large"})(vS||(vS={})),(e=>{e.Left="left",e.Right="right"})($S||($S={}));const wS=n.div`
1178
1180
  display: flex;
1179
1181
  align-items: center;
1180
1182
  gap: ${({$gap:e})=>e}px;
1181
- `,wS=n.div`
1183
+ `,SS=n.div`
1182
1184
  position: relative;
1183
1185
  display: flex;
1184
1186
  align-items: center;
@@ -1189,11 +1191,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1189
1191
  height: ${({$size:e})=>e}px;
1190
1192
  padding: ${4}px;
1191
1193
  border-radius: ${({$size:e})=>2*e}px;
1192
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case bS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case bS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
1194
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case yS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case yS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
1193
1195
 
1194
1196
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
1195
1197
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1196
- `,SS=n.div`
1198
+ `,xS=n.div`
1197
1199
  position: absolute;
1198
1200
  top: 50%;
1199
1201
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -1203,11 +1205,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1203
1205
  border-radius: 100%;
1204
1206
  background-color: ${({$color:e})=>e};
1205
1207
  box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
1206
- `,xS=({variant:n=bS.Default,size:r=yS.L,name:a,label:s,labelAlign:l=vS.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=It,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=r===yS.S?10:16,T=d||x.v2.colors.silver[200],O=r===yS.S?ja.XXXS:ja.XS,N=r===yS.S?8:12;return e(_l,{$gap:4,children:[e(Il,{$justifyContent:"space-between",children:[e($S,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===vS.Left&&t(Va,{color:T,size:O,nowrap:!0,children:s}),e(wS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(SS,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(b,{size:E,fill:C})]})]}),s&&l===vS.Right&&t(Va,{color:T,size:O,nowrap:!0,children:s})]}),t(p$,{tooltip:c,badge:u})]}),t(h$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},CS=n.div`
1208
+ `,CS=({variant:n=yS.Default,size:r=vS.L,name:a,label:s,labelAlign:l=$S.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=It,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=r===vS.S?10:16,T=d||x.v2.colors.silver[200],O=r===vS.S?ja.XXXS:ja.XS,N=r===vS.S?8:12;return e(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(wS,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===$S.Left&&t(Va,{color:T,size:O,nowrap:!0,children:s}),e(SS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(xS,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(b,{size:E,fill:C})]})]}),s&&l===$S.Right&&t(Va,{color:T,size:O,nowrap:!0,children:s})]}),t(h$,{tooltip:c,badge:u})]}),t(g$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},ES=n.div`
1207
1209
  display: flex;
1208
1210
  flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
1209
1211
  gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
1210
- `,ES=({direction:i=mi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===yS.S?ja.XS:ja.S;return e(CS,{$direction:i,children:[n&&t(Va,{size:d,children:n}),a.map(e=>t(xS,{...e,labelAlign:vS.Right,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return i?t[i]=n:a.forEach(e=>t[e.id]=n),t});var i,n},disabled:o,size:r},`${n}-toggle-${e.id}`))]})};var TS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(TS||(TS={}));const OS=n.div`
1212
+ `,TS=({direction:i=mi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===vS.S?ja.XS:ja.S;return e(ES,{$direction:i,children:[n&&t(Va,{size:d,children:n}),a.map(e=>t(CS,{...e,labelAlign:$S.Right,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return i?t[i]=n:a.forEach(e=>t[e.id]=n),t});var i,n},disabled:o,size:r},`${n}-toggle-${e.id}`))]})};var OS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(OS||(OS={}));const NS=n.div`
1211
1213
  width: ${({$size:e})=>1.5*e}px;
1212
1214
  height: ${({$size:e})=>1.5*e}px;
1213
1215
  display: flex;
@@ -1218,13 +1220,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1218
1220
  &:hover {
1219
1221
  background: ${({theme:e})=>e.v2.colors.silver[900]};
1220
1222
  }
1221
- `,NS=({"data-id":e,icon:i,size:n=TS.S,onClick:r,disabled:o})=>t(OS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),AS=n.div`
1223
+ `,AS=({"data-id":e,icon:i,size:n=OS.S,onClick:r,disabled:o})=>t(NS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),kS=n.div`
1222
1224
  display: flex;
1223
1225
  align-items: center;
1224
1226
  justify-content: space-between;
1225
1227
  width: 100%;
1226
1228
  overflow: hidden;
1227
- `,kS=n.div`
1229
+ `,IS=n.div`
1228
1230
  display: flex;
1229
1231
  align-items: center;
1230
1232
  gap: 16px;
@@ -1232,7 +1234,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1232
1234
  min-width: 0;
1233
1235
  flex: 1;
1234
1236
  overflow: hidden;
1235
- `,IS=n.div`
1237
+ `,_S=n.div`
1236
1238
  display: flex;
1237
1239
  align-items: center;
1238
1240
  justify-content: center;
@@ -1241,23 +1243,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1241
1243
  height: 36px;
1242
1244
  border-radius: 8px;
1243
1245
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1244
- `,_S=n.img`
1246
+ `,DS=n.img`
1245
1247
  width: 24px;
1246
1248
  height: 24px;
1247
- `,DS=n.div`
1249
+ `,RS=n.div`
1248
1250
  display: flex;
1249
1251
  align-items: center;
1250
1252
  gap: 16px;
1251
1253
  flex-shrink: 0;
1252
- `,RS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(AS,{children:[e(kS,{children:[i?t(IS,{children:t(i,{size:24})}):n?t(IS,{children:t(_S,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(_l,{$gap:6,children:[(r||o?.length)&&e(Il,{$gap:16,children:[r&&t(Va,{size:ja.S,weight:500,children:r}),o?.length&&t(Il,{$gap:4,children:o?.map((e,i)=>t(Rv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(Il,{$gap:16,children:[a&&t(Va,{color:Ha.Secondary,size:ja.XXS,children:a}),s?.length&&t(Il,{$gap:4,children:s?.map((e,i)=>t(_v,{...e},`${e.label}-${i}`))})]})]})]}),e(DS,{children:[l&&t(xS,{...l}),d?.length?t(N$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(NS,{"data-id":"drawer-close",icon:It,size:TS.M,onClick:c,disabled:u})]})]}),LS=n.div`
1254
+ `,LS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(kS,{children:[e(IS,{children:[i?t(_S,{children:t(i,{size:24})}):n?t(_S,{children:t(DS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Dl,{$gap:6,children:[(r||o?.length)&&e(_l,{$gap:16,children:[r&&t(Va,{size:ja.S,weight:500,children:r}),o?.length&&t(_l,{$gap:4,children:o?.map((e,i)=>t(Lv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(_l,{$gap:16,children:[a&&t(Va,{color:Ha.Secondary,size:ja.XXS,children:a}),s?.length&&t(_l,{$gap:4,children:s?.map((e,i)=>t(Dv,{...e},`${e.label}-${i}`))})]})]})]}),e(RS,{children:[l&&t(CS,{...l}),d?.length?t(A$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(AS,{"data-id":"drawer-close",icon:It,size:OS.M,onClick:c,disabled:u})]})]}),PS=n.div`
1253
1255
  position: relative;
1254
1256
  &.animated {
1255
1257
  overflow: hidden;
1256
1258
  padding-bottom: 1px;
1257
1259
  border-radius: 8px;
1258
- animation: ${({$isLeaving:e})=>e?Gv.out.bottom:Gv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1260
+ animation: ${({$isLeaving:e})=>e?Vv.out.bottom:Vv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1259
1261
  }
1260
- `,PS=n.div`
1262
+ `,US=n.div`
1261
1263
  position: absolute;
1262
1264
  bottom: -1px;
1263
1265
  left: 0;
@@ -1265,9 +1267,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1265
1267
  width: 100%;
1266
1268
  height: 100%;
1267
1269
  border-radius: 8px;
1268
- background-color: ${({theme:e,$status:t})=>ll(e,t,t===Oi.Default?"300":t===Oi.Info?"400":"500")};
1269
- animation: ${Vv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1270
- `,US=n.div`
1270
+ background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Default?"300":t===Oi.Info?"400":"500")};
1271
+ animation: ${Kv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1272
+ `,MS=n.div`
1271
1273
  display: flex;
1272
1274
  align-items: center;
1273
1275
  gap: 10px;
@@ -1276,37 +1278,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1276
1278
  `}
1277
1279
  padding: 8px 12px 8px 8px;
1278
1280
  border-radius: 8px;
1279
- background-color: ${({theme:e,$status:t})=>ll(e,t,[Oi.Info,Oi.Warning].includes(t)?"1000":"900")};
1280
- `,MS=n.div`
1281
+ background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info,Oi.Warning].includes(t)?"1000":"900")};
1282
+ `,FS=n.div`
1281
1283
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
1282
1284
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
1283
1285
  display: flex;
1284
1286
  align-items: center;
1285
1287
  justify-content: center;
1286
1288
  border-radius: 6px;
1287
- background-color: ${({theme:e,$status:t})=>ll(e,t,[Oi.Info].includes(t)?"900":"800")};
1288
- `,FS=n.div`
1289
+ background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info].includes(t)?"900":"800")};
1290
+ `,zS=n.div`
1289
1291
  margin-left: auto;
1290
1292
  display: flex;
1291
1293
  align-items: center;
1292
1294
  gap: 4px;
1293
- `,zS=n.div`
1295
+ `,BS=n.div`
1294
1296
  margin-right: 8px;
1295
1297
  cursor: pointer;
1296
1298
  &:hover {
1297
1299
  transform: scale(1.2);
1298
1300
  }
1299
- `,BS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Xl(i,p),g=ll(p,i,i===Oi.Default?"300":i===Oi.Info?"400":"500"),[m,f]=Ht(!1),b=Vt(null),y=Vt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Xt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(LS,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(b.current&&clearTimeout(b.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;b.current=setTimeout(()=>w({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(US,{$status:i,$fullWidth:a,children:[t("div",{children:t(MS,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Va,{color:g,size:ja.XXXS,weight:400,children:n}),(r||d)&&e(FS,{children:[r&&t(zS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Va,{color:g,size:ja.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(NS,{"data-id":"note-close",icon:It,size:TS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(PS,{ref:y,$status:i,$duration:c})]})},jS=n.div`
1301
+ `,jS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Xl(i,p),g=dl(p,i,i===Oi.Default?"300":i===Oi.Info?"400":"500"),[m,f]=Ht(!1),b=Vt(null),y=Vt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Wt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(PS,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(b.current&&clearTimeout(b.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;b.current=setTimeout(()=>w({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(MS,{$status:i,$fullWidth:a,children:[t("div",{children:t(FS,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Va,{color:g,size:ja.XXXS,weight:400,children:n}),(r||d)&&e(zS,{children:[r&&t(BS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Va,{color:g,size:ja.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(AS,{"data-id":"note-close",icon:It,size:OS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(US,{ref:y,$status:i,$duration:c})]})},HS=n.div`
1300
1302
  display: flex;
1301
1303
  align-items: center;
1302
1304
  gap: 8px;
1303
1305
  padding: 4px 12px;
1304
- `,HS=n.div`
1306
+ `,WS=n.div`
1305
1307
  flex: 1;
1306
1308
  `,XS=n.div`
1307
1309
  min-width: 150px;
1308
1310
  width: fit-content;
1309
- `,WS=({note:i,actions:n,children:r})=>r?t(jS,{children:r}):e(jS,{children:[i&&t(BS,{...i}),t(HS,{}),n?.map((e,i)=>t(XS,{children:t(ov,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),GS=n.div`
1311
+ `,GS=({note:i,actions:n,children:r})=>r?t(HS,{children:r}):e(HS,{children:[i&&t(jS,{...i}),t(WS,{}),n?.map((e,i)=>t(XS,{children:t(av,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),VS=n.div`
1310
1312
  position: fixed;
1311
1313
  top: 0;
1312
1314
  bottom: 0;
@@ -1326,16 +1328,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1326
1328
  overflow: hidden;
1327
1329
 
1328
1330
  ${({$disableAnimation:e,$position:t})=>!e&&r`
1329
- animation-name: ${Gv.in[t]};
1331
+ animation-name: ${Vv.in[t]};
1330
1332
  `}
1331
- `,VS=n.div`
1333
+ `,KS=n.div`
1332
1334
  display: flex;
1333
1335
  flex-direction: column;
1334
1336
  gap: 12px;
1335
1337
 
1336
1338
  height: calc(100% - ${56}px);
1337
1339
  overflow-y: auto;
1338
- `,KS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Hy(n),n?Zt(e(i,{children:[!r&&t(Ll,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(GS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(RS,{...d}),t(VS,{children:u}),c&&t(WS,{...c})]})]}),document.body):null),YS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Gt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Gt(()=>s.map(e=>e.label).join(", "),[s]);return t(N$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:fv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(sw,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:i,readOnly:!0,tabIndex:-1})})},JS=({error:i})=>{const n=o(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:i?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:i?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(ov,{variant:iv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},qS=({children:e})=>t(ii,{FallbackComponent:({error:e,...i})=>t(Hv,{children:t(JS,{...i,error:e})}),children:e}),QS=n.header`
1340
+ `,YS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Wy(n),n?Zt(e(i,{children:[!r&&t(Pl,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(VS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(LS,{...d}),t(KS,{children:u}),c&&t(GS,{...c})]})]}),document.body):null),JS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Gt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Gt(()=>s.map(e=>e.label).join(", "),[s]);return t(A$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:bv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(lw,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:i,readOnly:!0,tabIndex:-1})})},qS=({error:i})=>{const n=o(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:i?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:i?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(av,{variant:nv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},QS=({children:e})=>t(ii,{FallbackComponent:({error:e,...i})=>t(Wv,{children:t(qS,{...i,error:e})}),children:e}),ZS=n.header`
1339
1341
  position: relative;
1340
1342
  width: 100%;
1341
1343
  padding: 12px 18px;
@@ -1343,12 +1345,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1343
1345
  display: flex;
1344
1346
  align-items: center;
1345
1347
  justify-content: space-between;
1346
- `,ZS=n(Il)`
1348
+ `,ex=n(_l)`
1347
1349
  position: absolute;
1348
1350
  left: 50%;
1349
1351
  transform: translateX(-50%);
1350
1352
  gap: 16px;
1351
- `,ex=({left:i=[],center:n=[],right:r=[]})=>e(QS,{children:[t(Il,{$gap:16,children:i}),t(ZS,{children:n}),t(Il,{$gap:16,children:r})]}),tx=n.div`
1353
+ `,tx=({left:i=[],center:n=[],right:r=[]})=>e(ZS,{children:[t(_l,{$gap:16,children:i}),t(ex,{children:n}),t(_l,{$gap:16,children:r})]}),ix=n.div`
1352
1354
  display: flex;
1353
1355
  align-items: center;
1354
1356
  gap: 4px;
@@ -1364,7 +1366,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1364
1366
  left: ${({$left:e})=>e||"unset"};
1365
1367
  top: 50%;
1366
1368
  transform: translateY(-50%);
1367
- `,ix=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(tx,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(tv,{text:i||"",children:t(ov,{...n,variant:n.variant||iv.Secondary,size:nv.S})},n.id)})}):null,nx=n.div`
1369
+ `,nx=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(ix,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(iv,{text:i||"",children:t(av,{...n,variant:n.variant||nv.Secondary,size:rv.S})},n.id)})}):null,rx=n.div`
1368
1370
  display: flex;
1369
1371
  align-items: center;
1370
1372
  justify-content: center;
@@ -1372,8 +1374,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1372
1374
  height: ${({$size:e,$padding:t})=>e+t}px;
1373
1375
  aspect-ratio: 1 / 1;
1374
1376
  border-radius: 8px;
1375
- background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?ll(e,i,i===Oi.Warning?"1000":"900"):e.v2.colors.silver[800]};
1376
- `,rx=({icons:i,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=tl(c,d.v2.text.size);if(i&&i.length>1){const n=i.slice(0,3),r=i.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(nx,{$size:s,$padding:l,$status:a,children:e(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Va,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(nx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ox=30,ax=n.div`
1377
+ background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?dl(e,i,i===Oi.Warning?"1000":"900"):e.v2.colors.silver[800]};
1378
+ `,ox=({icons:i,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=il(c,d.v2.text.size);if(i&&i.length>1){const n=i.slice(0,3),r=i.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(rx,{$size:s,$padding:l,$status:a,children:e(Dl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Va,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(rx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ax=30,sx=n.div`
1377
1379
  display: flex;
1378
1380
  align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
1379
1381
  gap: 8px;
@@ -1384,40 +1386,40 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1384
1386
  &:hover {
1385
1387
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1386
1388
  }
1387
- `,sx=n(Va)`
1388
- flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
1389
1389
  `,lx=n(Va)`
1390
+ flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
1391
+ `,dx=n(Va)`
1390
1392
  flex: 1 1 auto;
1391
1393
  min-width: 0;
1392
- `,dx=n(Il)`
1394
+ `,cx=n(_l)`
1393
1395
  flex: 1 1 auto;
1394
1396
  justify-content: flex-end;
1395
1397
  min-width: 0;
1396
- `,cx=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(ax,{$withHealthBadge:s,children:[t(sx,{size:ja.XXS,color:Ha.Secondary,$withHealthBadge:s,children:i}),n?t(lx,{size:ja.XXS,color:Ha.Primary,align:"right",children:n}):null,(r||s)&&e(dx,{children:[r?t(Rv,{status:Oi.Info,label:es.STANDARD,textSize:ja.XXXS,invertColors:!0}):null,s?e(Il,{$gap:4,children:[a?t(lx,{size:ja.XXXS,color:Ha.Error,align:"right",children:a}):null,t(Rv,{status:o?Oi.Success:Oi.Error,label:o?es.HEALTHY:es.NOT_HEALTHY,leftIcon:ee,textSize:ja.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},ux=n.div`
1398
+ `,ux=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(sx,{$withHealthBadge:s,children:[t(lx,{size:ja.XXS,color:Ha.Secondary,$withHealthBadge:s,children:i}),n?t(dx,{size:ja.XXS,color:Ha.Primary,align:"right",children:n}):null,(r||s)&&e(cx,{children:[r?t(Lv,{status:Oi.Info,label:es.STANDARD,textSize:ja.XXXS,invertColors:!0}):null,s?e(_l,{$gap:4,children:[a?t(dx,{size:ja.XXXS,color:Ha.Error,align:"right",children:a}):null,t(Lv,{status:o?Oi.Success:Oi.Error,label:o?es.HEALTHY:es.NOT_HEALTHY,leftIcon:ee,textSize:ja.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},px=n.div`
1397
1399
  width: 100%;
1398
1400
  border-radius: 8px;
1399
1401
  padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
1400
1402
  background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
1401
- `,px=({values:i,setValues:n,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,autoFocusNewRows:m=!0,plain:f})=>{const b=o(),y=i.length<=1,v=g,$=g||y&&v,w=i.length?i:[""];return t(ux,{$plain:f,children:e(_l,{"data-id":r,$gap:6,children:[t(p$,{label:a,tooltip:s,required:d,badge:l}),t(_l,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(Il,{$gap:8,$alignItems:"center",children:[t(sw,{width:"100%",autoFocus:m&&nd(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...i||[]];r[t]=e,n(r)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(ov,{leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:v,onClick:()=>(()=>{const e=i.length?$s(i):[$s("")];e.push(""),n(e)})()}),t(ov,{leftIcon:$?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(h$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var hx;(e=>{e.S="small",e.L="large"})(hx||(hx={}));const gx=n.div`
1403
+ `,hx=({values:i,setValues:n,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,autoFocusNewRows:m=!0,plain:f})=>{const b=o(),y=i.length<=1,v=g,$=g||y&&v,w=i.length?i:[""];return t(px,{$plain:f,children:e(Dl,{"data-id":r,$gap:6,children:[t(h$,{label:a,tooltip:s,required:d,badge:l}),t(Dl,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(_l,{$gap:8,$alignItems:"center",children:[t(lw,{width:"100%",autoFocus:m&&rd(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...i||[]];r[t]=e,n(r)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(av,{leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:v,onClick:()=>(()=>{const e=i.length?$s(i):[$s("")];e.push(""),n(e)})()}),t(av,{leftIcon:$?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(g$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var gx;(e=>{e.S="small",e.L="large"})(gx||(gx={}));const mx=n.div`
1402
1404
  width: fit-content;
1403
1405
  display: flex;
1404
1406
  align-items: center;
1405
1407
  gap: 8px;
1406
1408
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1407
- `,mx=n.div`
1408
- width: ${({$size:e})=>e===hx.S?"16px":"20px"};
1409
- height: ${({$size:e})=>e===hx.S?"16px":"20px"};
1409
+ `,fx=n.div`
1410
+ width: ${({$size:e})=>e===gx.S?"16px":"20px"};
1411
+ height: ${({$size:e})=>e===gx.S?"16px":"20px"};
1410
1412
  display: flex;
1411
1413
  align-items: center;
1412
1414
  justify-content: center;
1413
1415
  border-radius: 100%;
1414
1416
  border: 1px solid ${({$borderColor:e})=>e};
1415
1417
  background-color: ${({$backgroundColor:e})=>e};
1416
- `,fx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=hx.L})=>{const d=o(),[c,u]=Ht(!1),p=r,h=l===hx.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(gx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(mx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Va,{size:l===hx.S?ja.XXS:ja.XS,children:n})]})},bx=n.div`
1418
+ `,bx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=gx.L})=>{const d=o(),[c,u]=Ht(!1),p=r,h=l===gx.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(mx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Va,{size:l===gx.S?ja.XXS:ja.XS,children:n})]})},yx=n.div`
1417
1419
  display: flex;
1418
1420
  flex-direction: ${({$flexDirection:e})=>e};
1419
1421
  gap: ${({$gap:e})=>e}px;
1420
- `,yx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(bx,{$flexDirection:n===mi.Horizontal?"row":"column",$gap:n===mi.Horizontal?16:8,children:[i&&t(Va,{children:i}),a.map(e=>t(fx,{...e,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:r,size:o},`${i}-radio-${e.id}`))]}),vx=({col:i,colIdx:n,row:r,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:b,renderCondition:y,helpMessage:v,min:$,max:w}=i,S=r[p];if(y&&!y(r))return null;const x=c?void 0:m||void 0,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(yx,{direction:mi.Horizontal,options:(b||[]).map(e=>({id:e.id,label:e.label})),values:i,setValues:e=>{const t="function"==typeof e?e(i):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Ei.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=b?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(YS,{name:p,label:x,placeholder:C,options:b||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===o&&0===n&&nd(S),c=t(sw,{name:p,label:x,placeholder:C,autoFocus:r,type:g,min:$,max:w,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:i.withRegexTester?"100%":void 0});return i.withRegexTester?e(Il,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(ov,{variant:iv.Secondary,size:nv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},$x=n.div`
1422
+ `,vx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(yx,{$flexDirection:n===mi.Horizontal?"row":"column",$gap:n===mi.Horizontal?16:8,children:[i&&t(Va,{children:i}),a.map(e=>t(bx,{...e,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:r,size:o},`${i}-radio-${e.id}`))]}),$x=({col:i,colIdx:n,row:r,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:b,renderCondition:y,helpMessage:v,min:$,max:w}=i,S=r[p];if(y&&!y(r))return null;const x=c?void 0:m||void 0,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(vx,{direction:mi.Horizontal,options:(b||[]).map(e=>({id:e.id,label:e.label})),values:i,setValues:e=>{const t="function"==typeof e?e(i):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Ei.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=b?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(JS,{name:p,label:x,placeholder:C,options:b||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===o&&0===n&&rd(S),c=t(lw,{name:p,label:x,placeholder:C,autoFocus:r,type:g,min:$,max:w,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:i.withRegexTester?"100%":void 0});return i.withRegexTester?e(_l,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(av,{variant:nv.Secondary,size:rv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},wx=n.div`
1421
1423
  width: 100%;
1422
1424
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1423
1425
  border-radius: 8px;
@@ -1425,28 +1427,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1425
1427
  display: flex;
1426
1428
  flex-direction: column;
1427
1429
  gap: 8px;
1428
- `,wx=n.div`
1430
+ `,Sx=n.div`
1429
1431
  flex: 1;
1430
1432
  min-width: 0;
1431
- `,Sx=n.div`
1433
+ `,xx=n.div`
1432
1434
  padding-top: 24px;
1433
- `,xx=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=i.find(e=>"segment"===e.componentType),f=m?.keyName,b=m?.options??[],y=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],w=(f?$[0]?.[f]:"")||v,S=(e,t,i)=>{r($.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...$,y(w)]),C=b.find(e=>e.id===w);return e(_l,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(p$,{label:s,tooltip:l,required:d}),m&&t(r$,{"data-id":`${a}-mode`,size:Qv.S,fullWidth:!0,options:b.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:w,setSelected:e=>!c&&(e=>r([y(e)]))(String(e))}),e(_l,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:w}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),b=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),E=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(b,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e($x,{"data-id":`${a}-card-${o}`,children:[e(Il,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(_l,{$gap:10,children:[T&&t(p$,{label:T}),m.map(e=>t(Il,{$gap:24,children:(e.options??[]).map(i=>t(fx,{size:hx.L,label:i.label,value:String(n[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&S(o,e.keyName,i.id)},`${a}-card-${o}-${e.keyName}-${i.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(Il,{$gap:4,$alignItems:"center",children:[v&&t(ov,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:iv.Secondary,size:nv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(ov,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(ov,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(Il,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,r)=>{const s=((e,t)=>{let{label:i,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(i=o.label??i,n=o.placeholder??n,r=o.helpMessage??r)}return{label:i,placeholder:n,helpMessage:r}})(i,n);return e(jt,{children:["arrow"===i.separator&&r>0&&t(Sx,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(wx,{children:t(sw,{name:`${a}-card-${o}-${i.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:n[i.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,i.keyName,e.target.value)})})]},`${a}-card-${o}-${i.keyName}`)})},`${a}-card-${o}-row-${r}`))]},`${a}-card-${o}`)}),t(h$,{errorMessage:u})]})]})},Cx=n.div`
1435
+ `,Cx=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=i.find(e=>"segment"===e.componentType),f=m?.keyName,b=m?.options??[],y=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],w=(f?$[0]?.[f]:"")||v,S=(e,t,i)=>{r($.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...$,y(w)]),C=b.find(e=>e.id===w);return e(Dl,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(h$,{label:s,tooltip:l,required:d}),m&&t(o$,{"data-id":`${a}-mode`,size:Zv.S,fullWidth:!0,options:b.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:w,setSelected:e=>!c&&(e=>r([y(e)]))(String(e))}),e(Dl,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:w}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),b=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),E=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(b,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e(wx,{"data-id":`${a}-card-${o}`,children:[e(_l,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Dl,{$gap:10,children:[T&&t(h$,{label:T}),m.map(e=>t(_l,{$gap:24,children:(e.options??[]).map(i=>t(bx,{size:gx.L,label:i.label,value:String(n[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&S(o,e.keyName,i.id)},`${a}-card-${o}-${e.keyName}-${i.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(_l,{$gap:4,$alignItems:"center",children:[v&&t(av,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:nv.Secondary,size:rv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(av,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(av,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(_l,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,r)=>{const s=((e,t)=>{let{label:i,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(i=o.label??i,n=o.placeholder??n,r=o.helpMessage??r)}return{label:i,placeholder:n,helpMessage:r}})(i,n);return e(jt,{children:["arrow"===i.separator&&r>0&&t(xx,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Sx,{children:t(lw,{name:`${a}-card-${o}-${i.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:n[i.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,i.keyName,e.target.value)})})]},`${a}-card-${o}-${i.keyName}`)})},`${a}-card-${o}-row-${r}`))]},`${a}-card-${o}`)}),t(g$,{errorMessage:u})]})]})},Ex=n.div`
1434
1436
  width: 100%;
1435
1437
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1436
1438
  border-radius: 8px;
1437
1439
  padding: 4px 8px;
1438
- `,Ex=n.table`
1440
+ `,Tx=n.table`
1439
1441
  width: 100%;
1440
1442
  border-collapse: separate;
1441
1443
  border-spacing: 0 8px;
1442
- `,Tx=n.td`
1444
+ `,Ox=n.td`
1443
1445
  padding: 0 8px 0 0;
1444
1446
  vertical-align: top;
1445
- `,Ox=n.td`
1447
+ `,Nx=n.td`
1446
1448
  width: 72px;
1447
1449
  vertical-align: ${({$center:e})=>e?"middle":"top"};
1448
1450
  padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1449
- `,Nx=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const b=o(),y=Gt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?$s(n):[$s(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(Cx,{children:e(_l,{"data-id":a,$gap:0,children:[t(p$,{label:s,tooltip:l,required:c,badge:d}),t(Ex,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.length-1,l=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(i.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(jt,{children:[l.length>1&&a>0?t("tr",{children:t(Tx,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],w=m?22:0;return e("tr",{children:[l.map((i,n)=>{if(i.renderCondition&&!i.renderCondition(o))return null;const r=n===l.length-1,s=0===g&&r?c-l.length+1:1;return t(Tx,{colSpan:s>1?s:void 0,children:e(_l,{$gap:6,children:[m&&(i.label?t(p$,{label:i.label,tooltip:i.tooltip}):t(p$,{label:"\\u00A0"})),t(vx,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:$.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Ox,{$topOffset:w,$center:h,children:e(Il,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(ov,{leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(()=>{const e=n.length?$s(n):[$s(y)],t=$s(y),o=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=$s(o[e.keyName]))}),e.push(t),r(e)})()}),t(ov,{leftIcon:u?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push($s(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(h$,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var Ax;(e=>{e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right"})(Ax||(Ax={}));const kx=n.div`
1451
+ `,Ax=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const b=o(),y=Gt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?$s(n):[$s(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(Ex,{children:e(Dl,{"data-id":a,$gap:0,children:[t(h$,{label:s,tooltip:l,required:c,badge:d}),t(Tx,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.length-1,l=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(i.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(jt,{children:[l.length>1&&a>0?t("tr",{children:t(Ox,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],w=m?22:0;return e("tr",{children:[l.map((i,n)=>{if(i.renderCondition&&!i.renderCondition(o))return null;const r=n===l.length-1,s=0===g&&r?c-l.length+1:1;return t(Ox,{colSpan:s>1?s:void 0,children:e(Dl,{$gap:6,children:[m&&(i.label?t(h$,{label:i.label,tooltip:i.tooltip}):t(h$,{label:"\\u00A0"})),t($x,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:$.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Nx,{$topOffset:w,$center:h,children:e(_l,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(av,{leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:u,onClick:()=>(()=>{const e=n.length?$s(n):[$s(y)],t=$s(y),o=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=$s(o[e.keyName]))}),e.push(t),r(e)})()}),t(av,{leftIcon:u?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push($s(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var kx;(e=>{e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right"})(kx||(kx={}));const Ix=n.div`
1450
1452
  display: flex;
1451
1453
  align-items: center;
1452
1454
  justify-content: space-between;
@@ -1460,32 +1462,32 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1460
1462
  position: fixed;
1461
1463
  z-index: ${({theme:e})=>e.v2.zIndex.island};
1462
1464
 
1463
- ${({$position:e})=>{switch(e){case Ax.BottomCenter:return r`
1465
+ ${({$position:e})=>{switch(e){case kx.BottomCenter:return r`
1464
1466
  bottom: 0;
1465
1467
  left: 50%;
1466
- animation-name: ${Gv.in.center};
1467
- `;case Ax.BottomRight:return r`
1468
+ animation-name: ${Vv.in.center};
1469
+ `;case kx.BottomRight:return r`
1468
1470
  bottom: 0;
1469
1471
  right: 0;
1470
- animation-name: ${Gv.in.right};
1471
- `;case Ax.BottomLeft:return r`
1472
+ animation-name: ${Vv.in.right};
1473
+ `;case kx.BottomLeft:return r`
1472
1474
  bottom: 0;
1473
1475
  left: 0;
1474
- animation-name: ${Gv.in.left};
1475
- `;case Ax.TopCenter:return r`
1476
+ animation-name: ${Vv.in.left};
1477
+ `;case kx.TopCenter:return r`
1476
1478
  top: 0;
1477
1479
  left: 50%;
1478
- animation-name: ${Gv.in.center};
1479
- `;case Ax.TopRight:return r`
1480
+ animation-name: ${Vv.in.center};
1481
+ `;case kx.TopRight:return r`
1480
1482
  top: 0;
1481
1483
  right: 0;
1482
- animation-name: ${Gv.in.right};
1483
- `;case Ax.TopLeft:return r`
1484
+ animation-name: ${Vv.in.right};
1485
+ `;case kx.TopLeft:return r`
1484
1486
  top: 0;
1485
1487
  left: 0;
1486
- animation-name: ${Gv.in.left};
1488
+ animation-name: ${Vv.in.left};
1487
1489
  `;default:return null}}}
1488
- `,Ix=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=Ax.BottomCenter})=>i?e(kx,{$position:a,children:[r&&t(R$,{...r}),t(k$,{onAnyClick:n,actions:o})]}):null,_x=n.div`
1490
+ `,_x=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=kx.BottomCenter})=>i?e(Ix,{$position:a,children:[r&&t(L$,{...r}),t(I$,{onAnyClick:n,actions:o})]}):null,Dx=n.div`
1489
1491
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1490
1492
  top: 50%;
1491
1493
  left: 50%;
@@ -1506,7 +1508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1506
1508
  will-change: transform;
1507
1509
  contain: layout paint;
1508
1510
 
1509
- animation-name: ${({$closing:e})=>e?Gv.out.center:Gv.in.center};
1511
+ animation-name: ${({$closing:e})=>e?Vv.out.center:Vv.in.center};
1510
1512
  /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1511
1513
  the global 300ms default which pairs with the fade-in for a soft entrance. */
1512
1514
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
@@ -1515,9 +1517,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1515
1517
  /* Block hover/click work on form children mid-close so their transitions
1516
1518
  don't compete with the slide-out. */
1517
1519
  ${({$closing:e})=>e&&"pointer-events: none;"}
1518
- `,Dx=n(Ll)`
1520
+ `,Rx=n(Pl)`
1519
1521
  will-change: opacity;
1520
- animation-name: ${({$closing:e})=>e?Jv.out:Jv.in};
1522
+ animation-name: ${({$closing:e})=>e?qv.out:qv.in};
1521
1523
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1522
1524
 
1523
1525
  /* The blurred backdrop is the most expensive thing on screen during the close
@@ -1525,18 +1527,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1525
1527
  recomposite per frame. Drop the blur while closing; visually identical
1526
1528
  because the overlay is fading to 0. */
1527
1529
  ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1528
- `,Rx=n.div`
1529
- position: relative;
1530
1530
  `,Lx=n.div`
1531
+ position: relative;
1532
+ `,Px=n.div`
1531
1533
  position: absolute;
1532
1534
  top: 16px;
1533
1535
  left: 16px;
1534
- `,Px=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(Xt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Hy(c),!c)return null;const g=e(i,{children:[!r&&t(Dx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(_x,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Rx,{children:[a&&t(Lx,{children:t(NS,{icon:e=>t(At,{rotate:-90,...e}),size:TS.L,onClick:a})}),d]})})]});return o?g:Zt(g,document.body)},Ux=n.div`
1536
+ `,Ux=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(Wt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Wy(c),!c)return null;const g=e(i,{children:[!r&&t(Rx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Dx,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Lx,{children:[a&&t(Px,{children:t(AS,{icon:e=>t(At,{rotate:-90,...e}),size:OS.L,onClick:a})}),d]})})]});return o?g:Zt(g,document.body)},Mx=n.div`
1535
1537
  position: relative;
1536
1538
  width: ${64}px;
1537
1539
  height: ${({$height:e})=>e};
1538
1540
  flex-shrink: 0;
1539
- `,Mx=n.aside`
1541
+ `,Fx=n.aside`
1540
1542
  position: absolute;
1541
1543
  top: 0;
1542
1544
  left: 0;
@@ -1556,7 +1558,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1556
1558
  transition:
1557
1559
  width 200ms ease,
1558
1560
  padding 200ms ease;
1559
- `,Fx=n.button`
1561
+ `,zx=n.button`
1560
1562
  display: flex;
1561
1563
  align-items: center;
1562
1564
  width: 100%;
@@ -1576,20 +1578,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1576
1578
  &:active {
1577
1579
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1578
1580
  }
1579
- `,zx=n.div`
1581
+ `,Bx=n.div`
1580
1582
  width: ${40}px;
1581
1583
  height: ${40}px;
1582
1584
  display: flex;
1583
1585
  align-items: center;
1584
1586
  justify-content: center;
1585
1587
  flex-shrink: 0;
1586
- `,Bx=n.div`
1588
+ `,jx=n.div`
1587
1589
  flex: 1 1 0;
1588
1590
  min-width: 0;
1589
1591
  overflow: hidden;
1590
1592
  padding-right: 12px;
1591
1593
  pointer-events: none;
1592
- `,jx=({height:i,icons:n})=>{const r=o(),[a,s]=Ht(!1);return t(Ux,{$height:i,children:t(Mx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(Fx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(zx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(Bx,{children:t(Va,{size:ja.S,weight:500,color:Ha.Primary,nowrap:!0,children:n})})]},i))})})},Hx=n.div`
1594
+ `,Hx=({height:i,icons:n})=>{const r=o(),[a,s]=Ht(!1);return t(Mx,{$height:i,children:t(Fx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(zx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Bx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(jx,{children:t(Va,{size:ja.S,weight:500,color:Ha.Primary,nowrap:!0,children:n})})]},i))})})},Wx=n.div`
1593
1595
  position: relative;
1594
1596
  display: flex;
1595
1597
  align-items: center;
@@ -1609,9 +1611,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1609
1611
  inset: 0;
1610
1612
  border-radius: 100%;
1611
1613
  background-color: ${({theme:e,$color:t=e.v2.colors.purple[500]})=>t};
1612
- animation: ${Kv} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
1614
+ animation: ${Yv} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
1613
1615
  }
1614
- `,Wx=({color:e})=>{const i=o(),n=e||i.v2.colors.purple[500];return t(Hx,{children:t(Xx,{$color:n})})},Gx=n.div`
1616
+ `,Gx=({color:e})=>{const i=o(),n=e||i.v2.colors.purple[500];return t(Wx,{children:t(Xx,{$color:n})})},Vx=n.div`
1615
1617
  display: flex;
1616
1618
  flex-direction: column;
1617
1619
  gap: 16px;
@@ -1635,26 +1637,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1635
1637
  }
1636
1638
  `}
1637
1639
  `}
1638
- `,Vx=n.div`
1640
+ `,Kx=n.div`
1639
1641
  display: flex;
1640
1642
  align-items: center;
1641
1643
  gap: 16px;
1642
1644
  width: 100%;
1643
- `,Kx=n.div`
1645
+ `,Yx=n.div`
1644
1646
  display: flex;
1645
1647
  flex-direction: column;
1646
1648
  gap: 4px;
1647
1649
  flex: 1;
1648
1650
  min-width: 0;
1649
- `,Yx=n.div`
1651
+ `,Jx=n.div`
1650
1652
  display: flex;
1651
1653
  align-items: center;
1652
1654
  gap: 8px;
1653
1655
  flex-wrap: wrap;
1654
1656
  min-width: 0;
1655
- `,Jx=n.div`
1657
+ `,qx=n.div`
1656
1658
  width: 100%;
1657
- `,qx=({"data-id":i,title:n,badge:r,description:a,trailing:s,body:l,footerNote:d,checked:c,onChange:u,disabled:p})=>{const h=o(),g=i??`radio-card-${n}`,m=()=>{p||c||u(!0)};return e(Gx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Vx,{children:[t(fx,{"data-id":`${g}-radio`,value:c,onChange:m,size:hx.L,disabled:p}),e(Kx,{children:[e(Yx,{children:[t(Va,{size:ja.S,weight:500,lineHeight:"24px",color:Ha.Primary,children:n}),r]}),a&&("string"==typeof a?t(Va,{size:ja.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Ha.Secondary,children:a}):a)]}),s]}),l&&t(Jx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(Jx,{onClick:e=>e.stopPropagation(),children:d})]})},Qx=n.div`
1659
+ `,Qx=({"data-id":i,title:n,badge:r,description:a,trailing:s,body:l,footerNote:d,checked:c,onChange:u,disabled:p})=>{const h=o(),g=i??`radio-card-${n}`,m=()=>{p||c||u(!0)};return e(Vx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Kx,{children:[t(bx,{"data-id":`${g}-radio`,value:c,onChange:m,size:gx.L,disabled:p}),e(Yx,{children:[e(Jx,{children:[t(Va,{size:ja.S,weight:500,lineHeight:"24px",color:Ha.Primary,children:n}),r]}),a&&("string"==typeof a?t(Va,{size:ja.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Ha.Secondary,children:a}):a)]}),s]}),l&&t(qx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(qx,{onClick:e=>e.stopPropagation(),children:d})]})},Zx=n.div`
1658
1660
  width: 100%;
1659
1661
  height: 100%;
1660
1662
 
@@ -1662,7 +1664,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1662
1664
  animation: none !important;
1663
1665
  transition: none !important;
1664
1666
  }
1665
- `,Zx=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Vt(null),c=Gt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Wt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Xt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ni,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Qx,{children:p}):p},eC=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],tC=eC[1].value,iC=eC[eC.length-1].value,nC=e=>({label:e?eC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:iv.Secondary,size:nv.S}),rC=n.input`
1667
+ `,eC=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Vt(null),c=Gt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Wt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ni,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Zx,{children:p}):p},tC=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],iC=tC[1].value,nC=tC[tC.length-1].value,rC=e=>({label:e?tC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:nv.Secondary,size:rv.S}),oC=n.input`
1666
1668
  width: 100px;
1667
1669
  padding: 2px 12px;
1668
1670
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
@@ -1692,7 +1694,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1692
1694
  opacity: 0.4;
1693
1695
  }
1694
1696
  `}
1695
- `,oC=()=>(new Date).toISOString().split("T")[0],aC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},sC=({options:i=eC,maxAllowedValue:n=iC,defaultValue:r=tC,onApply:o,onClose:a})=>{const[s]=Ht(oC),[l,d]=Ht(r),[c,u]=Ht(()=>aC(s,r)),[p,h]=Ht(void 0),g=Gt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Gt(()=>i.map(({label:e,value:i})=>t(ov,{label:e,variant:iv.Text,size:nv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(aC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(_l,{$gap:24,children:[e(_l,{children:[m,t(fS,{}),e(_l,{$gap:12,$padding:"0 12px",children:[t(Va,{size:ja.XXS,color:Ha.Secondary,nowrap:!0,children:"Custom range"}),e(Il,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"From"}),t(rC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(Il,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"To"}),t(rC,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const i=new Date(e).getTime(),n=new Date(t).getTime(),r=Math.floor((n-i)/1e3/60/60);return r<0?Math.abs(r):r})(s,t));var t}})]}),p&&t(h$,{errorMessage:p}),e(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(ov,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},lC=n.div`
1697
+ `,aC=()=>(new Date).toISOString().split("T")[0],sC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},lC=({options:i=tC,maxAllowedValue:n=nC,defaultValue:r=iC,onApply:o,onClose:a})=>{const[s]=Ht(aC),[l,d]=Ht(r),[c,u]=Ht(()=>sC(s,r)),[p,h]=Ht(void 0),g=Gt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Gt(()=>i.map(({label:e,value:i})=>t(av,{label:e,variant:nv.Text,size:rv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(sC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Dl,{$gap:24,children:[e(Dl,{children:[m,t(bS,{}),e(Dl,{$gap:12,$padding:"0 12px",children:[t(Va,{size:ja.XXS,color:Ha.Secondary,nowrap:!0,children:"Custom range"}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"From"}),t(oC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"To"}),t(oC,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const i=new Date(e).getTime(),n=new Date(t).getTime(),r=Math.floor((n-i)/1e3/60/60);return r<0?Math.abs(r):r})(s,t));var t}})]}),p&&t(g$,{errorMessage:p}),e(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(av,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},dC=n.div`
1696
1698
  display: flex;
1697
1699
  flex-direction: column;
1698
1700
  gap: 16px;
@@ -1701,66 +1703,67 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1701
1703
  ${({$maxHeight:e})=>e&&`max-height: ${e};`}
1702
1704
  width: 100%;
1703
1705
  height: 100%;
1704
- `,dC=n.div`
1706
+ `,cC=n.div`
1705
1707
  display: flex;
1706
1708
  align-items: center;
1707
1709
  gap: 16px;
1708
- `,cC=n.div`
1710
+ `,uC=n.div`
1709
1711
  width: 50px;
1710
1712
  height: 50px;
1711
1713
  border-radius: 8px;
1712
1714
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1713
1715
  background-size: 200% 100%;
1714
- animation: ${Yv} 10s infinite linear;
1715
- `,uC=n(_l)`
1716
+ animation: ${Jv} 10s infinite linear;
1717
+ `,pC=n(Dl)`
1716
1718
  flex: 1;
1717
1719
  gap: 12px;
1718
- `,pC=n.div`
1720
+ `,hC=n.div`
1719
1721
  width: ${({$width:e})=>e};
1720
1722
  height: 16px;
1721
1723
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1722
1724
  background-size: 200% 100%;
1723
- animation: ${Yv} 1.5s infinite linear;
1725
+ animation: ${Jv} 1.5s infinite linear;
1724
1726
  border-radius: 4px;
1725
- `,hC=({size:i=5,maxWidth:n,maxHeight:r})=>t(lC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(dC,{children:[t(cC,{}),e(uC,{children:[t(pC,{$width:"80%"}),t(pC,{$width:"100%"})]})]},n))}),gC=({currentStep:i,data:n,gap:r=12})=>t(_l,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(Il,{$gap:8,children:[r||n.forceDoneBadge?t(Rv,{status:Oi.Success,label:"",leftIcon:$t}):t(Rv,{status:Oi.Default,label:n.step.toString()}),t(Va,{size:o?ja.M:ja.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var mC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(mC||(mC={}));const fC=n.div`
1727
+ `,gC=({size:i=5,maxWidth:n,maxHeight:r})=>t(dC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(cC,{children:[t(uC,{}),e(pC,{children:[t(hC,{$width:"80%"}),t(hC,{$width:"100%"})]})]},n))}),mC=({currentStep:i,data:n,gap:r=12})=>t(Dl,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(_l,{$gap:8,children:[r||n.forceDoneBadge?t(Lv,{status:Oi.Success,label:"",leftIcon:$t}):t(Lv,{status:Oi.Default,label:n.step.toString()}),t(Va,{size:o?ja.M:ja.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var fC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(fC||(fC={}));const bC=n.div`
1726
1728
  ${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow-x: auto;\n overflow-y: hidden;\n `:t&&e?`\n flex: 0 0 auto;\n height: fit-content;\n max-height: ${e};\n overflow: auto;\n `:t?"\n flex: 0 0 auto;\n height: fit-content;\n overflow: auto;\n ":e?`\n height: ${e};\n flex: 0 0 auto;\n overflow-x: auto;\n overflow-y: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n "}
1727
1729
  width: 100%;
1728
1730
  display: flex;
1729
1731
  flex-direction: column;
1730
- `,bC=n.div`
1732
+ `,yC=n.div`
1731
1733
  width: 100%;
1732
1734
  flex: 1;
1733
1735
  min-height: 0;
1734
1736
  display: flex;
1735
1737
  flex-direction: column;
1736
- `,yC=n.div`
1738
+ `,vC=n.div`
1737
1739
  flex-shrink: 0;
1738
1740
  position: relative;
1739
1741
  z-index: 2;
1740
- `,vC=n.div`
1742
+ `,$C=n.div`
1741
1743
  flex: 1;
1742
1744
  min-height: 0;
1743
1745
  overflow: hidden;
1744
- `,$C=n.div`
1746
+ `,wC=n.div`
1745
1747
  position: relative;
1746
1748
  display: flex;
1747
1749
  width: 100%;
1748
1750
  min-width: 100%;
1749
- `,wC=n.div`
1751
+ `,SC=n.div`
1750
1752
  display: flex;
1751
1753
  flex-direction: column;
1752
1754
  flex-shrink: 0;
1753
1755
  width: 100%;
1754
1756
  min-width: 100%;
1755
- `,SC=n.div`
1757
+ `,xC=n.div`
1756
1758
  width: 100%;
1757
1759
  flex-shrink: 0;
1758
1760
  ${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
1759
- `,xC=n.div`
1761
+ `,CC=n.div`
1760
1762
  position: relative;
1761
1763
  /* Measured columns: pin to content width. Last column omits max so it can
1762
- * stretch past the measured minimum (LAST_COLUMN_STRETCH). */
1763
- min-width: ${({$resolvedWidth:e})=>null!=e?`${e}px`:"auto"};
1764
+ * stretch past the measured minimum (LAST_COLUMN_STRETCH). Flex (non-measured)
1765
+ * columns use min-width: 0 so long labels can shrink/truncate inside the row. */
1766
+ min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
1764
1767
  max-width: ${({$resolvedWidth:e,$isLast:t})=>null==e||t?void 0:`${e}px`};
1765
1768
  flex: ${({$autoWidth:e,$resolvedWidth:t,$isLast:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
1766
1769
 
@@ -1776,15 +1779,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1776
1779
 
1777
1780
  ${({$variant:e,$backgroundColor:t})=>{if(t)return r`
1778
1781
  background-color: ${t};
1779
- `;switch(e){case mC.Data:return r`
1782
+ `;switch(e){case fC.Data:return r`
1780
1783
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1781
- `;case mC.DataSecondary:return r`
1784
+ `;case fC.DataSecondary:return r`
1782
1785
  border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
1783
1786
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1784
- `;case mC.Pretty:return r`
1787
+ `;case fC.Pretty:return r`
1785
1788
  background-color: transparent;
1786
1789
  `;default:return""}}}
1787
- `,CC=n.div`
1790
+ `,EC=n.div`
1788
1791
  position: absolute;
1789
1792
  top: 50%;
1790
1793
  right: 0;
@@ -1792,9 +1795,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1792
1795
  width: 1px;
1793
1796
  height: 18px;
1794
1797
  background: ${({theme:e})=>e.v2.colors.silver[500]};
1795
- `,EC=n.div`
1796
- /* See Th — measured content width; last stretches. */
1797
- min-width: ${({$resolvedWidth:e})=>null!=e?`${e}px`:"auto"};
1798
+ `,TC=n.div`
1799
+ /* See Th — measured content width; last stretches; flex columns shrink. */
1800
+ min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
1798
1801
  max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
1799
1802
  flex: ${({$autoWidth:e,$resolvedWidth:t,$isLastCell:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
1800
1803
 
@@ -1803,9 +1806,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1803
1806
  flex-grow: 1;
1804
1807
  `}
1805
1808
 
1806
- /* Visible while measuring; then overflow-x auto as fallback when content still
1807
- * exceeds the allocated width. */
1808
- overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":"auto"};
1809
+ /* Visible while measuring; then clip/scroll when content exceeds the cell.
1810
+ * Flex (non-measured) columns use hidden so TruncatableTypography can ellipsis. */
1811
+ overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":null!=t?"auto":"hidden"};
1809
1812
  overflow-y: hidden;
1810
1813
  display: flex;
1811
1814
  align-items: center;
@@ -1814,20 +1817,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1814
1817
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
1815
1818
  box-sizing: border-box;
1816
1819
 
1817
- ${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case mC.Data:return r`
1820
+ ${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case fC.Data:return r`
1818
1821
  border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
1819
1822
  border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
1820
1823
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1821
- `;case mC.DataSecondary:return r`
1824
+ `;case fC.DataSecondary:return r`
1822
1825
  border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
1823
1826
  border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
1824
1827
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:"number"==typeof t&&t%2==0?e.v2.colors.silver[800]:e.v2.colors.silver[900]};
1825
- `;case mC.Pretty:return r`
1828
+ `;case fC.Pretty:return r`
1826
1829
  border: none;
1827
1830
  border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
1828
1831
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1829
1832
  `;default:return""}}}
1830
- `,TC=n.div`
1833
+ `,OC=n.div`
1831
1834
  /* Off-screen — must not contribute to Container scrollWidth. */
1832
1835
  position: fixed;
1833
1836
  top: 0;
@@ -1840,24 +1843,24 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1840
1843
  align-items: flex-start;
1841
1844
  width: max-content;
1842
1845
  white-space: nowrap;
1843
- `,OC=n.div`
1846
+ `,NC=n.div`
1844
1847
  display: inline-flex;
1845
1848
  align-items: center;
1846
1849
  padding: 18px 24px;
1847
1850
  border: 1px solid transparent;
1848
1851
  box-sizing: border-box;
1849
1852
  white-space: nowrap;
1850
- `,NC=n.div`
1853
+ `,AC=n.div`
1851
1854
  display: inline-flex;
1852
1855
  align-items: center;
1853
1856
  gap: 4px;
1854
1857
  white-space: nowrap;
1855
- `,AC=n.div`
1858
+ `,kC=n.div`
1856
1859
  display: inline-flex;
1857
1860
  align-items: center;
1858
1861
  flex-shrink: 0;
1859
1862
  gap: 4px;
1860
- `,kC=n.div`
1863
+ `,IC=n.div`
1861
1864
  width: 100%;
1862
1865
  height: 100%;
1863
1866
  display: flex;
@@ -1866,7 +1869,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1866
1869
  gap: 4px;
1867
1870
  text-align: ${({$textAlign:e})=>e||"left"};
1868
1871
  min-width: 0;
1869
- `,IC=({variant:n,columns:r,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const[y,v]=Ht(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),k=null!=N,I=k&&m===A,_=null!=g&&o.id===g,D=c(o),R=a===s-1,L=k||!!w,P=()=>{k&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:_,$withClick:L,onClick:P,$hovered:L&&y}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=D.length>0?t(ix,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(EC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(tv,{text:O,children:t(b$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(b$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,textAlign:o},s)=>{const c=$.find(e=>e.key===i),u=0===s&&!h,p=s===r.length-1,g=0===s,m="right"===o?"flex-end":"center"===o?"center":"flex-start",f=c?.component?c.component():t(L$,{size:ja.XXS,align:o,nowrap:!0,fullWidth:!1,children:c?.rawValue||"-"}),b=e(Il,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,children:[k&&g?t(I?Et:Ut,{}):null,f]});return t(EC,{$variant:n,$index:a,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(u,p),children:b},`row-${a}-cell-${s}`)})]}),B={onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)};return k?e(wC,{"data-table-row-index":a,children:[e($C,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(SC,{$maxHeight:b,children:M}),!R&&t(fS,{margin:"0"})]})]}):e($C,{"data-table-row-index":a,...B,children:[z,F]})},_C=({variant:e,columns:n,rows:r,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const y=Gt(()=>r.map((i,p)=>t(IC,{variant:e,columns:n,row:i,rowIdx:p,rowCount:r.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(Zx,{gap:e===mC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},DC=({columnKey:e,sortDirection:i,sortByKey:n,onSort:r})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=i===fi.Ascending?0:180;return t(ov,{variant:iv.Text,size:nv.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},RC=({columnKey:e,filters:i,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=o(),l=i[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Gt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(N$,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},LC=({variant:i,backgroundColor:n,columns:r,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e($C,{children:[h&&t(xC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(b$,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,tooltip:f,noSort:b,noFilter:y,filterOverride:v,textAlign:$},w)=>{const S=0===w&&!h,x=w===r.length-1,C=f?t(Va,{size:ja.XS,align:$,nowrap:!0,children:m}):t(L$,{size:ja.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(xC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(kC,{$textAlign:$,children:[f?t(tv,{text:f,children:C}):C,(!b||!y)&&e(AC,{children:[!b&&t(DC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(RC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===mC.Data&&t(CC,{})]},`column-${g}`)})]}),PC=()=>{},UC={},MC=[],FC=e=>[],zC=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:b,scrollSignal:y,expandedRowId:v,onExpandedRowIdChange:$})=>{const[w,S]=Ht(fi.Ascending),[x,C]=Ht(""),[E,T]=Ht({}),[O,N]=Ht(null),A=m??E,k=void 0!==v,I=k?v:O,_=Wt(e=>{C(e),S(e=>e===fi.Ascending?fi.Descending:fi.Ascending)},[]),D=Wt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),R=Gt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i?""!==i.rawValue&&null!=i.rawValue?i.rawValue:i.component?.({})?.props?.children?.toString()||"":""},t=/^-?\d+(\.\d+)?$/,i=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e){const i=e.trim();return t.test(i)?Number(i):e}return String(e??"")};return(x?[...c].sort((t,n)=>{const r=i(e(t,x)),o=i(e(n,x));return(w===fi.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(r,o)}):c).filter(t=>{for(const[i,n]of Object.entries(A)){if(!n.length)continue;const r=d.find(e=>e.key===i)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1;continue}const o=String(e(t,i)??"");if(!n.map(String).includes(o))return!1}return!0})},[c,x,w,A,d]),L=Gt(()=>null==b?-1:R.findIndex(e=>e.id===b),[R,b]),{partiallySelected:P,allSelected:U}=Gt(()=>{const e=R.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[R]),M=Gt(()=>{const e=new Set,t=d[d.length-1]?.key;for(const i of d)i.key!==t&&e.add(i.key);return e},[d]),F=Vt(null),[z,B]=Ht({}),j=Gt(()=>{if(0===M.size)return[];const i=d[0]?.key,n=c.some(e=>null!=e.expandedContent);return d.filter(e=>M.has(e.key)).map(r=>{const o=[e(NC,{children:[t(Va,{size:ja.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(AC,{children:[!r.noSort&&t(DC,{columnKey:r.key,sortDirection:fi.Ascending,sortByKey:"",onSort:PC}),!r.noFilter&&t(RC,{columnKey:r.key,filters:UC,onFilter:PC,rowsUnfiltered:MC,filterOverride:r.filterOverride})]})]},`mw-${r.key}-header`)],a=n&&r.key===i;return c.forEach((i,n)=>{const s=i.cells.find(e=>e.key===r.key);if(!s)return;const l=s.component?s.component():t(Va,{size:ja.XS,children:s.rawValue||"-"});o.push(a?e(Il,{$gap:8,children:[t(Ut,{}),l]},`mw-${r.key}-${n}`):t(zt.Fragment,{children:l},`mw-${r.key}-${n}`))}),{key:r.key,nodes:o}})},[d,c,M]);Kt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||n>e[i])&&(e[i]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[j,M]);const H=Vt(null),[X,W]=Ht(0),G=R.some(e=>null!=e.expandedContent);Kt(()=>{if(!G)return void W(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;W(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,R.length]);const V=Wt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),K=G&&X>0?`${X}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(fC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(TC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(OC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(bC,{$variant:i,children:[!a&&t(yC,{children:t(LC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:w,sortByKey:x,onSort:_,filters:A,onFilter:D,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?G&&!r?t(vC,{ref:H,children:t(_C,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||FC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(_C,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||FC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:J,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Dl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(hC,{size:3,maxHeight:n}):t(d$,{...l})})]})]})},BC=n.div`
1872
+ `,_C=({variant:n,columns:r,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const[y,v]=Ht(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),k=null!=N,I=k&&m===A,_=null!=g&&o.id===g,D=c(o),R=a===s-1,L=k||!!w,P=()=>{k&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:_,$withClick:L,onClick:P,$hovered:L&&y}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=D.length>0?t(nx,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(TC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(iv,{text:O,children:t(y$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(y$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,textAlign:o},s)=>{const c=$.find(e=>e.key===i),u=0===s&&!h,p=s===r.length-1,g=0===s,m="right"===o?"flex-end":"center"===o?"center":"flex-start",f=l.has(i),b=c?.component?c.component():t(P$,{size:ja.XXS,align:o,nowrap:!0,fullWidth:!f,children:c?.rawValue||"-"}),y=e(_l,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,style:{minWidth:0},children:[k&&g?t(I?Et:Ut,{}):null,b]});return t(TC,{$variant:n,$index:a,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(u,p),children:y},`row-${a}-cell-${s}`)})]}),B={onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)};return k?e(SC,{"data-table-row-index":a,children:[e(wC,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(xC,{$maxHeight:b,children:M}),!R&&t(bS,{margin:"0"})]})]}):e(wC,{"data-table-row-index":a,...B,children:[z,F]})},DC=({variant:e,columns:n,rows:r,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const y=Gt(()=>r.map((i,p)=>t(_C,{variant:e,columns:n,row:i,rowIdx:p,rowCount:r.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(eC,{gap:e===fC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},RC=({columnKey:e,sortDirection:i,sortByKey:n,onSort:r})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=i===fi.Ascending?0:180;return t(av,{variant:nv.Text,size:rv.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},LC=({columnKey:e,filters:i,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=o(),l=i[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Gt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(A$,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},PC=({variant:i,backgroundColor:n,columns:r,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(wC,{children:[h&&t(CC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(y$,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,tooltip:f,noSort:b,noFilter:y,filterOverride:v,textAlign:$},w)=>{const S=0===w&&!h,x=w===r.length-1,C=f?t(Va,{size:ja.XS,align:$,nowrap:!0,children:m}):t(P$,{size:ja.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(CC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(IC,{$textAlign:$,children:[f?t(iv,{text:f,children:C}):C,(!b||!y)&&e(kC,{children:[!b&&t(RC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(LC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===fC.Data&&t(EC,{})]},`column-${g}`)})]}),UC=()=>{},MC={},FC=[],zC=e=>[],BC=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:b,scrollSignal:y,expandedRowId:v,onExpandedRowIdChange:$})=>{const[w,S]=Ht(fi.Ascending),[x,C]=Ht(""),[E,T]=Ht({}),[O,N]=Ht(null),A=m??E,k=void 0!==v,I=k?v:O,_=Xt(e=>{C(e),S(e=>e===fi.Ascending?fi.Descending:fi.Ascending)},[]),D=Xt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),R=Gt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i?""!==i.rawValue&&null!=i.rawValue?i.rawValue:i.component?.({})?.props?.children?.toString()||"":""},t=/^-?\d+(\.\d+)?$/,i=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e){const i=e.trim();return t.test(i)?Number(i):e}return String(e??"")};return(x?[...c].sort((t,n)=>{const r=i(e(t,x)),o=i(e(n,x));return(w===fi.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(r,o)}):c).filter(t=>{for(const[i,n]of Object.entries(A)){if(!n.length)continue;const r=d.find(e=>e.key===i)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1;continue}const o=String(e(t,i)??"");if(!n.map(String).includes(o))return!1}return!0})},[c,x,w,A,d]),L=Gt(()=>null==b?-1:R.findIndex(e=>e.id===b),[R,b]),P=!!g&&R.some(e=>!e.hideCheckbox),{partiallySelected:U,allSelected:M}=Gt(()=>{const e=R.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[R]),F=Gt(()=>{const e=new Set,t=d[d.length-1]?.key;for(const i of d)i.key!==t&&!1!==i.autoWidth&&e.add(i.key);return e},[d]),z=Vt(null),[B,j]=Ht({}),H=Gt(()=>{if(0===F.size)return[];const i=d[0]?.key,n=c.some(e=>null!=e.expandedContent);return d.filter(e=>F.has(e.key)).map(r=>{const o=[e(AC,{children:[t(Va,{size:ja.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(kC,{children:[!r.noSort&&t(RC,{columnKey:r.key,sortDirection:fi.Ascending,sortByKey:"",onSort:UC}),!r.noFilter&&t(LC,{columnKey:r.key,filters:MC,onFilter:UC,rowsUnfiltered:FC,filterOverride:r.filterOverride})]})]},`mw-${r.key}-header`)],a=n&&r.key===i;return c.forEach((i,n)=>{const s=i.cells.find(e=>e.key===r.key);if(!s)return;const l=s.component?s.component():t(Va,{size:ja.XS,children:s.rawValue||"-"});o.push(a?e(_l,{$gap:8,children:[t(Ut,{}),l]},`mw-${r.key}-${n}`):t(zt.Fragment,{children:l},`mw-${r.key}-${n}`))}),{key:r.key,nodes:o}})},[d,c,F]);Kt(()=>{if(!z.current||0===F.size)return void j(e=>0===Object.keys(e).length?e:{});const e={};z.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||n>e[i])&&(e[i]=n)}),j(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[H,F]);const W=Vt(null),[X,G]=Ht(0),V=R.some(e=>null!=e.expandedContent);Kt(()=>{if(!V)return void G(0);const e=W.current;if(!e)return;const t=()=>{const t=e.clientHeight;G(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[V,R.length]);const K=Xt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),Y=V&&X>0?`${X}px`:void 0,J=r&&null!=n&&R.length>=100,q=!r||J;return e(bC,{$maxHeight:n,$fitContent:r,$virtualize:J,children:[H.length>0&&t(OC,{ref:z,"aria-hidden":!0,children:H.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(NC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(yC,{$variant:i,children:[!a&&t(vC,{children:t(PC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:F,resolvedColumnWidths:B,sortDirection:w,sortByKey:x,onSort:_,filters:A,onFilter:D,withCheckboxes:P,partiallySelected:U,allSelected:M,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?q?t($C,{ref:V?W:void 0,children:t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:F,resolvedColumnWidths:B,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:P,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:K,expandedMaxHeight:Y})}):t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:F,resolvedColumnWidths:B,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:P,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!1,expandedRowId:I,onToggleExpand:K,expandedMaxHeight:Y}):t(Rl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(gC,{size:3,maxHeight:n}):t(c$,{...l})})]})]})},jC=n.div`
1870
1873
  padding: 6px 12px;
1871
1874
 
1872
1875
  display: flex;
@@ -1884,7 +1887,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1884
1887
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1885
1888
  }
1886
1889
  `}
1887
- `,jC=n.textarea`
1890
+ `,HC=n.textarea`
1888
1891
  max-width: ${({$maxWidth:e})=>e||"unset"};
1889
1892
  min-height: ${({$minHeight:e})=>e||"50px"};
1890
1893
  flex: 1;
@@ -1909,23 +1912,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1909
1912
  color: ${({theme:e})=>e.v2.colors.grey[400]};
1910
1913
  }
1911
1914
  }
1912
- `,HC=({label:i,required:n,tooltip:r,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Vt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(_l,{$gap:6,children:[t(p$,{label:i,tooltip:r,required:n,badge:o}),t(BC,{$disabled:p,$error:!!a,children:t(jC,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(h$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},XC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],WC=n.div`
1915
+ `,WC=({label:i,required:n,tooltip:r,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Vt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Dl,{$gap:6,children:[t(h$,{label:i,tooltip:r,required:n,badge:o}),t(jC,{$disabled:p,$error:!!a,children:t(HC,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(g$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},XC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],GC=n.div`
1913
1916
  flex: 1;
1914
1917
  min-width: 0;
1915
- `,GC=n.div`
1918
+ `,VC=n.div`
1916
1919
  flex: 0 0 auto;
1917
1920
  min-width: 140px;
1918
- `,VC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=XC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Gt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Gt(()=>((e,t,i)=>{if(null==e||""===e)return{num:"",unit:i};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(r);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:i}:{num:"",unit:i}})(d,u,y),[d,u,y]),w=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(_l,{$width:b,$gap:6,children:[t(p$,{label:n,tooltip:r,required:s,badge:o}),e(Il,{$gap:8,$alignItems:"center",children:[t(WC,{children:t(sw,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(md(e.target.value),$)})}),t(GC,{children:t(YS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(h$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},KC=n.div`
1921
+ `,KC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=XC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Gt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Gt(()=>((e,t,i)=>{if(null==e||""===e)return{num:"",unit:i};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(r);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:i}:{num:"",unit:i}})(d,u,y),[d,u,y]),w=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Dl,{$width:b,$gap:6,children:[t(h$,{label:n,tooltip:r,required:s,badge:o}),e(_l,{$gap:8,$alignItems:"center",children:[t(GC,{children:t(lw,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(fd(e.target.value),$)})}),t(VC,{children:t(JS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(g$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},YC=n.div`
1919
1922
  display: flex;
1920
1923
  flex-direction: column;
1921
1924
  min-width: 0;
1922
1925
  width: 100%;
1923
1926
  flex: 1;
1924
- `,YC=n.div`
1925
- display: flex;
1926
- flex-wrap: wrap;
1927
- align-items: center;
1928
- gap: 10px;
1927
+ `,JC=n.div`
1929
1928
  width: 100%;
1930
1929
  padding: 8px;
1931
1930
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -1938,19 +1937,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1938
1937
  border-top-left-radius: 12px;
1939
1938
  border-top-right-radius: 12px;
1940
1939
  `;default:return r``}}}
1941
- `,JC=n.div`
1940
+ `,qC=n.div`
1942
1941
  display: flex;
1943
1942
  align-items: center;
1944
1943
  gap: 4px;
1945
1944
  min-width: 0;
1946
- `,qC=n.div`
1945
+ `,QC=n.div`
1947
1946
  display: flex;
1948
1947
  align-items: center;
1949
1948
  justify-content: center;
1950
1949
  padding: 4px;
1951
1950
  border-radius: 4px;
1952
1951
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1953
- `,QC=n.div`
1952
+ `,ZC=n.div`
1954
1953
  display: flex;
1955
1954
  flex-direction: column;
1956
1955
  width: 100%;
@@ -1978,11 +1977,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1978
1977
  border-bottom-left-radius: 8px;
1979
1978
  border-bottom-right-radius: 8px;
1980
1979
  `;default:return r``}}}
1981
- `,ZC=r`
1980
+ `,eE=r`
1982
1981
  ${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
1983
1982
  background-color: ${e.v2.colors.yellow[1e3]};
1984
1983
  border-left: 2px solid ${e.v2.colors.yellow[500]};
1985
- `;case"new":return r`
1984
+ `;case"new":case"removed":return r`
1986
1985
  background-color: ${e.v2.colors.red[900]};
1987
1986
  border-left: 2px solid ${e.v2.colors.red[500]};
1988
1987
  `;case"placeholder":return r`
@@ -1996,7 +1995,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1996
1995
  ${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
1997
1996
  border-left-color: ${i.v2.colors.silver[500]};
1998
1997
  `}
1999
- `,eE=n.button`
1998
+ `,tE=n.button`
2000
1999
  display: flex;
2001
2000
  flex-direction: column;
2002
2001
  align-items: stretch;
@@ -2010,12 +2009,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
2010
2009
  color: inherit;
2011
2010
  font: inherit;
2012
2011
  cursor: ${({$interactive:e})=>e?"pointer":"default"};
2013
- ${ZC}
2012
+ ${eE}
2014
2013
 
2015
2014
  &:last-child {
2016
2015
  box-shadow: none;
2017
2016
  }
2018
- `,tE=n.div`
2017
+ `,iE=n.div`
2019
2018
  display: flex;
2020
2019
  align-items: center;
2021
2020
  gap: 8px;
@@ -2024,16 +2023,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
2024
2023
  padding: 0 8px;
2025
2024
  padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
2026
2025
  box-sizing: border-box;
2027
- `,iE=n(Va)`
2026
+ `,nE=n(Va)`
2028
2027
  flex-shrink: 0;
2029
2028
  min-width: 10px;
2030
- `,nE=n.div`
2029
+ `,rE=n.div`
2031
2030
  display: flex;
2032
2031
  flex: 1;
2033
2032
  align-items: center;
2034
2033
  gap: 4px;
2035
2034
  min-width: 0;
2036
- `,rE=n.div`
2035
+ `,oE=n.div`
2037
2036
  display: flex;
2038
2037
  flex-shrink: 0;
2039
2038
  align-items: center;
@@ -2043,22 +2042,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
2043
2042
  overflow: hidden;
2044
2043
  border-radius: 4px;
2045
2044
  background-color: ${({theme:e})=>e.v2.colors.purple[900]};
2046
- `,oE=n(Va)`
2045
+ `,aE=n(Va)`
2047
2046
  width: 100%;
2048
2047
  overflow: hidden;
2049
2048
  font-family: ${({theme:e})=>e.font_family.code};
2050
2049
  line-height: 16px;
2051
2050
  text-overflow: ellipsis;
2052
2051
  white-space: nowrap;
2053
- `,aE=n.div`
2052
+ `,sE=n.div`
2054
2053
  display: flex;
2055
2054
  flex: 1;
2056
2055
  align-items: center;
2057
2056
  gap: 8px;
2058
2057
  min-width: 0;
2059
- `,sE=n(Va)`
2058
+ `,lE=n(Va)`
2060
2059
  flex-shrink: 0;
2061
- `,lE=n.div`
2060
+ `,dE=n.div`
2062
2061
  display: flex;
2063
2062
  flex-shrink: 0;
2064
2063
  align-items: center;
@@ -2077,18 +2076,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
2077
2076
  background-color: ${e.v2.colors.green[900]};
2078
2077
  color: ${e.v2.colors.green[300]};
2079
2078
  `}}}
2080
- `,dE=n.div`
2079
+ `,cE=n.div`
2081
2080
  display: flex;
2082
2081
  flex: 1;
2083
2082
  align-items: center;
2084
2083
  gap: 4px;
2085
2084
  min-width: 0;
2086
- `,cE=n.div`
2085
+ `,uE=n.div`
2087
2086
  display: flex;
2088
2087
  flex-direction: column;
2089
2088
  width: 100%;
2090
2089
  box-sizing: border-box;
2091
- `,uE=n.div`
2090
+ `,pE=n.div`
2092
2091
  display: flex;
2093
2092
  align-items: center;
2094
2093
  width: 100%;
@@ -2097,20 +2096,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
2097
2096
  box-sizing: border-box;
2098
2097
  background-color: ${({theme:e})=>e.v2.colors.green[900]};
2099
2098
  border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
2100
- `,pE=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},hE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(cE,{children:e(_l,{$gap:0,children:[i.scopePlaceholder?t(uE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(cx,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(uE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(cx,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},gE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Wt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(eE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(tE,{$depth:d,children:t(dE,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(eE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(tE,{$depth:d,children:[t(iE,{size:ja.XXXS,color:Ha.Disable,nowrap:!0,children:i.index??""}),e(nE,{children:[i.service?t(rE,{title:i.service,children:t(oE,{size:ja.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(aE,{children:[t(Va,{size:ja.XXXS,color:n||"default"!==s?Ha.Primary:Ha.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(lE,{$tone:p,children:[t(Va,{size:ja.XXXS,color:pE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:pE(a,p)}):null]}):null]}),i.durationLabel?t(sE,{size:ja.XXXS,color:h??Ha.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(hE,{row:i}):null]})},mE=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Gt(()=>new Set(l??[]),[l]),h=Wt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(KC,{children:[g&&e(YC,{$corner:c??"both",children:[(n||i)&&e(JC,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Va,{size:ja.XS,color:Ha.Primary,nowrap:!0,children:i})]}),r?.label?t(Rv,{label:r.label,backgroundColor:m,textColor:f,textSize:ja.XXXS}):null,a?.map(e=>t(qC,{children:t(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(QC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(gE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(Il,{$justifyContent:"center",style:{padding:16},children:t(Va,{size:ja.XXXS,color:Ha.Secondary,children:"No spans"})})})]})},fE=n.div`
2099
+ `,hE=e=>"placeholder"===e||"removed"===e,gE=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},mE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(uE,{children:e(Dl,{$gap:0,children:[i.scopePlaceholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(ux,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(ux,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},fE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l=!hE(s),d=i.depth??0,c=Xt(()=>{l&&r(i.id)},[l,r,i.id]);if(hE(s)){const e="removed"===s?a.v2.colors.red[500]:a.v2.colors.green[500];return t(tE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(iE,{$depth:d,children:t(cE,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:e}):null})})})}const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(tE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(iE,{$depth:d,children:[t(nE,{size:ja.XXXS,color:Ha.Disable,nowrap:!0,children:i.index??""}),e(rE,{children:[i.service?t(oE,{title:i.service,children:t(aE,{size:ja.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(sE,{children:[t(Va,{size:ja.XXXS,color:n||"default"!==s?Ha.Primary:Ha.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(dE,{$tone:p,children:[t(Va,{size:ja.XXXS,color:gE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:gE(a,p)}):null]}):null]}),i.durationLabel?t(lE,{size:ja.XXXS,color:h??Ha.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(mE,{row:i}):null]})},bE=({traceId:i,title:n,titleIcon:r,headerBadge:a,meta:s,rows:l,expandedRowIds:d,onToggleRow:c,corner:u="both"})=>{const p=o(),{clickCopy:h,isCopied:g}=sv(),m=Gt(()=>new Set(d??[]),[d]),f=Xt(e=>{c?.(e)},[c]),b=!!(r||n||a?.label||s?.length),y="success"===a?.tone?p.v2.colors.green[500]:"danger"===a?.tone?p.v2.colors.red[800]:p.v2.colors.silver[700],v="success"===a?.tone?p.v2.colors.black[500]:"danger"===a?.tone?p.v2.colors.white[500]:p.v2.colors.silver[200];return e(YC,{children:[b&&t(JC,{$corner:u??"both",children:e(Dl,{$gap:8,children:[e(_l,{$gap:10,$wrap:"wrap",children:[(r||n)&&e(qC,{children:[r&&t(r,{size:16,fill:p.v2.colors.white[500]}),n&&t(Va,{size:ja.XS,color:Ha.Primary,nowrap:!0,children:n})]}),a?.label?t(Lv,{label:a.label,backgroundColor:y,textColor:v,textSize:ja.XXXS}):null,s?.map(e=>t(QC,{children:t(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:e.label})},e.label))]}),!!i&&t(lw,{label:"Trace ID",value:i,readOnly:!0,small:!0,leftIcon:g?$t:wt,leftIconClick:()=>h(i)})]})}),t(ZC,{$hasHeader:b,$corner:u??"both",children:l?.length?l.map(e=>t(fE,{row:e,expanded:m.has(e.id),onToggle:f},e.id)):t(_l,{$justifyContent:"center",style:{padding:16},children:t(Va,{size:ja.XXXS,color:Ha.Secondary,children:"No spans"})})})]})},yE=n.div`
2101
2100
  min-width: 500px;
2102
- `,bE=n.div`
2101
+ `,vE=n.div`
2103
2102
  display: flex;
2104
2103
  flex-direction: column;
2105
2104
  align-items: center;
2106
2105
  gap: 16px;
2107
2106
  padding: 24px;
2108
2107
  width: 100%;
2109
- `,yE=n.div`
2108
+ `,$E=n.div`
2110
2109
  display: flex;
2111
2110
  justify-content: center;
2112
2111
  gap: 16px;
2113
2112
  padding: 16px 24px;
2114
2113
  width: 100%;
2115
2114
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2116
- `,vE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Px,{isOpen:o,onClose:a,...c,children:e(fE,{children:[e(bE,{children:[i&&t(i,{}),t(Va,{size:ja.M,weight:500,color:Ha.Primary,children:n}),t(_l,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Va,{size:ja.XS,weight:400,color:Ha.Secondary,children:e},e))}),d]}),(s||l)&&e(yE,{children:[s&&t(ov,{"data-id":"deny",...s}),l&&t(ov,{"data-id":"approve",...l})]})]})});export{lw as $,A$ as A,ov as B,Dl as C,KS as D,j$ as E,_l as F,BS as G,Yu as H,Nx as I,ep as J,_v as K,tp as L,ip as M,d$ as N,Ju as O,yi as P,wi as Q,R$ as R,Oi as S,tv as T,Iu as U,$l as V,vE as W,Us as X,K$ as Y,Pu as Z,r$ as _,k$ as a,$s as a$,Gu as a0,g$ as a1,np as a2,rp as a3,ku as a4,ss as a5,fS as a6,xx as a7,Qv as a8,Wc as a9,N$ as aA,lu as aB,xu as aC,ap as aD,vu as aE,Qu as aF,sp as aG,op as aH,lp as aI,dp as aJ,ju as aK,du as aL,pu as aM,hu as aN,fu as aO,yu as aP,bu as aQ,Nu as aR,Zc as aS,eu as aT,au as aU,Hu as aV,Xu as aW,Ku as aX,ag as aY,tu as aZ,Au as a_,Eu as aa,Mi as ab,Bi as ac,Yi as ad,Ji as ae,qi as af,zi as ag,ji as ah,Fi as ai,za as aj,Ru as ak,uu as al,Du as am,cu as an,Mu as ao,Cu as ap,_u as aq,Uu as ar,Vu as as,Tu as at,fx as au,Wu as av,wu as aw,su as ax,Su as ay,$u as az,bi as b,hC as b$,sg as b0,Zx as b1,Hl as b2,s$ as b3,av as b4,Is as b5,iS as b6,Iy as b7,Za as b8,sl as b9,Vi as bA,pd as bB,Nv as bC,hr as bD,gr as bE,mr as bF,fr as bG,br as bH,cn as bI,so as bJ,lo as bK,co as bL,uo as bM,po as bN,on as bO,nn as bP,Do as bQ,mn as bR,Ko as bS,hn as bT,Xo as bU,Fa as bV,Ma as bW,sc as bX,Li as bY,Xv as bZ,kl as b_,Si as ba,xi as bb,Cy as bc,Ly as bd,Fy as be,_y as bf,Ys as bg,Ja as bh,Dn as bi,en as bj,Ws as bk,Mc as bl,Uc as bm,Lc as bn,Pc as bo,id as bp,lc as bq,td as br,zy as bs,Nn as bt,si as bu,oi as bv,nd as bw,rd as bx,Pn as by,hd as bz,Fc as c,jo as c$,En as c0,Rv as c1,li as c2,zc as c3,hi as c4,Bc as c5,hx as c6,L$ as c7,Ka as c8,Ld as c9,Fr as cA,kr as cB,Ar as cC,Mr as cD,Ur as cE,Rr as cF,Dr as cG,Pr as cH,Lr as cI,Gr as cJ,Wr as cK,Br as cL,zr as cM,Xr as cN,Hr as cO,jr as cP,Jr as cQ,Yr as cR,Kr as cS,Vr as cT,Ix as cU,no as cV,Fn as cW,Mn as cX,io as cY,Ax as cZ,Bo as c_,rc as ca,Zd as cb,ec as cc,ic as cd,tc as ce,wp as cf,Ou as cg,Lu as ch,Sp as ci,Bu as cj,$p as ck,ru as cl,ou as cm,gu as cn,Cr as co,xr as cp,Er as cq,Tr as cr,qr as cs,Qr as ct,Zr as cu,eo as cv,_r as cw,Ir as cx,Nr as cy,Or as cz,p$ as d,Ta as d$,Ho as d0,Go as d1,Yn as d2,Jn as d3,Wn as d4,Wo as d5,Eo as d6,Co as d7,fv as d8,Oo as d9,ca as dA,ua as dB,da as dC,la as dD,Qo as dE,ga as dF,ha as dG,pa as dH,ba as dI,fa as dJ,ma as dK,Zo as dL,$a as dM,va as dN,ya as dO,ea as dP,Sa as dQ,wa as dR,ta as dS,xa as dT,Av as dU,Ca as dV,Ea as dW,Oa as dX,ka as dY,Aa as dZ,Na as d_,Vo as da,To as db,$o as dc,rr as dd,No as de,Xn as df,So as dg,Ao as dh,ko as di,Gn as dj,Vn as dk,Kn as dl,qn as dm,Qn as dn,vo as dp,Ua as dq,La as dr,Jo as ds,ra as dt,na as du,ia as dv,sa as dw,aa as dx,oa as dy,qo as dz,Va as e,Wd as e$,Pa as e0,Da as e1,Ra as e2,_a as e3,Ia as e4,an as e5,pr as e6,dr as e7,ur as e8,cr as e9,Xd as eA,gv as eB,rs as eC,Ui as eD,ns as eE,Gd as eF,cx as eG,Ms as eH,Vw as eI,Ny as eJ,Jl as eK,Yl as eL,js as eM,rx as eN,Oy as eO,al as eP,As as eQ,Wl as eR,Vy as eS,Jd as eT,Kd as eU,dd as eV,ll as eW,Xl as eX,Fs as eY,Ai as eZ,jd as e_,ar as ea,sr as eb,lr as ec,or as ed,nr as ee,_n as ef,ai as eg,NS as eh,TS as ei,Un as ej,Hs as ek,ac as el,Ba as em,qa as en,gi as eo,qx as ep,_s as eq,dS as er,bs as es,gS as et,On as eu,ud as ev,Es as ew,ql as ex,Js as ey,Ov as ez,Ha as f,em as f$,Zv as f0,zC as f1,mC as f2,mu as f3,Gc as f4,il as f5,zs as f6,wn as f7,Sn as f8,xn as f9,ng as fA,og as fB,rg as fC,Op as fD,Ep as fE,Cp as fF,Tp as fG,Dp as fH,_p as fI,Pp as fJ,Lp as fK,kp as fL,Ap as fM,Hc as fN,mp as fO,Xf as fP,Df as fQ,Rf as fR,Cf as fS,Ef as fT,Bm as fU,Gm as fV,Xm as fW,Vm as fX,Wm as fY,Km as fZ,tm as f_,Cc as fa,kc as fb,xc as fc,Ac as fd,Ic as fe,Sc as ff,Oc as fg,fc as fh,bc as fi,Nc as fj,Ec as fk,Tc as fl,Rc as fm,mc as fn,$c as fo,wc as fp,vc as fq,yc as fr,cc as fs,dc as ft,Dc as fu,_c as fv,jc as fw,Kc as fx,Xc as fy,Vc as fz,ja as g,hm as g$,df as g0,lf as g1,cf as g2,ff as g3,Pg as g4,pf as g5,uf as g6,Pf as g7,Uf as g8,xf as g9,Zm as gA,qf as gB,eb as gC,Nm as gD,Am as gE,py as gF,hy as gG,by as gH,$y as gI,km as gJ,xm as gK,$m as gL,vm as gM,ty as gN,Qg as gO,qg as gP,ey as gQ,Jg as gR,Yg as gS,om as gT,rm as gU,lb as gV,sm as gW,bS as gX,am as gY,pm as gZ,um as g_,Sf as ga,Of as gb,Tf as gc,Af as gd,Nf as ge,Hf as gf,Kf as gg,Yf as gh,Gf as gi,Vf as gj,Fm as gk,zm as gl,Pm as gm,Um as gn,Mm as go,Rm as gp,Dm as gq,Im as gr,Lm as gs,Om as gt,Bf as gu,Tm as gv,Cm as gw,Em as gx,zf as gy,Kg as gz,Il as h,fh as h$,mm as h0,fm as h1,ym as h2,bm as h3,cm as h4,dm as h5,lm as h6,my as h7,Cg as h8,oy as h9,Jh as hA,qh as hB,Qh as hC,Zh as hD,eg as hE,tg as hF,zp as hG,jp as hH,Hp as hI,Xp as hJ,Gp as hK,Wp as hL,Kp as hM,Vp as hN,Jp as hO,Yp as hP,qp as hQ,Up as hR,Mp as hS,oh as hT,ah as hU,ph as hV,ch as hW,uh as hX,lh as hY,dh as hZ,sh as h_,sy as ha,ay as hb,im as hc,ly as hd,dy as he,cy as hf,uy as hg,_f as hh,xg as hi,Zf as hj,Qf as hk,pv as hl,od as hm,bv as hn,Px as ho,Ey as hp,ig as hq,Fp as hr,Qp as hs,Zp as ht,eh as hu,th as hv,nh as hw,ih as hx,rh as hy,Ol as hz,nv as i,mo as i$,bh as i0,gh as i1,mh as i2,hh as i3,vh as i4,$h as i5,yh as i6,Bp as i7,Bh as i8,jh as i9,Nh as iA,kh as iB,Rh as iC,nl as iD,Nl as iE,ew as iF,dn as iG,ln as iH,sn as iI,pn as iJ,un as iK,gn as iL,Ev as iM,tC as iN,sC as iO,nC as iP,ks as iQ,mE as iR,Rd as iS,Ln as iT,Rn as iU,_w as iV,Wx as iW,rn as iX,er as iY,vr as iZ,go as i_,Hh as ia,zh as ib,Wh as ic,Gh as id,Vh as ie,Kh as ig,Yh as ih,Xh as ii,Mh as ij,Fh as ik,Ah as il,Lh as im,Ph as io,Uh as ip,Ih as iq,Dh as ir,_h as is,wh as it,Sh as iu,xh as iv,Ch as iw,Eh as ix,Th as iy,Oh as iz,iv as j,ib as j$,jn as j0,zn as j1,fo as j2,Hn as j3,bo as j4,Bn as j5,xo as j6,ho as j7,tr as j8,ir as j9,Xs as jA,Xy as jB,Ts as jC,Cs as jD,xs as jE,Ya as jF,dl as jG,Hi as jH,q$ as jI,qc as jJ,Yc as jK,Jc as jL,Qc as jM,Zu as jN,xp as jO,gp as jP,pp as jQ,hp as jR,up as jS,cp as jT,yp as jU,vp as jV,bp as jW,fp as jX,mv as jY,ob as jZ,tb as j_,Zn as ja,ro as jb,oo as jc,ao as jd,Sr as je,wr as jf,$r as jg,to as jh,yr as ji,jw as jj,Dw as jk,bn as jl,Al as jm,gC as jn,ky as jo,Os as jp,Qa as jq,Vd as jr,vv as js,Ty as jt,Py as ju,Vs as jv,Ds as jw,Rs as jx,Ks as jy,Gs as jz,h$ as k,Ci as k$,rb as k0,nb as k1,mb as k2,_b as k3,hb as k4,fb as k5,yb as k6,bb as k7,Zb as k8,Jb as k9,kg as kA,Ig as kB,_g as kC,Xg as kD,Dg as kE,Rg as kF,Gg as kG,Wg as kH,Ng as kI,cg as kJ,dg as kK,_i as kL,ui as kM,ki as kN,Ri as kO,vn as kP,yn as kQ,fn as kR,tn as kS,vi as kT,$i as kU,Ni as kV,pi as kW,Cn as kX,mi as kY,ci as kZ,Pi as k_,Yb as ka,iy as kb,ry as kc,ny as kd,vb as ke,$b as kf,wb as kg,Db as kh,Rb as ki,Lg as kj,Ug as kk,Mg as kl,Fg as km,zg as kn,fg as ko,yg as kp,vg as kq,$g as kr,wg as ks,yf as kt,Sg as ku,af as kv,Bg as kw,jg as kx,Hg as ky,Ag as kz,ts as l,iu as l$,Gi as l0,Wi as l1,Xi as l2,Di as l3,$n as l4,Zi as l5,Qi as l6,Ki as l7,fi as l8,di as l9,fd as lA,bd as lB,Pd as lC,Ud as lD,Ss as lE,Md as lF,Fd as lG,Tn as lH,qd as lI,qu as lJ,yo as lK,wo as lL,Rp as lM,Ip as lN,Np as lO,Fu as lP,zu as lQ,zo as lR,Fo as lS,Mo as lT,Uo as lU,_o as lV,Lo as lW,Io as lX,Ro as lY,Po as lZ,nu as l_,Ii as la,Sl as lb,wl as lc,El as ld,ys as le,os as lf,vs as lg,gd as lh,Ns as li,Ps as lj,ws as lk,Bs as ll,is as lm,Qs as ln,Zs as lo,el as lp,tl as lq,rl as lr,Gl as ls,Ql as lt,Zl as lu,ed as lv,ad as lw,sd as lx,cd as ly,md as lz,es as m,Hb as m$,Yd as m0,pc as m1,hc as m2,gc as m3,uc as m4,lg as m5,jf as m6,ef as m7,tf as m8,nf as m9,Vg as mA,gb as mB,gg as mC,hg as mD,pg as mE,gf as mF,db as mG,sb as mH,pb as mI,ub as mJ,cb as mK,ab as mL,gm as mM,Qm as mN,Jm as mO,qm as mP,Ym as mQ,Bb as mR,zb as mS,Pb as mT,Mb as mU,Ub as mV,Fb as mW,Vb as mX,Wb as mY,Xb as mZ,jb as m_,$f as ma,wf as mb,Ib as mc,kb as md,Ab as me,Sb as mf,Eb as mg,Nb as mh,xb as mi,Tb as mj,Cb as mk,Ob as ml,Jf as mm,Eg as mn,Ff as mo,mg as mp,gy as mq,jm as mr,Hm as ms,rf as mt,Lf as mu,_m as mv,Og as mw,Tg as mx,bg as my,Wf as mz,Ei as n,Rl as n$,Lb as n0,Gb as n1,of as n2,wm as n3,mf as n4,yy as n5,vy as n6,Mf as n7,vf as n8,nm as n9,uv as nA,hv as nB,Ky as nC,wv as nD,Hv as nE,qv as nF,Wv as nG,jv as nH,pw as nI,hw as nJ,v$ as nK,XC as nL,qS as nM,ex as nN,ix as nO,ox as nP,Pl as nQ,jx as nR,Ll as nS,Uv as nT,yx as nU,H$ as nV,Ul as nW,Ml as nX,Fl as nY,Jw as nZ,ES as n_,Sy as na,wy as nb,fy as nc,kf as nd,ug as ne,Zg as nf,If as ng,sf as nh,Qb as ni,qb as nj,Kb as nk,bf as nl,hf as nm,Sm as nn,kn as no,In as np,Yo as nq,Qd as nr,Wy as ns,Cv as nt,Gy as nu,jy as nv,yv as nw,Hy as nx,sv as ny,dv as nz,xS as o,Wa as o0,vS as p,yS as q,VC as r,b$ as s,ri as t,YS as u,HC as v,ls as w,px as x,sw as y,Ti as z};
2115
+ `,wE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Ux,{isOpen:o,onClose:a,...c,children:e(yE,{children:[e(vE,{children:[i&&t(i,{}),t(Va,{size:ja.M,weight:500,color:Ha.Primary,children:n}),t(Dl,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Va,{size:ja.XS,weight:400,color:Ha.Secondary,children:e},e))}),d]}),(s||l)&&e($E,{children:[s&&t(av,{"data-id":"deny",...s}),l&&t(av,{"data-id":"approve",...l})]})]})});export{o$ as $,k$ as A,av as B,Rl as C,YS as D,Ti as E,Dl as F,H$ as G,jS as H,Ax as I,Ju as J,tp as K,Dv as L,ip as M,c$ as N,np as O,yi as P,qu as Q,L$ as R,Oi as S,iv as T,_u as U,wl as V,wE as W,wi as X,Ms as Y,Y$ as Z,Uu as _,I$ as a,ku as a$,dw as a0,Vu as a1,m$ as a2,rp as a3,op as a4,Iu as a5,ss as a6,bS as a7,Cx as a8,Zv as a9,wu as aA,A$ as aB,du as aC,Cu as aD,sp as aE,$u as aF,Zu as aG,lp as aH,ap as aI,dp as aJ,cp as aK,Hu as aL,cu as aM,hu as aN,gu as aO,bu as aP,vu as aQ,yu as aR,Au as aS,eu as aT,tu as aU,su as aV,Wu as aW,Xu as aX,Yu as aY,sg as aZ,iu as a_,Gc as aa,Tu as ab,Mi as ac,Bi as ad,Yi as ae,Ji as af,qi as ag,zi as ah,ji as ai,Fi as aj,za as ak,Lu as al,pu as am,Ru as an,uu as ao,Fu as ap,Eu as aq,Du as ar,Mu as as,Ku as at,Ou as au,bx as av,Gu as aw,Su as ax,lu as ay,xu as az,bi as b,Il as b$,$s as b0,lg as b1,eC as b2,Wl as b3,l$ as b4,sv as b5,_s as b6,nS as b7,_y as b8,Za as b9,gd as bA,Vi as bB,hd as bC,Av as bD,hr as bE,gr as bF,mr as bG,fr as bH,br as bI,cn as bJ,so as bK,lo as bL,co as bM,uo as bN,po as bO,on as bP,nn as bQ,Do as bR,mn as bS,Ko as bT,hn as bU,Wo as bV,Fa as bW,Ma as bX,lc as bY,Li as bZ,Xv as b_,ll as ba,Si as bb,xi as bc,Ey as bd,Py as be,zy as bf,Dy as bg,Js as bh,Ja as bi,Dn as bj,en as bk,Gs as bl,Fc as bm,Mc as bn,Pc as bo,Uc as bp,nd as bq,dc as br,id as bs,By as bt,Nn as bu,si as bv,oi as bw,rd as bx,od as by,Pn as bz,zc as c,Bo as c$,gC as c0,En as c1,Lv as c2,li as c3,Bc as c4,hi as c5,jc as c6,gx as c7,P$ as c8,Ka as c9,Or as cA,Fr as cB,kr as cC,Ar as cD,Mr as cE,Ur as cF,Rr as cG,Dr as cH,Pr as cI,Lr as cJ,Gr as cK,Xr as cL,Br as cM,zr as cN,Wr as cO,Hr as cP,jr as cQ,Jr as cR,Yr as cS,Kr as cT,Vr as cU,_x as cV,no as cW,Fn as cX,Mn as cY,io as cZ,kx as c_,Pd as ca,oc as cb,ec as cc,tc as cd,nc as ce,ic as cf,Sp as cg,Nu as ch,Pu as ci,xp as cj,ju as ck,wp as cl,ou as cm,au as cn,mu as co,Cr as cp,xr as cq,Er as cr,Tr as cs,qr as ct,Qr as cu,Zr as cv,eo as cw,_r as cx,Ir as cy,Nr as cz,h$ as d,Na as d$,jo as d0,Ho as d1,Go as d2,Yn as d3,Jn as d4,Xn as d5,Xo as d6,Eo as d7,Co as d8,bv as d9,qo as dA,ca as dB,ua as dC,da as dD,la as dE,Qo as dF,ga as dG,ha as dH,pa as dI,ba as dJ,fa as dK,ma as dL,Zo as dM,$a as dN,va as dO,ya as dP,ea as dQ,Sa as dR,wa as dS,ta as dT,xa as dU,kv as dV,Ca as dW,Ea as dX,Oa as dY,ka as dZ,Aa as d_,Oo as da,Vo as db,To as dc,$o as dd,rr as de,No as df,Wn as dg,So as dh,Ao as di,ko as dj,Gn as dk,Vn as dl,Kn as dm,qn as dn,Qn as dp,vo as dq,Ua as dr,La as ds,Jo as dt,ra as du,na as dv,ia as dw,sa as dx,aa as dy,oa as dz,Va as e,Hd as e$,Ta as e0,Pa as e1,Da as e2,Ra as e3,_a as e4,Ia as e5,an as e6,pr as e7,dr as e8,ur as e9,Nv as eA,Xd as eB,mv as eC,rs as eD,Ui as eE,ns as eF,Vd as eG,ux as eH,Fs as eI,Kw as eJ,Ay as eK,ql as eL,Jl as eM,Hs as eN,ox as eO,Ny as eP,sl as eQ,ks as eR,Gl as eS,Ky as eT,qd as eU,Yd as eV,cd as eW,dl as eX,Xl as eY,zs as eZ,Ai as e_,cr as ea,ar as eb,sr as ec,lr as ed,or as ee,nr as ef,_n as eg,ai as eh,AS as ei,OS as ej,Un as ek,Ws as el,sc as em,Ba as en,qa as eo,gi as ep,Qx as eq,Ds as er,cS as es,bs as et,mS as eu,On as ev,pd as ew,Es as ex,Ql as ey,qs as ez,Ha as f,im as f$,Gd as f0,e$ as f1,BC as f2,fC as f3,fu as f4,Vc as f5,nl as f6,Bs as f7,wn as f8,Sn as f9,Kc as fA,rg as fB,ag as fC,og as fD,Np as fE,Tp as fF,Ep as fG,Op as fH,Rp as fI,Dp as fJ,Up as fK,Pp as fL,Ip as fM,kp as fN,Wc as fO,fp as fP,Xf as fQ,Rf as fR,Lf as fS,Ef as fT,Tf as fU,jm as fV,Vm as fW,Xm as fX,Km as fY,Gm as fZ,Ym as f_,xn as fa,Ec as fb,Ic as fc,Cc as fd,kc as fe,_c as ff,xc as fg,Nc as fh,bc as fi,yc as fj,Ac as fk,Tc as fl,Oc as fm,Lc as fn,fc as fo,wc as fp,Sc as fq,$c as fr,vc as fs,uc as ft,cc as fu,Rc as fv,Dc as fw,Hc as fx,Yc as fy,Xc as fz,ja as g,pm as g$,tm as g0,cf as g1,df as g2,uf as g3,bf as g4,Ug as g5,hf as g6,pf as g7,Uf as g8,Mf as g9,Yg as gA,ef as gB,Qf as gC,tb as gD,Am as gE,km as gF,hy as gG,gy as gH,yy as gI,wy as gJ,Im as gK,Cm as gL,wm as gM,$m as gN,iy as gO,Zg as gP,Qg as gQ,ty as gR,qg as gS,Jg as gT,am as gU,om as gV,db as gW,lm as gX,yS as gY,sm as gZ,hm as g_,Cf as ga,xf as gb,Nf as gc,Of as gd,kf as ge,Af as gf,Wf as gg,Yf as gh,Jf as gi,Vf as gj,Kf as gk,zm as gl,Bm as gm,Um as gn,Mm as go,Fm as gp,Lm as gq,Rm as gr,_m as gs,Pm as gt,Nm as gu,jf as gv,Om as gw,Em as gx,Tm as gy,Bf as gz,_l as h,lh as h$,gm as h0,fm as h1,bm as h2,vm as h3,ym as h4,um as h5,cm as h6,dm as h7,fy as h8,Eg as h9,Nl as hA,qh as hB,Qh as hC,Zh as hD,eg as hE,tg as hF,ig as hG,Bp as hH,Hp as hI,Wp as hJ,Xp as hK,Vp as hL,Gp as hM,Yp as hN,Kp as hO,qp as hP,Jp as hQ,Qp as hR,Mp as hS,Fp as hT,ah as hU,sh as hV,hh as hW,uh as hX,ph as hY,dh as hZ,ch as h_,ay as ha,ly as hb,sy as hc,nm as hd,dy as he,cy as hf,uy as hg,py as hh,Df as hi,Cg as hj,eb as hk,Zf as hl,hv as hm,ad as hn,yv as ho,Ux as hp,Ty as hq,ng as hr,zp as hs,Zp as ht,eh as hu,th as hv,ih as hw,rh as hx,nh as hy,oh as hz,rv as i,go as i$,bh as i0,yh as i1,mh as i2,fh as i3,gh as i4,$h as i5,wh as i6,vh as i7,jp as i8,jh as i9,Nh as iA,Ah as iB,Ih as iC,Lh as iD,rl as iE,Al as iF,tw as iG,Ns as iH,dn as iI,ln as iJ,sn as iK,pn as iL,un as iM,gn as iN,Tv as iO,iC as iP,lC as iQ,rC as iR,Is as iS,bE as iT,Ld as iU,Ln as iV,Rn as iW,Dw as iX,rn as iY,er as iZ,vr as i_,Hh as ia,Wh as ib,Bh as ic,Gh as id,Vh as ie,Kh as ig,Yh as ih,Jh as ii,Xh as ij,Fh as ik,zh as il,kh as im,Ph as io,Uh as ip,Mh as iq,_h as ir,Rh as is,Dh as it,Sh as iu,xh as iv,Ch as iw,Eh as ix,Th as iy,Oh as iz,nv as j,ib as j$,mo as j0,jn as j1,zn as j2,fo as j3,Hn as j4,bo as j5,Bn as j6,xo as j7,ho as j8,tr as j9,Vs as jA,Xs as jB,Xy as jC,Ts as jD,Cs as jE,xs as jF,Ya as jG,cl as jH,Hi as jI,Q$ as jJ,Qc as jK,Jc as jL,qc as jM,Zc as jN,ep as jO,Cp as jP,mp as jQ,hp as jR,gp as jS,pp as jT,up as jU,vp as jV,$p as jW,yp as jX,bp as jY,fv as jZ,ab as j_,ir as ja,Zn as jb,ro as jc,oo as jd,ao as je,Sr as jf,wr as jg,$r as jh,to as ji,yr as jj,Hw as jk,Rw as jl,bn as jm,kl as jn,mC as jo,Iy as jp,Os as jq,Qa as jr,Kd as js,$v as jt,Oy as ju,Uy as jv,Ks as jw,Rs as jx,Ls as jy,Ys as jz,g$ as k,Pi as k$,nb as k0,ob as k1,rb as k2,fb as k3,Db as k4,gb as k5,bb as k6,vb as k7,yb as k8,ey as k9,kg as kA,Ig as kB,_g as kC,Dg as kD,Xg as kE,Rg as kF,Lg as kG,Vg as kH,Gg as kI,Ag as kJ,ug as kK,cg as kL,_i as kM,ui as kN,ki as kO,Ri as kP,vn as kQ,yn as kR,fn as kS,tn as kT,vi as kU,$i as kV,Ni as kW,pi as kX,Cn as kY,mi as kZ,ci as k_,qb as ka,Jb as kb,ny as kc,oy as kd,ry as ke,$b as kf,wb as kg,Sb as kh,Rb as ki,Lb as kj,Pg as kk,Mg as kl,Fg as km,zg as kn,Bg as ko,bg as kp,vg as kq,$g as kr,wg as ks,Sg as kt,vf as ku,xg as kv,sf as kw,jg as kx,Hg as ky,Wg as kz,Gx as l,ru as l$,Ci as l0,Gi as l1,Xi as l2,Wi as l3,Di as l4,$n as l5,Zi as l6,Qi as l7,Ki as l8,fi as l9,fd as lA,bd as lB,yd as lC,Ud as lD,Md as lE,Ss as lF,Fd as lG,zd as lH,Tn as lI,Qd as lJ,Qu as lK,yo as lL,wo as lM,Lp as lN,_p as lO,Ap as lP,zu as lQ,Bu as lR,zo as lS,Fo as lT,Mo as lU,Uo as lV,_o as lW,Lo as lX,Io as lY,Ro as lZ,Po as l_,di as la,Ii as lb,xl as lc,Sl as ld,Tl as le,ys as lf,os as lg,vs as lh,md as li,As as lj,Us as lk,ws as ll,js as lm,is as ln,Zs as lo,el as lp,tl as lq,il as lr,ol as ls,Vl as lt,Zl as lu,ed as lv,td as lw,sd as lx,ld as ly,ud as lz,ts as m,Hb as m$,nu as m0,Jd as m1,hc as m2,gc as m3,mc as m4,pc as m5,dg as m6,Hf as m7,tf as m8,nf as m9,Gf as mA,Kg as mB,mb as mC,mg as mD,gg as mE,hg as mF,mf as mG,cb as mH,lb as mI,hb as mJ,pb as mK,ub as mL,sb as mM,mm as mN,Zm as mO,qm as mP,Qm as mQ,Jm as mR,jb as mS,Bb as mT,Ub as mU,Fb as mV,Mb as mW,zb as mX,Kb as mY,Gb as mZ,Xb as m_,rf as ma,wf as mb,Sf as mc,_b as md,Ib as me,kb as mf,xb as mg,Tb as mh,Ab as mi,Cb as mj,Ob as mk,Eb as ml,Nb as mm,qf as mn,Tg as mo,zf as mp,fg as mq,my as mr,Hm as ms,Wm as mt,of as mu,Pf as mv,Dm as mw,Ng as mx,Og as my,yg as mz,es as n,TS as n$,Wb as n0,Pb as n1,Vb as n2,af as n3,Sm as n4,ff as n5,vy as n6,$y as n7,Ff as n8,$f as n9,cv as nA,pv as nB,gv as nC,Yy as nD,Sv as nE,Wv as nF,Qv as nG,Gv as nH,Hv as nI,hw as nJ,gw as nK,$$ as nL,XC as nM,QS as nN,tx as nO,nx as nP,ax as nQ,Ul as nR,Hx as nS,Pl as nT,Mv as nU,vx as nV,W$ as nW,Ml as nX,Fl as nY,zl as nZ,qw as n_,rm as na,xy as nb,Sy as nc,by as nd,If as ne,pg as nf,em as ng,_f as nh,lf as ni,Zb as nj,Qb as nk,Yb as nl,yf as nm,gf as nn,xm as no,kn as np,In as nq,Yo as nr,Zd as ns,Gy as nt,Ev as nu,Vy as nv,Hy as nw,vv as nx,Wy as ny,lv as nz,Ei as o,Ll as o0,Xa as o1,CS as p,$S as q,vS as r,KC as s,ri as t,y$ as u,JS as v,WC as w,ls as x,hx as y,lw as z};