@odigos/ui-kit 0.0.300 → 0.0.302

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.
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwardRef as n,Fragment as r,useId as a,useState as s,useEffect as l,useCallback as d,useMemo as c,useRef as p,useContext as u,createContext as h,useLayoutEffect as m,createElement as g}from"react";import f,{css as y,useTheme as b,keyframes as v,ThemeProvider as $}from"styled-components";import{PrivacyIcon as w,NormalizationIcon as C,EnrichmentIcon as x,ActionIcon as S,VSquareIcon as E,XSquareIcon as T,ImageErrorIcon as O,KafkaLogo as N,RedisLogo as A,PostgresLogo as k,NginxLogo as I,MysqlLogo as _,BrowserLogo as D,ElixirLogo as R,SwiftLogo as L,RustLogo as P,RubyLogo as F,PhpLogo as M,CPlusPlusLogo as U,CSharpLogo as z,DotnetLogo as B,PythonLogo as j,NodejsLogo as H,GoLogo as W,JavaLogo as X,PyroscopeLogo as G,AwsXrayLogo as V,VictoriaMetricsLogo as K,UptraceLogo as Y,TraceloopLogo as q,TingyunLogo as J,TempoLogo as Q,TelemetryHubLogo as Z,SumoLogicLogo as ee,SplunkLogo as te,SignozLogo as ie,SeqLogo as oe,AwsS3Logo as ne,QuickwitLogo as re,GigapipeLogo as ae,QrynLogo as se,PrometheusLogo as le,OpenTelemetryLogo as de,OracleLogo as ce,OpsVerseLogo as pe,OpenObserveLogo as ue,OneUptimeLogo as he,OdigosLogo as me,ObserveLogo as ge,NewRelicLogo as fe,MiddlewareLogo as ye,LumigoLogo as be,LokiLogo as ve,LogzioLogo as $e,LightstepLogo as we,Last9Logo as Ce,KloudmateLogo as xe,JaegerLogo as Se,InstanaLogo as Ee,HyperDxLogo as Te,HoneycombLogo as Oe,GroundcoverLogo as Ne,GreptimeLogo as Ae,GrafanaLogo as ke,GoogleCloudPlatformLogo as Ie,ElasticSearchLogo as _e,ElasticApmLogo as De,DynatraceLogo as Re,DatadogLogo as Le,Dash0Logo as Pe,CoralogixLogo as Fe,AwsCloudwatchLogo as Me,ClickhouseLogo as Ue,ChronosphereLogo as ze,ChecklyLogo as Be,CauselyLogo as je,BonreeLogo as He,BetterStackLogo as We,AzureMonitorLogo as Xe,AzureBlobLogo as Ge,AxiomLogo as Ve,AppDynamicsLogo as Ke,AlibabaCloudLogo as Ye,AlaudaLogo as qe,RecommendationsIcon as Je,SamplingIcon as Qe,InstrumentationRuleIcon as Ze,DestinationIcon as et,SourceIcon as tt,NamespacesIcon as it,MetricsIcon as ot,PayloadCollectionIcon as nt,HeadersCollectionIcon as rt,CustomInstrumentationIcon as at,CodeAttributesIcon as st,TracesIcon as lt,LogsIcon as dt,EcsLogo as ct,CloudConnectorIcon as pt,VmLogo as ut,K8sLogo as ht,DotsHorizontalIcon as mt,QuestionCircleIcon as gt,ExclamationTriangleIcon as ft,ExclamationCircleIcon as yt,ISquareIcon as bt,AwsLogo as vt,AwsSecretsManagerLogo as $t,AwsStepFunctionsLogo as wt,AwsEventBridgeLogo as Ct,AwsBedrockLogo as xt,AwsApiGatewayLogo as St,AwsEc2Logo as Et,AwsKinesisLogo as Tt,AwsLambdaLogo as Ot,AwsSnsLogo as Nt,AwsSqsLogo as At,AwsDynamoDbLogo as kt,AwsStsLogo as It,OpenTelemetryLogoStripped as _t,CodeIcon as Dt,ChevronUpIcon as Rt,ChevronDownIcon as Lt,ChevronRightIcon as Pt,MinusIcon as Ft,PlusIcon as Mt,VIcon as Ut,CopyIcon as zt,XIcon as Bt,ExpandIcon as jt,SearchIcon as Ht,DotsVerticalIcon as Wt,EyeClosedIcon as Xt,EyeOpenIcon as Gt,ArrowIcon as Vt,ListIcon as Kt,TrashIcon as Yt,DotIcon as qt,ArrowRightIcon as Jt,ClockIcon as Qt,FilterIcon as Zt}from"../icons.js";import{create as ei}from"zustand";import ti from"javascript-time-ago";import ii from"javascript-time-ago/locale/en";import oi,{createPortal as ni}from"react-dom";import{interpolate as ri}from"flubber";import{Highlight as ai,themes as si}from"prism-react-renderer";import{ErrorBoundary as li}from"react-error-boundary";import{VList as di}from"virtua";const ci=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 pi,ui,hi,mi,gi,fi,yi,bi,vi,$i,wi,Ci,xi,Si,Ei,Ti,Oi,Ni,Ai,ki,Ii,_i,Di,Ri,Li,Pi,Fi,Mi,Ui,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki,Yi,qi,Ji,Qi,Zi,eo;(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"})(pi||(pi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ui||(ui={})),(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"})(hi||(hi={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(mi||(mi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(gi||(gi={})),(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"})(fi||(fi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(yi||(yi={})),(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"})(bi||(bi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(vi||(vi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})($i||($i={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(wi||(wi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(Ci||(Ci={})),(e=>{e.Community="community",e.Onprem="onprem"})(xi||(xi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(Si||(Si={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(Ei||(Ei={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(Ti||(Ti={})),(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.Browser="browser",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"})(Oi||(Oi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Ni||(Ni={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ai||(Ai={})),(e=>{e.DataStream="DataStream",e.Connection="Connection"})(ki||(ki={})),(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"})(Ii||(Ii={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(_i||(_i={})),(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"})(Di||(Di={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ri||(Ri={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Fi||(Fi={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Mi||(Mi={})),(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"})(Ui||(Ui={})),(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"})(zi||(zi={})),(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"})(Bi||(Bi={})),(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.BrowserCommunity="browser-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"})(ji||(ji={})),(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"})(Hi||(Hi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Wi||(Wi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Xi||(Xi={})),(e=>{e.HeaderKeys="headerKeys"})(Gi||(Gi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Vi||(Vi={}));class to{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 io{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,o){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=o||""}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 oo{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"})(Ki||(Ki={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Yi||(Yi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(qi||(qi={})),(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"})(Ji||(Ji={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Qi||(Qi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Zi||(Zi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(eo||(eo={}));const no={[Zi.Logs]:eo.Logs,[Zi.Metrics]:eo.Metrics,[Zi.Traces]:eo.Traces,[Zi.Profiles]:eo.Profiles},ro={[eo.Logs]:Zi.Logs,[eo.Metrics]:Zi.Metrics,[eo.Traces]:Zi.Traces,[eo.Profiles]:Zi.Profiles};var ao,so,lo,co,po,uo,ho,mo,go,fo,yo,bo,vo,$o,wo,Co,xo,So,Eo,To,Oo,No,Ao,ko;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(ao||(ao={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(so||(so={})),(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"})(lo||(lo={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(co||(co={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(po||(po={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(uo||(uo={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ho||(ho={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(mo||(mo={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(go||(go={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(fo||(fo={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(yo||(yo={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(bo||(bo={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(vo||(vo={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})($o||($o={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(wo||(wo={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(Co||(Co={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(xo||(xo={})),(e=>{e.Us="us",e.Bytes="bytes"})(So||(So={})),(e=>{e.Structural="structural",e.Metric="metric"})(Eo||(Eo={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})(To||(To={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(Oo||(Oo={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(No||(No={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(Ao||(Ao={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(ko||(ko={}));const Io={[ui.Enrichment]:{TITLE:"Enrichment",ICON:x},[ui.Normalization]:{TITLE:"Normalization",ICON:C},[ui.Privacy]:{TITLE:"Privacy & Governance",ICON:w}},_o={[pi.AddClusterInfo]:ui.Enrichment,[pi.K8sAttributes]:ui.Enrichment,[pi.ExtractAttribute]:ui.Enrichment,[pi.InferDbAttributes]:ui.Enrichment,[pi.DbQueryTemplatization]:ui.Normalization,[pi.URLTemplatization]:ui.Normalization,[pi.RenameAttributes]:ui.Normalization,[pi.PiiMasking]:ui.Privacy,[pi.DeleteAttributes]:ui.Privacy},Do=e=>{const t=_o[e];return t?Io[t].ICON:S},Ro=[{type:pi.K8sAttributes,icon:Do(pi.K8sAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[Si.K8s]},{type:pi.AddClusterInfo,icon:Do(pi.AddClusterInfo),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[Si.K8s]},{type:pi.DeleteAttributes,icon:Do(pi.DeleteAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[Si.K8s]},{type:pi.RenameAttributes,icon:Do(pi.RenameAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[Si.K8s]},{type:pi.PiiMasking,icon:Do(pi.PiiMasking),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[Si.K8s]},{type:pi.URLTemplatization,icon:Do(pi.URLTemplatization),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[Si.K8s]:ci("v1.21.0")},supportedPlatforms:[Si.K8s,Si.Vm]},{type:pi.ExtractAttribute,icon:Do(pi.ExtractAttribute),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[Si.K8s]:ci("v1.29.0")},supportedPlatforms:[Si.K8s]}],Lo=ci("v1.26"),Po=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Fo=(e,t,i)=>{const o=e.minVersion?.[t];return!o||ci(i)>=o},Mo=(e,t)=>Ro.filter(i=>Po(i,e)&&Fo(i,e,t)).map(i=>((e,t,i)=>t!==Si.K8s||ci(i)>=Lo?e:e.allowedSignals?.includes(Zi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Zi.Profiles)}:e)(i,e,t)),Uo=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Do(e.type),category:e.category||_o[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},zo="Coming soon",Bo="We are working on this feature and it will be available soon.";var jo;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(jo||(jo={}));const Ho={[jo.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[jo.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[jo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[jo.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[jo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[jo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Wo="Save Changes",Xo="Discard changes",Go="Default Policy",Vo="Overrides",Ko="No default policy yet",Yo="No overrides yet",qo="Choose override scope",Jo="Global",Qo="Choose Override type",Zo="Select Service",en="Select Transaction",tn="Service",on="Transaction",nn="Select service…",rn="Select transaction…",an="Anomaly Detection Policies",sn="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",ln="Add a default policy to set the global detection settings.",dn="Add overrides to adjust detection sensitivity for specific services.",cn="Create override policy",pn="Delete policy",un="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",hn="Name",mn="Trigger when risk level is",gn="Customize signal weights (advanced)",fn="Base weight",yn="Risk points",bn="Dangerous sub-cases - added on top of the base when detected:",vn="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.",$n="Low",wn="Medium",Cn="High",xn="Critical",Sn=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,En="Guardrails",Tn="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.",On="Created Guardrails",Nn="No guardrails yet",An="Create a guardrail to declare allowed service communication.",kn="Inspect a service",In="Edit guardrail",_n="Namespace",Dn="Service",Rn="Callers",Ln="Who may call this service (inbound) — any seen service",Pn="Additional callers",Fn="Add any service name not yet seen",Mn="No other services seen",Un="Insights has not seen any other services to allow as callers",zn="Callees",Bn="Internal services it may call (outbound) — any seen service",jn="Additional callees",Hn="Add any service name not yet seen",Wn="No other services seen",Xn="Insights has not seen any other services to allow as callees",Gn="checkout-service",Vn="Egress",Kn="Observed external destinations it may reach",Yn="Additional egress hosts",qn="Add any host or host:port not yet observed",Jn="api.example.com:443",Qn="No egress detected",Zn="No egress found for this selection",er="Transactions",tr="Operations this service may expose",ir="No Transactions detected",or="No transactions found for this selection",nr="Adopt as enforce",rr="Alert on violation",ar="Adopt as suggest",sr="Observe only",lr="Select a guardrail",dr="Create guardrail",cr="Delete guardrail",pr="Enforce",ur="Suggest",hr="auto",mr="allowed_callers",gr="allowed_callees",fr="allowed_egress",yr="allowed_transactions",br="auto_transaction_guardrail",vr="Learning Policies",$r="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",wr="Add a default policy to set the global learning settings.",Cr="Add overrides to adjust learning for specific services.",xr="Add override policy",Sr="Add override",Er="Add selection",Tr="Add condition",Or="Delete override",Nr="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",Ar="Select a policy",kr="Combine",Ir="Currently:",_r="Promotes when",Dr="Min matches",Rr="A policy with no conditions falls back to the count-only default.",Lr="Select Deviation class",Pr="Select deviation class…",Fr="Any",Mr="All",Ur="K of",zr="Any (OR)",Br="All (AND)",jr="K of N",Hr="Stable for N observations",Wr="Stable for a duration",Xr="Min observations",Gr="Min duration",Vr="Minutes",Kr="Hours",Yr="Days",qr={[lo.D1_call_edges]:"D1 call edges",[lo.D2_egress]:"D2 egress",[lo.D3_latency]:"D3 latency",[lo.D4_args_returns]:"D4 args/returns",[lo.D5_libraries]:"D5 libraries",[lo.D6_attr_relations]:"D6 attr relations",[lo.D7_db_access]:"D7 db access",[lo.D8_payload_size]:"D8 payload size"},Jr={[vo.Any]:"Any",[vo.All]:"All",[vo.KOf]:Ur},Qr=[{id:vo.Any,label:zr},{id:vo.All,label:Br},{id:vo.KOf,label:jr}],Zr=[{id:wo.StableObservations,label:Hr},{id:wo.StableDuration,label:Wr},{id:wo.MinObservations,label:Xr},{id:wo.MinDuration,label:Gr}],ea=e=>e===wo.StableDuration||e===wo.MinDuration,ta=e=>e===wo.StableObservations||e===wo.MinObservations,ia="Learning examples",oa="Retention",na="Memory limits",ra="Database writeback",aa="Transaction guardrails",sa="Transaction identity dimensions",la="Maximum example traces",da="Maximum number of example traces collected per transaction.",ca="traces",pa="Minimum sampling interval",ua="Minimum time between collected examples.",ha="seconds",ma="Sample trace retention",ga="Stored sample traces are deleted after this period.",fa="days",ya="Default: 120 · Maximum: 120",ba="Maximum transactions in memory",va="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",$a="transactions",wa="Maximum members per baseline",Ca="Limits the size of an individual baseline set, such as unique call edges or paths.",xa="members",Sa="Flush interval",Ea="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",Ta="Default: 15 · Maximum: 300",Oa="Auto-enable transaction guardrail when a service is promoted",Na="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail.",Aa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",ka=["http.response.status_code","rpc.grpc.status_code"],Ia=["user.id","URLs","request ids"],_a="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Da="No dimensions configured - transactions use the entry span name only.",Ra="Add dimension",La="e.g. http.response.status_code",Pa="On",Fa="Identity dimensions changed",Ma="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.",Ua="Reset all transactions",za="Keep existing transactions",Ba="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",ja="Save settings",Ha="System settings are not available.",Wa=5,Xa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Ga=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Va,Ka,Ya;(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"})(Va||(Va={})),(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"})(Ka||(Ka={})),(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"})(Ya||(Ya={}));const qa=new Set(Object.values(Ya)),Ja=(e,t)=>{if("string"!=typeof(i=t)||!qa.has(i))return t;var i;switch(t){case Ya.Primary:return e.v2.colors.white[500];case Ya.Secondary:return e.v2.colors.silver[200];case Ya.Tertiary:return e.v2.colors.black[500];case Ya.Disable:return e.v2.colors.grey[400];case Ya.Error:return e.v2.colors.red[500];case Ya.Mandatory:return e.v2.colors.red[600];case Ya.Link:return e.v2.colors.purple[400];case Ya.Success:return e.v2.colors.green[400];default:return}},Qa=f.p`
1
+ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwardRef as n,Fragment as r,useId as a,useState as s,useEffect as l,useCallback as d,useMemo as c,useRef as p,useContext as u,createContext as h,useLayoutEffect as m,createElement as g}from"react";import f,{css as y,useTheme as b,keyframes as v,ThemeProvider as $}from"styled-components";import{PrivacyIcon as w,NormalizationIcon as C,EnrichmentIcon as x,ActionIcon as S,VSquareIcon as E,XSquareIcon as T,ImageErrorIcon as O,KafkaLogo as N,RedisLogo as k,PostgresLogo as A,NginxLogo as I,MysqlLogo as _,BrowserLogo as D,ElixirLogo as R,SwiftLogo as L,RustLogo as P,RubyLogo as F,PhpLogo as M,CPlusPlusLogo as U,CSharpLogo as z,DotnetLogo as B,PythonLogo as j,NodejsLogo as H,GoLogo as W,JavaLogo as X,PyroscopeLogo as G,AwsXrayLogo as V,VictoriaMetricsLogo as K,UptraceLogo as Y,TraceloopLogo as q,TingyunLogo as J,TempoLogo as Q,TelemetryHubLogo as Z,SumoLogicLogo as ee,SplunkLogo as te,SignozLogo as ie,SeqLogo as oe,AwsS3Logo as ne,QuickwitLogo as re,GigapipeLogo as ae,QrynLogo as se,PrometheusLogo as le,OpenTelemetryLogo as de,OracleLogo as ce,OpsVerseLogo as pe,OpenObserveLogo as ue,OneUptimeLogo as he,OdigosLogo as me,ObserveLogo as ge,NewRelicLogo as fe,MiddlewareLogo as ye,LumigoLogo as be,LokiLogo as ve,LogzioLogo as $e,LightstepLogo as we,Last9Logo as Ce,KloudmateLogo as xe,JaegerLogo as Se,InstanaLogo as Ee,HyperDxLogo as Te,HoneycombLogo as Oe,GroundcoverLogo as Ne,GreptimeLogo as ke,GrafanaLogo as Ae,GoogleCloudPlatformLogo as Ie,ElasticSearchLogo as _e,ElasticApmLogo as De,DynatraceLogo as Re,DatadogLogo as Le,Dash0Logo as Pe,CoralogixLogo as Fe,AwsCloudwatchLogo as Me,ClickhouseLogo as Ue,ChronosphereLogo as ze,ChecklyLogo as Be,CauselyLogo as je,BonreeLogo as He,BetterStackLogo as We,AzureMonitorLogo as Xe,AzureBlobLogo as Ge,AxiomLogo as Ve,AppDynamicsLogo as Ke,AlibabaCloudLogo as Ye,AlaudaLogo as qe,RecommendationsIcon as Je,SamplingIcon as Qe,InstrumentationRuleIcon as Ze,DestinationIcon as et,SourceIcon as tt,NamespacesIcon as it,MetricsIcon as ot,PayloadCollectionIcon as nt,HeadersCollectionIcon as rt,CustomInstrumentationIcon as at,CodeAttributesIcon as st,TracesIcon as lt,LogsIcon as dt,EcsLogo as ct,CloudConnectorIcon as pt,VmLogo as ut,K8sLogo as ht,DotsHorizontalIcon as mt,QuestionCircleIcon as gt,ExclamationTriangleIcon as ft,ExclamationCircleIcon as yt,ISquareIcon as bt,AwsLogo as vt,AwsSecretsManagerLogo as $t,AwsStepFunctionsLogo as wt,AwsEventBridgeLogo as Ct,AwsBedrockLogo as xt,AwsApiGatewayLogo as St,AwsEc2Logo as Et,AwsKinesisLogo as Tt,AwsLambdaLogo as Ot,AwsSnsLogo as Nt,AwsSqsLogo as kt,AwsDynamoDbLogo as At,AwsStsLogo as It,OpenTelemetryLogoStripped as _t,CodeIcon as Dt,ChevronUpIcon as Rt,ChevronDownIcon as Lt,ChevronRightIcon as Pt,MinusIcon as Ft,PlusIcon as Mt,VIcon as Ut,CopyIcon as zt,XIcon as Bt,ExpandIcon as jt,SearchIcon as Ht,DotsVerticalIcon as Wt,EyeClosedIcon as Xt,EyeOpenIcon as Gt,ArrowIcon as Vt,ListIcon as Kt,TrashIcon as Yt,DotIcon as qt,ArrowRightIcon as Jt,ClockIcon as Qt,FilterIcon as Zt}from"../icons.js";import{create as ei}from"zustand";import ti from"javascript-time-ago";import ii from"javascript-time-ago/locale/en";import oi,{createPortal as ni}from"react-dom";import{interpolate as ri}from"flubber";import{Highlight as ai,themes as si}from"prism-react-renderer";import{ErrorBoundary as li}from"react-error-boundary";import{VList as di}from"virtua";const ci=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 pi,ui,hi,mi,gi,fi,yi,bi,vi,$i,wi,Ci,xi,Si,Ei,Ti,Oi,Ni,ki,Ai,Ii,_i,Di,Ri,Li,Pi,Fi,Mi,Ui,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki,Yi,qi,Ji,Qi,Zi,eo;(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"})(pi||(pi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ui||(ui={})),(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"})(hi||(hi={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(mi||(mi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(gi||(gi={})),(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"})(fi||(fi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(yi||(yi={})),(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"})(bi||(bi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(vi||(vi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})($i||($i={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(wi||(wi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(Ci||(Ci={})),(e=>{e.Community="community",e.Onprem="onprem"})(xi||(xi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(Si||(Si={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(Ei||(Ei={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(Ti||(Ti={})),(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.Browser="browser",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"})(Oi||(Oi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Ni||(Ni={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(ki||(ki={})),(e=>{e.DataStream="DataStream",e.Connection="Connection"})(Ai||(Ai={})),(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"})(Ii||(Ii={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(_i||(_i={})),(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"})(Di||(Di={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ri||(Ri={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Fi||(Fi={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Mi||(Mi={})),(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"})(Ui||(Ui={})),(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"})(zi||(zi={})),(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"})(Bi||(Bi={})),(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.BrowserCommunity="browser-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"})(ji||(ji={})),(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"})(Hi||(Hi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Wi||(Wi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Xi||(Xi={})),(e=>{e.HeaderKeys="headerKeys"})(Gi||(Gi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Vi||(Vi={}));class to{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 io{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,o){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=o||""}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 oo{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"})(Ki||(Ki={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Yi||(Yi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(qi||(qi={})),(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"})(Ji||(Ji={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Qi||(Qi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Zi||(Zi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(eo||(eo={}));const no={[Zi.Logs]:eo.Logs,[Zi.Metrics]:eo.Metrics,[Zi.Traces]:eo.Traces,[Zi.Profiles]:eo.Profiles},ro={[eo.Logs]:Zi.Logs,[eo.Metrics]:Zi.Metrics,[eo.Traces]:Zi.Traces,[eo.Profiles]:Zi.Profiles};var ao,so,lo,co,po,uo,ho,mo,go,fo,yo,bo,vo,$o,wo,Co,xo,So,Eo,To,Oo,No,ko,Ao;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(ao||(ao={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(so||(so={})),(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"})(lo||(lo={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(co||(co={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(po||(po={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(uo||(uo={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ho||(ho={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(mo||(mo={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(go||(go={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(fo||(fo={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(yo||(yo={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(bo||(bo={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(vo||(vo={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})($o||($o={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(wo||(wo={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(Co||(Co={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(xo||(xo={})),(e=>{e.Us="us",e.Bytes="bytes"})(So||(So={})),(e=>{e.Structural="structural",e.Metric="metric"})(Eo||(Eo={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})(To||(To={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(Oo||(Oo={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(No||(No={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(ko||(ko={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Ao||(Ao={}));const Io={[ui.Enrichment]:{TITLE:"Enrichment",ICON:x},[ui.Normalization]:{TITLE:"Normalization",ICON:C},[ui.Privacy]:{TITLE:"Privacy & Governance",ICON:w}},_o={[pi.AddClusterInfo]:ui.Enrichment,[pi.K8sAttributes]:ui.Enrichment,[pi.ExtractAttribute]:ui.Enrichment,[pi.InferDbAttributes]:ui.Enrichment,[pi.DbQueryTemplatization]:ui.Normalization,[pi.URLTemplatization]:ui.Normalization,[pi.RenameAttributes]:ui.Normalization,[pi.PiiMasking]:ui.Privacy,[pi.DeleteAttributes]:ui.Privacy},Do=e=>{const t=_o[e];return t?Io[t].ICON:S},Ro=[{type:pi.K8sAttributes,icon:Do(pi.K8sAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[Si.K8s]},{type:pi.AddClusterInfo,icon:Do(pi.AddClusterInfo),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[Si.K8s]},{type:pi.DeleteAttributes,icon:Do(pi.DeleteAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[Si.K8s]},{type:pi.RenameAttributes,icon:Do(pi.RenameAttributes),category:_o[pi.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:[Zi.Traces,Zi.Metrics,Zi.Logs,Zi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[Si.K8s]},{type:pi.PiiMasking,icon:Do(pi.PiiMasking),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[Si.K8s]},{type:pi.URLTemplatization,icon:Do(pi.URLTemplatization),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[Si.K8s]:ci("v1.21.0")},supportedPlatforms:[Si.K8s,Si.Vm]},{type:pi.ExtractAttribute,icon:Do(pi.ExtractAttribute),category:_o[pi.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:[Zi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[Si.K8s]:ci("v1.29.0")},supportedPlatforms:[Si.K8s]}],Lo=ci("v1.26"),Po=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Fo=(e,t,i)=>{const o=e.minVersion?.[t];return!o||ci(i)>=o},Mo=(e,t)=>Ro.filter(i=>Po(i,e)&&Fo(i,e,t)).map(i=>((e,t,i)=>t!==Si.K8s||ci(i)>=Lo?e:e.allowedSignals?.includes(Zi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Zi.Profiles)}:e)(i,e,t)),Uo=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Do(e.type),category:e.category||_o[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},zo="Coming soon",Bo="We are working on this feature and it will be available soon.";var jo;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(jo||(jo={}));const Ho={[jo.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[jo.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[jo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[jo.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[jo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[jo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Wo="Save Changes",Xo="Discard changes",Go="Default Policy",Vo="Overrides",Ko="No default policy yet",Yo="No overrides yet",qo="Choose override scope",Jo="Global",Qo="Choose Override type",Zo="Select Service",en="Select Transaction",tn="Service",on="Transaction",nn="Select service…",rn="Select transaction…",an="Anomaly Detection Policies",sn="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",ln="Add a default policy to set the global detection settings.",dn="Add overrides to adjust detection sensitivity for specific services.",cn="Create override policy",pn="Delete policy",un="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",hn="Name",mn="Trigger when risk level is",gn="Customize signal weights (advanced)",fn="Base weight",yn="Risk points",bn="Dangerous sub-cases - added on top of the base when detected:",vn="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.",$n="Low",wn="Medium",Cn="High",xn="Critical",Sn=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,En="Guardrails",Tn="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.",On="Created Guardrails",Nn="No guardrails yet",kn="Create a guardrail to declare allowed service communication.",An="Inspect a service",In="Edit guardrail",_n="Namespace",Dn="Service",Rn="Callers",Ln="Who may call this service (inbound) — any seen service",Pn="Additional callers",Fn="Add any service name not yet seen",Mn="No other services seen",Un="Insights has not seen any other services to allow as callers",zn="Callees",Bn="Internal services it may call (outbound) — any seen service",jn="Additional callees",Hn="Add any service name not yet seen",Wn="No other services seen",Xn="Insights has not seen any other services to allow as callees",Gn="checkout-service",Vn="Egress",Kn="Observed external destinations it may reach",Yn="Additional egress hosts",qn="Add any host or host:port not yet observed",Jn="api.example.com:443",Qn="No egress detected",Zn="No egress found for this selection",er="Transactions",tr="Operations this service may expose",ir="No Transactions detected",or="No transactions found for this selection",nr="Adopt as enforce",rr="Alert on violation",ar="Adopt as suggest",sr="Observe only",lr="Select a guardrail",dr="Create guardrail",cr="Delete guardrail",pr="Enforce",ur="Suggest",hr="auto",mr="allowed_callers",gr="allowed_callees",fr="allowed_egress",yr="allowed_transactions",br="auto_transaction_guardrail",vr="Learning Policies",$r="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",wr="Add a default policy to set the global learning settings.",Cr="Add overrides to adjust learning for specific services.",xr="Add override policy",Sr="Add override",Er="Add selection",Tr="Add condition",Or="Delete override",Nr="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",kr="Select a policy",Ar="Combine",Ir="Currently:",_r="Promotes when",Dr="Min matches",Rr="A policy with no conditions falls back to the count-only default.",Lr="Select Deviation class",Pr="Select deviation class…",Fr="Any",Mr="All",Ur="K of",zr="Any (OR)",Br="All (AND)",jr="K of N",Hr="Stable for N observations",Wr="Stable for a duration",Xr="Min observations",Gr="Min duration",Vr="Minutes",Kr="Hours",Yr="Days",qr={[lo.D1_call_edges]:"D1 call edges",[lo.D2_egress]:"D2 egress",[lo.D3_latency]:"D3 latency",[lo.D4_args_returns]:"D4 args/returns",[lo.D5_libraries]:"D5 libraries",[lo.D6_attr_relations]:"D6 attr relations",[lo.D7_db_access]:"D7 db access",[lo.D8_payload_size]:"D8 payload size"},Jr={[vo.Any]:"Any",[vo.All]:"All",[vo.KOf]:Ur},Qr=[{id:vo.Any,label:zr},{id:vo.All,label:Br},{id:vo.KOf,label:jr}],Zr=[{id:wo.StableObservations,label:Hr},{id:wo.StableDuration,label:Wr},{id:wo.MinObservations,label:Xr},{id:wo.MinDuration,label:Gr}],ea=e=>e===wo.StableDuration||e===wo.MinDuration,ta=e=>e===wo.StableObservations||e===wo.MinObservations,ia="Learning examples",oa="Retention",na="Memory limits",ra="Database writeback",aa="Transaction guardrails",sa="Transaction identity dimensions",la="Maximum example traces",da="Maximum number of example traces collected per transaction.",ca="traces",pa="Minimum sampling interval",ua="Minimum time between collected examples.",ha="seconds",ma="Sample trace retention",ga="Stored sample traces are deleted after this period.",fa="days",ya="Default: 120 · Maximum: 120",ba="Maximum transactions in memory",va="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",$a="transactions",wa="Maximum members per baseline",Ca="Limits the size of an individual baseline set, such as unique call edges or paths.",xa="members",Sa="Flush interval",Ea="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",Ta="Default: 15 · Maximum: 300",Oa="Auto-enable transaction guardrail when a service is promoted",Na="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail.",ka="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Aa=["http.response.status_code","rpc.grpc.status_code"],Ia=["user.id","URLs","request ids"],_a="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Da="No dimensions configured - transactions use the entry span name only.",Ra="Add dimension",La="e.g. http.response.status_code",Pa="On",Fa="Identity dimensions changed",Ma="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.",Ua="Reset all transactions",za="Keep existing transactions",Ba="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",ja="Save settings",Ha="System settings are not available.",Wa=5,Xa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Ga=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Va,Ka,Ya;(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"})(Va||(Va={})),(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"})(Ka||(Ka={})),(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"})(Ya||(Ya={}));const qa=new Set(Object.values(Ya)),Ja=(e,t)=>{if("string"!=typeof(i=t)||!qa.has(i))return t;var i;switch(t){case Ya.Primary:return e.v2.colors.white[500];case Ya.Secondary:return e.v2.colors.silver[200];case Ya.Tertiary:return e.v2.colors.black[500];case Ya.Disable:return e.v2.colors.grey[400];case Ya.Error:return e.v2.colors.red[500];case Ya.Mandatory:return e.v2.colors.red[600];case Ya.Link:return e.v2.colors.purple[400];case Ya.Success:return e.v2.colors.green[400];default:return}},Qa=f.p`
2
2
  margin: 0;
3
3
  color: ${({$color:e,theme:t})=>Ja(t,e)||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e,$fontFamily:t="primary"})=>e.font_family[t]};
@@ -38,7 +38,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
38
38
  text-decoration: underline;
39
39
  }
40
40
  `}
41
- `,Za=n(({children:i,variant:o=Va.P,color:n,size:a=Ka.S,fontFamily:s,weight:l=400,opacity:d=1,align:c="left",lineHeight:p,transform:u,nowrap:h,underline:m,onClick:g,disabled:f,maxLines:y,...b},v)=>{const $="string"==typeof i?i.split("\n").map((i,o,n)=>e(r,{children:[i,o!==n.length-1&&t("br",{})]},`typography-${o}-${i}`)):i;return t(Qa,{ref:v,as:o,$color:n,$size:a,$fontFamily:s,$weight:l,$opacity:d,$align:c,$lineHeight:p,$transform:u,$nowrap:h,$underline:m,$maxLines:y,$withClick:!!g&&!f,onClick:f?void 0:g,...b,children:$})});Za.displayName="Typography";const es="https://docs.odigos.io",ts="default",is="this-cluster",os="This Cluster",ns={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},rs={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."},as={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"},ss={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"},ls=(e,t)=>e===Di.Success?as.HEALTHY:e===Di.Error?as.NOT_HEALTHY:Ga(t),ds=e=>{if(!e)return null;switch(e){case Hi.Irrelevant:return null;case Hi.Failure:case Hi.Error:return Di.Error;case Hi.Notice:return Di.Warning;case Hi.Pending:case Hi.Waiting:return Di.Loading;case Hi.Unsupported:case Hi.Disabled:return Di.Disabled;case Hi.Success:return Di.Success;case Hi.Unknown:default:return Di.Info}},cs=(e,t,i="reason",o)=>{const n=ds(e?.status);return n?{key:`desired-status-${e?.name}`,status:n,leftIcon:t||(n===Di.Success?E:T),label:o||("reason"===i?Ga(e?.reasonEnum):ls(n,e?.reasonEnum)),tooltip:e?.message,textSize:Ka.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ps=e=>e.charAt(0).toUpperCase()+e.slice(1);var us;(e=>{e.SIGNALS="SIGNALS"})(us||(us={}));const hs=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,n,r]=e;if(o===us.SIGNALS)switch(n){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(n){case"===":case"==":return s===r;case"!==":case"!=":return s!==r;case">":return Number(s)>Number(r);case"<":return Number(s)<Number(r);case">=":return Number(s)>=Number(r);case"<=":return Number(s)<=Number(r);default:return!0}};function ms(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const gs=e=>({status:e?Di.Success:Di.Unknown,label:e?"True":"False",invertColors:!0}),fs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ys=e=>null==e||""===e?"":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e:Array.isArray(e)?e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean).join(", "):JSON.stringify(e),bs=e=>null!=e&&""!==e&&(Array.isArray(e)?e.length>0:!fs(e)||Object.keys(e).length>0),vs=e=>"string"==typeof e?{id:e,label:e}:e??{},$s=(e,t)=>e.label||e.displayName||t,ws=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=fs(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}},Cs=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(...Cs(e.segments))):t.push(...e.items)}),t},xs=(e,t,i={})=>{const o=[],n=i.signals||[],r=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(o.push({kind:"cells",id:`cells-${o.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||r.has(t.componentType))return;if(t.renderCondition?.length&&!hs(t.renderCondition,n,a))return;const c=t.displayName||t.name,p=`${t.name}-${d}`,u=e[t.name],h=ms(t.componentProperties,{});switch(t.componentType){case Ii.Toggle:case Ii.Checkbox:if(null==u||""===u)return;return void s.push({id:p,title:c,badge:gs(!!u)});case Ii.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(u)?u.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(vs).find(t=>String(t.id??"")===e);return i?$s(i,e):e});if(!i.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:i.map((e,t)=>({id:`${p}-${t}`,label:e}))})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const o=vs(t),n=String(o.id??"");n&&s.push({id:`${p}-${i}-${n}`,title:$s(o,n),badge:gs(!0===e[n])})});const i=fs(u)?u:{},n=Array.isArray(h.options)?h.options:[];let r=[];if(r=n.length?n.map(e=>{const t=vs(e),o=String(t.id??"");return o&&i[o]?$s(t,o):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),!r.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:r.map((e,t)=>({id:`${p}-${t}`,label:e}))})}case Ii.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&fs(u)?u[e]:u,n=Array.isArray(i)&&i.length?i.map(e=>t&&fs(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];if(!n.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:n.map((e,t)=>({id:`${p}-${t}`,label:e}))})}case Ii.KeyValuePair:if(fs(u)&&Object.keys(u).length){const e=Object.entries(u).filter(([,e])=>bs(e)).map(([e,t],i)=>({id:`${p}-${i}`,title:e,label:String(t??"")}));if(!e.length)return;return l(),void o.push({kind:"pairs",id:p,title:c,items:e})}if(Array.isArray(u)&&u.length){const e=u.map((e,t)=>{const i=fs(e)?e:{},o=String(i.key??""),n=String(i.value??"");return o||n?{id:`${p}-${t}`,title:o,label:n}:null}).filter(Boolean);if(!e.length)return;return l(),void o.push({kind:"pairs",id:p,title:c,items:e})}return;case Ii.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&fs(u)?u[e]:u)?e&&fs(u)?u[e]:u:[],i=(m=h.columns,Array.isArray(m)?m.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,o=Array.isArray(i)?i.map(vs):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:o,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);if(!t.length)return;let n=!1;return void t.forEach((e,r)=>{const a=t.length>1?`${c} #${r+1}`:c,s=[],d=fs(e)?{...e}:{};null!=d.method&&""!==d.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(d.method=String(d.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,o,n]=t,r=null==e?.[i]?"":String(e[i]);switch(o){case"=":case"==":case"===":return r===n;case"!=":case"!==":return r!==n;default:return!0}})(d,e.renderCondition))return;let t=d[e.keyName];if((null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=d.from&&""!==d.from&&(t=[d.from]),null==t||""===t||Array.isArray(t)&&!t.length)return;if("segment"===e.componentType)return;const i=((e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const o=e.options?.find(e=>String(e.id??"")===i);return o?$s(o,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),o=e.options?.find(e=>String(e.id??"")===i);return o?$s(o,i):ys(t)})(e,t);i&&s.push({id:`${p}-${r}-${e.keyName}`,title:e.label||ps(Ga(e.keyName))||e.keyName,label:i})}):Object.entries(d).forEach(([e,t])=>{if(null==t||""===t||"method"===e)return;const i=ys(t);i&&s.push({id:`${p}-${r}-${e}`,title:e,label:i})}),s.length&&(n||(l(),n=!0),o.push({kind:"group",id:`${p}-${r}`,title:a,items:s}))})}case Ii.FieldGroup:{const e=Array.isArray(u)?u:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ws).filter(Boolean),n=h.itemLabel||c;if(!e.length)return;let r=!1;return void e.forEach((a,s)=>{const d=e.length>1?`${n} ${s+1}`:n,c=fs(a)?a:{},u=t.length?xs(c,t,i):(()=>{const e=Object.entries(c).filter(([,e])=>bs(e)).map(([e,t],i)=>{const o=ys(t);return o?{id:`${p}-${s}-${i}-${e}`,title:e,label:o}:null}).filter(Boolean);return e.length?[{kind:"cells",id:`${p}-${s}-raw`,items:e}]:[]})();u.length&&(r||(l(),r=!0),o.push({kind:"group",id:`${p}-${s}`,title:d,segments:u}))})}default:{const e=ys(u);if(!e)return;s.push({id:p,title:c,label:e})}}var m}),l(),o},Ss=(e,t,i={})=>Cs(xs(e,t,i)),Es=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,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,i(o)]:[e,o]));return Object.entries(e).reduce((e,[o,n])=>{try{const r=JSON.parse(n);Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]="object"==typeof r&&null!==r?JSON.stringify(i(r)):n}catch(r){"object"==typeof n&&null!==n?Array.isArray(n)?e[o]=JSON.stringify(t(n)):e[o]=JSON.stringify(i(n)):e[o]=n}return e},{})},Ts=e=>JSON.parse(JSON.stringify(e)),Os=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ns=(e,t,i)=>{const o=t.split(".");let n=e;for(let e=0;e<o.length-1;e++)o[e]in n&&"object"==typeof n[o[e]]||(n[o[e]]={}),n=n[o[e]];n[o[o.length-1]]=i},As=(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},ks=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Is=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],_s=(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=>ds(e.workloadOdigosHealthStatus?.status)===Di.Error)),i},Ds=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===ts&&!e.dataStreamNames?.length):[],Rs=(e,t,i)=>{if(!t)return;const o=e.filter(e=>e.serviceName===t||e.id.name===t);if(o.length){if(i){const e=o.find(e=>e.id.namespace===i);if(e)return e}return o[0]}},Ls=(e,t="",i={})=>{for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],r=t?`${t}.${o}`:o;null===n||"object"!=typeof n||Array.isArray(n)?Array.isArray(n)?n.forEach((e,t)=>{const o=`${r}[${t}]`;null!==e&&"object"==typeof e?Ls(e,o,i):i[o]=e}):i[r]=n:Ls(n,r,i)}return i},Ps=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]}`},Fs=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`}},Ms=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const o=e[t%16];return t++,("1"===i?o:"0"===i?63&o|128:15&o|64).toString(16)})},Us=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ds(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],zs=e=>Array.isArray(e?.statuses)?Us(e.statuses):e?.conditions??[],Bs=e=>e?Array.isArray(e)?js(e):js(Us(Object.values(e))):js([]),js=e=>{const t=e?.filter(({status:e})=>e===Di.Error),i=e?.filter(({status:e})=>e===Di.Warning),o=e?.filter(({status:e})=>e===Di.Disabled),n=e?.filter(({status:e})=>e===Di.Loading),r=t.length>0,a=i.length>0,s=o.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:o,hasDisableds:s,loadings:n,hasLoadings:n.length>0,priorotizedStatus:r?Di.Error:a?Di.Warning:s?Di.Info:void 0}},Hs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ws=e=>({[Oi.Java]:X,[Oi.Go]:W,[Oi.JavaScript]:H,[Oi.Python]:j,[Oi.DotNet]:B,[Oi.CSharp]:z,[Oi.CPlusPlus]:U,[Oi.Php]:M,[Oi.Ruby]:F,[Oi.Rust]:P,[Oi.Swift]:L,[Oi.Elixir]:R,[Oi.Browser]:D,[Oi.MySql]:_,[Oi.Nginx]:I,[Oi.Postgres]:k,[Oi.Redis]:A,[Oi.Kafka]:N,[Oi.Ignored]:O,[Oi.Unknown]:O,[Oi.Processing]:O,[Oi.NoContainers]:O,[Oi.NoRunningPods]:O}[e]||O),Xs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Oi.Unknown:Oi.Unknown,Gs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Vs=e=>e?.map(e=>Ws(Xs(e)))||[],Ks=e=>e?.map(e=>Ws(e))||[],Ys=e=>e.runtimeInfo?.detectedLanguages?.length?Ks(e.runtimeInfo?.detectedLanguages):Vs(e.containers),qs=(e,t)=>{const i={[zi.Alauda]:qe,[zi.AlibabaCloud]:Ye,[zi.AppDynamics]:Ke,[zi.Axiom]:Ve,[zi.AzureBlob]:Ge,[zi.AzureMonitor]:Xe,[zi.BetterStack]:We,[zi.Bonree]:He,[zi.Causely]:je,[zi.Checkly]:Be,[zi.Chronosphere]:ze,[zi.ClickHouse]:Ue,[zi.CloudWatch]:Me,[zi.Coralogix]:Fe,[zi.Dash0]:Pe,[zi.Datadog]:Le,[zi.Dynamic]:de,[zi.Dynatrace]:Re,[zi.ElasticApm]:De,[zi.ElasticSearch]:_e,[zi.GoogleCloud]:Ie,[zi.GoogleCloudOTLP]:Ie,[zi.GrafanaCloudLoki]:ke,[zi.GrafanaCloudPrometheus]:ke,[zi.GrafanaCloudTempo]:ke,[zi.Greptime]:Ae,[zi.Groundcover]:Ne,[zi.Honeycomb]:Oe,[zi.HyperDX]:Te,[zi.Instana]:Ee,[zi.Jaeger]:Se,[zi.Kafka]:N,[zi.Kloudmate]:xe,[zi.Last9]:Ce,[zi.Lightstep]:we,[zi.LogzIo]:$e,[zi.Loki]:ve,[zi.Lumigo]:be,[zi.Middleware]:ye,[zi.NewRelic]:fe,[zi.Observe]:ge,[zi.Odigos]:me,[zi.OdigosProfileDiagnostic]:me,[zi.OneUptime]:he,[zi.OpenObserve]:ue,[zi.Opsverse]:pe,[zi.Oracle]:ce,[zi.OTLP]:de,[zi.OTLPHttp]:de,[zi.Prometheus]:le,[zi.Qryn]:se,[zi.QrynOss]:ae,[zi.Quickwit]:re,[zi.S3]:ne,[zi.Seq]:oe,[zi.Signalfx]:te,[zi.Signoz]:ie,[zi.Splunk]:te,[zi.SplunkSapm]:te,[zi.SplunkOtlp]:te,[zi.SumoLogic]:ee,[zi.TelemetryHub]:Z,[zi.Tempo]:Q,[zi.Tingyun]:J,[zi.Traceloop]:q,[zi.Uptrace]:Y,[zi.VictoriaMetrics]:K,[zi.VictoriaMetricsCloud]:K,[zi.XRay]:V,[zi.Pyroscope]:G}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Js=e=>({[Ai.Namespace]:it,[Ai.Source]:tt,[Ai.Destination]:et,[Ai.Action]:S,[Ai.InstrumentationRule]:Ze,[Ai.SamplingRule]:Qe,[Ai.Recommendation]:Je}[e]),Qs=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,Zs=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},el=e=>Zs(Qs(e)),tl=(e,t,i)=>{const{extended:o,prioritizeDisplayName:n}=i||{};let r="",a="";switch(t){case Ai.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case Ai.Source:const i=e;r=i.id.name,a=i.serviceName||"";break;case Ai.Action:const o=e;r=o.type,a=o.name||"";break;case Ai.Destination:const n=e;r=n.destinationType.displayName,a=n.name;break;case Ai.Namespace:const s=e;r=s.name,a=s.name}return o?r+(a&&a!==r?` (${a})`:""):n&&a||r},il=(e,t)=>{if(t===Ai.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,o]=e.split("=");t[i]=o}),t}return e},ol=e=>({[Wi.CodeAttributes]:st,[Wi.CustomInstrumentation]:at,[Wi.HeadersCollection]:rt,[Wi.PayloadCollection]:nt,[Wi.NetworkMetrics]:ot,[Wi.UnknownType]:O}[e]||O),nl=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Oi.Unknown,rl=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?Oi.Processing:Oi.NoRunningPods;const o=i?.filter(e=>nl(e)!==Oi.Ignored);if(!o.length)return Oi.NoContainers;const n=o.find(e=>nl(e)!==Oi.Unknown);return n?nl(n):Oi.Unknown},al=(e,t,i)=>(t===Ai.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},sl=e=>({[Zi.Logs]:dt,[Zi.Metrics]:ot,[Zi.Traces]:lt,[Zi.Profiles]:me}[e]),ll=(e,t)=>Object.values(Ka).reduce((i,o)=>Math.abs(t[o]-e)<Math.abs(t[i]-e)?o:i),dl=e=>e&&{[Si.K8s]:ht,[Si.Vm]:ut,[Si.Connector]:pt,[Si.AwsEcs]:ct}[e]||me,cl=e=>e?{[Si.K8s]:"Kubernetes Cluster",[Si.Vm]:"Virtual Machine",[Si.Connector]:"Cloud Connector",[Si.AwsEcs]:"AWS ECS"}[e]:"Unknown",pl=(e,t,i)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[i],n=[];return void 0!==o&&(Array.isArray(o)?n.push(...o):n.push(o)),n.push(...pl(e,t,i)),n}):[]},ul={"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"},hl=e=>{if(!e)return"";if(ul[e])return ul[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ml=(e,t)=>{if(t===Ai.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},gl=(e,t,i)=>{switch(i=i??"500",t){case Di.Default:return e.v2.colors.purple[i];case Di.Info:return e.v2.colors.blue[i];case Di.Error:return e.v2.colors.red[i];case Di.Warning:return e.v2.colors.yellow[i];case Di.Success:return e.v2.colors.green[i];case Di.Loading:case Di.Disabled:case Di.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},fl=e=>{switch(e){case Yi.Updating:case qi.Pending:case Ji.ContainerCreating:case Qi.Waiting:return Di.Info;case Yi.Healthy:case qi.Succeeded:case qi.Running:case Ji.Running:case Qi.Running:return Di.Success;case Yi.Degraded:return Di.Warning;case Yi.Failed:case qi.Failed:case Ji.Error:case Ji.CrashLoopBackOff:case Ji.CreateContainerError:case Ji.CreateContainerConfigError:case Ji.ErrImagePull:case Ji.ErrImageNeverPull:case Ji.ImagePullBackOff:case Ji.InvalidImageName:case Ji.RegistryUnavailable:case Ji.NetworkNotReady:case Ji.OOMKilled:case Ji.ContainerCannotRun:case Qi.Terminated:case Ji.DeadlineExceeded:case Ji.StartError:return Di.Error;case Yi.Down:case Ji.Completed:return Di.Disabled;case Yi.Unknown:case qi.Unknown:default:return Di.Unknown}},yl=f.div`
41
+ `,Za=n(({children:i,variant:o=Va.P,color:n,size:a=Ka.S,fontFamily:s,weight:l=400,opacity:d=1,align:c="left",lineHeight:p,transform:u,nowrap:h,underline:m,onClick:g,disabled:f,maxLines:y,...b},v)=>{const $="string"==typeof i?i.split("\n").map((i,o,n)=>e(r,{children:[i,o!==n.length-1&&t("br",{})]},`typography-${o}-${i}`)):i;return t(Qa,{ref:v,as:o,$color:n,$size:a,$fontFamily:s,$weight:l,$opacity:d,$align:c,$lineHeight:p,$transform:u,$nowrap:h,$underline:m,$maxLines:y,$withClick:!!g&&!f,onClick:f?void 0:g,...b,children:$})});Za.displayName="Typography";const es="https://docs.odigos.io",ts="default",is="this-cluster",os="This Cluster",ns={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},rs={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."},as={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"},ss={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"},ls=(e,t)=>e===Di.Success?as.HEALTHY:e===Di.Error?as.NOT_HEALTHY:Ga(t),ds=e=>{if(!e)return null;switch(e){case Hi.Irrelevant:return null;case Hi.Failure:case Hi.Error:return Di.Error;case Hi.Notice:return Di.Warning;case Hi.Pending:case Hi.Waiting:return Di.Loading;case Hi.Unsupported:case Hi.Disabled:return Di.Disabled;case Hi.Success:return Di.Success;case Hi.Unknown:default:return Di.Info}},cs=(e,t,i="reason",o)=>{const n=ds(e?.status);return n?{key:`desired-status-${e?.name}`,status:n,leftIcon:t||(n===Di.Success?E:T),label:o||("reason"===i?Ga(e?.reasonEnum):ls(n,e?.reasonEnum)),tooltip:e?.message,textSize:Ka.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ps=e=>e.charAt(0).toUpperCase()+e.slice(1);var us;(e=>{e.SIGNALS="SIGNALS"})(us||(us={}));const hs=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,n,r]=e;if(o===us.SIGNALS)switch(n){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(n){case"===":case"==":return s===r;case"!==":case"!=":return s!==r;case">":return Number(s)>Number(r);case"<":return Number(s)<Number(r);case">=":return Number(s)>=Number(r);case"<=":return Number(s)<=Number(r);default:return!0}};function ms(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const gs=e=>({status:e?Di.Success:Di.Unknown,label:e?"True":"False",invertColors:!0}),fs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ys=e=>null==e||""===e?"":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e:Array.isArray(e)?e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean).join(", "):JSON.stringify(e),bs=e=>null!=e&&""!==e&&(Array.isArray(e)?e.length>0:!fs(e)||Object.keys(e).length>0),vs=e=>"string"==typeof e?{id:e,label:e}:e??{},$s=(e,t)=>e.label||e.displayName||t,ws=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=fs(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}},Cs=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(...Cs(e.segments))):t.push(...e.items)}),t},xs=(e,t,i={})=>{const o=[],n=i.signals||[],r=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(o.push({kind:"cells",id:`cells-${o.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||r.has(t.componentType))return;if(t.renderCondition?.length&&!hs(t.renderCondition,n,a))return;const c=t.displayName||t.name,p=`${t.name}-${d}`,u=e[t.name],h=ms(t.componentProperties,{});switch(t.componentType){case Ii.Toggle:case Ii.Checkbox:if(null==u||""===u)return;return void s.push({id:p,title:c,badge:gs(!!u)});case Ii.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(u)?u.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(vs).find(t=>String(t.id??"")===e);return i?$s(i,e):e});if(!i.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:i.map((e,t)=>({id:`${p}-${t}`,label:e}))})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const o=vs(t),n=String(o.id??"");n&&s.push({id:`${p}-${i}-${n}`,title:$s(o,n),badge:gs(!0===e[n])})});const i=fs(u)?u:{},n=Array.isArray(h.options)?h.options:[];let r=[];if(r=n.length?n.map(e=>{const t=vs(e),o=String(t.id??"");return o&&i[o]?$s(t,o):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),!r.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:r.map((e,t)=>({id:`${p}-${t}`,label:e}))})}case Ii.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&fs(u)?u[e]:u,n=Array.isArray(i)&&i.length?i.map(e=>t&&fs(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];if(!n.length)return;return l(),void o.push({kind:"list",id:p,title:c,items:n.map((e,t)=>({id:`${p}-${t}`,label:e}))})}case Ii.KeyValuePair:if(fs(u)&&Object.keys(u).length){const e=Object.entries(u).filter(([,e])=>bs(e)).map(([e,t],i)=>({id:`${p}-${i}`,title:e,label:String(t??"")}));if(!e.length)return;return l(),void o.push({kind:"pairs",id:p,title:c,items:e})}if(Array.isArray(u)&&u.length){const e=u.map((e,t)=>{const i=fs(e)?e:{},o=String(i.key??""),n=String(i.value??"");return o||n?{id:`${p}-${t}`,title:o,label:n}:null}).filter(Boolean);if(!e.length)return;return l(),void o.push({kind:"pairs",id:p,title:c,items:e})}return;case Ii.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&fs(u)?u[e]:u)?e&&fs(u)?u[e]:u:[],i=(m=h.columns,Array.isArray(m)?m.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,o=Array.isArray(i)?i.map(vs):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:o,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);if(!t.length)return;let n=!1;return void t.forEach((e,r)=>{const a=t.length>1?`${c} #${r+1}`:c,s=[],d=fs(e)?{...e}:{};null!=d.method&&""!==d.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(d.method=String(d.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,o,n]=t,r=null==e?.[i]?"":String(e[i]);switch(o){case"=":case"==":case"===":return r===n;case"!=":case"!==":return r!==n;default:return!0}})(d,e.renderCondition))return;let t=d[e.keyName];if((null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=d.from&&""!==d.from&&(t=[d.from]),null==t||""===t||Array.isArray(t)&&!t.length)return;if("segment"===e.componentType)return;const i=((e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const o=e.options?.find(e=>String(e.id??"")===i);return o?$s(o,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),o=e.options?.find(e=>String(e.id??"")===i);return o?$s(o,i):ys(t)})(e,t);i&&s.push({id:`${p}-${r}-${e.keyName}`,title:e.label||ps(Ga(e.keyName))||e.keyName,label:i})}):Object.entries(d).forEach(([e,t])=>{if(null==t||""===t||"method"===e)return;const i=ys(t);i&&s.push({id:`${p}-${r}-${e}`,title:e,label:i})}),s.length&&(n||(l(),n=!0),o.push({kind:"group",id:`${p}-${r}`,title:a,items:s}))})}case Ii.FieldGroup:{const e=Array.isArray(u)?u:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ws).filter(Boolean),n=h.itemLabel||c;if(!e.length)return;let r=!1;return void e.forEach((a,s)=>{const d=e.length>1?`${n} ${s+1}`:n,c=fs(a)?a:{},u=t.length?xs(c,t,i):(()=>{const e=Object.entries(c).filter(([,e])=>bs(e)).map(([e,t],i)=>{const o=ys(t);return o?{id:`${p}-${s}-${i}-${e}`,title:e,label:o}:null}).filter(Boolean);return e.length?[{kind:"cells",id:`${p}-${s}-raw`,items:e}]:[]})();u.length&&(r||(l(),r=!0),o.push({kind:"group",id:`${p}-${s}`,title:d,segments:u}))})}default:{const e=ys(u);if(!e)return;s.push({id:p,title:c,label:e})}}var m}),l(),o},Ss=(e,t,i={})=>Cs(xs(e,t,i)),Es=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,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,i(o)]:[e,o]));return Object.entries(e).reduce((e,[o,n])=>{try{const r=JSON.parse(n);Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]="object"==typeof r&&null!==r?JSON.stringify(i(r)):n}catch(r){"object"==typeof n&&null!==n?Array.isArray(n)?e[o]=JSON.stringify(t(n)):e[o]=JSON.stringify(i(n)):e[o]=n}return e},{})},Ts=e=>JSON.parse(JSON.stringify(e)),Os=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ns=(e,t,i)=>{const o=t.split(".");let n=e;for(let e=0;e<o.length-1;e++)o[e]in n&&"object"==typeof n[o[e]]||(n[o[e]]={}),n=n[o[e]];n[o[o.length-1]]=i},ks=(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},As=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Is=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],_s=(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=>ds(e.workloadOdigosHealthStatus?.status)===Di.Error)),i},Ds=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===ts&&!e.dataStreamNames?.length):[],Rs=(e,t,i)=>{if(!t)return;const o=e.filter(e=>e.serviceName===t||e.id.name===t);if(o.length){if(i){const e=o.find(e=>e.id.namespace===i);if(e)return e}return o[0]}},Ls=(e,t="",i={})=>{for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],r=t?`${t}.${o}`:o;null===n||"object"!=typeof n||Array.isArray(n)?Array.isArray(n)?n.forEach((e,t)=>{const o=`${r}[${t}]`;null!==e&&"object"==typeof e?Ls(e,o,i):i[o]=e}):i[r]=n:Ls(n,r,i)}return i},Ps=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]}`},Fs=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`}},Ms=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const o=e[t%16];return t++,("1"===i?o:"0"===i?63&o|128:15&o|64).toString(16)})},Us=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ds(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],zs=e=>Array.isArray(e?.statuses)?Us(e.statuses):e?.conditions??[],Bs=e=>e?Array.isArray(e)?js(e):js(Us(Object.values(e))):js([]),js=e=>{const t=e?.filter(({status:e})=>e===Di.Error),i=e?.filter(({status:e})=>e===Di.Warning),o=e?.filter(({status:e})=>e===Di.Disabled),n=e?.filter(({status:e})=>e===Di.Loading),r=t.length>0,a=i.length>0,s=o.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:o,hasDisableds:s,loadings:n,hasLoadings:n.length>0,priorotizedStatus:r?Di.Error:a?Di.Warning:s?Di.Info:void 0}},Hs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ws=e=>({[Oi.Java]:X,[Oi.Go]:W,[Oi.JavaScript]:H,[Oi.Python]:j,[Oi.DotNet]:B,[Oi.CSharp]:z,[Oi.CPlusPlus]:U,[Oi.Php]:M,[Oi.Ruby]:F,[Oi.Rust]:P,[Oi.Swift]:L,[Oi.Elixir]:R,[Oi.Browser]:D,[Oi.MySql]:_,[Oi.Nginx]:I,[Oi.Postgres]:A,[Oi.Redis]:k,[Oi.Kafka]:N,[Oi.Ignored]:O,[Oi.Unknown]:O,[Oi.Processing]:O,[Oi.NoContainers]:O,[Oi.NoRunningPods]:O}[e]||O),Xs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Oi.Unknown:Oi.Unknown,Gs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Vs=e=>e?.map(e=>Ws(Xs(e)))||[],Ks=e=>e?.map(e=>Ws(e))||[],Ys=e=>e.runtimeInfo?.detectedLanguages?.length?Ks(e.runtimeInfo?.detectedLanguages):Vs(e.containers),qs=(e,t)=>{const i={[zi.Alauda]:qe,[zi.AlibabaCloud]:Ye,[zi.AppDynamics]:Ke,[zi.Axiom]:Ve,[zi.AzureBlob]:Ge,[zi.AzureMonitor]:Xe,[zi.BetterStack]:We,[zi.Bonree]:He,[zi.Causely]:je,[zi.Checkly]:Be,[zi.Chronosphere]:ze,[zi.ClickHouse]:Ue,[zi.CloudWatch]:Me,[zi.Coralogix]:Fe,[zi.Dash0]:Pe,[zi.Datadog]:Le,[zi.Dynamic]:de,[zi.Dynatrace]:Re,[zi.ElasticApm]:De,[zi.ElasticSearch]:_e,[zi.GoogleCloud]:Ie,[zi.GoogleCloudOTLP]:Ie,[zi.GrafanaCloudLoki]:Ae,[zi.GrafanaCloudPrometheus]:Ae,[zi.GrafanaCloudTempo]:Ae,[zi.Greptime]:ke,[zi.Groundcover]:Ne,[zi.Honeycomb]:Oe,[zi.HyperDX]:Te,[zi.Instana]:Ee,[zi.Jaeger]:Se,[zi.Kafka]:N,[zi.Kloudmate]:xe,[zi.Last9]:Ce,[zi.Lightstep]:we,[zi.LogzIo]:$e,[zi.Loki]:ve,[zi.Lumigo]:be,[zi.Middleware]:ye,[zi.NewRelic]:fe,[zi.Observe]:ge,[zi.Odigos]:me,[zi.OdigosProfileDiagnostic]:me,[zi.OneUptime]:he,[zi.OpenObserve]:ue,[zi.Opsverse]:pe,[zi.Oracle]:ce,[zi.OTLP]:de,[zi.OTLPHttp]:de,[zi.Prometheus]:le,[zi.Qryn]:se,[zi.QrynOss]:ae,[zi.Quickwit]:re,[zi.S3]:ne,[zi.Seq]:oe,[zi.Signalfx]:te,[zi.Signoz]:ie,[zi.Splunk]:te,[zi.SplunkSapm]:te,[zi.SplunkOtlp]:te,[zi.SumoLogic]:ee,[zi.TelemetryHub]:Z,[zi.Tempo]:Q,[zi.Tingyun]:J,[zi.Traceloop]:q,[zi.Uptrace]:Y,[zi.VictoriaMetrics]:K,[zi.VictoriaMetricsCloud]:K,[zi.XRay]:V,[zi.Pyroscope]:G}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Js=e=>({[ki.Namespace]:it,[ki.Source]:tt,[ki.Destination]:et,[ki.Action]:S,[ki.InstrumentationRule]:Ze,[ki.SamplingRule]:Qe,[ki.Recommendation]:Je}[e]),Qs=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,Zs=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},el=e=>Zs(Qs(e)),tl=(e,t,i)=>{const{extended:o,prioritizeDisplayName:n}=i||{};let r="",a="";switch(t){case ki.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case ki.Source:const i=e;r=i.id.name,a=i.serviceName||"";break;case ki.Action:const o=e;r=o.type,a=o.name||"";break;case ki.Destination:const n=e;r=n.destinationType.displayName,a=n.name;break;case ki.Namespace:const s=e;r=s.name,a=s.name}return o?r+(a&&a!==r?` (${a})`:""):n&&a||r},il=(e,t)=>{if(t===ki.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,o]=e.split("=");t[i]=o}),t}return e},ol=e=>({[Wi.CodeAttributes]:st,[Wi.CustomInstrumentation]:at,[Wi.HeadersCollection]:rt,[Wi.PayloadCollection]:nt,[Wi.NetworkMetrics]:ot,[Wi.UnknownType]:O}[e]||O),nl=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Oi.Unknown,rl=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?Oi.Processing:Oi.NoRunningPods;const o=i?.filter(e=>nl(e)!==Oi.Ignored);if(!o.length)return Oi.NoContainers;const n=o.find(e=>nl(e)!==Oi.Unknown);return n?nl(n):Oi.Unknown},al=(e,t,i)=>(t===ki.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},sl=e=>({[Zi.Logs]:dt,[Zi.Metrics]:ot,[Zi.Traces]:lt,[Zi.Profiles]:me}[e]),ll=(e,t)=>Object.values(Ka).reduce((i,o)=>Math.abs(t[o]-e)<Math.abs(t[i]-e)?o:i),dl=e=>e&&{[Si.K8s]:ht,[Si.Vm]:ut,[Si.Connector]:pt,[Si.AwsEcs]:ct}[e]||me,cl=e=>e?{[Si.K8s]:"Kubernetes Cluster",[Si.Vm]:"Virtual Machine",[Si.Connector]:"Cloud Connector",[Si.AwsEcs]:"AWS ECS"}[e]:"Unknown",pl=(e,t,i)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[i],n=[];return void 0!==o&&(Array.isArray(o)?n.push(...o):n.push(o)),n.push(...pl(e,t,i)),n}):[]},ul={"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"},hl=e=>{if(!e)return"";if(ul[e])return ul[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ml=(e,t)=>{if(t===ki.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},gl=(e,t,i)=>{switch(i=i??"500",t){case Di.Default:return e.v2.colors.purple[i];case Di.Info:return e.v2.colors.blue[i];case Di.Error:return e.v2.colors.red[i];case Di.Warning:return e.v2.colors.yellow[i];case Di.Success:return e.v2.colors.green[i];case Di.Loading:case Di.Disabled:case Di.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},fl=e=>{switch(e){case Yi.Updating:case qi.Pending:case Ji.ContainerCreating:case Qi.Waiting:return Di.Info;case Yi.Healthy:case qi.Succeeded:case qi.Running:case Ji.Running:case Qi.Running:return Di.Success;case Yi.Degraded:return Di.Warning;case Yi.Failed:case qi.Failed:case Ji.Error:case Ji.CrashLoopBackOff:case Ji.CreateContainerError:case Ji.CreateContainerConfigError:case Ji.ErrImagePull:case Ji.ErrImageNeverPull:case Ji.ImagePullBackOff:case Ji.InvalidImageName:case Ji.RegistryUnavailable:case Ji.NetworkNotReady:case Ji.OOMKilled:case Ji.ContainerCannotRun:case Qi.Terminated:case Ji.DeadlineExceeded:case Ji.StartError:return Di.Error;case Yi.Down:case Ji.Completed:return Di.Disabled;case Yi.Unknown:case qi.Unknown:default:return Di.Unknown}},yl=f.div`
42
42
  border-radius: 100%;
43
43
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
44
  position: relative;
@@ -61,7 +61,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
61
61
  top: 50%;
62
62
  left: 50%;
63
63
  transform: translate(-50%, -50%);
64
- `,$l=({percentage:i})=>e(yl,{children:[t(bl,{}),"number"==typeof i?t(vl,{size:Ka.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),wl={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 Cl(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 o=(e.match(/[^0-9]*$/)||"").toString();return wl[o]?{value:t,unit:o}:{value:t,unit:"px"}}function xl(e){const t=Cl(e);return`${t.value}${t.unit}`}const Sl=(()=>{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,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(o,0),e})(),El=({loading:i=!0,color:o,scale:n=1,speedMultiplier:r=1,cssOverride:a={},style:s={},...l})=>{const d=b(),c=o||d.text.secondary;if(!i)return null;const{value:p}=Cl(2),u=p+4.2,h=u/2+u/5.5,m=4*u*n,g={position:"relative",width:`${m}px`,height:`${m}px`,scale:n,...s,...a},f=(e,t)=>({position:"absolute",width:xl(1.5),height:xl(4),borderRadius:xl(2),backgroundColor:c,transition:"2s",animationFillMode:"both",animation:`${Sl} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:g,...l,children:[t("span",{style:{...f(1,0),top:`calc(50% + ${u}px)`,left:"50%"}}),t("span",{style:{...f(2,-45),top:`calc(50% + ${h}px)`,left:`calc(50% + ${h}px)`}}),t("span",{style:{...f(3,90),top:"50%",left:`calc(50% + ${u}px)`}}),t("span",{style:{...f(4,45),top:`calc(50% + ${-1*h}px)`,left:`calc(50% + ${h}px)`}}),t("span",{style:{...f(5,0),top:`calc(50% + ${-1*u}px)`,left:"50%"}}),t("span",{style:{...f(6,-45),top:`calc(50% + ${-1*h}px)`,left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...f(7,90),top:"50%",left:`calc(50% + ${-1*u}px)`}}),t("span",{style:{...f(8,45),top:`calc(50% + ${h}px)`,left:`calc(50% + ${-1*h}px)`}})]})},Tl=488,Ol=635,Nl="0.65s",Al="cubic-bezier(0.4, 0, 0.2, 1)",kl=[{size:464,opacity:.1,gradientTransform:"translate(201.232 229.641) scale(231.217)",stops:[[0,.1],[.41,.11],[.56,.13],[.67,.18],[.75,.25],[.83,.33],[.89,.44],[.95,.56],[1,.7]]},{size:432,opacity:.3,gradientTransform:"translate(204.229 214.376) scale(216.276)",stops:[[0,.1],[.38,.11],[.52,.13],[.62,.18],[.69,.25],[.76,.33],[.82,.44],[.88,.57],[.93,.72],[.97,.88],[1,1]]},{size:374,opacity:.5,gradientTransform:"translate(166.792 184.246) scale(186.963)",stops:[[0,.1],[.31,.11],[.45,.14],[.56,.19],[.65,.26],[.73,.35],[.8,.46],[.86,.6],[.92,.76],[.98,.93],[1,1]]},{size:257,opacity:.7,gradientTransform:"translate(113.263 126.219) scale(128.08)",stops:[[0,.1],[.31,.11],[.45,.14],[.56,.19],[.65,.26],[.73,.35],[.8,.46],[.86,.6],[.92,.76],[.98,.93],[1,1]]}],Il=f.div`
64
+ `,$l=({percentage:i})=>e(yl,{children:[t(bl,{}),"number"==typeof i?t(vl,{size:Ka.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),wl={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 Cl(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 o=(e.match(/[^0-9]*$/)||"").toString();return wl[o]?{value:t,unit:o}:{value:t,unit:"px"}}function xl(e){const t=Cl(e);return`${t.value}${t.unit}`}const Sl=(()=>{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,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(o,0),e})(),El=({loading:i=!0,color:o,scale:n=1,speedMultiplier:r=1,cssOverride:a={},style:s={},...l})=>{const d=b(),c=o||d.text.secondary;if(!i)return null;const{value:p}=Cl(2),u=p+4.2,h=u/2+u/5.5,m=4*u*n,g={position:"relative",width:`${m}px`,height:`${m}px`,scale:n,...s,...a},f=(e,t)=>({position:"absolute",width:xl(1.5),height:xl(4),borderRadius:xl(2),backgroundColor:c,transition:"2s",animationFillMode:"both",animation:`${Sl} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:g,...l,children:[t("span",{style:{...f(1,0),top:`calc(50% + ${u}px)`,left:"50%"}}),t("span",{style:{...f(2,-45),top:`calc(50% + ${h}px)`,left:`calc(50% + ${h}px)`}}),t("span",{style:{...f(3,90),top:"50%",left:`calc(50% + ${u}px)`}}),t("span",{style:{...f(4,45),top:`calc(50% + ${-1*h}px)`,left:`calc(50% + ${h}px)`}}),t("span",{style:{...f(5,0),top:`calc(50% + ${-1*u}px)`,left:"50%"}}),t("span",{style:{...f(6,-45),top:`calc(50% + ${-1*h}px)`,left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...f(7,90),top:"50%",left:`calc(50% + ${-1*u}px)`}}),t("span",{style:{...f(8,45),top:`calc(50% + ${h}px)`,left:`calc(50% + ${-1*h}px)`}})]})},Tl=488,Ol=635,Nl="0.65s",kl="cubic-bezier(0.4, 0, 0.2, 1)",Al=[{size:464,opacity:.1,gradientTransform:"translate(201.232 229.641) scale(231.217)",stops:[[0,.1],[.41,.11],[.56,.13],[.67,.18],[.75,.25],[.83,.33],[.89,.44],[.95,.56],[1,.7]]},{size:432,opacity:.3,gradientTransform:"translate(204.229 214.376) scale(216.276)",stops:[[0,.1],[.38,.11],[.52,.13],[.62,.18],[.69,.25],[.76,.33],[.82,.44],[.88,.57],[.93,.72],[.97,.88],[1,1]]},{size:374,opacity:.5,gradientTransform:"translate(166.792 184.246) scale(186.963)",stops:[[0,.1],[.31,.11],[.45,.14],[.56,.19],[.65,.26],[.73,.35],[.8,.46],[.86,.6],[.92,.76],[.98,.93],[1,1]]},{size:257,opacity:.7,gradientTransform:"translate(113.263 126.219) scale(128.08)",stops:[[0,.1],[.31,.11],[.45,.14],[.56,.19],[.65,.26],[.73,.35],[.8,.46],[.86,.6],[.92,.76],[.98,.93],[1,1]]}],Il=f.div`
65
65
  width: ${488}px;
66
66
  height: ${635}px;
67
67
  position: relative;
@@ -74,7 +74,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
74
74
  width: 464px;
75
75
  height: 464px;
76
76
  transform: ${({$variant:e})=>"logo"===e?"translate(-50%, -50%) scale(1)":"translate(-50%, calc(-50% + 148px)) scale(1.4)"};
77
- transition: transform ${Nl} ${Al};
77
+ transition: transform ${Nl} ${kl};
78
78
  pointer-events: none;
79
79
  `,Dl=f.svg`
80
80
  position: absolute;
@@ -87,7 +87,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
87
87
  inset: 0;
88
88
  background: linear-gradient(180deg, transparent 0%, transparent 28%, #0b0517 72%);
89
89
  opacity: ${({$variant:e})=>"logo"===e?0:1};
90
- transition: opacity ${Nl} ${Al};
90
+ transition: opacity ${Nl} ${kl};
91
91
  pointer-events: none;
92
92
  `,Ll=f.div`
93
93
  position: absolute;
@@ -97,15 +97,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
97
97
  transform: translate(-50%, calc(-50% + ${({$offsetY:e=0})=>e}px)) scale(${({$visible:e})=>e?1:.92});
98
98
  opacity: ${({$visible:e})=>e?1:0};
99
99
  transition:
100
- opacity ${Nl} ${Al},
101
- transform ${Nl} ${Al};
100
+ opacity ${Nl} ${kl},
101
+ transform ${Nl} ${kl};
102
102
  pointer-events: ${({$visible:e})=>e?"auto":"none"};
103
103
  `,Pl=f(Ll)`
104
104
  width: auto;
105
105
  display: flex;
106
106
  align-items: center;
107
107
  justify-content: center;
108
- `,Fl=({uid:o})=>t(i,{children:kl.map(({size:i,opacity:n,gradientTransform:r,stops:a},s)=>{const l=`${o}-r${s}`,d=i/2;return e(Dl,{width:i,height:i,viewBox:`0 0 ${i} ${i}`,fill:"none",children:[t("circle",{cx:d,cy:d,r:d,opacity:n,fill:`url(#${l})`}),t("defs",{children:t("radialGradient",{id:l,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:r,children:a.map(([e,i])=>t("stop",{offset:e,stopColor:"#7C3BFF",stopOpacity:i},e))})})]},l)})}),Ml=({variant:i,title:o,code:n,onCopy:r})=>{const s=a().replace(/:/g,""),l="logo"===i;return e(Il,{children:[t(_l,{$variant:i,children:t(Fl,{uid:s})}),t(Rl,{$variant:i}),t(Pl,{$visible:l,children:t(me,{size:112})}),t(Ll,{$visible:!l,$offsetY:24,children:t(eT,{title:o,code:n,onDone:r,maxHeight:317.5})})]})},Ul=f.div`
108
+ `,Fl=({uid:o})=>t(i,{children:Al.map(({size:i,opacity:n,gradientTransform:r,stops:a},s)=>{const l=`${o}-r${s}`,d=i/2;return e(Dl,{width:i,height:i,viewBox:`0 0 ${i} ${i}`,fill:"none",children:[t("circle",{cx:d,cy:d,r:d,opacity:n,fill:`url(#${l})`}),t("defs",{children:t("radialGradient",{id:l,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:r,children:a.map(([e,i])=>t("stop",{offset:e,stopColor:"#7C3BFF",stopOpacity:i},e))})})]},l)})}),Ml=({variant:i,title:o,code:n,onCopy:r})=>{const s=a().replace(/:/g,""),l="logo"===i;return e(Il,{children:[t(_l,{$variant:i,children:t(Fl,{uid:s})}),t(Rl,{$variant:i}),t(Pl,{$visible:l,children:t(me,{size:112})}),t(Ll,{$visible:!l,$offsetY:24,children:t(eT,{title:o,code:n,onDone:r,maxHeight:317.5})})]})},Ul=f.div`
109
109
  width: ${({$size:e})=>e}px;
110
110
  height: ${({$size:e})=>e}px;
111
111
  border-radius: 100%;
@@ -251,7 +251,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
251
251
  background-clip: text;
252
252
  color: transparent;
253
253
  animation: ${pd} 1s reverse linear infinite;
254
- `,hd=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),o=Math.floor(i/60),n=i%60;return`${String(o).padStart(2,"0")}:${String(n).padStart(2,"0")}`},md=({icon:i,title:o,titleColor:n,titleSize:r=Ka.S,subTitle:a,subTitleColor:d,subTitleSize:c=Ka.XXXS,startedAt:p,withGradient:u,gradientColor:h,withSpinner:m,withSpinnerOld:g,scaleSpinnerOld:f=1,percentage:y,withVisual:v,visualIcon:$=mt})=>{const w=b(),[C,x]=s(()=>p?hd(p):"");l(()=>{if(!p)return;x(hd(p));const e=setInterval(()=>x(hd(p)),1e3);return()=>clearInterval(e)},[p]);const S=n||w.v2.colors.white[500],E=d||w.v2.colors.silver[200],T=h||w.v2.colors.black[500];return e(od,{$gap:16,$alignItems:"center",children:[v?t(zl,{scale:1.7,icon:$}):m?t($l,{percentage:y}):g?t(El,{scale:f}):null,(o||a||p||i||u)&&e(od,{$gap:8,$alignItems:"center",children:[e(id,{$gap:4,children:[i&&t(i,{}),u?t(ud,{align:"center",size:r,$titleColor:S,$gradientColor:T,nowrap:!0,children:o||"Loading..."}):o?t(Za,{align:"center",size:r,color:S,children:o}):null]}),a?t(Za,{align:"center",size:c,color:E,children:a}):null,C?t(Za,{align:"center",size:c,color:S,children:C}):null]})]})},gd=(e,t)=>({[Di.Default]:i=>me({fill:gl(t,e,"300"),...i}),[Di.Info]:i=>bt({fill:gl(t,e,"400"),...i}),[Di.Error]:i=>yt({fill:gl(t,e,"500"),...i}),[Di.Warning]:i=>ft({fill:gl(t,e,"500"),...i}),[Di.Success]:i=>E({fill:gl(t,e,"500"),...i}),[Di.Loading]:e=>md({withSpinnerOld:!0,...e}),[Di.Disabled]:i=>T({fill:gl(t,e,"400"),...i}),[Di.Unknown]:i=>gt({fill:gl(t,e,"300"),...i})}[e]),fd=e=>{switch(e){case Hi.Success:return Di.Success;case Hi.Error:case Hi.Failure:return Di.Error;case Hi.Notice:return Di.Warning;case Hi.Unsupported:case Hi.Unknown:return Di.Info;case Hi.Irrelevant:case Hi.Disabled:return Di.Disabled;case Hi.Waiting:return Di.Loading;case Hi.Pending:default:return Di.Default}},yd=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},bd={redis:A,mysql:_,postgresql:k,postgres:k,kafka:N,elasticsearch:_e,clickhouse:Ue,oracle:ce,aws:vt},vd={sts:It,dynamodb:kt,s3:ne,sqs:At,sns:Nt,lambda:Ot,kinesis:Tt,ec2:Et,apigateway:St,apigatewayv2:St,bedrock:xt,bedrockruntime:xt,eventbridge:Ct,sfn:wt,stepfunctions:wt,secretsmanager:$t,cloudwatch:Me},$d=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=bd[i.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=bd[o.toLowerCase()];if(e)return e}const n=t["rpc.system"];if(n?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=vd[e];if(t)return t}return vt}const r=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(bd))if(r.includes(e))return t;return et},wd=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:o,region:n}=e;return{namespace:t,name:i,kind:o,region:n||void 0}},Cd=(e,t)=>{const i=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=ms(t.fields,{}),n=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==n&&i.push(...e.items[n].fields.map(e=>({...e,initialValue:o[e.name]})))}return i},xd=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Di.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Sd(e){if(!e||0===e.length)return null;const t=[],i=[],o=[];for(const n of e){if(!n)continue;const e=n.workloadName??"",r=n.workloadKind??"",a=n.workloadNamespace??"",s=n.workloadLanguage??"";e||r?t.push({namespace:a,kind:r,name:e}):a&&i.push(a),s&&o.push(s)}return 0===t.length&&0===i.length&&0===o.length?null:{sources:t,namespaces:i,languages:o}}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:Sd(t??null)}}function Od(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),Ad=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),kd=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},Id=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},_d=(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\-~.]*)?$/,Rd=e=>Dd.test(e),Ld=e=>e?.map(({status:e,type:t,reason:i,message:o})=>({status:e?.toLowerCase(),type:Ga(t),reason:i?Ga(i):"",message:o}))||[],Pd=(e,t)=>{const i=ms(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}))},Fd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ro[e]):[],Md=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ro[e]):[],Ud=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},zd=e=>e.replace(/[^\d]/g,""),Bd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},jd=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},Hd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},Wd={0:"",1:"OK",2:"ERROR"};class Xd{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 Xd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Gd=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},Vd=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 o=e.readVarintBig();t=null===o?"":o.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const o=e.readFixed64AsDoubleBits();t=null===o||Number.isNaN(o)?"":String(o);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readMessage();if(!o)break;const n=[];for(;o.remaining>0;){const e=o.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=o.readMessage();e&&n.push(Vd(e))}else o.skip(e.wire)}t=`[${n.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readMessage();if(!o)break;const n=[];for(;o.remaining>0;){const e=o.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=o.readMessage();if(!e)continue;const t=Kd(e);t.key&&n.push(`${t.key}=${t.value??""}`)}else o.skip(e.wire)}t=`{${n.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readBytes();if(!o)break;const n=Gd(o.length>16?o.subarray(0,16):o)??"";t=o.length>16?`${n}…`:n;break}default:e.skip(i.wire)}}return t},Kd=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?Vd(i):void 0}else e.skip(i.wire)}return t},Yd=(e,t)=>{const i=e.readMessage();if(!i)return;const o=Kd(i);void 0===o.key&&void 0===o.value||t.push(o)},qd=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},Jd=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?Yd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Qd=(e,t,i)=>{const o={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?o.traceId=Gd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?o.spanId=Gd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?o.parentSpanId=Gd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?o.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?o.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?o.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?o.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?Yd(e,o.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&o.events.push(Jd(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=qd(t);o.statusCode=e.code,o.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return o},Zd=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 o=Kd(i);"service.name"===o.key&&o.value&&(t=o.value)}else e.skip(i.wire)}return t},ec=e=>{let t,i;for(;e.remaining>0;){const o=e.readTag();if(!o)break;1===o.field&&2===o.wire?t=e.readString()??void 0:2===o.field&&2===o.wire?i=e.readString()??void 0:e.skip(o.wire)}if(t)return i?`${t}@${i}`:t},tc=(e,t)=>{let i;const o=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const t=e.readMessage();t&&(i=ec(t))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&o.push(Qd(n,t,i))}else e.skip(n.wire)}for(const e of o)!e.scope&&i&&(e.scope=i);return o},ic=e=>{let t;const i=[];for(;e.remaining>0;){const o=e.readTag();if(!o)break;if(1===o.field&&2===o.wire){const i=e.readMessage();i&&(t=Zd(i))}else if(2===o.field&&2===o.wire){const o=e.readMessage();o&&i.push(...tc(o,t))}else e.skip(o.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},oc=e=>({key:e.key??null,value:e.value??null}),nc=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,o=[];for(const n of e){const e=n.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(n),i.set(e,t)}else o.push(n)}const n=(e,t)=>{const i=e.startUnixNano??0n,o=t.startUnixNano??0n;return i<o?-1:i>o?1:0};o.sort(n);for(const e of i.values())e.sort(n);const r=(o[0]??e[0]).startUnixNano??0n,a=[],s=(e,t)=>{const o=e.startUnixNano??0n,n=e.endUnixNano??o,l=o>r?o-r:0n,d=n>o?n-o:1n,c=void 0!==e.statusCode?Wd[e.statusCode]??null:null,p=(e.attrs??[]).map(oc);p.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const u=(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(oc)}});a.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?Hd[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:p.length?p:null,events:u.length?u:null});for(const o of i.get(e.spanId??"")??[])s(o,t+1)};for(const t of o.length?o:e)s(t,0);const l=new Set;return a.filter(e=>{const t=e.spanId??"";return!t||!l.has(t)&&(l.add(t),!0)})},rc=(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"),o=new Uint8Array(i.length);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return o}catch{return null}})(t);if(!i||0===i.length)return{error:"Invalid base64 rawOtlp"};const o=(e=>{const t=new Xd(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(...ic(e))}else t.skip(e.wire)}return i})(i);return o.length?{traceId:e,spans:nc(o),error:null}:{error:"No spans found in OTLP payload"}}catch(e){return{error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},ac=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const o=(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!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},sc=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const o=e[i];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>sc(e)))}else if("object"==typeof o&&null!==o){const e=sc(o);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(o)||(t[i]=o)}),t},lc=(e,t=2)=>JSON.stringify(e||{},null,t),dc=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),cc=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),pc=ci("v1.33"),uc=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],hc=(e,t)=>{if(e!==Si.K8s)return!1;const i=ci(t);return i>0&&i<pc},mc=ci("v1.20"),gc=(e,t)=>{if(e!==Si.K8s)return!0;const i=ci(t);return!(i>0)||i>=mc},fc=e=>e?uc.map(t=>e[t]??null):[],yc={PID:"process.pid",VPID:"process.vpid"},bc={[Oi.Go]:"Go",[Oi.Java]:"Java",[Oi.JavaScript]:"Node.js",[Oi.Python]:"Python",[Oi.DotNet]:".NET",[Oi.CSharp]:"C#",[Oi.CPlusPlus]:"C++",[Oi.Php]:"PHP",[Oi.Ruby]:"Ruby",[Oi.Rust]:"Rust",[Oi.Swift]:"Swift",[Oi.Elixir]:"Elixir",[Oi.Browser]:"Browser",[Oi.MySql]:"MySQL",[Oi.Nginx]:"Nginx",[Oi.Postgres]:"PostgreSQL",[Oi.Redis]:"Redis",[Oi.Kafka]:"Kafka",[Oi.Ignored]:"Ignored",[Oi.Unknown]:"Unknown",[Oi.Processing]:"Processing",[Oi.NoContainers]:"No Containers",[Oi.NoRunningPods]:"No Running Pods"},vc=[{id:Oi.Go,label:bc[Oi.Go],icon:Ws(Oi.Go)},{id:Oi.Java,label:bc[Oi.Java],icon:Ws(Oi.Java)},{id:Oi.JavaScript,label:bc[Oi.JavaScript],icon:Ws(Oi.JavaScript)},{id:Oi.Python,label:bc[Oi.Python],icon:Ws(Oi.Python)},{id:Oi.Php,label:bc[Oi.Php],icon:Ws(Oi.Php)},{id:Oi.Ruby,label:bc[Oi.Ruby],icon:Ws(Oi.Ruby)},{id:Oi.Rust,label:bc[Oi.Rust],icon:Ws(Oi.Rust)},{id:Oi.DotNet,label:bc[Oi.DotNet],icon:Ws(Oi.DotNet)},{id:Oi.CSharp,label:bc[Oi.CSharp],icon:Ws(Oi.CSharp)},{id:Oi.CPlusPlus,label:bc[Oi.CPlusPlus],icon:Ws(Oi.CPlusPlus)},{id:Oi.Swift,label:bc[Oi.Swift],icon:Ws(Oi.Swift)},{id:Oi.Elixir,label:bc[Oi.Elixir],icon:Ws(Oi.Elixir)},{id:Oi.Browser,label:bc[Oi.Browser],icon:Ws(Oi.Browser)},{id:Oi.MySql,label:bc[Oi.MySql],icon:Ws(Oi.MySql)},{id:Oi.Nginx,label:bc[Oi.Nginx],icon:Ws(Oi.Nginx)},{id:Oi.Postgres,label:bc[Oi.Postgres],icon:Ws(Oi.Postgres)},{id:Oi.Redis,label:bc[Oi.Redis],icon:Ws(Oi.Redis)},{id:Oi.Kafka,label:bc[Oi.Kafka],icon:Ws(Oi.Kafka)}],$c={id:ji.OpentelemetryEbpfInstrumentation,label:ji.OpentelemetryEbpfInstrumentation,icon:_t},wc={id:ji.BrowserCommunity,label:ji.BrowserCommunity,icon:Ws(Oi.Browser)},Cc={[Oi.Go]:{community:[{id:ji.GolangCommunity,label:ji.GolangCommunity,icon:Ws(Oi.Go)},$c,wc],enterprise:[{id:ji.GolangEnterprise,label:ji.GolangEnterprise,icon:Ws(Oi.Go)}]},[Oi.JavaScript]:{community:[{id:ji.NodejsCommunity,label:ji.NodejsCommunity,icon:Ws(Oi.JavaScript)},$c,wc],enterprise:[{id:ji.NodejsEnterprise,label:ji.NodejsEnterprise,icon:Ws(Oi.JavaScript)}]},[Oi.Python]:{community:[{id:ji.PythonCommunity,label:ji.PythonCommunity,icon:Ws(Oi.Python)},$c,wc],enterprise:[{id:ji.PythonEnterprise,label:ji.PythonEnterprise,icon:Ws(Oi.Python)}]},[Oi.Java]:{community:[{id:ji.JavaCommunity,label:ji.JavaCommunity,icon:Ws(Oi.Java)},$c,wc],enterprise:[{id:ji.JavaEnterprise,label:ji.JavaEnterprise,icon:Ws(Oi.Java)},{id:ji.JavaEbpfInstrumentations,label:ji.JavaEbpfInstrumentations,icon:Ws(Oi.Java)}]},[Oi.DotNet]:{community:[{id:ji.DotNetCommunity,label:ji.DotNetCommunity,icon:Ws(Oi.DotNet)},$c,wc],enterprise:[{id:ji.DotNetEnterprise,label:ji.DotNetEnterprise,icon:Ws(Oi.DotNet)}]},[Oi.Ruby]:{community:[{id:ji.RubyCommunity,label:ji.RubyCommunity,icon:Ws(Oi.Ruby)},$c,wc],enterprise:[{id:ji.RubyEnterprise,label:ji.RubyEnterprise,icon:Ws(Oi.Ruby)}]},[Oi.Php]:{community:[{id:ji.PhpCommunity,label:ji.PhpCommunity,icon:Ws(Oi.Php)},$c,wc],enterprise:[]},[Oi.CSharp]:{community:[wc],enterprise:[{id:ji.CPlusPlusEnterprise,label:ji.CPlusPlusEnterprise,icon:Ws(Oi.CSharp)}]},[Oi.CPlusPlus]:{community:[$c,wc],enterprise:[]},[Oi.Browser]:{community:[wc],enterprise:[]},[Oi.MySql]:{community:[],enterprise:[{id:ji.MySqlEnterprise,label:ji.MySqlEnterprise,icon:Ws(Oi.MySql)}]},[Oi.Rust]:{community:[$c,wc],enterprise:[]},[Oi.Swift]:{community:[$c,wc],enterprise:[]},[Oi.Elixir]:{community:[$c,wc],enterprise:[]},[Oi.Nginx]:{community:[$c,wc],enterprise:[]},[Oi.Postgres]:{community:[$c],enterprise:[]},[Oi.Redis]:{community:[$c],enterprise:[]},[Oi.Kafka]:{community:[$c],enterprise:[]},[Oi.Ignored]:{community:[],enterprise:[]},[Oi.Unknown]:{community:[$c,wc],enterprise:[]},[Oi.Processing]:{community:[],enterprise:[]},[Oi.NoContainers]:{community:[],enterprise:[]},[Oi.NoRunningPods]:{community:[],enterprise:[]}},xc="*",Sc=e=>!!e?.includes(xc),Ec=e=>e?.length?Sc(e)?[xc]:e:[],Tc=e=>{if(e?.length&&!Sc(e))return e.filter(e=>e!==xc)},Oc=e=>e===xc?"All languages":bc[e]??e,Nc=e=>e===xc?Dt:Ws(e),Ac=ci("v1.26"),kc=(e,t)=>{if(e!==Si.K8s)return!1;const i=ci(t);return!(i>0)||i>=Ac},Ic=[Wi.NetworkMetrics],_c=e=>!Ic.includes(e),Dc=[{type:Wi.CodeAttributes,icon:ol(Wi.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:[Oi.Go,Oi.Python,Oi.JavaScript]},{type:Wi.CustomInstrumentation,icon:ol(Wi.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:[Oi.Go,Oi.Java,Oi.Php]},{type:Wi.HeadersCollection,icon:ol(Wi.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:[Oi.Go,Oi.Java,Oi.JavaScript]},{type:Wi.PayloadCollection,icon:ol(Wi.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:[Oi.Go,Oi.JavaScript]}],Rc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:ol(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},Lc="Recommendations",Pc="Optimize your observability setup with actionable recommendations.",Fc="Recommended",Mc="Applied",Uc="Dismissed",zc="Not applicable",Bc={[Oo.Recommended]:Fc,[Oo.Applied]:Mc,[Oo.Dismissed]:Uc,[Oo.NotApplicable]:zc},jc="Accept",Hc="Dismiss",Wc="Restore",Xc="Docs",Gc="Benefits",Vc="Considerations",Kc="Apply Recommendation",Yc="Apply via UI",qc="Apply via GitOps",Jc="Via UI",Qc="Via GitOps",Zc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",ep="There are 2 ways to apply this recommendation.",tp="Odigos applies the selected change immediately.",ip="Commit the configuration to your repository and let your GitOps controller apply it.",op="UI changes apply only to this cluster and will not carry over if you re-install odigos.",np="No recommendations",rp="There are no recommendations for this cluster right now.",ap="This recommendation does not currently apply to your cluster.",sp="Recommendation dismissed",lp="Recommendation restored",dp="Recommendation applied successfully",cp="Failed to apply recommendation",pp={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.'},up={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."},hp={[vi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[vi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[vi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},mp="Cancel",gp="Save",fp="Edit rule",yp="Edit auto rule",bp="Create rule",vp="Delete rule",$p="Save",wp="Create your first rule",Cp="No Rules Exist",xp="No Results",Sp=e=>`No rules match the search term "${e}"`,Ep="Rule name",Tp="Rule type",Op="Select the type of condition that makes a trace highly relevant.",Np="Rule Enabled",Ap="Rule Disabled",kp="Enabled",Ip="Disabled",_p="Note",Dp="HTTP route",Rp="Method",Lp="Keep Percentage",Pp="Keep traces with duration larger than",Fp="Keep traces with errors",Mp="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Up="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",zp="Custom percentage",Bp="Disabled rule",jp="Sample",Hp="Keep all",Wp="Drop all",Xp="Operation type",Gp="HTTP route prefix",Vp="Templated path",Kp="Templated path prefix",Yp="Kafka topic",qp="Custom duration (ms)",Jp="No preview available",Qp="Server address",Zp="Drop at most this percentage of matching traces",eu="Unnamed rule",tu="Sampling Preview",iu="Source Scope",ou="Unknown source",nu="Operation",ru="Duration",au="Errors",su="Keep Percentage",lu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",du="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.",cu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",pu="Retain traces with errors from the selected services and operations.",uu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",hu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",mu={highlyRelevant:uu,noisy:hu,costReduction:void 0},gu="Type rule name",fu="Add note here...",yu="Type here",bu="Search source name",vu="e.g. collector.my.vendor.com",$u="Optional notes (not used by the system). Add any context or details for this sampling rule.",wu="Rule will apply to all sources in the cluster",Cu="If multiple source scopes are set, they must all match simultaneously.",xu="All sources",Su="-",Eu="All",Tu="Sources",Ou="Namespaces",Nu="Languages",Au="any of",ku="AND",Iu="All operations",_u="HTTP server endpoint",Du="HTTP client endpoint",Ru="Kafka consumer",Lu="Kafka producer",Pu="Sampling Rules",Fu='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Mu="Refresh",Uu="Create rule",zu="Sampling docs",Bu="75vw",ju="Delete rule?",Hu="Are you sure you want to delete this sampling rule?",Wu="Delete",Xu="Cancel",Gu="Kubernetes Health Probes",Vu="Keep All Error Traces",Ku="Drop Traces Cluster-Wide",Yu="A rule with the same matching conditions already exists.",qu="Create this rule as-is?",Ju="This rule still uses the default configuration.\nDo you want to create it anyway?",Qu="Rule preview",Zu="Continue editing",eh="Create 'Noisy Operation Kubernetes Health Probes' rule",th="Edit 'Noisy Operation Kubernetes Health Probes' rule",ih="Automatically detect and sample health probe traces across the cluster.",oh="Create 'Highly Relevant Operations' rule",nh="Edit 'Highly Relevant Operations' rule",rh="Automatically keep all error traces across the entire cluster.",ah="Create 'Cost Reduction' rule",sh="Edit 'Cost Reduction' rule",lh="Automatically drop a percentage of traces across the entire cluster.",dh="Skip setup",ch="Start setup",ph="Next",uh="Go to Sampling",hh="Read more",mh="Welcome to Sampling",gh="Cut costs without losing what matters",fh="Odigos sampling works in three stages:",yh="Filter noisy traffic",bh="Remove non-actionable traces like health checks.",vh="Guarantee highly relevance operations",$h="Keep traces with errors, high latency, or mission-critical endpoints/services.",wh="Reduce cost",Ch="Sample routine traffic using percentages.",xh="Sampling does not drop individual spans - it keeps or drops the entire trace.",Sh="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.",Oh="Preset Rules",Nh="Kubernetes Health Probes",Ah="Automatically ignore health checks",kh="You can review, adjust, and add additional custom rules later.",Ih="Choose your sampling strategy",_h="Pick the approach that best fits your balance of cost vs data-completeness",Dh="Keep List",Rh="Budget Friendly",Lh="Define which traces must be kept, while all others are sampled by default to minimize cost.",Ph="Cost-oriented - keeps only what you explicitly select.",Fh="Best for very large clusters with high volumes of traces and high costs.",Mh="Higher risk of missing important traces without ongoing review.",Uh="Drop List",zh="Safe Choice",Bh="Define which traces must be aggressively dropped, while all others are kept by default.",jh="Preserves most data unless explicitly filtered.",Hh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Wh="Advanced",Xh="Maximum Flexibility",Gh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Vh="'Keep List' profile",Kh="Protect important traces",Yh="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:",qh="Traces with errors",Jh="Slow requests (duration above threshold)",Qh="Mission-Critical endpoints or services",Zh="Services under test or evaluation",em="New deployments",tm="You can review, adjust, and add rules once onboarding is complete.",im="Common Rules",om="Preset Rules",nm="Error collection - entire cluster",rm="Keep all traces with errors",am="Ambient sampling percentage",sm="'Drop List' profile",lm="Reduce high-volume traffic",dm="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.",cm="Advanced Configuration",pm="Configure sampling rules",um="Advanced mode allows you to configure all sampling categories:",hm="Noise Filtering - remove non-actionable traces",mm="Highly Relevance - guarantee important traces are kept",gm='Cost Control - drop traces for "Normal" operations',fm="Rules can target:",ym="Services",bm="HTTP Endpoints",vm="DB Operations",$m="Errors",wm="Latency and more...",Cm="Sampling configured successfully!",xm="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Sm="Odigos will now:",Em="Filter noisy operations",Tm="Guarantee important traces",Om="Reduce cost using controlled sampling",Nm="Recommended",Am={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."},km={noisy:eh,highlyRelevant:oh,costReduction:ah},Im={noisy:th,highlyRelevant:nh,costReduction:sh},_m={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Dm=[{id:Zi.Logs,value:"Logs"},{id:Zi.Metrics,value:"Metrics"},{id:Zi.Traces,value:"Traces"},{id:Zi.Profiles,value:"Profiles"}],Rm=6048e5,Lm="URL templatization",Pm="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",Fm="Default templatization",Mm="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",Um="Default templatization is not enabled",zm="Automatically detect and templatize dynamic URL segments when no custom template matches.",Bm="Enable for entire cluster",jm="Custom URL templates",Hm="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",Wm="View by:",Xm="Groups",Gm="Tree",Vm="List",Km="Create templating scope",Ym="Edit scoped templates",qm="Edit",Jm="Add template",Qm="Add templatization rules",Zm="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",eg="Add templatization rule",tg="Choose how to templatize dynamic URLs",ig="Reduce route cardinality by replacing changing path segments with reusable placeholders.",og="Before",ng="After",rg="/users/123/orders/456",ag="/users/{id}/orders/{orderId}",sg="Automatic templatization",lg="Recommended",dg="Detect and templatize dynamic URL segments when no custom rule matches.",cg="Applies to: Entire cluster",pg="Reversible at any time",ug="Enabled",hg="Need more control?",mg="Create a custom rule for specific URL patterns.",gg="Create custom rule",fg="Learn how it works",yg="Docs",bg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",vg="Default templatization is enabled — editor coming next.",$g="746px",wg="Add default templatization rule",Cg="Edit default templatization rule",xg="Disable for a scope",Sg="UI template rules",Eg="Source Scope",Tg="Scope",Og="Choose which sources this template rule applies to.",Ng="Sources where this template is tested and applied.",Ag="This rule will apply to all sources in the cluster.",kg="Default templatization",Ig="Automatically templatize dynamic URL segments when no custom template matches.",_g="Enable automatic URL templatization for this scope",Dg=["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."],Rg="default templatization for this scope",Lg="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",Pg="Disable",Fg="Skip policy",Mg="Advanced",Ug=["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."],zg=Ug.join(" "),Bg="Skip default templatization for all non-2xx responses",jg="Skip default templatization for specific HTTP status codes",Hg="Example: 404, 401",Wg="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",Xg="This rule will take effect in the cluster immediately after it is added.",Gg="This rule will take effect in the cluster immediately after it is saved.",Vg="No template changes. Save will keep the current templates.";function Kg(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.`:Vg}const Yg="Add rule",qg="Save",Jg="Cancel",Qg="Cancel without saving",Zg="Delete",ef="templating scope";function tf(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 of="Enter valid HTTP status codes between 100 and 599, separated by commas.",nf="Create custom template",rf="Create new scoped template",af="Add URL templates",sf="UI template rules",lf=e=>`To ${e}`,df=e=>`Applies to ${e} source${1===e?"":"s"}`,cf=e=>`Applies to ${e} namespace${1===e?"":"s"}`,pf=e=>`Applies to ${e} language${1===e?"":"s"}`,uf="Applies to entire cluster",hf=e=>`Applies to ${e} scope${1===e?"":"s"}`,mf="Where should this rule apply?",gf=mf,ff="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",yf="Specific scope",bf="Entire cluster",vf="Apply the rule only where it is needed.",$f="Apply to every source in this cluster.",wf="Quick start",Cf="Best performance",xf="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Sf="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Ef="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Tf="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.",Of="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.",Nf="Add to existing template group",Af="Create new template group",kf="Add here",If="Create New",_f="Existing templating scope",Df="Templating scopes",Rf="Select where to add the new template",Lf="A template group already uses this scope",Pf="Choose where to add the new templates.",Ff="Add to existing template group",Mf="Create a separate template group",Uf="Use different settings or behavior for the same scope.",zf="View action settings",Bf="Default settings",jf=e=>_f,Hf=e=>1===e?"1 template":`${e} templates`,Wf="Templating scope",Xf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,Gf="Template group will be added to the default action. Expand Select action to choose a different one.",Vf="Select action",Kf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Yf="Advanced settings",qf="Choose which Odigos action the new custom template will be added to.",Jf="Default UI-managed action · Recommended",Qf="Create a new action",Zf="Select action",ey="Default UI-managed action",ty="Add this template group to the default UI-managed action.",iy="Select action",oy="Choose an existing action or create a new one for this template group.",ny="Search template group by type action name or scope (languages, namespaces, sources)",ry="Selected Template group:",ay="URL templatization action",sy="Create new action",ly="__odigos_create_new_url_templatization_action__",dy=oy,cy="New action name",py="New action group",uy="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.",hy="Create new template group",my="Next",gy="Back",fy="Action name",yy="Action",by="UI template rules",vy="__odigos_default_url_templatization_action__",$y="UI-owned",wy="Externally synced",Cy=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],xy=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Sy=$y,Ey="Templates",Ty="Other templates in this group",Oy="Additional templates that share the same source scope and Action as this rule.",Ny="e.g. /api/users/{id}",Ay="Language",ky="Namespace",Iy="Source",_y="AND",Dy="Entire cluster",Ry="Unset",Ly="Enabled globally",Py="Default templating disabled",Fy="Enabled",My="Default templatization is unset. No default rules are configured on an enabled action.",Uy="Default templatization is enabled globally.",zy="Default templatization is disabled for the entire cluster.";function By(e){return e<=0?Uy:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const jy="Disabled for these scopes",Hy="Disable for a scope",Wy="Delete",Xy="disabled scope",Gy="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",Vy="Automatic templatization",Ky="Active",Yy="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",qy="Examples",Jy="Templatized",Qy="Not templatized",Zy="Use a custom template when paths like these need placeholders.",eb=[{before:"/users/1234",after:"/users/{id}",label:"Numbers"},{before:"/orders/123e4567-e89b-12d3-a456-426614174000",after:"/orders/{id}",label:"UUIDs"},{before:"/assets/6f2a9cdeab34f01e",after:"/assets/{id}",label:"Hex IDs"},{before:"/events/2023-10-01T12:00:00+0000",after:"/events/{date}",label:"Dates"},{before:"/users/foo@bar.io",after:"/users/{email}",label:"Emails"}],tb=[{path:"/user/john",reason:"Static names"},{path:"/user/s111222",reason:"Short alphanumeric IDs"},{path:"/users/123456_789",reason:"Mixed digit patterns"}],ib="Custom templates take precedence over automatic templatization.",ob="Scope",nb="Status codes",rb="Disabled",ab="Entire cluster",sb="All",lb="None",db="Disabled",cb="No disabled scope configured",pb="Add disabled",ub="Disabled scopes",hb="Advanced",mb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,gb="Automatic templatization off for matching traffic.",fb="Disable for a scope",yb="Scope",bb="Effective behavior",vb="Status",$b="Automatic templatization off",wb="Covered by broader exception",Cb="Disabled",xb="Redundant",Sb="No disabled scope configured",Eb="Disable automatic templatization for specific scopes when needed.",Tb=(e,t)=>`${e} configured • ${t} effective`,Ob=e=>1===e?"1 scope":`${e} scopes`,Nb="Default templatization is enabled for all HTTP status codes.";function Ab(e){return e<=0?Nb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const kb="HTTP status code policies",Ib="No skip policy configured",_b="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Db="Add skip policy for a scope",Rb="Add skip policy for a scope",Lb="Skip default templatization on HTTP errors",Pb="Delete",Fb="skip policy",Mb="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",Ub="Template details",zb="Template",Bb="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",jb="Created via",Hb="Action name",Wb="Kubernetes name",Xb="Odigos Action (Kubernetes resource) where this template is managed.",Gb="Try a URL",Vb="/users/12/orders/345685335358",Kb="Test URL",Yb="Close",qb="Result",Jb="Templated URL path",Qb="Match found",Zb="This URL matches the template.",ev="No match",tv="This URL doesn't match the template.",iv="Check the URL structure and parameter positions, then try again.",ov={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:ts},nv=ei(e=>({...ov,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(ov)}));var rv;(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"})(rv||(rv={}));const av=e=>`add-${Ga(e).replaceAll(" ","-").toLowerCase()}`,sv=e=>`edit-${Ga(e).replaceAll(" ","-").toLowerCase()}`,lv=ei(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),dv=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),cv=ei(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:dv})),pv=ei((e,t)=>({notifications:[],addNotification:i=>{const o=new Date,n=`${o.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:n,time:o.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 uv;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(uv||(uv={}));const hv=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),mv=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),gv=ei((e,t)=>({progress:{},setProgress:(i,o)=>{const n=t(),r=hv();return"number"==typeof o.total&&(r.total=o.total),"number"==typeof o.current&&(r.current=o.current),Array.isArray(o.list)&&(r.list=o.list),e({progress:{...n.progress,[i]:mv(r)}})},addProgress:(i,o,n)=>{const r=t(),a=hv(i,r.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...r.progress,[i]:mv(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),fv=ei(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),yv={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},bv=(e,t)=>e.destinationType.type!==t.destinationType.type,vv=ei(e=>({...yv,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=>bv(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=>bv(e,t))})),clearStore:()=>e(()=>({...yv}))})),$v=e=>{function t(){return void 0===e?{}:Ts(e)}const[i,o]=s(t()),[n,r]=s({}),[a,p]=s(t()),u=d((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(u(e,o[t])).length:e===o[t])||(i[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const o=u(n,t[e]);Object.keys(o).length>0&&(i[e]=o)}else n!==t[e]&&(i[e]=t[e])}for(const o of Object.keys(t))o in e||(i[o]=t[o]);return i},[]),h=(e,t)=>0===Object.keys(u(e,t)).length,m=c(()=>!h(a,i),[a,i]);l(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(n)&&(o(n),p(n))},[e,i]);const g=d((e,t)=>Os("formData"===e?i:n,t.toString()),[i,n]);return{formData:i,formErrors:n,getFormDiff:u,areFormValuesEqual:h,isFormDirty:m,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),n=i.split(".");1===n.length?o(i=>({...i,[e]:t})):o(e=>{const i=Ts(e);let o=i;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,i}),r(e=>{const t=i,o=n[n.length-1],r=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!r&&!a)return e;const s={...e};return r&&delete s[t],a&&delete s[o],s})}else i&&o({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?r(i=>({...i,[e]:t})):r(e=>{const o=Ts(e);let n=o;for(let e=0;e<i.length-1;e++){const t=i[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[i[i.length-1]]=t,o})}else i&&r({...i})},resetFormData:e=>{const i=e||t();o(i),p(i),r({})},getNestedValue:g}},wv={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Cv=()=>{const{addNotification:e}=pv(),{formData:t,formErrors:i,handleFormChange:o,handleErrorChange:n,resetFormData:r}=$v(wv);return{formData:t,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:i=>{const o={};let r=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Nd(t)&&(o[e]=rs.FIELD_IS_REQUIRED)}}),t.type===pi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=rs.FIELD_IS_REQUIRED;break}}return r=!Object.values(o).length,!r&&i?.withAlert&&e({type:Di.Warning,title:i.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),r},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:n,disabled:r,fields:a})=>{const s={...Ts(wv),type:e,signals:t,name:i,notes:n,disabled:r};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case hi.LabelsAttributes:case hi.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 hi.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(o=t,o?.length?o.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):o);break;case hi.CollectContainerAttributes:case hi.CollectReplicaSetAttributes:case hi.CollectWorkloadId:case hi.CollectClusterId:case hi.ClusterAttributes:case hi.OverwriteExistingValues:case hi.AttributeNamesToDelete:case hi.Renames:case hi.PiiCategories:case hi.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,o}),o(void 0,void 0,s)}}},xv=e=>{l(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Sv=()=>{const e=p(null),[t,i]=s(0),[o,n]=s(0);return l(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();i(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},Ev="data-ignore-outside-click",Tv=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Ev))return!0;t=t.parentNode}return!1},Ov=(e,t)=>{const i=p(t);i.current=t,l(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&(Tv(o)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Nv=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:o="local"}={})=>{const n=p(null),[r,a]=s(!1),[l,d]=s({top:0,left:0}),[c,u]=s({edge:"top",align:"left"});return Ov(n,()=>{r&&(a(!1),i?.())}),{popupRef:n,popupOpen:r,setPopupOpen:a,popupPosition:l,arrowPlacement:c,handlePosition:(i,r)=>{if("local"===o)return void d({top:r,left:i});const{innerWidth:a,innerHeight:s}=window,l=n.current?.clientWidth||t,c=n.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";u({edge:r<s/2?"top":"bottom",align:h});let m=r,g=i;if(m>=s/2&&(m+=-c),"center"===h){g=i-l/2;const e=8;g=Math.max(e,Math.min(g,a-l-e))}else g>=a/2&&(g=i-l);d({top:m,left:g})}}},Av=f.div`
254
+ `,hd=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),o=Math.floor(i/60),n=i%60;return`${String(o).padStart(2,"0")}:${String(n).padStart(2,"0")}`},md=({icon:i,title:o,titleColor:n,titleSize:r=Ka.S,subTitle:a,subTitleColor:d,subTitleSize:c=Ka.XXXS,startedAt:p,withGradient:u,gradientColor:h,withSpinner:m,withSpinnerOld:g,scaleSpinnerOld:f=1,percentage:y,withVisual:v,visualIcon:$=mt})=>{const w=b(),[C,x]=s(()=>p?hd(p):"");l(()=>{if(!p)return;x(hd(p));const e=setInterval(()=>x(hd(p)),1e3);return()=>clearInterval(e)},[p]);const S=n||w.v2.colors.white[500],E=d||w.v2.colors.silver[200],T=h||w.v2.colors.black[500];return e(od,{$gap:16,$alignItems:"center",children:[v?t(zl,{scale:1.7,icon:$}):m?t($l,{percentage:y}):g?t(El,{scale:f}):null,(o||a||p||i||u)&&e(od,{$gap:8,$alignItems:"center",children:[e(id,{$gap:4,children:[i&&t(i,{}),u?t(ud,{align:"center",size:r,$titleColor:S,$gradientColor:T,nowrap:!0,children:o||"Loading..."}):o?t(Za,{align:"center",size:r,color:S,children:o}):null]}),a?t(Za,{align:"center",size:c,color:E,children:a}):null,C?t(Za,{align:"center",size:c,color:S,children:C}):null]})]})},gd=(e,t)=>({[Di.Default]:i=>me({fill:gl(t,e,"300"),...i}),[Di.Info]:i=>bt({fill:gl(t,e,"400"),...i}),[Di.Error]:i=>yt({fill:gl(t,e,"500"),...i}),[Di.Warning]:i=>ft({fill:gl(t,e,"500"),...i}),[Di.Success]:i=>E({fill:gl(t,e,"500"),...i}),[Di.Loading]:e=>md({withSpinnerOld:!0,...e}),[Di.Disabled]:i=>T({fill:gl(t,e,"400"),...i}),[Di.Unknown]:i=>gt({fill:gl(t,e,"300"),...i})}[e]),fd=e=>{switch(e){case Hi.Success:return Di.Success;case Hi.Error:case Hi.Failure:return Di.Error;case Hi.Notice:return Di.Warning;case Hi.Unsupported:case Hi.Unknown:return Di.Info;case Hi.Irrelevant:case Hi.Disabled:return Di.Disabled;case Hi.Waiting:return Di.Loading;case Hi.Pending:default:return Di.Default}},yd=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},bd={redis:k,mysql:_,postgresql:A,postgres:A,kafka:N,elasticsearch:_e,clickhouse:Ue,oracle:ce,aws:vt},vd={sts:It,dynamodb:At,s3:ne,sqs:kt,sns:Nt,lambda:Ot,kinesis:Tt,ec2:Et,apigateway:St,apigatewayv2:St,bedrock:xt,bedrockruntime:xt,eventbridge:Ct,sfn:wt,stepfunctions:wt,secretsmanager:$t,cloudwatch:Me},$d=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=bd[i.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=bd[o.toLowerCase()];if(e)return e}const n=t["rpc.system"];if(n?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=vd[e];if(t)return t}return vt}const r=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(bd))if(r.includes(e))return t;return et},wd=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:o,region:n}=e;return{namespace:t,name:i,kind:o,region:n||void 0}},Cd=(e,t)=>{const i=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=ms(t.fields,{}),n=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==n&&i.push(...e.items[n].fields.map(e=>({...e,initialValue:o[e.name]})))}return i},xd=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Di.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Sd(e){if(!e||0===e.length)return null;const t=[],i=[],o=[];for(const n of e){if(!n)continue;const e=n.workloadName??"",r=n.workloadKind??"",a=n.workloadNamespace??"",s=n.workloadLanguage??"";e||r?t.push({namespace:a,kind:r,name:e}):a&&i.push(a),s&&o.push(s)}return 0===t.length&&0===i.length&&0===o.length?null:{sources:t,namespaces:i,languages:o}}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:Sd(t??null)}}function Od(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),kd=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},Id=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},_d=(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\-~.]*)?$/,Rd=e=>Dd.test(e),Ld=e=>e?.map(({status:e,type:t,reason:i,message:o})=>({status:e?.toLowerCase(),type:Ga(t),reason:i?Ga(i):"",message:o}))||[],Pd=(e,t)=>{const i=ms(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}))},Fd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ro[e]):[],Md=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ro[e]):[],Ud=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},zd=e=>e.replace(/[^\d]/g,""),Bd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},jd=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},Hd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},Wd={0:"",1:"OK",2:"ERROR"};class Xd{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 Xd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Gd=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},Vd=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 o=e.readVarintBig();t=null===o?"":o.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const o=e.readFixed64AsDoubleBits();t=null===o||Number.isNaN(o)?"":String(o);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readMessage();if(!o)break;const n=[];for(;o.remaining>0;){const e=o.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=o.readMessage();e&&n.push(Vd(e))}else o.skip(e.wire)}t=`[${n.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readMessage();if(!o)break;const n=[];for(;o.remaining>0;){const e=o.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=o.readMessage();if(!e)continue;const t=Kd(e);t.key&&n.push(`${t.key}=${t.value??""}`)}else o.skip(e.wire)}t=`{${n.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const o=e.readBytes();if(!o)break;const n=Gd(o.length>16?o.subarray(0,16):o)??"";t=o.length>16?`${n}…`:n;break}default:e.skip(i.wire)}}return t},Kd=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?Vd(i):void 0}else e.skip(i.wire)}return t},Yd=(e,t)=>{const i=e.readMessage();if(!i)return;const o=Kd(i);void 0===o.key&&void 0===o.value||t.push(o)},qd=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},Jd=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?Yd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Qd=(e,t,i)=>{const o={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?o.traceId=Gd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?o.spanId=Gd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?o.parentSpanId=Gd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?o.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?o.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?o.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?o.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?Yd(e,o.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&o.events.push(Jd(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=qd(t);o.statusCode=e.code,o.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return o},Zd=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 o=Kd(i);"service.name"===o.key&&o.value&&(t=o.value)}else e.skip(i.wire)}return t},ec=e=>{let t,i;for(;e.remaining>0;){const o=e.readTag();if(!o)break;1===o.field&&2===o.wire?t=e.readString()??void 0:2===o.field&&2===o.wire?i=e.readString()??void 0:e.skip(o.wire)}if(t)return i?`${t}@${i}`:t},tc=(e,t)=>{let i;const o=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const t=e.readMessage();t&&(i=ec(t))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&o.push(Qd(n,t,i))}else e.skip(n.wire)}for(const e of o)!e.scope&&i&&(e.scope=i);return o},ic=e=>{let t;const i=[];for(;e.remaining>0;){const o=e.readTag();if(!o)break;if(1===o.field&&2===o.wire){const i=e.readMessage();i&&(t=Zd(i))}else if(2===o.field&&2===o.wire){const o=e.readMessage();o&&i.push(...tc(o,t))}else e.skip(o.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},oc=e=>({key:e.key??null,value:e.value??null}),nc=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,o=[];for(const n of e){const e=n.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(n),i.set(e,t)}else o.push(n)}const n=(e,t)=>{const i=e.startUnixNano??0n,o=t.startUnixNano??0n;return i<o?-1:i>o?1:0};o.sort(n);for(const e of i.values())e.sort(n);const r=(o[0]??e[0]).startUnixNano??0n,a=[],s=(e,t)=>{const o=e.startUnixNano??0n,n=e.endUnixNano??o,l=o>r?o-r:0n,d=n>o?n-o:1n,c=void 0!==e.statusCode?Wd[e.statusCode]??null:null,p=(e.attrs??[]).map(oc);p.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const u=(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(oc)}});a.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?Hd[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:p.length?p:null,events:u.length?u:null});for(const o of i.get(e.spanId??"")??[])s(o,t+1)};for(const t of o.length?o:e)s(t,0);const l=new Set;return a.filter(e=>{const t=e.spanId??"";return!t||!l.has(t)&&(l.add(t),!0)})},rc=(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"),o=new Uint8Array(i.length);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return o}catch{return null}})(t);if(!i||0===i.length)return{error:"Invalid base64 rawOtlp"};const o=(e=>{const t=new Xd(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(...ic(e))}else t.skip(e.wire)}return i})(i);return o.length?{traceId:e,spans:nc(o),error:null}:{error:"No spans found in OTLP payload"}}catch(e){return{error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},ac=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const o=(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!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},sc=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const o=e[i];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>sc(e)))}else if("object"==typeof o&&null!==o){const e=sc(o);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(o)||(t[i]=o)}),t},lc=(e,t=2)=>JSON.stringify(e||{},null,t),dc=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),cc=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),pc=ci("v1.33"),uc=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],hc=(e,t)=>{if(e!==Si.K8s)return!1;const i=ci(t);return i>0&&i<pc},mc=ci("v1.20"),gc=(e,t)=>{if(e!==Si.K8s)return!0;const i=ci(t);return!(i>0)||i>=mc},fc=e=>e?uc.map(t=>e[t]??null):[],yc={PID:"process.pid",VPID:"process.vpid"},bc={[Oi.Go]:"Go",[Oi.Java]:"Java",[Oi.JavaScript]:"Node.js",[Oi.Python]:"Python",[Oi.DotNet]:".NET",[Oi.CSharp]:"C#",[Oi.CPlusPlus]:"C++",[Oi.Php]:"PHP",[Oi.Ruby]:"Ruby",[Oi.Rust]:"Rust",[Oi.Swift]:"Swift",[Oi.Elixir]:"Elixir",[Oi.Browser]:"Browser",[Oi.MySql]:"MySQL",[Oi.Nginx]:"Nginx",[Oi.Postgres]:"PostgreSQL",[Oi.Redis]:"Redis",[Oi.Kafka]:"Kafka",[Oi.Ignored]:"Ignored",[Oi.Unknown]:"Unknown",[Oi.Processing]:"Processing",[Oi.NoContainers]:"No Containers",[Oi.NoRunningPods]:"No Running Pods"},vc=[{id:Oi.Go,label:bc[Oi.Go],icon:Ws(Oi.Go)},{id:Oi.Java,label:bc[Oi.Java],icon:Ws(Oi.Java)},{id:Oi.JavaScript,label:bc[Oi.JavaScript],icon:Ws(Oi.JavaScript)},{id:Oi.Python,label:bc[Oi.Python],icon:Ws(Oi.Python)},{id:Oi.Php,label:bc[Oi.Php],icon:Ws(Oi.Php)},{id:Oi.Ruby,label:bc[Oi.Ruby],icon:Ws(Oi.Ruby)},{id:Oi.Rust,label:bc[Oi.Rust],icon:Ws(Oi.Rust)},{id:Oi.DotNet,label:bc[Oi.DotNet],icon:Ws(Oi.DotNet)},{id:Oi.CSharp,label:bc[Oi.CSharp],icon:Ws(Oi.CSharp)},{id:Oi.CPlusPlus,label:bc[Oi.CPlusPlus],icon:Ws(Oi.CPlusPlus)},{id:Oi.Swift,label:bc[Oi.Swift],icon:Ws(Oi.Swift)},{id:Oi.Elixir,label:bc[Oi.Elixir],icon:Ws(Oi.Elixir)},{id:Oi.Browser,label:bc[Oi.Browser],icon:Ws(Oi.Browser)},{id:Oi.MySql,label:bc[Oi.MySql],icon:Ws(Oi.MySql)},{id:Oi.Nginx,label:bc[Oi.Nginx],icon:Ws(Oi.Nginx)},{id:Oi.Postgres,label:bc[Oi.Postgres],icon:Ws(Oi.Postgres)},{id:Oi.Redis,label:bc[Oi.Redis],icon:Ws(Oi.Redis)},{id:Oi.Kafka,label:bc[Oi.Kafka],icon:Ws(Oi.Kafka)}],$c={id:ji.OpentelemetryEbpfInstrumentation,label:ji.OpentelemetryEbpfInstrumentation,icon:_t},wc={id:ji.BrowserCommunity,label:ji.BrowserCommunity,icon:Ws(Oi.Browser)},Cc={[Oi.Go]:{community:[{id:ji.GolangCommunity,label:ji.GolangCommunity,icon:Ws(Oi.Go)},$c,wc],enterprise:[{id:ji.GolangEnterprise,label:ji.GolangEnterprise,icon:Ws(Oi.Go)}]},[Oi.JavaScript]:{community:[{id:ji.NodejsCommunity,label:ji.NodejsCommunity,icon:Ws(Oi.JavaScript)},$c,wc],enterprise:[{id:ji.NodejsEnterprise,label:ji.NodejsEnterprise,icon:Ws(Oi.JavaScript)}]},[Oi.Python]:{community:[{id:ji.PythonCommunity,label:ji.PythonCommunity,icon:Ws(Oi.Python)},$c,wc],enterprise:[{id:ji.PythonEnterprise,label:ji.PythonEnterprise,icon:Ws(Oi.Python)}]},[Oi.Java]:{community:[{id:ji.JavaCommunity,label:ji.JavaCommunity,icon:Ws(Oi.Java)},$c,wc],enterprise:[{id:ji.JavaEnterprise,label:ji.JavaEnterprise,icon:Ws(Oi.Java)},{id:ji.JavaEbpfInstrumentations,label:ji.JavaEbpfInstrumentations,icon:Ws(Oi.Java)}]},[Oi.DotNet]:{community:[{id:ji.DotNetCommunity,label:ji.DotNetCommunity,icon:Ws(Oi.DotNet)},$c,wc],enterprise:[{id:ji.DotNetEnterprise,label:ji.DotNetEnterprise,icon:Ws(Oi.DotNet)}]},[Oi.Ruby]:{community:[{id:ji.RubyCommunity,label:ji.RubyCommunity,icon:Ws(Oi.Ruby)},$c,wc],enterprise:[{id:ji.RubyEnterprise,label:ji.RubyEnterprise,icon:Ws(Oi.Ruby)}]},[Oi.Php]:{community:[{id:ji.PhpCommunity,label:ji.PhpCommunity,icon:Ws(Oi.Php)},$c,wc],enterprise:[]},[Oi.CSharp]:{community:[wc],enterprise:[{id:ji.CPlusPlusEnterprise,label:ji.CPlusPlusEnterprise,icon:Ws(Oi.CSharp)}]},[Oi.CPlusPlus]:{community:[$c,wc],enterprise:[]},[Oi.Browser]:{community:[wc],enterprise:[]},[Oi.MySql]:{community:[],enterprise:[{id:ji.MySqlEnterprise,label:ji.MySqlEnterprise,icon:Ws(Oi.MySql)}]},[Oi.Rust]:{community:[$c,wc],enterprise:[]},[Oi.Swift]:{community:[$c,wc],enterprise:[]},[Oi.Elixir]:{community:[$c,wc],enterprise:[]},[Oi.Nginx]:{community:[$c,wc],enterprise:[]},[Oi.Postgres]:{community:[$c],enterprise:[]},[Oi.Redis]:{community:[$c],enterprise:[]},[Oi.Kafka]:{community:[$c],enterprise:[]},[Oi.Ignored]:{community:[],enterprise:[]},[Oi.Unknown]:{community:[$c,wc],enterprise:[]},[Oi.Processing]:{community:[],enterprise:[]},[Oi.NoContainers]:{community:[],enterprise:[]},[Oi.NoRunningPods]:{community:[],enterprise:[]}},xc="*",Sc=e=>!!e?.includes(xc),Ec=e=>e?.length?Sc(e)?[xc]:e:[],Tc=e=>{if(e?.length&&!Sc(e))return e.filter(e=>e!==xc)},Oc=e=>e===xc?"All languages":bc[e]??e,Nc=e=>e===xc?Dt:Ws(e),kc=ci("v1.26"),Ac=(e,t)=>{if(e!==Si.K8s)return!1;const i=ci(t);return!(i>0)||i>=kc},Ic=[Wi.NetworkMetrics],_c=e=>!Ic.includes(e),Dc=[{type:Wi.CodeAttributes,icon:ol(Wi.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:[Oi.Go,Oi.Python,Oi.JavaScript]},{type:Wi.CustomInstrumentation,icon:ol(Wi.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:[Oi.Go,Oi.Java,Oi.Php]},{type:Wi.HeadersCollection,icon:ol(Wi.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:[Oi.Go,Oi.Java,Oi.JavaScript]},{type:Wi.PayloadCollection,icon:ol(Wi.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:[Oi.Go,Oi.JavaScript]}],Rc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:ol(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},Lc="Recommendations",Pc="Optimize your observability setup with actionable recommendations.",Fc="Recommended",Mc="Applied",Uc="Dismissed",zc="Not applicable",Bc={[Oo.Recommended]:Fc,[Oo.Applied]:Mc,[Oo.Dismissed]:Uc,[Oo.NotApplicable]:zc},jc="Accept",Hc="Dismiss",Wc="Restore",Xc="Docs",Gc="Benefits",Vc="Considerations",Kc="Apply Recommendation",Yc="Apply via UI",qc="Apply via GitOps",Jc="Via UI",Qc="Via GitOps",Zc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",ep="There are 2 ways to apply this recommendation.",tp="Odigos applies the selected change immediately.",ip="Commit the configuration to your repository and let your GitOps controller apply it.",op="UI changes apply only to this cluster and will not carry over if you re-install odigos.",np="No recommendations",rp="There are no recommendations for this cluster right now.",ap="This recommendation does not currently apply to your cluster.",sp="Recommendation dismissed",lp="Recommendation restored",dp="Recommendation applied successfully",cp="Failed to apply recommendation",pp={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.'},up={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."},hp={[vi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[vi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[vi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},mp="Cancel",gp="Save",fp="Edit rule",yp="Edit auto rule",bp="Create rule",vp="Delete rule",$p="Save",wp="Create your first rule",Cp="No Rules Exist",xp="No Results",Sp=e=>`No rules match the search term "${e}"`,Ep="Rule name",Tp="Rule type",Op="Select the type of condition that makes a trace highly relevant.",Np="Rule Enabled",kp="Rule Disabled",Ap="Enabled",Ip="Disabled",_p="Note",Dp="HTTP route",Rp="Method",Lp="Keep Percentage",Pp="Keep traces with duration larger than",Fp="Keep traces with errors",Mp="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Up="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",zp="Custom percentage",Bp="Disabled rule",jp="Sample",Hp="Keep all",Wp="Drop all",Xp="Operation type",Gp="HTTP route prefix",Vp="Templated path",Kp="Templated path prefix",Yp="Kafka topic",qp="Custom duration (ms)",Jp="No preview available",Qp="Server address",Zp="Drop at most this percentage of matching traces",eu="Unnamed rule",tu="Sampling Preview",iu="Source Scope",ou="Unknown source",nu="Operation",ru="Duration",au="Errors",su="Keep Percentage",lu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",du="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.",cu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",pu="Retain traces with errors from the selected services and operations.",uu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",hu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",mu={highlyRelevant:uu,noisy:hu,costReduction:void 0},gu="Type rule name",fu="Add note here...",yu="Type here",bu="Search source name",vu="e.g. collector.my.vendor.com",$u="Optional notes (not used by the system). Add any context or details for this sampling rule.",wu="Rule will apply to all sources in the cluster",Cu="If multiple source scopes are set, they must all match simultaneously.",xu="All sources",Su="-",Eu="All",Tu="Sources",Ou="Namespaces",Nu="Languages",ku="any of",Au="AND",Iu="All operations",_u="HTTP server endpoint",Du="HTTP client endpoint",Ru="Kafka consumer",Lu="Kafka producer",Pu="Sampling Rules",Fu='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Mu="Refresh",Uu="Create rule",zu="Sampling docs",Bu="75vw",ju="Delete rule?",Hu="Are you sure you want to delete this sampling rule?",Wu="Delete",Xu="Cancel",Gu="Kubernetes Health Probes",Vu="Keep All Error Traces",Ku="Drop Traces Cluster-Wide",Yu="A rule with the same matching conditions already exists.",qu="Create this rule as-is?",Ju="This rule still uses the default configuration.\nDo you want to create it anyway?",Qu="Rule preview",Zu="Continue editing",eh="Create 'Noisy Operation Kubernetes Health Probes' rule",th="Edit 'Noisy Operation Kubernetes Health Probes' rule",ih="Automatically detect and sample health probe traces across the cluster.",oh="Create 'Highly Relevant Operations' rule",nh="Edit 'Highly Relevant Operations' rule",rh="Automatically keep all error traces across the entire cluster.",ah="Create 'Cost Reduction' rule",sh="Edit 'Cost Reduction' rule",lh="Automatically drop a percentage of traces across the entire cluster.",dh="Skip setup",ch="Start setup",ph="Next",uh="Go to Sampling",hh="Read more",mh="Welcome to Sampling",gh="Cut costs without losing what matters",fh="Odigos sampling works in three stages:",yh="Filter noisy traffic",bh="Remove non-actionable traces like health checks.",vh="Guarantee highly relevance operations",$h="Keep traces with errors, high latency, or mission-critical endpoints/services.",wh="Reduce cost",Ch="Sample routine traffic using percentages.",xh="Sampling does not drop individual spans - it keeps or drops the entire trace.",Sh="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.",Oh="Preset Rules",Nh="Kubernetes Health Probes",kh="Automatically ignore health checks",Ah="You can review, adjust, and add additional custom rules later.",Ih="Choose your sampling strategy",_h="Pick the approach that best fits your balance of cost vs data-completeness",Dh="Keep List",Rh="Budget Friendly",Lh="Define which traces must be kept, while all others are sampled by default to minimize cost.",Ph="Cost-oriented - keeps only what you explicitly select.",Fh="Best for very large clusters with high volumes of traces and high costs.",Mh="Higher risk of missing important traces without ongoing review.",Uh="Drop List",zh="Safe Choice",Bh="Define which traces must be aggressively dropped, while all others are kept by default.",jh="Preserves most data unless explicitly filtered.",Hh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Wh="Advanced",Xh="Maximum Flexibility",Gh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Vh="'Keep List' profile",Kh="Protect important traces",Yh="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:",qh="Traces with errors",Jh="Slow requests (duration above threshold)",Qh="Mission-Critical endpoints or services",Zh="Services under test or evaluation",em="New deployments",tm="You can review, adjust, and add rules once onboarding is complete.",im="Common Rules",om="Preset Rules",nm="Error collection - entire cluster",rm="Keep all traces with errors",am="Ambient sampling percentage",sm="'Drop List' profile",lm="Reduce high-volume traffic",dm="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.",cm="Advanced Configuration",pm="Configure sampling rules",um="Advanced mode allows you to configure all sampling categories:",hm="Noise Filtering - remove non-actionable traces",mm="Highly Relevance - guarantee important traces are kept",gm='Cost Control - drop traces for "Normal" operations',fm="Rules can target:",ym="Services",bm="HTTP Endpoints",vm="DB Operations",$m="Errors",wm="Latency and more...",Cm="Sampling configured successfully!",xm="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Sm="Odigos will now:",Em="Filter noisy operations",Tm="Guarantee important traces",Om="Reduce cost using controlled sampling",Nm="Recommended",km={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."},Am={noisy:eh,highlyRelevant:oh,costReduction:ah},Im={noisy:th,highlyRelevant:nh,costReduction:sh},_m={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Dm=[{id:Zi.Logs,value:"Logs"},{id:Zi.Metrics,value:"Metrics"},{id:Zi.Traces,value:"Traces"},{id:Zi.Profiles,value:"Profiles"}],Rm=6048e5,Lm="URL templatization",Pm="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",Fm="Default templatization",Mm="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",Um="Default templatization is not enabled",zm="Automatically detect and templatize dynamic URL segments when no custom template matches.",Bm="Enable for entire cluster",jm="Custom URL templates",Hm="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",Wm="View by:",Xm="Groups",Gm="Tree",Vm="List",Km="Create templating scope",Ym="Edit scoped templates",qm="Edit",Jm="Add template",Qm="Add templatization rules",Zm="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",eg="Add templatization rule",tg="Choose how to templatize dynamic URLs",ig="Reduce route cardinality by replacing changing path segments with reusable placeholders.",og="Before",ng="After",rg="/users/123/orders/456",ag="/users/{id}/orders/{orderId}",sg="Automatic templatization",lg="Recommended",dg="Detect and templatize dynamic URL segments when no custom rule matches.",cg="Applies to: Entire cluster",pg="Reversible at any time",ug="Enabled",hg="Need more control?",mg="Create a custom rule for specific URL patterns.",gg="Create custom rule",fg="Learn how it works",yg="Docs",bg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",vg="Default templatization is enabled — editor coming next.",$g="746px",wg="Add default templatization rule",Cg="Edit default templatization rule",xg="Disable for a scope",Sg="UI template rules",Eg="Source Scope",Tg="Scope",Og="Choose which sources this template rule applies to.",Ng="Sources where this template is tested and applied.",kg="This rule will apply to all sources in the cluster.",Ag="Default templatization",Ig="Automatically templatize dynamic URL segments when no custom template matches.",_g="Enable automatic URL templatization for this scope",Dg=["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."],Rg="default templatization for this scope",Lg="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",Pg="Disable",Fg="Skip policy",Mg="Advanced",Ug=["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."],zg=Ug.join(" "),Bg="Skip default templatization for all non-2xx responses",jg="Skip default templatization for specific HTTP status codes",Hg="Example: 404, 401",Wg="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",Xg="This rule will take effect in the cluster immediately after it is added.",Gg="This rule will take effect in the cluster immediately after it is saved.",Vg="No template changes. Save will keep the current templates.";function Kg(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.`:Vg}const Yg="Add rule",qg="Save",Jg="Cancel",Qg="Cancel without saving",Zg="Delete",ef="templating scope";function tf(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 of="Enter valid HTTP status codes between 100 and 599, separated by commas.",nf="Create custom template",rf="Create new scoped template",af="Add URL templates",sf="UI template rules",lf=e=>`To ${e}`,df=e=>`Applies to ${e} source${1===e?"":"s"}`,cf=e=>`Applies to ${e} namespace${1===e?"":"s"}`,pf=e=>`Applies to ${e} language${1===e?"":"s"}`,uf="Applies to entire cluster",hf=e=>`Applies to ${e} scope${1===e?"":"s"}`,mf="Where should this rule apply?",gf=mf,ff="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",yf="Specific scope",bf="Entire cluster",vf="Apply the rule only where it is needed.",$f="Apply to every source in this cluster.",wf="Quick start",Cf="Best performance",xf="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Sf="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Ef="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Tf="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.",Of="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.",Nf="Add to existing template group",kf="Create new template group",Af="Add here",If="Create New",_f="Existing templating scope",Df="Templating scopes",Rf="Select where to add the new template",Lf="A template group already uses this scope",Pf="Choose where to add the new templates.",Ff="Add to existing template group",Mf="Create a separate template group",Uf="Use different settings or behavior for the same scope.",zf="View action settings",Bf="Default settings",jf=e=>_f,Hf=e=>1===e?"1 template":`${e} templates`,Wf="Templating scope",Xf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,Gf="Template group will be added to the default action. Expand Select action to choose a different one.",Vf="Select action",Kf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Yf="Advanced settings",qf="Choose which Odigos action the new custom template will be added to.",Jf="Default UI-managed action · Recommended",Qf="Create a new action",Zf="Select action",ey="Default UI-managed action",ty="Add this template group to the default UI-managed action.",iy="Select action",oy="Choose an existing action or create a new one for this template group.",ny="Search template group by type action name or scope (languages, namespaces, sources)",ry="Selected Template group:",ay="URL templatization action",sy="Create new action",ly="__odigos_create_new_url_templatization_action__",dy=oy,cy="New action name",py="New action group",uy="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.",hy="Create new template group",my="Next",gy="Back",fy="Action name",yy="Action",by="UI template rules",vy="__odigos_default_url_templatization_action__",$y="UI-owned",wy="Externally synced",Cy=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],xy=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Sy=$y,Ey="Templates",Ty="Other templates in this group",Oy="Additional templates that share the same source scope and Action as this rule.",Ny="e.g. /api/users/{id}",ky="Language",Ay="Namespace",Iy="Source",_y="AND",Dy="Entire cluster",Ry="Unset",Ly="Enabled globally",Py="Default templating disabled",Fy="Enabled",My="Default templatization is unset. No default rules are configured on an enabled action.",Uy="Default templatization is enabled globally.",zy="Default templatization is disabled for the entire cluster.";function By(e){return e<=0?Uy:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const jy="Disabled for these scopes",Hy="Disable for a scope",Wy="Delete",Xy="disabled scope",Gy="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",Vy="Automatic templatization",Ky="Active",Yy="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",qy="Examples",Jy="Templatized",Qy="Not templatized",Zy="Use a custom template when paths like these need placeholders.",eb=[{before:"/users/1234",after:"/users/{id}",label:"Numbers"},{before:"/orders/123e4567-e89b-12d3-a456-426614174000",after:"/orders/{id}",label:"UUIDs"},{before:"/assets/6f2a9cdeab34f01e",after:"/assets/{id}",label:"Hex IDs"},{before:"/events/2023-10-01T12:00:00+0000",after:"/events/{date}",label:"Dates"},{before:"/users/foo@bar.io",after:"/users/{email}",label:"Emails"}],tb=[{path:"/user/john",reason:"Static names"},{path:"/user/s111222",reason:"Short alphanumeric IDs"},{path:"/users/123456_789",reason:"Mixed digit patterns"}],ib="Custom templates take precedence over automatic templatization.",ob="Scope",nb="Status codes",rb="Disabled",ab="Entire cluster",sb="All",lb="None",db="Disabled",cb="No disabled scope configured",pb="Add disabled",ub="Disabled scopes",hb="Advanced",mb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,gb="Automatic templatization off for matching traffic.",fb="Disable for a scope",yb="Scope",bb="Effective behavior",vb="Status",$b="Automatic templatization off",wb="Covered by broader exception",Cb="Disabled",xb="Redundant",Sb="No disabled scope configured",Eb="Disable automatic templatization for specific scopes when needed.",Tb=(e,t)=>`${e} configured • ${t} effective`,Ob=e=>1===e?"1 scope":`${e} scopes`,Nb="Default templatization is enabled for all HTTP status codes.";function kb(e){return e<=0?Nb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Ab="HTTP status code policies",Ib="No skip policy configured",_b="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Db="Add skip policy for a scope",Rb="Add skip policy for a scope",Lb="Skip default templatization on HTTP errors",Pb="Delete",Fb="skip policy",Mb="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",Ub="Template details",zb="Template",Bb="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",jb="Created via",Hb="Action name",Wb="Kubernetes name",Xb="Odigos Action (Kubernetes resource) where this template is managed.",Gb="Try a URL",Vb="/users/12/orders/345685335358",Kb="Test URL",Yb="Close",qb="Result",Jb="Templated URL path",Qb="Match found",Zb="This URL matches the template.",ev="No match",tv="This URL doesn't match the template.",iv="Check the URL structure and parameter positions, then try again.",ov={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:ts},nv=ei(e=>({...ov,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(ov)}));var rv;(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"})(rv||(rv={}));const av=e=>`add-${Ga(e).replaceAll(" ","-").toLowerCase()}`,sv=e=>`edit-${Ga(e).replaceAll(" ","-").toLowerCase()}`,lv=ei(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),dv=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),cv=ei(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:dv})),pv=ei((e,t)=>({notifications:[],addNotification:i=>{const o=new Date,n=`${o.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:n,time:o.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 uv;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(uv||(uv={}));const hv=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),mv=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),gv=ei((e,t)=>({progress:{},setProgress:(i,o)=>{const n=t(),r=hv();return"number"==typeof o.total&&(r.total=o.total),"number"==typeof o.current&&(r.current=o.current),Array.isArray(o.list)&&(r.list=o.list),e({progress:{...n.progress,[i]:mv(r)}})},addProgress:(i,o,n)=>{const r=t(),a=hv(i,r.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...r.progress,[i]:mv(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),fv=ei(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),yv={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},bv=(e,t)=>e.destinationType.type!==t.destinationType.type,vv=ei(e=>({...yv,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=>bv(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=>bv(e,t))})),clearStore:()=>e(()=>({...yv}))})),$v=e=>{function t(){return void 0===e?{}:Ts(e)}const[i,o]=s(t()),[n,r]=s({}),[a,p]=s(t()),u=d((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(u(e,o[t])).length:e===o[t])||(i[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const o=u(n,t[e]);Object.keys(o).length>0&&(i[e]=o)}else n!==t[e]&&(i[e]=t[e])}for(const o of Object.keys(t))o in e||(i[o]=t[o]);return i},[]),h=(e,t)=>0===Object.keys(u(e,t)).length,m=c(()=>!h(a,i),[a,i]);l(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(n)&&(o(n),p(n))},[e,i]);const g=d((e,t)=>Os("formData"===e?i:n,t.toString()),[i,n]);return{formData:i,formErrors:n,getFormDiff:u,areFormValuesEqual:h,isFormDirty:m,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),n=i.split(".");1===n.length?o(i=>({...i,[e]:t})):o(e=>{const i=Ts(e);let o=i;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,i}),r(e=>{const t=i,o=n[n.length-1],r=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!r&&!a)return e;const s={...e};return r&&delete s[t],a&&delete s[o],s})}else i&&o({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?r(i=>({...i,[e]:t})):r(e=>{const o=Ts(e);let n=o;for(let e=0;e<i.length-1;e++){const t=i[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[i[i.length-1]]=t,o})}else i&&r({...i})},resetFormData:e=>{const i=e||t();o(i),p(i),r({})},getNestedValue:g}},wv={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Cv=()=>{const{addNotification:e}=pv(),{formData:t,formErrors:i,handleFormChange:o,handleErrorChange:n,resetFormData:r}=$v(wv);return{formData:t,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:i=>{const o={};let r=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Nd(t)&&(o[e]=rs.FIELD_IS_REQUIRED)}}),t.type===pi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=rs.FIELD_IS_REQUIRED;break}}return r=!Object.values(o).length,!r&&i?.withAlert&&e({type:Di.Warning,title:i.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),r},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:n,disabled:r,fields:a})=>{const s={...Ts(wv),type:e,signals:t,name:i,notes:n,disabled:r};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case hi.LabelsAttributes:case hi.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 hi.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(o=t,o?.length?o.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):o);break;case hi.CollectContainerAttributes:case hi.CollectReplicaSetAttributes:case hi.CollectWorkloadId:case hi.CollectClusterId:case hi.ClusterAttributes:case hi.OverwriteExistingValues:case hi.AttributeNamesToDelete:case hi.Renames:case hi.PiiCategories:case hi.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,o}),o(void 0,void 0,s)}}},xv=e=>{l(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Sv=()=>{const e=p(null),[t,i]=s(0),[o,n]=s(0);return l(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();i(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},Ev="data-ignore-outside-click",Tv=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Ev))return!0;t=t.parentNode}return!1},Ov=(e,t)=>{const i=p(t);i.current=t,l(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&(Tv(o)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Nv=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:o="local"}={})=>{const n=p(null),[r,a]=s(!1),[l,d]=s({top:0,left:0}),[c,u]=s({edge:"top",align:"left"});return Ov(n,()=>{r&&(a(!1),i?.())}),{popupRef:n,popupOpen:r,setPopupOpen:a,popupPosition:l,arrowPlacement:c,handlePosition:(i,r)=>{if("local"===o)return void d({top:r,left:i});const{innerWidth:a,innerHeight:s}=window,l=n.current?.clientWidth||t,c=n.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";u({edge:r<s/2?"top":"bottom",align:h});let m=r,g=i;if(m>=s/2&&(m+=-c),"center"===h){g=i-l/2;const e=8;g=Math.max(e,Math.min(g,a-l-e))}else g>=a/2&&(g=i-l);d({top:m,left:g})}}},kv=f.div`
255
255
  width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
256
256
  position: relative;
257
257
  display: ${({$inline:e})=>e?"inline":"flex"};
@@ -263,7 +263,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
263
263
  text-overflow: ellipsis;
264
264
  white-space: nowrap;
265
265
  `}
266
- `,kv=f.div`
266
+ `,Av=f.div`
267
267
  position: fixed;
268
268
  top: ${({$top:e})=>e}px;
269
269
  left: ${({$left:e})=>e}px;
@@ -308,7 +308,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
308
308
  flex-shrink: 0;
309
309
 
310
310
  ${({$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 `}
311
- `,Lv=({withIcon:o,titleIcon:n,title:r,text:a,timestamp:s,children:l,fullWidth:d=!1,inline:p=!1,maxWidth:u="270px",keepAlive:h=!1,ellipsis:m=!1})=>{const g=b(),f=c(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(a),[a]),y=f.join(" "),{popupRef:v,popupOpen:$,setPopupOpen:w,popupPosition:C,arrowPlacement:x,handlePosition:S}=Nv({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),E=c(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,o]=e.split('"');return{original:e,href:i,label:o.replace("</a>","").replace(">","")}})})(e)?.length),[f]),T=e=>{const{type:t,clientX:i,clientY:o}=e;E?S(C.left||i,C.top||o):S(i,o),w("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:l});const O=$&&f.length>0;return e(Av,{$fullWidth:d,$ellipsis:m,$inline:p,onMouseEnter:T,onMouseMove:T,onMouseLeave:T,children:[l,o&&t(gt,{fill:g.v2.colors.white[500]}),O&&oi.createPortal(e(kv,{ref:v,$top:C.top,$left:C.left,$withPointerEvents:E,onMouseEnter:E?T:void 0,children:["top"===x.edge&&t(Dv,{$align:x.align,children:t(Rv,{$pointsUp:!0})}),t(Iv,{$maxWidth:u,children:e(_v,{children:[(!!n||!!r)&&e(id,{$gap:4,style:{alignItems:"center"},children:[n&&t(n,{size:16},"icon"),r&&t(Za,{size:Ka.XS,children:r},"title")]}),f.map((e,i)=>t(Za,{size:Ka.XXXS,children:e},i)),!!s&&t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:new Date(s).toLocaleString()})]})}),"bottom"===x.edge&&t(Dv,{$align:x.align,children:t(Rv,{$pointsUp:!1})})]}),document.body)]})};var Pv,Fv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Pv||(Pv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Fv||(Fv={}));const Mv=f.button`
311
+ `,Lv=({withIcon:o,titleIcon:n,title:r,text:a,timestamp:s,children:l,fullWidth:d=!1,inline:p=!1,maxWidth:u="270px",keepAlive:h=!1,ellipsis:m=!1})=>{const g=b(),f=c(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(a),[a]),y=f.join(" "),{popupRef:v,popupOpen:$,setPopupOpen:w,popupPosition:C,arrowPlacement:x,handlePosition:S}=Nv({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),E=c(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,o]=e.split('"');return{original:e,href:i,label:o.replace("</a>","").replace(">","")}})})(e)?.length),[f]),T=e=>{const{type:t,clientX:i,clientY:o}=e;E?S(C.left||i,C.top||o):S(i,o),w("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:l});const O=$&&f.length>0;return e(kv,{$fullWidth:d,$ellipsis:m,$inline:p,onMouseEnter:T,onMouseMove:T,onMouseLeave:T,children:[l,o&&t(gt,{fill:g.v2.colors.white[500]}),O&&oi.createPortal(e(Av,{ref:v,$top:C.top,$left:C.left,$withPointerEvents:E,onMouseEnter:E?T:void 0,children:["top"===x.edge&&t(Dv,{$align:x.align,children:t(Rv,{$pointsUp:!0})}),t(Iv,{$maxWidth:u,children:e(_v,{children:[(!!n||!!r)&&e(id,{$gap:4,style:{alignItems:"center"},children:[n&&t(n,{size:16},"icon"),r&&t(Za,{size:Ka.XS,children:r},"title")]}),f.map((e,i)=>t(Za,{size:Ka.XXXS,children:e},i)),!!s&&t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:new Date(s).toLocaleString()})]})}),"bottom"===x.edge&&t(Dv,{$align:x.align,children:t(Rv,{$pointsUp:!1})})]}),document.body)]})};var Pv,Fv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Pv||(Pv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Fv||(Fv={}));const Mv=f.button`
312
312
  display: flex;
313
313
  align-items: center;
314
314
  justify-content: ${({$align:e})=>e};
@@ -376,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
376
376
  }
377
377
  `:""}
378
378
  }
379
- `,Uv=n(({"data-id":o,label:n,tooltip:r,hideTooltipIcon:a,leftIcon:l,rightIcon:c,variant:p=Pv.Primary,size:u=Fv.M,isSelected:h,iconSize:m,loading:g,fullWidth:f,withShadow:y,textColor:v,textAlign:$="center",disabled:w,onClick:C,...x},S)=>{const E=b(),T=m||(u===Fv.L?24:u===Fv.M?20:16),O=u===Fv.L?Ka.S:Ka.XS,N=v||(w?E.v2.colors.grey[400]:E.v2.colors.white[500]),[A,k]=s(!1),I=!(!g&&!A),_=!(!w&&!I),D=d(async e=>{e.stopPropagation(),k(!0);try{await(C?.(e))}finally{k(!1)}},[C]);return t(Mv,{ref:S,"data-id":o,$variant:p,$size:u,$fullWidth:f,$withShadow:y,$hasLabel:!!n,$isSelected:h,$align:$,...x,disabled:_,onClick:_?void 0:D,children:t(Lv,{text:r,withIcon:!a,fullWidth:!!n,children:I?t(md,n?{withGradient:!0,titleColor:N,titleSize:O}:{withSpinnerOld:!0}):e(i,{children:[l&&t(nd,{$width:"fit-content",children:t(l,{size:T,fill:N})}),n?t(Za,{size:O,weight:500,color:N,nowrap:!0,align:$,children:n}):null,c&&t(nd,{$width:"fit-content",children:t(c,{size:T,fill:N})})]})})})});Uv.displayName=Uv.name;const zv=[],Bv=e=>{if(e.fromPaths.length!==e.toPaths.length)throw new Error(`MorphableIconPair path counts must match (got ${e.fromPaths.length} vs ${e.toPaths.length})`);if(!e.fromPaths.length)throw new Error("MorphableIconPair requires at least one path");zv.push(e)},jv=(e,t)=>{if(!e||!t)return null;for(const i of zv){if(i.from===e&&i.to===t)return{pair:i,reversed:!1};if(i.from===t&&i.to===e)return{pair:i,reversed:!0}}return null},Hv=()=>zv;Bv({from:Lt,to:Rt,style:"fill",fromPaths:["M17.4697 8.46973C17.7626 8.17684 18.2374 8.17684 18.5303 8.46973C18.8232 8.76262 18.8232 9.23738 18.5303 9.53028L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46973 9.53028C5.17684 9.23738 5.17684 8.76262 5.46973 8.46973C5.76262 8.17684 6.23738 8.17684 6.53028 8.46973L12 13.9395L17.4697 8.46973Z"],toPaths:["M17.4697 15.5303C17.7626 15.8232 18.2374 15.8232 18.5303 15.5303C18.8232 15.2374 18.8232 14.7626 18.5303 14.4697L12.5303 8.46972C12.2374 8.17683 11.7626 8.17683 11.4697 8.46972L5.46973 14.4697C5.17684 14.7626 5.17684 15.2374 5.46973 15.5303C5.76262 15.8232 6.23738 15.8232 6.53028 15.5303L12 10.0605L17.4697 15.5303Z"]}),Bv({from:Pt,to:Lt,style:"fill",fromPaths:["M9.46973 17.4697C9.17684 17.7626 9.17684 18.2374 9.46973 18.5303C9.76262 18.8232 10.2374 18.8232 10.5303 18.5303L13.5303 15.5303L16.5303 12.5303C16.8232 12.2374 16.8232 11.7626 16.5303 11.4697L10.5303 5.46973C10.2374 5.17684 9.76262 5.17684 9.46973 5.46973C9.17684 5.76262 9.17684 6.23738 9.46973 6.53028L14.9395 12L9.46973 17.4697Z"],toPaths:["M17.4697 8.46973C17.7626 8.17684 18.2374 8.17684 18.5303 8.46973C18.8232 8.76262 18.8232 9.23738 18.5303 9.53028L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46973 9.53028C5.17684 9.23738 5.17684 8.76262 5.46973 8.46973C5.76262 8.17684 6.23738 8.17684 6.53028 8.46973L12 13.9395L17.4697 8.46973Z"]}),Bv({from:Mt,to:Ft,style:"fill",fromPaths:["M18.2031 11.2264C18.6172 11.2266 18.9531 11.5623 18.9531 11.9764C18.9531 12.3905 18.6172 12.7262 18.2031 12.7264H5.75C5.33579 12.7264 5 12.3906 5 11.9764C5 11.5622 5.33579 11.2264 5.75 11.2264H18.2031Z","M12.7261 18.2031C12.7259 18.6172 12.3902 18.9531 11.9761 18.9531C11.562 18.9531 11.2263 18.6172 11.2261 18.2031L11.2261 5.75C11.2261 5.33579 11.5619 5 11.9761 5C12.3903 5 12.7261 5.33579 12.7261 5.75L12.7261 18.2031Z"],toPaths:["M17 11.25C17.4142 11.25 17.75 11.5858 17.75 12C17.75 12.4142 17.4142 12.75 17 12.75H7C6.58579 12.75 6.25 12.4142 6.25 12C6.25 11.5858 6.58579 11.25 7 11.25H17Z","M11.9761 11.9764L11.9761 11.9764"]});const Wv=({pair:e,active:i,reversed:o=!1,size:n=16,fill:r,strokeWidth:a=1,duration:d=200})=>{const u=o?e.toPaths:e.fromPaths,h=o?e.fromPaths:e.toPaths,m=i?1:0,g=c(()=>u.map((e,t)=>ri(e,h[t],{maxSegmentLength:4})),[u,h]),f=p(m),[y,b]=s(m);l(()=>{const e=f.current;if(e===m)return;if("undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||d<=0)return f.current=m,void b(m);let t=0;const i=performance.now(),o=n=>{const r=Math.min(1,(n-i)/d),a=e+(m-e)*(e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2)(r);f.current=a,b(a),r<1&&(t=requestAnimationFrame(o))};return t=requestAnimationFrame(o),()=>cancelAnimationFrame(t)},[m,d]);const v=g.map(e=>e(y)),$=e.viewBox||"0 0 24 24";return t("svg",{width:n,height:n,viewBox:$,xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":!0,children:v.map((i,o)=>"stroke"===e.style?t("path",{d:i,stroke:r,strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"},o):t("path",{d:i,fill:r},o))})},Xv=h(void 0),Gv=Xv.Provider,Vv=f.span`
379
+ `,Uv=n(({"data-id":o,label:n,tooltip:r,hideTooltipIcon:a,leftIcon:l,rightIcon:c,variant:p=Pv.Primary,size:u=Fv.M,isSelected:h,iconSize:m,loading:g,fullWidth:f,withShadow:y,textColor:v,textAlign:$="center",disabled:w,onClick:C,...x},S)=>{const E=b(),T=m||(u===Fv.L?24:u===Fv.M?20:16),O=u===Fv.L?Ka.S:Ka.XS,N=v||(w?E.v2.colors.grey[400]:E.v2.colors.white[500]),[k,A]=s(!1),I=!(!g&&!k),_=!(!w&&!I),D=d(async e=>{e.stopPropagation(),A(!0);try{await(C?.(e))}finally{A(!1)}},[C]);return t(Mv,{ref:S,"data-id":o,$variant:p,$size:u,$fullWidth:f,$withShadow:y,$hasLabel:!!n,$isSelected:h,$align:$,...x,disabled:_,onClick:_?void 0:D,children:t(Lv,{text:r,withIcon:!a,fullWidth:!!n,children:I?t(md,n?{withGradient:!0,titleColor:N,titleSize:O}:{withSpinnerOld:!0}):e(i,{children:[l&&t(nd,{$width:"fit-content",children:t(l,{size:T,fill:N})}),n?t(Za,{size:O,weight:500,color:N,nowrap:!0,align:$,children:n}):null,c&&t(nd,{$width:"fit-content",children:t(c,{size:T,fill:N})})]})})})});Uv.displayName=Uv.name;const zv=[],Bv=e=>{if(e.fromPaths.length!==e.toPaths.length)throw new Error(`MorphableIconPair path counts must match (got ${e.fromPaths.length} vs ${e.toPaths.length})`);if(!e.fromPaths.length)throw new Error("MorphableIconPair requires at least one path");zv.push(e)},jv=(e,t)=>{if(!e||!t)return null;for(const i of zv){if(i.from===e&&i.to===t)return{pair:i,reversed:!1};if(i.from===t&&i.to===e)return{pair:i,reversed:!0}}return null},Hv=()=>zv;Bv({from:Lt,to:Rt,style:"fill",fromPaths:["M17.4697 8.46973C17.7626 8.17684 18.2374 8.17684 18.5303 8.46973C18.8232 8.76262 18.8232 9.23738 18.5303 9.53028L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46973 9.53028C5.17684 9.23738 5.17684 8.76262 5.46973 8.46973C5.76262 8.17684 6.23738 8.17684 6.53028 8.46973L12 13.9395L17.4697 8.46973Z"],toPaths:["M17.4697 15.5303C17.7626 15.8232 18.2374 15.8232 18.5303 15.5303C18.8232 15.2374 18.8232 14.7626 18.5303 14.4697L12.5303 8.46972C12.2374 8.17683 11.7626 8.17683 11.4697 8.46972L5.46973 14.4697C5.17684 14.7626 5.17684 15.2374 5.46973 15.5303C5.76262 15.8232 6.23738 15.8232 6.53028 15.5303L12 10.0605L17.4697 15.5303Z"]}),Bv({from:Pt,to:Lt,style:"fill",fromPaths:["M9.46973 17.4697C9.17684 17.7626 9.17684 18.2374 9.46973 18.5303C9.76262 18.8232 10.2374 18.8232 10.5303 18.5303L13.5303 15.5303L16.5303 12.5303C16.8232 12.2374 16.8232 11.7626 16.5303 11.4697L10.5303 5.46973C10.2374 5.17684 9.76262 5.17684 9.46973 5.46973C9.17684 5.76262 9.17684 6.23738 9.46973 6.53028L14.9395 12L9.46973 17.4697Z"],toPaths:["M17.4697 8.46973C17.7626 8.17684 18.2374 8.17684 18.5303 8.46973C18.8232 8.76262 18.8232 9.23738 18.5303 9.53028L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46973 9.53028C5.17684 9.23738 5.17684 8.76262 5.46973 8.46973C5.76262 8.17684 6.23738 8.17684 6.53028 8.46973L12 13.9395L17.4697 8.46973Z"]}),Bv({from:Mt,to:Ft,style:"fill",fromPaths:["M18.2031 11.2264C18.6172 11.2266 18.9531 11.5623 18.9531 11.9764C18.9531 12.3905 18.6172 12.7262 18.2031 12.7264H5.75C5.33579 12.7264 5 12.3906 5 11.9764C5 11.5622 5.33579 11.2264 5.75 11.2264H18.2031Z","M12.7261 18.2031C12.7259 18.6172 12.3902 18.9531 11.9761 18.9531C11.562 18.9531 11.2263 18.6172 11.2261 18.2031L11.2261 5.75C11.2261 5.33579 11.5619 5 11.9761 5C12.3903 5 12.7261 5.33579 12.7261 5.75L12.7261 18.2031Z"],toPaths:["M17 11.25C17.4142 11.25 17.75 11.5858 17.75 12C17.75 12.4142 17.4142 12.75 17 12.75H7C6.58579 12.75 6.25 12.4142 6.25 12C6.25 11.5858 6.58579 11.25 7 11.25H17Z","M11.9761 11.9764L11.9761 11.9764"]});const Wv=({pair:e,active:i,reversed:o=!1,size:n=16,fill:r,strokeWidth:a=1,duration:d=200})=>{const u=o?e.toPaths:e.fromPaths,h=o?e.fromPaths:e.toPaths,m=i?1:0,g=c(()=>u.map((e,t)=>ri(e,h[t],{maxSegmentLength:4})),[u,h]),f=p(m),[y,b]=s(m);l(()=>{const e=f.current;if(e===m)return;if("undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||d<=0)return f.current=m,void b(m);let t=0;const i=performance.now(),o=n=>{const r=Math.min(1,(n-i)/d),a=e+(m-e)*(e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2)(r);f.current=a,b(a),r<1&&(t=requestAnimationFrame(o))};return t=requestAnimationFrame(o),()=>cancelAnimationFrame(t)},[m,d]);const v=g.map(e=>e(y)),$=e.viewBox||"0 0 24 24";return t("svg",{width:n,height:n,viewBox:$,xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":!0,children:v.map((i,o)=>"stroke"===e.style?t("path",{d:i,stroke:r,strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"},o):t("path",{d:i,fill:r},o))})},Xv=h(void 0),Gv=Xv.Provider,Vv=f.span`
380
380
  position: relative;
381
381
  display: inline-flex;
382
382
  flex-shrink: 0;
@@ -400,7 +400,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
400
400
  @media (prefers-reduced-motion: reduce) {
401
401
  transition: none;
402
402
  }
403
- `,Yv=({from:e,to:i,active:o=!1,icons:n,index:r,duration:a=200,mode:s="auto",withScale:l=!0,withRotate:d=!1,size:c=16,fill:p,strokeWidth:h,rotate:m=0,onClick:g})=>{const f=b(),y=u(Xv)??o,v=p||(f.darkMode?f.v2.colors.white[500]:f.v2.colors.black[500]),$=!!n?.length,w=$?null:jv(e,i),C=((e,t,i)=>!i&&"crossfade"!==e&&("morph"===e||"auto"===e)&&t)(s,!!w,$),x=(({from:e,to:t,icons:i})=>i?.length?i:e&&t?[e,t]:e?[e]:t?[t]:[])({from:e,to:i,icons:n}),S=$?r??0:y?1:0,E=Math.max(0,Math.min(S,Math.max(x.length-1,0))),T=!!g,O=g?e=>{g(e)}:void 0;return x.length||C?t(Vv,{$size:c,$clickable:T,style:{transform:m?`rotate(${m}deg)`:void 0},"aria-hidden":!T||void 0,role:T?"button":void 0,tabIndex:T?0:void 0,onClick:O,onKeyDown:T?e=>{g&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g(e)))}:void 0,children:C&&w?t(Wv,{pair:w.pair,reversed:w.reversed,active:y,size:c,fill:v,strokeWidth:h,duration:a}):x.map((e,i)=>t(Kv,{$visible:i===E,$duration:a,$withScale:l,$withRotate:d,children:t(e,{size:c,fill:v,strokeWidth:h})},i))}):null};Yv.displayName="MorphIcon";const qv=(e,i,o)=>{const n=n=>t(Yv,{from:e,to:i,...o,...n});return n.displayName=`MorphIcon(${e.displayName||e.name||"from"}/${i.displayName||i.name||"to"})`,n},Jv=qv(zt,Ut),Qv=qv(Lt,Rt),Zv=qv(Pt,Lt),e$=qv(jt,Bt),t$=qv(Mt,Ft),i$=({onDone:e}={})=>{const[i,o]=s(!1),[n,r]=s(-1),a=d(async(t,n)=>{if(!i){if(o(!0),void 0!==n&&r(n),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(()=>{o(!1),r(-1)},1e3)}},[i,e]);return{CopyButton:d(({value:e,...o})=>t(Gv,{value:i,children:t(Uv,{leftIcon:Jv,onClick:()=>a(e),variant:Pv.Secondary,size:Fv.S,...o})}),[i,a]),isCopied:i,copiedIndex:n,clickCopy:a}},o$=e=>{const{addNotification:t}=pv(),{formData:i,handleFormChange:o,formErrors:n,handleErrorChange:r,resetFormData:a}=$v(e);return{formData:i,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return i.name?Ad(i.name)?o.name=void 0:(n=!1,o.name=rs.ILLEGAL_K8S_LABEL):(n=!1,o.name=rs.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Di.Warning,title:e.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const i={...Ts(e),name:t};o(void 0,void 0,i)}}},n$={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},r$=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:o}=pv(),{formData:n,formErrors:r,handleFormChange:a,handleErrorChange:d,resetFormData:c}=$v(n$),[p,u]=s([]),[h,m]=s([]);return l(()=>{var e;m(p?(e=p,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:o,displayName:n,initialValue:r,renderCondition:a}=e;if(i===Ii.Dropdown){const e=ms(o,{}),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:n,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:n,value:r,renderCondition:a,...ms(o,{})}})).map(e=>{if(i){const t="string"==typeof i?ms(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[p,i]),l(()=>{if(h){const e=h.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[h]),l(()=>{if(t&&0===Fd(n.exportedSignals).length){const{logs:e,metrics:i,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:o.supported})}},[t,n.exportedSignals]),{formData:n,formErrors:r,handleFormChange:a,resetFormData:c,validateForm:e=>{const t={};let i=!0;return h.forEach(({name:e,value:o,required:n})=>{n&&!o&&(i=!1,t[e]=rs.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&o({type:Di.Warning,title:e.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),d(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:o,fields:n})=>{const r={...Ts(n$),type:e,name:t,disabled:i,exportedSignals:o,fields:Object.entries(ms(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:p,setYamlFields:u,dynamicFields:h,setDynamicFields:m}},a$=({active:e,key:t,withAltKey:i,withCtrlKey:o,withShiftKey:n,withMetaKey:r},a)=>(l(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,o,n,r,a]),null),s$=e=>{const{onChange:t}=e??{},[i,o]=s(!1),n=d(()=>o(e=>!e),[]),r=d(()=>o(!1),[]);return xv(i),a$({active:i,key:"Escape"},r),l(()=>(t?.(i),()=>{i&&t?.(!1)}),[i,t]),{isFullscreen:i,toggle:n,exit:r}},l$={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Ki.HttpRequest]:null,[Ki.HttpResponse]:null,[Ki.DbQuery]:null,[Ki.Messaging]:null},codeAttributes:{[Xi.Column]:null,[Xi.FilePath]:null,[Xi.Function]:null,[Xi.LineNumber]:null,[Xi.Namespace]:null,[Xi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Vi.Java]:null,[Vi.Golang]:null,[Vi.Php]:null},networkMetrics:null},d$=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:o,resetFormData:n}=$v(l$);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:n,payloadCollection:r,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...Ts(l$),ruleName:e,notes:t,disabled:o,sourceScopes:n??null,networkMetrics:d??null};r&&(c.payloadCollection={[Ki.HttpRequest]:r[Ki.HttpRequest]?{}:null,[Ki.HttpResponse]:r[Ki.HttpResponse]?{}:null,[Ki.DbQuery]:r[Ki.DbQuery]?{}:null,[Ki.Messaging]:r[Ki.Messaging]?{}:null}),a&&(c.codeAttributes={[Xi.Column]:a[Xi.Column]||null,[Xi.FilePath]:a[Xi.FilePath]||null,[Xi.Function]:a[Xi.Function]||null,[Xi.LineNumber]:a[Xi.LineNumber]||null,[Xi.Namespace]:a[Xi.Namespace]||null,[Xi.StackTrace]:a[Xi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Vi.Java]:l[Vi.Java]||null,[Vi.Golang]:l[Vi.Golang]||null,[Vi.Php]:l[Vi.Php]||null}),i(void 0,void 0,c)}}},c$=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[o,n]=s(!1),r=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;n(i)};return m(()=>{const t=e.current;if(!t)return;r(t);const i=new ResizeObserver(()=>r(t));return i.observe(t),()=>i.disconnect()},[t,...i]),l(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&r(i)}),()=>{t=!0}},[t,...i]),o},p$=(e,{behavior:t="smooth",block:i="center",inline:o,delayMs:n=50}={})=>{const r=p(null);return l(()=>{if(!e)return;const a=window.setTimeout(()=>{r.current?.scrollIntoView({behavior:t,block:i,inline:o})},n);return()=>window.clearTimeout(a)},[e,t,i,o,n]),r},u$=({sectionNames:e,threshold:t=.4})=>{const[i,o]=s(e[0]||""),[n,r]=s(null),a=p({}),c=p(!1),u=p(!1),h=d((e,t)=>{a.current[e]=t},[]),m=d(e=>{r(e)},[]),g=d(e=>{u.current=!0,o(e)},[]);return l(()=>{if(!u.current)return;u.current=!1;const e=a.current[i];if(!e)return;c.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{c.current=!1},600);return()=>clearTimeout(t)},[i]),l(()=>{const i=a.current,r=e.map(e=>i[e]).filter(Boolean);if(!r.length)return;const s=new IntersectionObserver(e=>{if(!c.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return r.forEach(e=>s.observe(e)),()=>s.disconnect()},[e,t,n]),{selectedSection:i,setSelectedSection:g,setSectionRef:h,setScrollContainerRef:m}};var h$,m$;(e=>{e.Left="left",e.Right="right"})(h$||(h$={})),(e=>{e.Top="top",e.Bottom="bottom"})(m$||(m$={}));const g$=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:o,alignY:n,withOffset:r=!0,fullWidth:a}={})=>{const c=void 0!==t,[u,h]=s(e),g=c?t:u,f=d(e=>{c||h(e),i?.(e)},[c,i]),[y,b]=s({x:o||h$.Left,y:n||m$.Bottom}),v=p(null),$=p(!1);l(()=>{if(!g)return;const e=e=>{if($.current)return void($.current=!1);const t=e.target;v.current?.contains(t)||Tv(t)||f(!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)}},[g,f]);const[w,C]=s({}),x=d((e,t)=>{const i=v.current?.getBoundingClientRect();if(!i)return;const o=r?8:0;C({top:t===m$.Bottom?r?i.bottom+o:i.top:void 0,bottom:t===m$.Top?r?window.innerHeight-i.top+o:window.innerHeight-i.bottom:void 0,left:e===h$.Left?i.left:void 0,right:e===h$.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[r,a]),S=d(e=>{e.preventDefault(),e.stopPropagation();const t=!g;if(t&&($.current=!0),f(t),!t)return;const i={x:o||(e.clientX>window.innerWidth/2?h$.Right:h$.Left),y:n||(e.clientY>window.innerHeight/2?m$.Top:m$.Bottom)};b(i),x(i.x,i.y)},[g,f,o,n,x]),E=d(e=>{e.stopPropagation()},[]);return m(()=>{g&&x(y.x,y.y)},[g,y.x,y.y,x]),{isOpen:g,setIsOpen:f,align:y,coords:w,triggerRef:v,toggleOpen:S,onTriggerWrapperMouseDown:E}},f$=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ms(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),y$={otelServiceName:"",currentStreamName:""},b$=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:o,resetFormData:n}=$v(y$);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...Ts(y$),otelServiceName:e||t.name||""};i(void 0,void 0,o)}}};try{ti.addDefaultLocale(ii)}catch(e){}const v$=new ti(ii.locale),$$=[{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"}],w$=(e,{units:t=2,style:i="long",suffix:o=!0}={})=>{let n=Math.max(0,e);if(n<1e3)return"short"===i?"0s":o?"just now":"0 seconds";const r=[];for(const e of $$){if(r.length===t)break;const o=Math.floor(n/e.ms);if(!(o<=0&&0===r.length)){if(o<=0)break;n-=o*e.ms,r.push("short"===i?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const a="short"===i?r.join(""):r.join(" ");return o&&"long"===i?`${a} ago`:a},C$=(e,t)=>w$(6e4*Math.max(0,e),t),x$=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),S$=()=>{const[e,t]=s(0);return l(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:d(e=>{try{return v$.format(x$(e))}catch(e){return"-"}},[e]),formatDurationAgo:d((e,t)=>{try{const i=x$(e);return w$(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var E$,T$;(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"})(E$||(E$={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(T$||(T$={}));const O$=(e,t,i)=>{switch(t){case E$.Purple:return e.v2.colors.purple[i?"300":"900"];case E$.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case E$.Blue:return e.v2.colors.blue[i?"300":"1000"];case E$.Pink:return e.v2.colors.pink[i?"500":"1000"];case E$.Red:return e.v2.colors.red[i?"300":"900"];case E$.Green:return e.v2.colors.green[i?"300":"900"];case E$.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},N$=f.div`
403
+ `,Yv=({from:e,to:i,active:o=!1,icons:n,index:r,duration:a=200,mode:s="auto",withScale:l=!0,withRotate:d=!1,size:c=16,fill:p,strokeWidth:h,rotate:m=0,onClick:g})=>{const f=b(),y=u(Xv)??o,v=p||(f.darkMode?f.v2.colors.white[500]:f.v2.colors.black[500]),$=!!n?.length,w=$?null:jv(e,i),C=((e,t,i)=>!i&&"crossfade"!==e&&("morph"===e||"auto"===e)&&t)(s,!!w,$),x=(({from:e,to:t,icons:i})=>i?.length?i:e&&t?[e,t]:e?[e]:t?[t]:[])({from:e,to:i,icons:n}),S=$?r??0:y?1:0,E=Math.max(0,Math.min(S,Math.max(x.length-1,0))),T=!!g,O=g?e=>{g(e)}:void 0;return x.length||C?t(Vv,{$size:c,$clickable:T,style:{transform:m?`rotate(${m}deg)`:void 0},"aria-hidden":!T||void 0,role:T?"button":void 0,tabIndex:T?0:void 0,onClick:O,onKeyDown:T?e=>{g&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g(e)))}:void 0,children:C&&w?t(Wv,{pair:w.pair,reversed:w.reversed,active:y,size:c,fill:v,strokeWidth:h,duration:a}):x.map((e,i)=>t(Kv,{$visible:i===E,$duration:a,$withScale:l,$withRotate:d,children:t(e,{size:c,fill:v,strokeWidth:h})},i))}):null};Yv.displayName="MorphIcon";const qv=(e,i,o)=>{const n=n=>t(Yv,{from:e,to:i,...o,...n});return n.displayName=`MorphIcon(${e.displayName||e.name||"from"}/${i.displayName||i.name||"to"})`,n},Jv=qv(zt,Ut),Qv=qv(Lt,Rt),Zv=qv(Pt,Lt),e$=qv(jt,Bt),t$=qv(Mt,Ft),i$=({onDone:e}={})=>{const[i,o]=s(!1),[n,r]=s(-1),a=d(async(t,n)=>{if(!i){if(o(!0),void 0!==n&&r(n),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(()=>{o(!1),r(-1)},1e3)}},[i,e]);return{CopyButton:d(({value:e,...o})=>t(Gv,{value:i,children:t(Uv,{leftIcon:Jv,onClick:()=>a(e),variant:Pv.Secondary,size:Fv.S,...o})}),[i,a]),isCopied:i,copiedIndex:n,clickCopy:a}},o$=e=>{const{addNotification:t}=pv(),{formData:i,handleFormChange:o,formErrors:n,handleErrorChange:r,resetFormData:a}=$v(e);return{formData:i,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return i.name?kd(i.name)?o.name=void 0:(n=!1,o.name=rs.ILLEGAL_K8S_LABEL):(n=!1,o.name=rs.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Di.Warning,title:e.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const i={...Ts(e),name:t};o(void 0,void 0,i)}}},n$={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},r$=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:o}=pv(),{formData:n,formErrors:r,handleFormChange:a,handleErrorChange:d,resetFormData:c}=$v(n$),[p,u]=s([]),[h,m]=s([]);return l(()=>{var e;m(p?(e=p,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:o,displayName:n,initialValue:r,renderCondition:a}=e;if(i===Ii.Dropdown){const e=ms(o,{}),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:n,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:n,value:r,renderCondition:a,...ms(o,{})}})).map(e=>{if(i){const t="string"==typeof i?ms(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[p,i]),l(()=>{if(h){const e=h.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[h]),l(()=>{if(t&&0===Fd(n.exportedSignals).length){const{logs:e,metrics:i,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:o.supported})}},[t,n.exportedSignals]),{formData:n,formErrors:r,handleFormChange:a,resetFormData:c,validateForm:e=>{const t={};let i=!0;return h.forEach(({name:e,value:o,required:n})=>{n&&!o&&(i=!1,t[e]=rs.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&o({type:Di.Warning,title:e.alertTitle,message:rs.REQUIRED_FIELDS,hideFromHistory:!0}),d(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:o,fields:n})=>{const r={...Ts(n$),type:e,name:t,disabled:i,exportedSignals:o,fields:Object.entries(ms(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:p,setYamlFields:u,dynamicFields:h,setDynamicFields:m}},a$=({active:e,key:t,withAltKey:i,withCtrlKey:o,withShiftKey:n,withMetaKey:r},a)=>(l(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,o,n,r,a]),null),s$=e=>{const{onChange:t}=e??{},[i,o]=s(!1),n=d(()=>o(e=>!e),[]),r=d(()=>o(!1),[]);return xv(i),a$({active:i,key:"Escape"},r),l(()=>(t?.(i),()=>{i&&t?.(!1)}),[i,t]),{isFullscreen:i,toggle:n,exit:r}},l$={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Ki.HttpRequest]:null,[Ki.HttpResponse]:null,[Ki.DbQuery]:null,[Ki.Messaging]:null},codeAttributes:{[Xi.Column]:null,[Xi.FilePath]:null,[Xi.Function]:null,[Xi.LineNumber]:null,[Xi.Namespace]:null,[Xi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Vi.Java]:null,[Vi.Golang]:null,[Vi.Php]:null},networkMetrics:null},d$=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:o,resetFormData:n}=$v(l$);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:n,payloadCollection:r,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...Ts(l$),ruleName:e,notes:t,disabled:o,sourceScopes:n??null,networkMetrics:d??null};r&&(c.payloadCollection={[Ki.HttpRequest]:r[Ki.HttpRequest]?{}:null,[Ki.HttpResponse]:r[Ki.HttpResponse]?{}:null,[Ki.DbQuery]:r[Ki.DbQuery]?{}:null,[Ki.Messaging]:r[Ki.Messaging]?{}:null}),a&&(c.codeAttributes={[Xi.Column]:a[Xi.Column]||null,[Xi.FilePath]:a[Xi.FilePath]||null,[Xi.Function]:a[Xi.Function]||null,[Xi.LineNumber]:a[Xi.LineNumber]||null,[Xi.Namespace]:a[Xi.Namespace]||null,[Xi.StackTrace]:a[Xi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Vi.Java]:l[Vi.Java]||null,[Vi.Golang]:l[Vi.Golang]||null,[Vi.Php]:l[Vi.Php]||null}),i(void 0,void 0,c)}}},c$=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[o,n]=s(!1),r=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;n(i)};return m(()=>{const t=e.current;if(!t)return;r(t);const i=new ResizeObserver(()=>r(t));return i.observe(t),()=>i.disconnect()},[t,...i]),l(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&r(i)}),()=>{t=!0}},[t,...i]),o},p$=(e,{behavior:t="smooth",block:i="center",inline:o,delayMs:n=50}={})=>{const r=p(null);return l(()=>{if(!e)return;const a=window.setTimeout(()=>{r.current?.scrollIntoView({behavior:t,block:i,inline:o})},n);return()=>window.clearTimeout(a)},[e,t,i,o,n]),r},u$=({sectionNames:e,threshold:t=.4})=>{const[i,o]=s(e[0]||""),[n,r]=s(null),a=p({}),c=p(!1),u=p(!1),h=d((e,t)=>{a.current[e]=t},[]),m=d(e=>{r(e)},[]),g=d(e=>{u.current=!0,o(e)},[]);return l(()=>{if(!u.current)return;u.current=!1;const e=a.current[i];if(!e)return;c.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{c.current=!1},600);return()=>clearTimeout(t)},[i]),l(()=>{const i=a.current,r=e.map(e=>i[e]).filter(Boolean);if(!r.length)return;const s=new IntersectionObserver(e=>{if(!c.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return r.forEach(e=>s.observe(e)),()=>s.disconnect()},[e,t,n]),{selectedSection:i,setSelectedSection:g,setSectionRef:h,setScrollContainerRef:m}};var h$,m$;(e=>{e.Left="left",e.Right="right"})(h$||(h$={})),(e=>{e.Top="top",e.Bottom="bottom"})(m$||(m$={}));const g$=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:o,alignY:n,withOffset:r=!0,fullWidth:a}={})=>{const c=void 0!==t,[u,h]=s(e),g=c?t:u,f=d(e=>{c||h(e),i?.(e)},[c,i]),[y,b]=s({x:o||h$.Left,y:n||m$.Bottom}),v=p(null),$=p(!1);l(()=>{if(!g)return;const e=e=>{if($.current)return void($.current=!1);const t=e.target;v.current?.contains(t)||Tv(t)||f(!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)}},[g,f]);const[w,C]=s({}),x=d((e,t)=>{const i=v.current?.getBoundingClientRect();if(!i)return;const o=r?8:0;C({top:t===m$.Bottom?r?i.bottom+o:i.top:void 0,bottom:t===m$.Top?r?window.innerHeight-i.top+o:window.innerHeight-i.bottom:void 0,left:e===h$.Left?i.left:void 0,right:e===h$.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[r,a]),S=d(e=>{e.preventDefault(),e.stopPropagation();const t=!g;if(t&&($.current=!0),f(t),!t)return;const i={x:o||(e.clientX>window.innerWidth/2?h$.Right:h$.Left),y:n||(e.clientY>window.innerHeight/2?m$.Top:m$.Bottom)};b(i),x(i.x,i.y)},[g,f,o,n,x]),E=d(e=>{e.stopPropagation()},[]);return m(()=>{g&&x(y.x,y.y)},[g,y.x,y.y,x]),{isOpen:g,setIsOpen:f,align:y,coords:w,triggerRef:v,toggleOpen:S,onTriggerWrapperMouseDown:E}},f$=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ms(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),y$={otelServiceName:"",currentStreamName:""},b$=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:o,resetFormData:n}=$v(y$);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...Ts(y$),otelServiceName:e||t.name||""};i(void 0,void 0,o)}}};try{ti.addDefaultLocale(ii)}catch(e){}const v$=new ti(ii.locale),$$=[{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"}],w$=(e,{units:t=2,style:i="long",suffix:o=!0}={})=>{let n=Math.max(0,e);if(n<1e3)return"short"===i?"0s":o?"just now":"0 seconds";const r=[];for(const e of $$){if(r.length===t)break;const o=Math.floor(n/e.ms);if(!(o<=0&&0===r.length)){if(o<=0)break;n-=o*e.ms,r.push("short"===i?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const a="short"===i?r.join(""):r.join(" ");return o&&"long"===i?`${a} ago`:a},C$=(e,t)=>w$(6e4*Math.max(0,e),t),x$=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),S$=()=>{const[e,t]=s(0);return l(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:d(e=>{try{return v$.format(x$(e))}catch(e){return"-"}},[e]),formatDurationAgo:d((e,t)=>{try{const i=x$(e);return w$(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var E$,T$;(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"})(E$||(E$={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(T$||(T$={}));const O$=(e,t,i)=>{switch(t){case E$.Purple:return e.v2.colors.purple[i?"300":"900"];case E$.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case E$.Blue:return e.v2.colors.blue[i?"300":"1000"];case E$.Pink:return e.v2.colors.pink[i?"500":"1000"];case E$.Red:return e.v2.colors.red[i?"300":"900"];case E$.Green:return e.v2.colors.green[i?"300":"900"];case E$.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},N$=f.div`
404
404
  display: flex;
405
405
  align-items: center;
406
406
  justify-content: center;
@@ -428,7 +428,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
428
428
  }
429
429
  `}
430
430
  `}
431
- `,A$=({variant:i=E$.Default,size:o=T$.Medium,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d,minWidth:c})=>{const p=b(),u=l?p.v2.colors.grey[400]:i===E$.Default?p.v2.colors.white[500]:O$(p,i,!0),h=o===T$.Small?Ka.XXXS:o===T$.Medium?Ka.XXS:Ka.S,m=o===T$.Small?10:o===T$.Medium?12:16,g=i===E$.Loader;return e(N$,{$variant:i,$size:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,$minWidth:c,children:[r&&t(r,{fill:u,size:m}),g?t(md,{withGradient:!0,title:n,titleSize:h}):t(Za,{color:u,size:h,nowrap:!0,children:n}),a&&t(a,{fill:u,size:m})]})},k$=f.div`
431
+ `,k$=({variant:i=E$.Default,size:o=T$.Medium,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d,minWidth:c})=>{const p=b(),u=l?p.v2.colors.grey[400]:i===E$.Default?p.v2.colors.white[500]:O$(p,i,!0),h=o===T$.Small?Ka.XXXS:o===T$.Medium?Ka.XXS:Ka.S,m=o===T$.Small?10:o===T$.Medium?12:16,g=i===E$.Loader;return e(N$,{$variant:i,$size:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,$minWidth:c,children:[r&&t(r,{fill:u,size:m}),g?t(md,{withGradient:!0,title:n,titleSize:h}):t(Za,{color:u,size:h,nowrap:!0,children:n}),a&&t(a,{fill:u,size:m})]})},A$=f.div`
432
432
  display: flex;
433
433
  align-items: center;
434
434
  justify-content: center;
@@ -438,7 +438,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
438
438
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
439
439
  border-radius: 100px;
440
440
  background-color: ${({$backgroundColor:e})=>e};
441
- `,I$=({label:i,leftIcon:o,rightIcon:n,tooltip:r,status:a=Di.Unknown,useSecondaryTone:s=!1,invertColors:l=!1,textSize:d,textColor:c,backgroundColor:p,minWidth:u="unset",fullWidth:h=!1})=>{const m=b(),g=i?.toString(),f=Di.Loading===a,y=a?[Di.Disabled,Di.Loading].includes(a)?gl(m,a,l?"400":"700"):[Di.Unknown].includes(a)?gl(m,a,"600"):gl(m,a,l?s?"500":"300":s?"700":"500"):m.v2.colors.grey[200],v=c||(l&&![Di.Unknown].includes(a)?y:[Di.Disabled,Di.Loading].includes(a)?m.v2.colors.grey[400]:[Di.Error,Di.Warning,Di.Success].includes(a)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(l&&![Di.Unknown].includes(a)?[Di.Disabled,Di.Loading].includes(a)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(Lv,{text:r,fullWidth:h,children:e(k$,{$backgroundColor:$,$minWidth:u,$fullWidth:h,$hasLabel:!!g,children:[!f||g&&o?o?t(o,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(md,{withSpinnerOld:!0,scaleSpinnerOld:.5}),g?f?t(md,{withGradient:!0,title:g,titleSize:d||Ka.XXS}):t(Za,{color:v,size:d||Ka.XXS,nowrap:!0,children:g}):null,n&&t(n,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})},_$=f.div`
441
+ `,I$=({label:i,leftIcon:o,rightIcon:n,tooltip:r,status:a=Di.Unknown,useSecondaryTone:s=!1,invertColors:l=!1,textSize:d,textColor:c,backgroundColor:p,minWidth:u="unset",fullWidth:h=!1})=>{const m=b(),g=i?.toString(),f=Di.Loading===a,y=a?[Di.Disabled,Di.Loading].includes(a)?gl(m,a,l?"400":"700"):[Di.Unknown].includes(a)?gl(m,a,"600"):gl(m,a,l?s?"500":"300":s?"700":"500"):m.v2.colors.grey[200],v=c||(l&&![Di.Unknown].includes(a)?y:[Di.Disabled,Di.Loading].includes(a)?m.v2.colors.grey[400]:[Di.Error,Di.Warning,Di.Success].includes(a)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(l&&![Di.Unknown].includes(a)?[Di.Disabled,Di.Loading].includes(a)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(Lv,{text:r,fullWidth:h,children:e(A$,{$backgroundColor:$,$minWidth:u,$fullWidth:h,$hasLabel:!!g,children:[!f||g&&o?o?t(o,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(md,{withSpinnerOld:!0,scaleSpinnerOld:.5}),g?f?t(md,{withGradient:!0,title:g,titleSize:d||Ka.XXS}):t(Za,{color:v,size:d||Ka.XXS,nowrap:!0,children:g}):null,n&&t(n,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})},_$=f.div`
442
442
  position: relative;
443
443
  `,D$=f.div`
444
444
  position: fixed;
@@ -734,9 +734,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
734
734
  display: inline-flex;
735
735
  align-items: center;
736
736
  gap: 4px;
737
- `,Ew=({defaultOpen:i,open:o,onOpenChange:n,alignX:r,alignY:a,items:l,selectedIds:d,setSelectedIds:p,label:u,withMultiSelect:h,withSearch:m,fullWidth:g,maxHeight:f,buttonProps:y,iconButtonProps:v,isLoading:$,emptyMessage:w,children:C})=>{const x=b(),S=!!y||!!v||!!C,{isOpen:E,setIsOpen:T,coords:O,triggerRef:N,toggleOpen:A,onTriggerWrapperMouseDown:k}=g$({defaultOpen:i??!S,open:o,onOpenChange:n,alignX:r,alignY:a,withOffset:S,fullWidth:g}),I=e=>{p(h?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!h&&T(!1)},[_,D]=s(""),R=c(()=>_?l.filter(e=>e?.label?.toLowerCase().includes(_.toLowerCase())):l,[l.length,_]),{onClick:L,onMouseDown:P,...F}=y??{},{onClick:M,onMouseDown:U,...z}=v??{};return e(yw,{ref:N,onMouseDown:k,children:[e(Gv,{value:E,children:[u&&t(dw,{label:u}),y&&t(Uv,{...F,fullWidth:g,rightIcon:Qv,onMouseDown:A,onClick:e=>e.preventDefault()}),v&&t(Uv,{variant:Pv.Text,size:Fv.S,...z,onMouseDown:A,onClick:e=>e.preventDefault()}),"function"==typeof C?C({ChevronIcon:Qv,handleClick:A}):C]}),E&&ni(e(bw,{$coords:O,"data-ignore-outside-click":"true",children:[m&&t(nw,{value:_,onChange:D,width:"100%"}),$?t(md,{withSpinner:!0,title:"Loading...",titleSize:Ka.XS}):R.length?t(vw,{$maxHeight:f,children:R.map(i=>{if(!i)return null;const{id:o,label:n,icon:r,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(o);return e($w,{"data-id":`option-${o}`,$selected:c&&!a,onClick:()=>I(o),title:l?`${n} — ${l}`:n,children:[a&&t(mw,{value:c,onChange:()=>I(o)}),r&&t(r,{size:14,fill:i.color||x.v2.colors.white[500]}),s&&t(xw,{children:t(Za,{size:Ka.XXS,nowrap:!0,color:Ya.Secondary,children:s})}),e(ww,{children:[t(Cw,{children:t(Za,{size:Ka.XS,nowrap:!0,color:i.color||Ya.Primary,children:n})}),l&&e(Sw,{children:[t(it,{size:12,fill:x.v2.colors.silver[200]}),t(Za,{size:Ka.XS,nowrap:!0,color:Ya.Secondary,children:l})]})]})]},o?.toString()??"")})}):t(td,{$padding:"6px 0",children:t(aw,{hideIcon:!0,title:"No results",subTitle:w})}),h&&!!R.length&&t(Uv,{label:"Done",onClick:()=>T(!1)})]}),document.body)]})};var Tw;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Tw||(Tw={}));const Ow=({onAnyClick:e,actions:i})=>t(id,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case Tw.Button:return t(Uv,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case Tw.DropDataButton:{const{onClick:o,...n}=i.buttonProps??{};return t(Ew,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{o?.(t[0]),e?.()},buttonProps:n},i.id)}case Tw.PopupButton:return t(R$,{buttonProps:{label:"Open",variant:Pv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),Nw=f(id)`
737
+ `,Ew=({defaultOpen:i,open:o,onOpenChange:n,alignX:r,alignY:a,items:l,selectedIds:d,setSelectedIds:p,label:u,withMultiSelect:h,withSearch:m,fullWidth:g,maxHeight:f,buttonProps:y,iconButtonProps:v,isLoading:$,emptyMessage:w,children:C})=>{const x=b(),S=!!y||!!v||!!C,{isOpen:E,setIsOpen:T,coords:O,triggerRef:N,toggleOpen:k,onTriggerWrapperMouseDown:A}=g$({defaultOpen:i??!S,open:o,onOpenChange:n,alignX:r,alignY:a,withOffset:S,fullWidth:g}),I=e=>{p(h?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!h&&T(!1)},[_,D]=s(""),R=c(()=>_?l.filter(e=>e?.label?.toLowerCase().includes(_.toLowerCase())):l,[l.length,_]),{onClick:L,onMouseDown:P,...F}=y??{},{onClick:M,onMouseDown:U,...z}=v??{};return e(yw,{ref:N,onMouseDown:A,children:[e(Gv,{value:E,children:[u&&t(dw,{label:u}),y&&t(Uv,{...F,fullWidth:g,rightIcon:Qv,onMouseDown:k,onClick:e=>e.preventDefault()}),v&&t(Uv,{variant:Pv.Text,size:Fv.S,...z,onMouseDown:k,onClick:e=>e.preventDefault()}),"function"==typeof C?C({ChevronIcon:Qv,handleClick:k}):C]}),E&&ni(e(bw,{$coords:O,"data-ignore-outside-click":"true",children:[m&&t(nw,{value:_,onChange:D,width:"100%"}),$?t(md,{withSpinner:!0,title:"Loading...",titleSize:Ka.XS}):R.length?t(vw,{$maxHeight:f,children:R.map(i=>{if(!i)return null;const{id:o,label:n,icon:r,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(o);return e($w,{"data-id":`option-${o}`,$selected:c&&!a,onClick:()=>I(o),title:l?`${n} — ${l}`:n,children:[a&&t(mw,{value:c,onChange:()=>I(o)}),r&&t(r,{size:14,fill:i.color||x.v2.colors.white[500]}),s&&t(xw,{children:t(Za,{size:Ka.XXS,nowrap:!0,color:Ya.Secondary,children:s})}),e(ww,{children:[t(Cw,{children:t(Za,{size:Ka.XS,nowrap:!0,color:i.color||Ya.Primary,children:n})}),l&&e(Sw,{children:[t(it,{size:12,fill:x.v2.colors.silver[200]}),t(Za,{size:Ka.XS,nowrap:!0,color:Ya.Secondary,children:l})]})]})]},o?.toString()??"")})}):t(td,{$padding:"6px 0",children:t(aw,{hideIcon:!0,title:"No results",subTitle:w})}),h&&!!R.length&&t(Uv,{label:"Done",onClick:()=>T(!1)})]}),document.body)]})};var Tw;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Tw||(Tw={}));const Ow=({onAnyClick:e,actions:i})=>t(id,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case Tw.Button:return t(Uv,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case Tw.DropDataButton:{const{onClick:o,...n}=i.buttonProps??{};return t(Ew,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{o?.(t[0]),e?.()},buttonProps:n},i.id)}case Tw.PopupButton:return t(R$,{buttonProps:{label:"Open",variant:Pv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),Nw=f(id)`
738
738
  min-width: 0;
739
- `,Aw=f.div`
739
+ `,kw=f.div`
740
740
  display: flex;
741
741
  flex-shrink: 0;
742
742
  align-items: center;
@@ -744,11 +744,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
744
744
  padding: 8px;
745
745
  border-radius: 8px;
746
746
  background-color: ${({theme:e})=>e.v2.colors.white[500]+B$["004"]};
747
- `,kw=f(od)`
747
+ `,Aw=f(od)`
748
748
  flex: 1;
749
749
  min-width: 0;
750
750
  overflow: hidden;
751
- `,Iw=({icon:i,iconWithWrapper:o=!1,title:n,titleSize:r=Ka.S,titleColor:a=Ya.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Ka.XXS,subTitleColor:p=Ya.Secondary,subTitleWrap:u=!1,tooltip:h,withCopy:m,badge:g,gap:f,textGap:y,alignItems:b="center",children:v})=>{const{CopyButton:$}=i$();return e(Nw,{$gap:d?8:6,$alignItems:b,children:[i&&(o||d?t(Aw,{children:t(i,{size:24})}):t(i,{size:24})),n||g||d?e(kw,{$gap:y,children:[n||g?e(id,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[n&&t(Za,{size:r,color:a,nowrap:!s,children:n}),l&&t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:l}),m&&n&&t($,{value:n}),h&&t(Lv,{text:h,withIcon:!0}),g&&t(I$,{...g})]}):null,d&&t(Za,{size:c,color:p,nowrap:!u,children:d})]}):null,v&&t(id,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},_w=({children:e,fullText:i,fullWidth:o=!0,...n})=>{const r=p(null),a=!!n.maxLines&&n.maxLines>0,s=c$(r,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(Lv,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:t(Za,{ref:r,...n,children:e})})},Dw=f.section`
751
+ `,Iw=({icon:i,iconWithWrapper:o=!1,title:n,titleSize:r=Ka.S,titleColor:a=Ya.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Ka.XXS,subTitleColor:p=Ya.Secondary,subTitleWrap:u=!1,tooltip:h,withCopy:m,badge:g,gap:f,textGap:y,alignItems:b="center",children:v})=>{const{CopyButton:$}=i$();return e(Nw,{$gap:d?8:6,$alignItems:b,children:[i&&(o||d?t(kw,{children:t(i,{size:24})}):t(i,{size:24})),n||g||d?e(Aw,{$gap:y,children:[n||g?e(id,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[n&&t(Za,{size:r,color:a,nowrap:!s,children:n}),l&&t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:l}),m&&n&&t($,{value:n}),h&&t(Lv,{text:h,withIcon:!0}),g&&t(I$,{...g})]}):null,d&&t(Za,{size:c,color:p,nowrap:!u,children:d})]}):null,v&&t(id,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},_w=({children:e,fullText:i,fullWidth:o=!0,...n})=>{const r=p(null),a=!!n.maxLines&&n.maxLines>0,s=c$(r,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(Lv,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:t(Za,{ref:r,...n,children:e})})},Dw=f.section`
752
752
  display: flex;
753
753
  flex-direction: column;
754
754
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -795,7 +795,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
795
795
  flex-direction: column;
796
796
  gap: 4px;
797
797
  min-width: 0;
798
- `,Mw=({item:i,cellsPerRow:o})=>{const{CopyButton:n}=i$(),{spacer:r,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,button:p,badge:u,tag:h}=i;return r?t("div",{style:{width:o?`calc(${100/o}% - 16px)`:"unset"}}):e(Fw,{$cellsPerRow:o,children:[!!a&&t(Lv,{text:s,children:t(_w,{size:Ka.XXXS,color:Ya.Secondary,nowrap:!0,children:a})}),e(id,{$gap:4,children:[u&&t(I$,{...u}),h&&t(A$,{...h}),p&&t(Uv,{variant:Pv.Primary,size:Fv.S,...p}),c&&t(n,{value:l||u?.label?.toString()||h?.label?.toString()||""}),l&&t(Lv,{text:d,children:t(_w,{size:Ka.XS,nowrap:!0,children:l})})]})]})},Uw=({bgTint:i="900",width:o,fullHeight:n=!1,moreSpacing:r=!1,overflow:a,richTitle:l,withCollapse:d,collapseIsDefaultOpen:c,badges:p=[],actions:u=[],dropDataActions:h=[],renderOnRightSide:m,cellsPerRow:f,items:y,children:b,onClick:v,clickStylesRemainActive:$=!1})=>{const[w,C]=s(c||!1),x=()=>C(e=>!e),S=!d||d&&w,E=!!u.length,T=!!h.length,O=!!p.length;return e(Dw,{$width:o,$bgTint:i,$fullHeight:n,$moreSpacing:r,onClick:v,$withClick:!!v,$clickStylesRemainActive:$,$overflow:a,children:[(l||E||O||d)&&e(Rw,{$gap:16,$justifyContent:"space-between",$clickable:!!d,onClick:()=>{d&&x()},children:[l?t(Iw,{...l}):t("div",{}),e(Lw,{$gap:12,onClick:e=>{e.stopPropagation()},children:[m,E&&S&&t(Ow,{actions:u}),O&&t(id,{$gap:8,children:p.map((e,t)=>g(I$,{...e,key:e.key||`${e.label}-${t}`}))}),(T||d)&&e(id,{$gap:2,children:[T&&t(Ew,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Wt},items:h,selectedIds:[],setSelectedIds:e=>h?.find(t=>t?.id===e[0])?.onClick?.()}),d&&t(Gv,{value:w,children:t(Uv,{variant:Pv.Text,size:Fv.S,leftIcon:Qv,onClick:x})})]})]})]}),S&&y?t(Pw,{children:y.map(e=>t(Mw,{item:e,cellsPerRow:f&&f<=y.length?f:void 0},e.id))}):null,S&&b]})};var zw;(e=>{e.S="small",e.M="medium"})(zw||(zw={}));const Bw=f(id)`
798
+ `,Mw=({item:i,cellsPerRow:o})=>{const{CopyButton:n}=i$(),{spacer:r,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,button:p,badge:u,tag:h}=i;return r?t("div",{style:{width:o?`calc(${100/o}% - 16px)`:"unset"}}):e(Fw,{$cellsPerRow:o,children:[!!a&&t(Lv,{text:s,children:t(_w,{size:Ka.XXXS,color:Ya.Secondary,nowrap:!0,children:a})}),e(id,{$gap:4,children:[u&&t(I$,{...u}),h&&t(k$,{...h}),p&&t(Uv,{variant:Pv.Primary,size:Fv.S,...p}),c&&t(n,{value:l||u?.label?.toString()||h?.label?.toString()||""}),l&&t(Lv,{text:d,children:t(_w,{size:Ka.XS,nowrap:!0,children:l})})]})]})},Uw=({bgTint:i="900",width:o,fullHeight:n=!1,moreSpacing:r=!1,overflow:a,richTitle:l,withCollapse:d,collapseIsDefaultOpen:c,badges:p=[],actions:u=[],dropDataActions:h=[],renderOnRightSide:m,cellsPerRow:f,items:y,children:b,onClick:v,clickStylesRemainActive:$=!1})=>{const[w,C]=s(c||!1),x=()=>C(e=>!e),S=!d||d&&w,E=!!u.length,T=!!h.length,O=!!p.length;return e(Dw,{$width:o,$bgTint:i,$fullHeight:n,$moreSpacing:r,onClick:v,$withClick:!!v,$clickStylesRemainActive:$,$overflow:a,children:[(l||E||O||d)&&e(Rw,{$gap:16,$justifyContent:"space-between",$clickable:!!d,onClick:()=>{d&&x()},children:[l?t(Iw,{...l}):t("div",{}),e(Lw,{$gap:12,onClick:e=>{e.stopPropagation()},children:[m,E&&S&&t(Ow,{actions:u}),O&&t(id,{$gap:8,children:p.map((e,t)=>g(I$,{...e,key:e.key||`${e.label}-${t}`}))}),(T||d)&&e(id,{$gap:2,children:[T&&t(Ew,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Wt},items:h,selectedIds:[],setSelectedIds:e=>h?.find(t=>t?.id===e[0])?.onClick?.()}),d&&t(Gv,{value:w,children:t(Uv,{variant:Pv.Text,size:Fv.S,leftIcon:Qv,onClick:x})})]})]})]}),S&&y?t(Pw,{children:y.map(e=>t(Mw,{item:e,cellsPerRow:f&&f<=y.length?f:void 0},e.id))}):null,S&&b]})};var zw;(e=>{e.S="small",e.M="medium"})(zw||(zw={}));const Bw=f(id)`
799
799
  flex: 1;
800
800
  min-width: 0;
801
801
  align-items: center;
@@ -938,7 +938,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
938
938
  align-items: center;
939
939
  justify-content: center;
940
940
  cursor: ${({$notClickable:e})=>e?"default":"pointer"};
941
- `,nC=({label:o,required:n,tooltip:r,badge:a,leftIcon:l,leftIconClick:d,rightIcon:c,rightIconClick:u,suffix:h,hasError:m,hideFocusOutline:g=!1,errorMessage:f,warnMessage:y,helpMessage:v,type:$=_i.Text,name:w,value:C,onChange:x,disabled:S,maxWidth:E,width:T,small:O=!1,onClick:N,...A})=>{const k=b(),I=$===_i.Password,_=$===_i.Number||$===_i.Decimal,[D,R]=s(!1),[L,P]=s(null),F=e=>{e.stopPropagation();const t=e.target.value;if($===_i.Number||$===_i.Decimal){const i=$===_i.Number?zd(t):Ud(t),o=null!=A.min?Number(A.min):void 0,n=null!=A.max?Number(A.max):void 0,r=$===_i.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!r){const e=parseFloat(i);isNaN(e)||(null!=n&&e>n?(a=String(n),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}e.target.value=a,P(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=o&&null!=n?`between ${o} and ${n}`:null!=n?`at most ${n}`:`at least ${o}`):null)}x?.(e)},M=e=>{["Enter"].includes(e.key)||e.stopPropagation()},U=m||!!f||!!L,z=C?k.v2.colors.white[500]:S?k.v2.colors.grey[400]:k.v2.colors.silver[200],B=O?14:18,j=p(null),H=c$(j,{deps:[C]}),W=A.readOnly&&H&&null!=C&&""!==C?String(C):"",X=!!h&&!I;return e(od,{$width:T,$gap:O?2:6,children:[t(dw,{label:o,tooltip:r,required:n,badge:a,small:O}),t(Qw,{$small:O,$disabled:S,$readOnly:!!A.readOnly,$error:U,$clickable:!!N&&!S,$hasSuffix:X,$hideFocusOutline:g,onClick:S?void 0:e=>{S||(A.readOnly||j.current?.focus(),N?.(e))},children:X?e(i,{children:[t(Zw,{$small:O,children:t(Lv,{text:W,fullWidth:!0,keepAlive:!0,children:t(iC,{"data-id":w,type:_?_i.Text:$,name:w,value:C,onChange:F,onKeyDown:M,disabled:S,$maxWidth:E,$width:"100%",$small:O,$tabular:_,...A,ref:j})})}),t(eC,{$disabled:S,$error:U}),t(tC,{$small:O,"aria-hidden":"true",children:t(Za,{size:Ka.XXXS,color:S?Ya.Disable:Ya.Secondary,nowrap:!0,children:h})})]}):e(Lv,{text:W,fullWidth:!0,keepAlive:!0,children:[l?t(oC,{$notClickable:!d,onClick:d,children:t(l,{size:B,fill:z})}):null,t(iC,{"data-id":w,type:D||_?_i.Text:$,name:w,value:C,onChange:F,onKeyDown:M,disabled:S,$maxWidth:E,$width:T,$small:O,$tabular:_,...A,ref:j}),I?t(oC,{onClick:()=>R(e=>!e),children:t(Yv,{from:Gt,to:Xt,active:D,size:B,fill:z,withRotate:!0})}):c?t(oC,{$notClickable:!u,onClick:u,children:t(c,{size:B,fill:z})}):null]})}),t(cw,{errorMessage:L||f,warnMessage:y,helpMessage:v})]})},rC=e=>{const{"data-id":i,options:o,placeholder:n="Search...",isLoading:r,disabled:a}=e,l=!0===e.multiple,[p,u]=s(""),[h,m]=s(!1),g=c(()=>l?e.value:e.value?[e.value]:[],[l,e.value]),f=c(()=>{if(l){const e=g.length;return e?1===e?o.find(e=>e.id===g[0])?.label??"":`${e} selected`:""}return e.value?o.find(t=>t.id===e.value)?.label??"":""},[l,e,o,g]),y=h?p:f,b=c(()=>{const e=l?o.map(e=>({...e,withCheckbox:!0})):o;if(!p)return e;const t=p.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[l,o,p]),v=d(()=>{u(""),m(!0)},[]),$=d(t=>{u(t.target.value),h||m(!0),l||t.target.value||!e.value||e.onSelect(null)},[h,l,e]),w=d(e=>{m(e),e||u("")},[]),C=d(t=>{if(l)return void e.onSelect(t);const i=o.find(e=>e.id===t[0]);i&&(e.onSelect(i),u(""),m(!1))},[l,e,o]),x=h&&(r||b.length>0||p.length>0);return t(Ew,{open:x,onOpenChange:w,items:b,selectedIds:g,setSelectedIds:C,withMultiSelect:l,isLoading:r,emptyMessage:`No results matched the filter '${p}'`,fullWidth:!0,alignY:m$.Bottom,children:t(nC,{name:i,leftIcon:Ht,placeholder:n,value:y,onChange:$,onFocus:v,disabled:a})})},aC=f.button`
941
+ `,nC=({label:o,required:n,tooltip:r,badge:a,leftIcon:l,leftIconClick:d,rightIcon:c,rightIconClick:u,suffix:h,hasError:m,hideFocusOutline:g=!1,errorMessage:f,warnMessage:y,helpMessage:v,type:$=_i.Text,name:w,value:C,onChange:x,disabled:S,maxWidth:E,width:T,small:O=!1,onClick:N,...k})=>{const A=b(),I=$===_i.Password,_=$===_i.Number||$===_i.Decimal,[D,R]=s(!1),[L,P]=s(null),F=e=>{e.stopPropagation();const t=e.target.value;if($===_i.Number||$===_i.Decimal){const i=$===_i.Number?zd(t):Ud(t),o=null!=k.min?Number(k.min):void 0,n=null!=k.max?Number(k.max):void 0,r=$===_i.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!r){const e=parseFloat(i);isNaN(e)||(null!=n&&e>n?(a=String(n),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}e.target.value=a,P(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=o&&null!=n?`between ${o} and ${n}`:null!=n?`at most ${n}`:`at least ${o}`):null)}x?.(e)},M=e=>{["Enter"].includes(e.key)||e.stopPropagation()},U=m||!!f||!!L,z=C?A.v2.colors.white[500]:S?A.v2.colors.grey[400]:A.v2.colors.silver[200],B=O?14:18,j=p(null),H=c$(j,{deps:[C]}),W=k.readOnly&&H&&null!=C&&""!==C?String(C):"",X=!!h&&!I;return e(od,{$width:T,$gap:O?2:6,children:[t(dw,{label:o,tooltip:r,required:n,badge:a,small:O}),t(Qw,{$small:O,$disabled:S,$readOnly:!!k.readOnly,$error:U,$clickable:!!N&&!S,$hasSuffix:X,$hideFocusOutline:g,onClick:S?void 0:e=>{S||(k.readOnly||j.current?.focus(),N?.(e))},children:X?e(i,{children:[t(Zw,{$small:O,children:t(Lv,{text:W,fullWidth:!0,keepAlive:!0,children:t(iC,{"data-id":w,type:_?_i.Text:$,name:w,value:C,onChange:F,onKeyDown:M,disabled:S,$maxWidth:E,$width:"100%",$small:O,$tabular:_,...k,ref:j})})}),t(eC,{$disabled:S,$error:U}),t(tC,{$small:O,"aria-hidden":"true",children:t(Za,{size:Ka.XXXS,color:S?Ya.Disable:Ya.Secondary,nowrap:!0,children:h})})]}):e(Lv,{text:W,fullWidth:!0,keepAlive:!0,children:[l?t(oC,{$notClickable:!d,onClick:d,children:t(l,{size:B,fill:z})}):null,t(iC,{"data-id":w,type:D||_?_i.Text:$,name:w,value:C,onChange:F,onKeyDown:M,disabled:S,$maxWidth:E,$width:T,$small:O,$tabular:_,...k,ref:j}),I?t(oC,{onClick:()=>R(e=>!e),children:t(Yv,{from:Gt,to:Xt,active:D,size:B,fill:z,withRotate:!0})}):c?t(oC,{$notClickable:!u,onClick:u,children:t(c,{size:B,fill:z})}):null]})}),t(cw,{errorMessage:L||f,warnMessage:y,helpMessage:v})]})},rC=e=>{const{"data-id":i,options:o,placeholder:n="Search...",isLoading:r,disabled:a}=e,l=!0===e.multiple,[p,u]=s(""),[h,m]=s(!1),g=c(()=>l?e.value:e.value?[e.value]:[],[l,e.value]),f=c(()=>{if(l){const e=g.length;return e?1===e?o.find(e=>e.id===g[0])?.label??"":`${e} selected`:""}return e.value?o.find(t=>t.id===e.value)?.label??"":""},[l,e,o,g]),y=h?p:f,b=c(()=>{const e=l?o.map(e=>({...e,withCheckbox:!0})):o;if(!p)return e;const t=p.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[l,o,p]),v=d(()=>{u(""),m(!0)},[]),$=d(t=>{u(t.target.value),h||m(!0),l||t.target.value||!e.value||e.onSelect(null)},[h,l,e]),w=d(e=>{m(e),e||u("")},[]),C=d(t=>{if(l)return void e.onSelect(t);const i=o.find(e=>e.id===t[0]);i&&(e.onSelect(i),u(""),m(!1))},[l,e,o]),x=h&&(r||b.length>0||p.length>0);return t(Ew,{open:x,onOpenChange:w,items:b,selectedIds:g,setSelectedIds:C,withMultiSelect:l,isLoading:r,emptyMessage:`No results matched the filter '${p}'`,fullWidth:!0,alignY:m$.Bottom,children:t(nC,{name:i,leftIcon:Ht,placeholder:n,value:y,onChange:$,onFocus:v,disabled:a})})},aC=f.button`
942
942
  width: 100%;
943
943
  padding: ${({$hasIcon:e})=>e?"0 12px 0 0":"12px 24px"};
944
944
  display: flex;
@@ -1085,7 +1085,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1085
1085
  justify-content: center;
1086
1086
  min-width: 0;
1087
1087
  overflow: hidden;
1088
- `,AC=({title:i,titleTooltip:o,bars:n,height:r=311})=>{const a=b(),s=c(()=>[a.v2.colors.purple[400],a.v2.colors.pink[500],a.v2.colors.red[500],a.v2.colors.orange[500],a.v2.colors.yellow[500],a.v2.colors.green[400],a.v2.colors.mint[500],a.v2.colors.blue[600]],[a]),l=c(()=>Math.max(0,...n.map(e=>e.value)),[n]),d=c(()=>pC.map(e=>{return t=l*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[l]);return e(uC,{children:[!!i&&e(hC,{children:[t(Za,{size:Ka.S,weight:500,children:i}),!!o&&t(Lv,{text:o,withIcon:!0})]}),e(mC,{children:[t(gC,{$plotHeight:r,children:d.map((e,i)=>t(Za,{size:Ka.XXS,color:Ya.Primary,nowrap:!0,children:e},pC[i]))}),e(fC,{children:[e(yC,{$height:r,children:[t(bC,{children:pC.map(e=>t(vC,{},e))}),t($C,{children:n.map((e,i)=>{const o=l>0?e.value/l*100:0,n=e.color??s[i%s.length];return t(wC,{children:t(Lv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(CC,{$pct:o,$color:n})})},`${e.label}-${i}`)})})]}),e(xC,{children:[t(SC,{children:n.map((e,i)=>t(EC,{children:t(TC,{})},`tick-${e.label}-${i}`))}),t(OC,{children:n.map((e,i)=>t(NC,{children:t(Za,{size:Ka.XXS,color:Ya.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var kC;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(kC||(kC={}));const IC=f.div`
1088
+ `,kC=({title:i,titleTooltip:o,bars:n,height:r=311})=>{const a=b(),s=c(()=>[a.v2.colors.purple[400],a.v2.colors.pink[500],a.v2.colors.red[500],a.v2.colors.orange[500],a.v2.colors.yellow[500],a.v2.colors.green[400],a.v2.colors.mint[500],a.v2.colors.blue[600]],[a]),l=c(()=>Math.max(0,...n.map(e=>e.value)),[n]),d=c(()=>pC.map(e=>{return t=l*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[l]);return e(uC,{children:[!!i&&e(hC,{children:[t(Za,{size:Ka.S,weight:500,children:i}),!!o&&t(Lv,{text:o,withIcon:!0})]}),e(mC,{children:[t(gC,{$plotHeight:r,children:d.map((e,i)=>t(Za,{size:Ka.XXS,color:Ya.Primary,nowrap:!0,children:e},pC[i]))}),e(fC,{children:[e(yC,{$height:r,children:[t(bC,{children:pC.map(e=>t(vC,{},e))}),t($C,{children:n.map((e,i)=>{const o=l>0?e.value/l*100:0,n=e.color??s[i%s.length];return t(wC,{children:t(Lv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(CC,{$pct:o,$color:n})})},`${e.label}-${i}`)})})]}),e(xC,{children:[t(SC,{children:n.map((e,i)=>t(EC,{children:t(TC,{})},`tick-${e.label}-${i}`))}),t(OC,{children:n.map((e,i)=>t(NC,{children:t(Za,{size:Ka.XXS,color:Ya.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var AC;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(AC||(AC={}));const IC=f.div`
1089
1089
  display: flex;
1090
1090
  align-items: flex-end;
1091
1091
  justify-content: space-between;
@@ -1118,7 +1118,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1118
1118
  height: 9px;
1119
1119
  border-radius: 50%;
1120
1120
  background-color: ${({$color:e})=>e};
1121
- `,PC=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:""}},FC=(e,t,i,o)=>{const n=o*Math.PI/180;return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}},MC=(e,t,i,o,n)=>{const r=FC(e,t,i,o),a=FC(e,t,i,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${r.x} ${r.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},UC=({variant:i=kC.CurrentOfMax,gaugeWidth:o,title:n,min:r=0,max:a,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=PC(r),{number:m}=PC(a),{number:g,prefix:f,suffix:y}=PC(l),v=b(),$=(F=(g-h)/Math.max(m-h,1),Math.min(Math.max(F,0),1)),w=180-180*$,C=$>0?MC(60,60,55,180,w):null,x=$<1?MC(60,60,55,w,0):null,S=FC(60,60,55,180),E=FC(60,60,55,0),T=c??(i===kC.GoodAgainstBad?v.v2.colors.green[500]:v.v2.colors.purple[400]),O=u??(i===kC.GoodAgainstBad?v.v2.colors.red[500]:v.v2.colors.silver[500]),[N,A]=s(null),k=e=>`${f}${e}${y}`,I=i===kC.GoodAgainstBad?Math.max(m-g,0):m,_="primary"===N?d:"secondary"===N?p:"",D="primary"===N?k(g):"secondary"===N?k(I):"",R=()=>A("primary"),L=()=>A("secondary"),P=()=>A(null);var F;return e(IC,{children:[e(_C,{$width:o,children:[t(Lv,{keepAlive:!0,fullWidth:!0,title:_,text:D,children:e(DC,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[C&&t("path",{d:C,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:1===$?"round":"butt",onMouseEnter:R,onMouseLeave:P}),x&&t("path",{d:x,fill:"none",stroke:O,strokeWidth:10,strokeLinecap:0===$?"round":"butt",onMouseEnter:L,onMouseLeave:P}),$>0&&t("circle",{cx:S.x,cy:S.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:P}),$<1&&t("circle",{cx:E.x,cy:E.y,r:5,fill:O,onMouseEnter:L,onMouseLeave:P})]})}),n&&e(RC,{children:[t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],align:"center",children:n}),t(Za,{size:Ka.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),e(od,{$gap:7,children:[e(id,{$gap:8,$alignItems:"center",children:[t(LC,{$color:T}),t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],nowrap:!0,children:d})]}),e(id,{$gap:8,$alignItems:"center",children:[t(LC,{$color:O}),t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},zC=f(id)`
1121
+ `,PC=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:""}},FC=(e,t,i,o)=>{const n=o*Math.PI/180;return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}},MC=(e,t,i,o,n)=>{const r=FC(e,t,i,o),a=FC(e,t,i,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${r.x} ${r.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},UC=({variant:i=AC.CurrentOfMax,gaugeWidth:o,title:n,min:r=0,max:a,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=PC(r),{number:m}=PC(a),{number:g,prefix:f,suffix:y}=PC(l),v=b(),$=(F=(g-h)/Math.max(m-h,1),Math.min(Math.max(F,0),1)),w=180-180*$,C=$>0?MC(60,60,55,180,w):null,x=$<1?MC(60,60,55,w,0):null,S=FC(60,60,55,180),E=FC(60,60,55,0),T=c??(i===AC.GoodAgainstBad?v.v2.colors.green[500]:v.v2.colors.purple[400]),O=u??(i===AC.GoodAgainstBad?v.v2.colors.red[500]:v.v2.colors.silver[500]),[N,k]=s(null),A=e=>`${f}${e}${y}`,I=i===AC.GoodAgainstBad?Math.max(m-g,0):m,_="primary"===N?d:"secondary"===N?p:"",D="primary"===N?A(g):"secondary"===N?A(I):"",R=()=>k("primary"),L=()=>k("secondary"),P=()=>k(null);var F;return e(IC,{children:[e(_C,{$width:o,children:[t(Lv,{keepAlive:!0,fullWidth:!0,title:_,text:D,children:e(DC,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[C&&t("path",{d:C,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:1===$?"round":"butt",onMouseEnter:R,onMouseLeave:P}),x&&t("path",{d:x,fill:"none",stroke:O,strokeWidth:10,strokeLinecap:0===$?"round":"butt",onMouseEnter:L,onMouseLeave:P}),$>0&&t("circle",{cx:S.x,cy:S.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:P}),$<1&&t("circle",{cx:E.x,cy:E.y,r:5,fill:O,onMouseEnter:L,onMouseLeave:P})]})}),n&&e(RC,{children:[t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],align:"center",children:n}),t(Za,{size:Ka.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),e(od,{$gap:7,children:[e(id,{$gap:8,$alignItems:"center",children:[t(LC,{$color:T}),t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],nowrap:!0,children:d})]}),e(id,{$gap:8,$alignItems:"center",children:[t(LC,{$color:O}),t(Za,{size:Ka.XXXS,color:v.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},zC=f(id)`
1122
1122
  width: 100%;
1123
1123
  padding: 8px 12px;
1124
1124
  border-radius: 6px;
@@ -1228,7 +1228,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1228
1228
  flex-shrink: 0;
1229
1229
  width: 24px;
1230
1230
  height: 24px;
1231
- `,ax=({status:i,title:o,subTitle:n,details:r,actionDetails:a,badgeLabel:s,loading:l,actionButtons:d,isExtended:c=!1,toggleExtended:p,invertColors:u=!1,hideIcon:h=!1,hideBackground:m=!1,width:g,slim:f=!1})=>{const y=b(),v=gd(i,y),$=i===Di.Unknown,w=i===Di.Disabled,C=i===Di.Loading||l,x=[Di.Error,Di.Warning,Di.Success].includes(i),S=gl(y,i,w?u?"400":"700":$?"600":u?"300":"500"),E=w?y.v2.colors.grey[400]:u?y.v2.colors.white[500]:x?y.v2.colors.black[500]:y.v2.colors.white[500],T=u&&!$?S:E,O=!u||$||w?"rgba(0, 0, 0, 0.13)":gl(y,i,"800"),N=w?y.v2.colors.grey[900]:u||$?y.v2.colors.silver[800]:S,A=w?y.v2.colors.grey[800]:u||$?y.v2.colors.silver[700]:gl(y,i,"600");return e(tx,{$width:g,$withHover:!!p,$isExtended:c,$hideBackground:m,$backgroundColor:N,$hoverBackgroundColor:A,$slim:f,onClick:p,children:[!h&&t(ix,{$backgroundColor:O,$slim:f,children:C?t(md,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:T})}),e(ox,{$gap:4,$justifyContent:"center",$slim:f,children:[e(id,{$gap:10,$alignItems:"center",children:[t(Za,{size:f?Ka.XS:Ka.S,weight:500,color:T,children:o}),s&&t(I$,{label:s,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Ka.XXXS})]}),n&&t(Za,{size:Ka.XXXS,color:E,children:n}),r]}),(!!d?.length||a)&&e(nx,{$gap:8,$alignItems:"flex-end",$justifyContent:a?"space-between":"center",children:[!!d?.length&&t(id,{$gap:8,children:d.map(e=>t(Uv,{...e,variant:Pv.Secondary,size:Fv.S},e["data-id"]??e.label))}),a]}),p&&t(rx,{children:t(Gv,{value:c,children:t(Qv,{size:24,fill:E})})})]})},sx=f.div`
1231
+ `,ax=({status:i,title:o,subTitle:n,details:r,actionDetails:a,badgeLabel:s,loading:l,actionButtons:d,isExtended:c=!1,toggleExtended:p,invertColors:u=!1,hideIcon:h=!1,hideBackground:m=!1,width:g,slim:f=!1})=>{const y=b(),v=gd(i,y),$=i===Di.Unknown,w=i===Di.Disabled,C=i===Di.Loading||l,x=[Di.Error,Di.Warning,Di.Success].includes(i),S=gl(y,i,w?u?"400":"700":$?"600":u?"300":"500"),E=w?y.v2.colors.grey[400]:u?y.v2.colors.white[500]:x?y.v2.colors.black[500]:y.v2.colors.white[500],T=u&&!$?S:E,O=!u||$||w?"rgba(0, 0, 0, 0.13)":gl(y,i,"800"),N=w?y.v2.colors.grey[900]:u||$?y.v2.colors.silver[800]:S,k=w?y.v2.colors.grey[800]:u||$?y.v2.colors.silver[700]:gl(y,i,"600");return e(tx,{$width:g,$withHover:!!p,$isExtended:c,$hideBackground:m,$backgroundColor:N,$hoverBackgroundColor:k,$slim:f,onClick:p,children:[!h&&t(ix,{$backgroundColor:O,$slim:f,children:C?t(md,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:T})}),e(ox,{$gap:4,$justifyContent:"center",$slim:f,children:[e(id,{$gap:10,$alignItems:"center",children:[t(Za,{size:f?Ka.XS:Ka.S,weight:500,color:T,children:o}),s&&t(I$,{label:s,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Ka.XXXS})]}),n&&t(Za,{size:Ka.XXXS,color:E,children:n}),r]}),(!!d?.length||a)&&e(nx,{$gap:8,$alignItems:"flex-end",$justifyContent:a?"space-between":"center",children:[!!d?.length&&t(id,{$gap:8,children:d.map(e=>t(Uv,{...e,variant:Pv.Secondary,size:Fv.S},e["data-id"]??e.label))}),a]}),p&&t(rx,{children:t(Gv,{value:c,children:t(Qv,{size:24,fill:E})})})]})},sx=f.div`
1232
1232
  display: flex;
1233
1233
  flex-direction: column;
1234
1234
  width: 100%;
@@ -1324,15 +1324,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1324
1324
  height: 36px;
1325
1325
  border-radius: 8px;
1326
1326
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1327
- `,Ax=f.img`
1327
+ `,kx=f.img`
1328
1328
  width: 24px;
1329
1329
  height: 24px;
1330
- `,kx=f.div`
1330
+ `,Ax=f.div`
1331
1331
  display: flex;
1332
1332
  align-items: center;
1333
1333
  gap: 16px;
1334
1334
  flex-shrink: 0;
1335
- `,Ix=({icon:i,iconSrc:o,title:n,titleBadges:r,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:p})=>e(Tx,{children:[e(Ox,{children:[i?t(Nx,{children:t(i,{size:24})}):o?t(Nx,{children:t(Ax,{src:o,alt:n||"icon"})}):null,(n||r?.length||a||s?.length)&&e(od,{$gap:6,children:[(n||r?.length)&&e(id,{$gap:16,children:[n&&t(Za,{size:Ka.S,weight:500,children:n}),r?.length&&t(id,{$gap:4,children:r?.map((e,i)=>t(I$,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(id,{$gap:16,children:[a&&t(Za,{color:Ya.Secondary,size:Ka.XXS,children:a}),s?.length&&t(id,{$gap:4,children:s?.map((e,i)=>t(A$,{...e},`${e.label}-${i}`))})]})]})]}),e(kx,{children:[l&&t($x,{...l}),d?.length?t(Ew,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Wt},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(Ex,{"data-id":"drawer-close",icon:Bt,size:xx.M,onClick:c,disabled:p})]})]}),_x=f.div`
1335
+ `,Ix=({icon:i,iconSrc:o,title:n,titleBadges:r,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:p})=>e(Tx,{children:[e(Ox,{children:[i?t(Nx,{children:t(i,{size:24})}):o?t(Nx,{children:t(kx,{src:o,alt:n||"icon"})}):null,(n||r?.length||a||s?.length)&&e(od,{$gap:6,children:[(n||r?.length)&&e(id,{$gap:16,children:[n&&t(Za,{size:Ka.S,weight:500,children:n}),r?.length&&t(id,{$gap:4,children:r?.map((e,i)=>t(I$,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(id,{$gap:16,children:[a&&t(Za,{color:Ya.Secondary,size:Ka.XXS,children:a}),s?.length&&t(id,{$gap:4,children:s?.map((e,i)=>t(k$,{...e},`${e.label}-${i}`))})]})]})]}),e(Ax,{children:[l&&t($x,{...l}),d?.length?t(Ew,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Wt},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(Ex,{"data-id":"drawer-close",icon:Bt,size:xx.M,onClick:c,disabled:p})]})]}),_x=f.div`
1336
1336
  position: relative;
1337
1337
  &.animated {
1338
1338
  overflow: hidden;
@@ -1554,7 +1554,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1554
1554
  min-width: 0;
1555
1555
  `,NS=f.div`
1556
1556
  padding-top: 24px;
1557
- `,AS=({columns:i,values:o,setValues:n,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:p,onTestRegex:u,limitFieldsPerRow:h})=>{const m=b(),g=i.find(e=>"segment"===e.componentType),f=g?.keyName,y=g?.options??[],v=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},$=g?.defaultValue||y[0]?.id||"",w=o.length?o:[v($)],C=(f?w[0]?.[f]:"")||$,x=(e,t,i)=>{n(w.map((o,n)=>n===e?{...o,[t]:i}:o))},S=()=>n([...w,v(C)]),E=y.find(e=>e.id===C);return e(od,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(dw,{label:s,tooltip:l,required:d}),g&&t(tw,{"data-id":`${a}-mode`,size:Y$.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||m.v2.colors.purple[500]})),selected:C,setSelected:e=>!c&&(e=>n([v(e)]))(String(e))}),e(od,{$gap:8,$width:"100%",children:[w.map((o,s)=>{const l=s===w.length-1,d=f?{...o,[f]:C}:o,g=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(d))),y=g.filter(e=>"radioGroup"===e.componentType),b=g.filter(e=>"radioGroup"!==e.componentType),$=g.find(e=>e.withRegexTester),T=((e,t)=>{const i=t||e.length||1,o=[];let n=[];const r=()=>{n.length&&(o.push(n),n=[])};return e.forEach(e=>{if(e.fullRow)return r(),void o.push([e]);n.push(e),n.length>=i&&r()}),r(),o})(b,h),O=E?.rowTitle?`${E.rowTitle} ${s+1}`:void 0;return e(TS,{"data-id":`${a}-card-${s}`,children:[e(id,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(od,{$gap:10,children:[O&&t(dw,{label:O}),y.map(e=>t(id,{$gap:24,children:(e.options??[]).map(i=>t(CS,{size:vS.L,label:i.label,value:String(o[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&x(s,e.keyName,i.id)},`${a}-card-${s}-${e.keyName}-${i.id}`))},`${a}-card-${s}-${e.keyName}`))]}),e(id,{$gap:4,$alignItems:"center",children:[$&&t(Uv,{"data-id":`${a}-card-${s}-test-regex`,label:"Test Regex",variant:Pv.Secondary,size:Fv.S,disabled:c||!String(o[$.keyName]??"").trim(),onClick:()=>u?.(String(o[$.keyName]??""))}),t(Uv,{"data-id":`${a}-card-${s}-delete`,leftIcon:c?Yt:()=>t(Yt,{fill:m.v2.colors.red[500]}),variant:Pv.Secondary,size:Fv.S,disabled:c,onClick:()=>(e=>{const t=w.filter((t,i)=>i!==e);n(t.length?t:[v(C)])})(s)}),l&&t(Uv,{"data-id":`${a}-card-${s}-add`,leftIcon:Mt,variant:Pv.Secondary,size:Fv.S,disabled:c,onClick:S})]})]}),T.map((i,n)=>t(id,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,n)=>{const l=((e,t)=>{let{label:i,placeholder:o,helpMessage:n}=e;if(e.copyByColumn){const r=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];r&&(i=r.label??i,o=r.placeholder??o,n=r.helpMessage??n)}return{label:i,placeholder:o,helpMessage:n}})(i,o);return e(r,{children:["arrow"===i.separator&&n>0&&t(NS,{children:t(Jt,{size:24,fill:m.v2.colors.silver[200]})}),t(OS,{children:t(nC,{name:`${a}-card-${s}-${i.keyName}`,label:l.label,placeholder:l.placeholder,helpMessage:l.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:o[i.keyName]??"",disabled:c,hasError:!!p,onChange:e=>x(s,i.keyName,e.target.value)})})]},`${a}-card-${s}-${i.keyName}`)})},`${a}-card-${s}-row-${n}`))]},`${a}-card-${s}`)}),t(cw,{errorMessage:p})]})]})},kS=f.div`
1557
+ `,kS=({columns:i,values:o,setValues:n,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:p,onTestRegex:u,limitFieldsPerRow:h})=>{const m=b(),g=i.find(e=>"segment"===e.componentType),f=g?.keyName,y=g?.options??[],v=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},$=g?.defaultValue||y[0]?.id||"",w=o.length?o:[v($)],C=(f?w[0]?.[f]:"")||$,x=(e,t,i)=>{n(w.map((o,n)=>n===e?{...o,[t]:i}:o))},S=()=>n([...w,v(C)]),E=y.find(e=>e.id===C);return e(od,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(dw,{label:s,tooltip:l,required:d}),g&&t(tw,{"data-id":`${a}-mode`,size:Y$.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||m.v2.colors.purple[500]})),selected:C,setSelected:e=>!c&&(e=>n([v(e)]))(String(e))}),e(od,{$gap:8,$width:"100%",children:[w.map((o,s)=>{const l=s===w.length-1,d=f?{...o,[f]:C}:o,g=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(d))),y=g.filter(e=>"radioGroup"===e.componentType),b=g.filter(e=>"radioGroup"!==e.componentType),$=g.find(e=>e.withRegexTester),T=((e,t)=>{const i=t||e.length||1,o=[];let n=[];const r=()=>{n.length&&(o.push(n),n=[])};return e.forEach(e=>{if(e.fullRow)return r(),void o.push([e]);n.push(e),n.length>=i&&r()}),r(),o})(b,h),O=E?.rowTitle?`${E.rowTitle} ${s+1}`:void 0;return e(TS,{"data-id":`${a}-card-${s}`,children:[e(id,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(od,{$gap:10,children:[O&&t(dw,{label:O}),y.map(e=>t(id,{$gap:24,children:(e.options??[]).map(i=>t(CS,{size:vS.L,label:i.label,value:String(o[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&x(s,e.keyName,i.id)},`${a}-card-${s}-${e.keyName}-${i.id}`))},`${a}-card-${s}-${e.keyName}`))]}),e(id,{$gap:4,$alignItems:"center",children:[$&&t(Uv,{"data-id":`${a}-card-${s}-test-regex`,label:"Test Regex",variant:Pv.Secondary,size:Fv.S,disabled:c||!String(o[$.keyName]??"").trim(),onClick:()=>u?.(String(o[$.keyName]??""))}),t(Uv,{"data-id":`${a}-card-${s}-delete`,leftIcon:c?Yt:()=>t(Yt,{fill:m.v2.colors.red[500]}),variant:Pv.Secondary,size:Fv.S,disabled:c,onClick:()=>(e=>{const t=w.filter((t,i)=>i!==e);n(t.length?t:[v(C)])})(s)}),l&&t(Uv,{"data-id":`${a}-card-${s}-add`,leftIcon:Mt,variant:Pv.Secondary,size:Fv.S,disabled:c,onClick:S})]})]}),T.map((i,n)=>t(id,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,n)=>{const l=((e,t)=>{let{label:i,placeholder:o,helpMessage:n}=e;if(e.copyByColumn){const r=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];r&&(i=r.label??i,o=r.placeholder??o,n=r.helpMessage??n)}return{label:i,placeholder:o,helpMessage:n}})(i,o);return e(r,{children:["arrow"===i.separator&&n>0&&t(NS,{children:t(Jt,{size:24,fill:m.v2.colors.silver[200]})}),t(OS,{children:t(nC,{name:`${a}-card-${s}-${i.keyName}`,label:l.label,placeholder:l.placeholder,helpMessage:l.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:o[i.keyName]??"",disabled:c,hasError:!!p,onChange:e=>x(s,i.keyName,e.target.value)})})]},`${a}-card-${s}-${i.keyName}`)})},`${a}-card-${s}-row-${n}`))]},`${a}-card-${s}`)}),t(cw,{errorMessage:p})]})]})},AS=f.div`
1558
1558
  width: 100%;
1559
1559
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1560
1560
  border-radius: 8px;
@@ -1570,7 +1570,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1570
1570
  width: 72px;
1571
1571
  vertical-align: ${({$center:e})=>e?"middle":"top"};
1572
1572
  padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1573
- `,RS=({columns:i,values:o,setValues:n,name:a,label:s,tooltip:l,badge:d,required:p,disabled:u,errorMessage:h,warnMessage:m,helpMessage:g,limitFieldsPerRow:f,onTestRegex:y})=>{const v=b(),$=c(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),w=(e,t,i)=>{const r=o.length?Ts(o):[Ts($)];r[i][e]=t,n(r)},C=o.length?o:[$];return t(kS,{children:e(od,{"data-id":a,$gap:0,children:[t(dw,{label:s,tooltip:l,required:p,badge:d}),t(IS,{children:t("tbody",{children:C.map((a,s)=>{const l=s===C.length-1,d=((e,t)=>{const i=t||e.length||1,o=[];let n=[];const r=()=>{n.length&&(o.push(n),n=[])};return e.forEach(e=>{if(e.fullRow)return r(),void o.push([e]);n.push(e),n.length>=i&&r()}),r(),o})(i.filter(e=>!e.renderCondition||e.renderCondition(a)),f),c=d.map(e=>e.some(e=>!!e.label)),p=d.reduce((e,t)=>Math.max(e,t.length),1),m=1===d[0]?.length&&!!d[0][0]?.fullRow;return e(r,{children:[d.length>1&&s>0?t("tr",{children:t(_S,{colSpan:p+1})}):null,d.map((r,d)=>{const g=c[d],f=g?22:0;return e("tr",{children:[r.map((i,o)=>{if(i.renderCondition&&!i.renderCondition(a))return null;const n=o===r.length-1,l=0===d&&n?p-r.length+1:1;return t(_S,{colSpan:l>1?l:void 0,children:e(od,{$gap:6,children:[g&&(i.label?t(dw,{label:i.label,tooltip:i.tooltip}):t(dw,{label:"\\u00A0"})),t(ES,{col:i,colIdx:o,row:a,rowIdx:s,rowsLength:C.length,handleChange:w,disabled:u,errorMessage:h,hideLabel:g,onTestRegex:y})]})},`input-table-row-${s}-col-${d}-${o}`)}),0===d&&t(DS,{$topOffset:f,$center:m,children:e(id,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[l&&t(Uv,{leftIcon:Mt,variant:Pv.Secondary,size:Fv.S,disabled:u,onClick:()=>(()=>{const e=o.length?Ts(o):[Ts($)],t=Ts($),r=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=r?.[e.keyName]&&""!==r[e.keyName]&&(t[e.keyName]=Ts(r[e.keyName]))}),e.push(t),n(e)})()}),t(Uv,{leftIcon:u?Yt:()=>t(Yt,{fill:v.v2.colors.red[500]}),variant:Pv.Secondary,size:Fv.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,i)=>i!==e);t.length||t.push(Ts($)),n(t)})(s)})]})})]},`input-table-matrix-${s}-${d}`)})]},`input-table-row-${s}`)})})}),t(cw,{errorMessage:h,warnMessage:m,helpMessage:g})]})})};var LS;(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"})(LS||(LS={}));const PS=f.div`
1573
+ `,RS=({columns:i,values:o,setValues:n,name:a,label:s,tooltip:l,badge:d,required:p,disabled:u,errorMessage:h,warnMessage:m,helpMessage:g,limitFieldsPerRow:f,onTestRegex:y})=>{const v=b(),$=c(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),w=(e,t,i)=>{const r=o.length?Ts(o):[Ts($)];r[i][e]=t,n(r)},C=o.length?o:[$];return t(AS,{children:e(od,{"data-id":a,$gap:0,children:[t(dw,{label:s,tooltip:l,required:p,badge:d}),t(IS,{children:t("tbody",{children:C.map((a,s)=>{const l=s===C.length-1,d=((e,t)=>{const i=t||e.length||1,o=[];let n=[];const r=()=>{n.length&&(o.push(n),n=[])};return e.forEach(e=>{if(e.fullRow)return r(),void o.push([e]);n.push(e),n.length>=i&&r()}),r(),o})(i.filter(e=>!e.renderCondition||e.renderCondition(a)),f),c=d.map(e=>e.some(e=>!!e.label)),p=d.reduce((e,t)=>Math.max(e,t.length),1),m=1===d[0]?.length&&!!d[0][0]?.fullRow;return e(r,{children:[d.length>1&&s>0?t("tr",{children:t(_S,{colSpan:p+1})}):null,d.map((r,d)=>{const g=c[d],f=g?22:0;return e("tr",{children:[r.map((i,o)=>{if(i.renderCondition&&!i.renderCondition(a))return null;const n=o===r.length-1,l=0===d&&n?p-r.length+1:1;return t(_S,{colSpan:l>1?l:void 0,children:e(od,{$gap:6,children:[g&&(i.label?t(dw,{label:i.label,tooltip:i.tooltip}):t(dw,{label:"\\u00A0"})),t(ES,{col:i,colIdx:o,row:a,rowIdx:s,rowsLength:C.length,handleChange:w,disabled:u,errorMessage:h,hideLabel:g,onTestRegex:y})]})},`input-table-row-${s}-col-${d}-${o}`)}),0===d&&t(DS,{$topOffset:f,$center:m,children:e(id,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[l&&t(Uv,{leftIcon:Mt,variant:Pv.Secondary,size:Fv.S,disabled:u,onClick:()=>(()=>{const e=o.length?Ts(o):[Ts($)],t=Ts($),r=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=r?.[e.keyName]&&""!==r[e.keyName]&&(t[e.keyName]=Ts(r[e.keyName]))}),e.push(t),n(e)})()}),t(Uv,{leftIcon:u?Yt:()=>t(Yt,{fill:v.v2.colors.red[500]}),variant:Pv.Secondary,size:Fv.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,i)=>i!==e);t.length||t.push(Ts($)),n(t)})(s)})]})})]},`input-table-matrix-${s}-${d}`)})]},`input-table-row-${s}`)})})}),t(cw,{errorMessage:h,warnMessage:m,helpMessage:g})]})})};var LS;(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"})(LS||(LS={}));const PS=f.div`
1574
1574
  display: flex;
1575
1575
  align-items: center;
1576
1576
  justify-content: space-between;
@@ -1827,10 +1827,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1827
1827
  `,fE=({size:i=5,maxWidth:o,maxHeight:n})=>t(pE,{$maxWidth:o,$maxHeight:n,children:[...Array(i)].map((i,o)=>e(uE,{children:[t(hE,{}),e(mE,{children:[t(gE,{$width:"80%"}),t(gE,{$width:"100%"})]})]},o))}),yE=({currentStep:i,data:o,gap:n=12})=>t(od,{$gap:n,children:o.map(o=>{const n=o.step<i,r=o.step===i;return e(id,{$gap:8,children:[n||o.forceDoneBadge?t(I$,{status:Di.Success,label:"",leftIcon:Ut}):t(I$,{status:Di.Default,label:o.step.toString()}),t(Za,{size:r?Ka.M:Ka.XS,weight:r?500:400,opacity:r?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var bE;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(bE||(bE={}));const vE=f.div`
1828
1828
  ${({$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 "}
1829
1829
  width: 100%;
1830
+ /* Without this the table's min-content width propagates up the flex chain and
1831
+ * widens the page instead of scrolling inside the container. */
1832
+ min-width: 0;
1830
1833
  display: flex;
1831
1834
  flex-direction: column;
1832
1835
  `,$E=f.div`
1833
1836
  width: 100%;
1837
+ /* Grow to the columns' combined width when that exceeds the Container, so the virtualized
1838
+ * body (sized 100% of this element) lays rows out at the full table width. Without it the
1839
+ * body clips its right-hand columns while only the header scrolls. Intrinsic sizing can't
1840
+ * be used here: virtua positions rows absolutely, so they contribute no min-content width. */
1841
+ min-width: ${({$contentMinWidth:e})=>e?`${e}px`:void 0};
1834
1842
  flex: 1;
1835
1843
  min-height: 0;
1836
1844
  display: flex;
@@ -1860,17 +1868,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1860
1868
  ${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
1861
1869
  `,TE=f.div`
1862
1870
  position: relative;
1863
- /* Measured columns: pin to content width. Last column omits max so it can
1864
- * stretch past the measured minimum (LAST_COLUMN_STRETCH). Flex (non-measured)
1865
- * columns use min-width: 0 so long labels can shrink/truncate inside the row. */
1866
- min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
1867
- max-width: ${({$resolvedWidth:e,$isLast:t})=>null==e||t?void 0:`${e}px`};
1868
- flex: ${({$autoWidth:e,$resolvedWidth:t,$isLast:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
1869
-
1870
- /* LAST_COLUMN_STRETCH: last data column always grows into leftover width. */
1871
- ${({$isLast:e})=>e&&y`
1872
- flex-grow: 1;
1873
- `}
1871
+ /* Every column's width starts at its floor: measured content width, or for flex
1872
+ * (non-measured) columns the measured header width or the column's own minWidth.
1873
+ * Leftover row width is then shared out in proportion to those floors, so slack
1874
+ * spreads across the table instead of pooling in the last column. Only flex
1875
+ * columns shrink, down to their floor — past that the Container scrolls. */
1876
+ min-width: ${({$resolvedWidth:e,$autoWidth:t,$floorWidth:i})=>null!=e?`${e}px`:t?"auto":null!=i?`${i}px`:0};
1877
+ flex: ${({$autoWidth:e,$resolvedWidth:t,$floorWidth:i})=>{if(null!=t)return`${t} 0 ${t}px`;if(e)return"0 0 auto";const o=i??0;return`${o||1} 1 ${o}px`}};
1874
1878
 
1875
1879
  padding: 18px 24px;
1876
1880
  border: 1px solid transparent;
@@ -1896,15 +1900,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1896
1900
  height: 18px;
1897
1901
  background: ${({theme:e})=>e.v2.colors.silver[500]};
1898
1902
  `,NE=f.div`
1899
- /* See Th — measured content width; last stretches; flex columns shrink. */
1900
- min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
1901
- max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
1902
- flex: ${({$autoWidth:e,$resolvedWidth:t,$isLastCell:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
1903
-
1904
- /* LAST_COLUMN_STRETCH: only the last data column grows into leftover row width. */
1905
- ${({$isLastCell:e})=>e&&y`
1906
- flex-grow: 1;
1907
- `}
1903
+ /* See Th — floors from measurement, leftover width shared in proportion to them. */
1904
+ min-width: ${({$resolvedWidth:e,$autoWidth:t,$floorWidth:i})=>null!=e?`${e}px`:t?"auto":null!=i?`${i}px`:0};
1905
+ flex: ${({$autoWidth:e,$resolvedWidth:t,$floorWidth:i})=>{if(null!=t)return`${t} 0 ${t}px`;if(e)return"0 0 auto";const o=i??0;return`${o||1} 1 ${o}px`}};
1908
1906
 
1909
1907
  /* Visible while measuring; then clip/scroll when content exceeds the cell.
1910
1908
  * Flex (non-measured) columns use hidden so TruncatableTypography can ellipsis. */
@@ -1930,7 +1928,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1930
1928
  border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
1931
1929
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1932
1930
  `;default:return""}}}
1933
- `,AE=f.div`
1931
+ `,kE=f.div`
1934
1932
  /* Off-screen — must not contribute to Container scrollWidth. */
1935
1933
  position: fixed;
1936
1934
  top: 0;
@@ -1943,7 +1941,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1943
1941
  align-items: flex-start;
1944
1942
  width: max-content;
1945
1943
  white-space: nowrap;
1946
- `,kE=f.div`
1944
+ `,AE=f.div`
1947
1945
  display: inline-flex;
1948
1946
  align-items: center;
1949
1947
  padding: 18px 24px;
@@ -1969,7 +1967,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
1969
1967
  gap: 4px;
1970
1968
  text-align: ${({$textAlign:e})=>e||"left"};
1971
1969
  min-width: 0;
1972
- `,RE=({variant:o,columns:n,row:r,rowIdx:a,rowCount:l,autoWidthColumnKeys:d,resolvedColumnWidths:c,getRowActions:p,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:h,withCheckboxes:m,activeRowId:g,expandedRowId:f,onToggleExpand:y,expandedMaxHeight:b})=>{const[v,$]=s(!1),{cells:w,onClick:C,isSelected:x=!1,onSelect:S,onDeselect:E,hideCheckbox:T,checkboxDisabled:O,checkboxTooltip:N,expandedContent:A}=r,k=r.id??String(a),I=r["data-id"],_=null!=A,D=_&&f===k,R=null!=g&&r.id===g,L=p(r),P=a===l-1,F=_||!!C,M=()=>{_&&y?.(k),C?.()},U=(e,t)=>({$isLastRow:P&&!D,$isFirstCell:e,$isLastCell:t,$selected:x,$highlighted:R,$withClick:F,onClick:M,$hovered:F&&v}),z=D&&null!=A?"function"==typeof A?A({maxHeight:b}):A:null,B=L.length>0?t(nS,{isOpen:v,actions:L,positionRight:u,positionLeft:h}):null,j=e(i,{children:[m&&t(NE,{$variant:o,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!T&&(N?t(Lv,{text:N,children:t(mw,{value:x,disabled:O,onChange:()=>x?E?.():S?.()})}):t(mw,{value:x,disabled:O,onChange:()=>x?E?.():S?.()}))},"checkbox-column"),n.map(({key:i,textAlign:r},s)=>{const l=w.find(e=>e.key===i),p=0===s&&!m,u=s===n.length-1,h=0===s,g="right"===r?"flex-end":"center"===r?"center":"flex-start",f=d.has(i),y=l?.component?l.component():t(_w,{size:Ka.XXS,align:r,nowrap:!0,fullWidth:!f,children:l?.rawValue||"-"}),b=e(id,{$width:"100%",$gap:_&&h?8:0,$justifyContent:g,style:{minWidth:0},children:[_&&h?t(Yv,{from:Pt,to:Lt,active:D}):null,y]});return t(NE,{$variant:o,$index:a,$autoWidth:d.has(i),$resolvedWidth:c[i],...U(p,u),children:b},`row-${a}-cell-${s}`)})]}),H={onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1)};return _?e(SE,{"data-table-row-index":a,"data-id":I,children:[e(xE,{...H,children:[j,B]}),null!=z&&e(i,{children:[t(EE,{$maxHeight:b,children:z}),!P&&t(hx,{margin:"0"})]})]}):e(xE,{"data-table-row-index":a,"data-id":I,...H,children:[j,B]})},LE=({variant:e,columns:o,rows:n,autoWidthColumnKeys:r,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:p,activeRowId:u,scrollToIndex:h,scrollSignal:m,useVirtua:g=!0,expandedRowId:f,onToggleExpand:y,expandedMaxHeight:b})=>{const v=c(()=>n.map((i,c)=>t(RE,{variant:e,columns:o,row:i,rowIdx:c,rowCount:n.length,autoWidthColumnKeys:r,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:p,activeRowId:u,expandedRowId:f,onToggleExpand:y,expandedMaxHeight:b},`row-${c}`)),[n,u,s,l,d,p,o,r,a,f,y,b,e]);return g?t(iE,{gap:e===bE.Pretty?8:0,elements:v,scrollToIndex:h,scrollSignal:m}):t(i,{children:v})},PE=({columnKey:e,sortDirection:i,sortByKey:o,onSort:n})=>{const r=b(),a=o===e?r.v2.colors.white[500]:r.v2.colors.grey[400],s=i===Ci.Ascending?0:180;return t(Uv,{variant:Pv.Text,size:Fv.S,leftIcon:()=>t(Vt,{fill:a,rotate:s}),onClick:()=>n(e)})},FE=({columnKey:e,filters:i,onFilter:o,rowsUnfiltered:n,filterOverride:r})=>{const a=b(),s=i[e]?.length?a.v2.colors.white[500]:a.v2.colors.grey[400],l=c(()=>r?r.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(n.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})),[n,e,r]);return t(Ew,{items:l,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Zt,{fill:s,...e})}})},ME=({variant:i,backgroundColor:o,columns:n,rowsUnfiltered:r,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:p,onFilter:u,withCheckboxes:h,partiallySelected:m,allSelected:g,onSelectAll:f})=>e(xE,{children:[h&&t(TE,{$variant:i,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(mw,{partiallyChecked:m&&!g,value:g||!1,onChange:f})},"checkbox-column"),n.map(({key:m,label:g,tooltip:f,noSort:y,noFilter:b,filterOverride:v,textAlign:$},w)=>{const C=0===w&&!h,x=w===n.length-1,S=f?t(Za,{size:Ka.XS,align:$,nowrap:!0,children:g}):t(_w,{size:Ka.XS,align:$,nowrap:!0,fullWidth:!1,children:g});return e(TE,{$variant:i,$backgroundColor:o,$isFirst:C,$isLast:x,$autoWidth:a.has(m),$resolvedWidth:s[m],children:[e(DE,{$textAlign:$,children:[f?t(Lv,{text:f,children:S}):S,(!y||!b)&&e(_E,{children:[!y&&t(PE,{columnKey:m,sortDirection:l,sortByKey:d,onSort:c}),!b&&t(FE,{columnKey:m,filters:p,onFilter:u,rowsUnfiltered:r,filterOverride:v})]})]}),!x&&i===bE.Data&&t(OE,{})]},`column-${m}`)})]}),UE=()=>{},zE={},BE=[],jE=e=>[],HE=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:a,hideHeader:l=!1,isLoading:u,noDataProps:h,columns:g,rows:f,getRowActions:y,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:$,filters:w,onFiltersChange:C,activeRowId:x,scrollSignal:S,expandedRowId:E,onExpandedRowIdChange:T})=>{const[O,N]=s(Ci.Ascending),[A,k]=s(""),[I,_]=s({}),[D,R]=s(null),L=w??I,P=void 0!==E,F=P?E:D,M=d(e=>{k(e),N(e=>e===Ci.Ascending?Ci.Descending:Ci.Ascending)},[]),U=d((e,t)=>{const i={...L,[e]:t};C&&C(i),void 0===w&&_(i)},[L,C,w]),z=c(()=>{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(A?[...f].sort((t,o)=>{const n=i(e(t,A)),r=i(e(o,A));return(O===Ci.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(n,r)}):f).filter(t=>{for(const[i,o]of Object.entries(L)){if(!o.length)continue;const n=g.find(e=>e.key===i)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1;continue}const r=String(e(t,i)??"");if(!o.map(String).includes(r))return!1}return!0})},[f,A,O,L,g]),B=c(()=>null==x?-1:z.findIndex(e=>e.id===x),[z,x]),j=!!$&&z.some(e=>!e.hideCheckbox),{partiallySelected:H,allSelected:W}=c(()=>{const e=z.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)}},[z]),X=c(()=>{const e=new Set,t=g[g.length-1]?.key;for(const i of g)i.key!==t&&!1!==i.autoWidth&&e.add(i.key);return e},[g]),G=p(null),[V,K]=s({}),Y=c(()=>{if(0===X.size)return[];const i=g[0]?.key,n=f.some(e=>null!=e.expandedContent);return g.filter(e=>X.has(e.key)).map(r=>{const a=[e(IE,{children:[t(Za,{size:Ka.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(_E,{children:[!r.noSort&&t(PE,{columnKey:r.key,sortDirection:Ci.Ascending,sortByKey:"",onSort:UE}),!r.noFilter&&t(FE,{columnKey:r.key,filters:zE,onFilter:UE,rowsUnfiltered:BE,filterOverride:r.filterOverride})]})]},`mw-${r.key}-header`)],s=n&&r.key===i;return f.forEach((i,n)=>{const l=i.cells.find(e=>e.key===r.key);if(!l)return;const d=l.component?l.component():t(Za,{size:Ka.XS,children:l.rawValue||"-"});a.push(s?e(id,{$gap:8,children:[t(Pt,{}),d]},`mw-${r.key}-${n}`):t(o.Fragment,{children:d},`mw-${r.key}-${n}`))}),{key:r.key,nodes:a}})},[g,f,X]);m(()=>{if(!G.current||0===X.size)return void K(e=>0===Object.keys(e).length?e:{});const e={};G.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const o=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||o>e[i])&&(e[i]=o)}),K(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[Y,X]);const q=p(null),[J,Q]=s(0),Z=z.some(e=>null!=e.expandedContent);m(()=>{if(!Z)return void Q(0);const e=q.current;if(!e)return;const t=()=>{const t=e.clientHeight;Q(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[Z,z.length]);const ee=d(e=>{const t=F===e?null:e;P||R(t),T?.(t)},[F,P,T]),te=Z&&J>0?`${J}px`:void 0,ie=r&&null!=n&&z.length>=100,oe=!r||ie;return e(vE,{$maxHeight:n,$fitContent:r,$virtualize:ie,children:[Y.length>0&&t(AE,{ref:G,"aria-hidden":!0,children:Y.flatMap(({key:e,nodes:i})=>i.map((i,o)=>t(kE,{"data-mw-key":e,children:i},`mw-${e}-${o}`)))}),e($E,{$variant:i,children:[!l&&t(wE,{children:t(ME,{variant:i,backgroundColor:a,columns:g,rowsUnfiltered:f,autoWidthColumnKeys:X,resolvedColumnWidths:V,sortDirection:O,sortByKey:A,onSort:M,filters:L,onFilter:U,withCheckboxes:j,partiallySelected:H,allSelected:W,onSelectAll:e=>{e?z.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):z.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),z.length?oe?t(CE,{ref:Z?q:void 0,children:t(LE,{variant:i,columns:g,rows:z,autoWidthColumnKeys:X,resolvedColumnWidths:V,getRowActions:y||jE,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:j,activeRowId:x,scrollToIndex:B,scrollSignal:S,useVirtua:!0,expandedRowId:F,onToggleExpand:ee,expandedMaxHeight:te})}):t(LE,{variant:i,columns:g,rows:z,autoWidthColumnKeys:X,resolvedColumnWidths:V,getRowActions:y||jE,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:j,activeRowId:x,scrollToIndex:B,scrollSignal:S,useVirtua:!1,expandedRowId:F,onToggleExpand:ee,expandedMaxHeight:te}):t(nd,{$fullHeight:!n,$height:n,$padding:"12px 0",children:u?t(fE,{size:3,maxHeight:n}):t(aw,{...h})})]})]})},WE=e=>e.join(" "),XE=h(null),GE=({code:e,onDone:i,children:o})=>{const{clickCopy:n,CopyButton:r,isCopied:a}=i$({onDone:i}),s=c(()=>WE(e),[e]),l=d(()=>n(s),[n,s]),p=c(()=>({copyValue:s,isCopied:a,copy:l,CopyButton:r}),[s,a,l,r]);return t(XE.Provider,{value:p,children:o})},VE=()=>u(XE),KE=f.div``,YE=f.div`
1970
+ `,RE=({variant:o,columns:n,row:r,rowIdx:a,rowCount:l,autoWidthColumnKeys:d,resolvedColumnWidths:c,headerFloorWidths:p,getRowActions:u,rowActionsPushRightPosition:h,rowActionsPushLeftPosition:m,withCheckboxes:g,activeRowId:f,expandedRowId:y,onToggleExpand:b,expandedMaxHeight:v})=>{const[$,w]=s(!1),{cells:C,onClick:x,isSelected:S=!1,onSelect:E,onDeselect:T,hideCheckbox:O,checkboxDisabled:N,checkboxTooltip:k,expandedContent:A}=r,I=r.id??String(a),_=r["data-id"],D=null!=A,R=D&&y===I,L=null!=f&&r.id===f,P=u(r),F=a===l-1,M=D||!!x,U=()=>{D&&b?.(I),x?.()},z=(e,t)=>({$isLastRow:F&&!R,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:L,$withClick:M,onClick:U,$hovered:M&&$}),B=R&&null!=A?"function"==typeof A?A({maxHeight:v}):A:null,j=P.length>0?t(nS,{isOpen:$,actions:P,positionRight:h,positionLeft:m}):null,H=e(i,{children:[g&&t(NE,{$variant:o,$index:a,style:{flex:"0 0 68px"},...z(!0,!1),children:!O&&(k?t(Lv,{text:k,children:t(mw,{value:S,disabled:N,onChange:()=>S?T?.():E?.()})}):t(mw,{value:S,disabled:N,onChange:()=>S?T?.():E?.()}))},"checkbox-column"),n.map(({key:i,textAlign:r},s)=>{const l=C.find(e=>e.key===i),u=0===s&&!g,h=s===n.length-1,m=0===s,f="right"===r?"flex-end":"center"===r?"center":"flex-start",y=d.has(i),b=l?.component?l.component():t(_w,{size:Ka.XXS,align:r,nowrap:!0,fullWidth:!y,children:l?.rawValue||"-"}),v=e(id,{$width:"100%",$gap:D&&m?8:0,$justifyContent:f,style:{minWidth:0},children:[D&&m?t(Yv,{from:Pt,to:Lt,active:R}):null,b]});return t(NE,{$variant:o,$index:a,$autoWidth:d.has(i),$resolvedWidth:c[i],$floorWidth:p[i],...z(u,h),children:v},`row-${a}-cell-${s}`)})]}),W={onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1)};return D?e(SE,{"data-table-row-index":a,"data-id":_,children:[e(xE,{...W,children:[H,j]}),null!=B&&e(i,{children:[t(EE,{$maxHeight:v,children:B}),!F&&t(hx,{margin:"0"})]})]}):e(xE,{"data-table-row-index":a,"data-id":_,...W,children:[H,j]})},LE=({variant:e,columns:o,rows:n,autoWidthColumnKeys:r,resolvedColumnWidths:a,headerFloorWidths:s,getRowActions:l,rowActionsPushRightPosition:d,rowActionsPushLeftPosition:p,withCheckboxes:u,activeRowId:h,scrollToIndex:m,scrollSignal:g,useVirtua:f=!0,expandedRowId:y,onToggleExpand:b,expandedMaxHeight:v})=>{const $=c(()=>n.map((i,c)=>t(RE,{variant:e,columns:o,row:i,rowIdx:c,rowCount:n.length,autoWidthColumnKeys:r,resolvedColumnWidths:a,headerFloorWidths:s,getRowActions:l,rowActionsPushRightPosition:d,rowActionsPushLeftPosition:p,withCheckboxes:u,activeRowId:h,expandedRowId:y,onToggleExpand:b,expandedMaxHeight:v},`row-${c}`)),[n,h,l,d,p,u,o,r,a,s,y,b,v,e]);return f?t(iE,{gap:e===bE.Pretty?8:0,elements:$,scrollToIndex:m,scrollSignal:g}):t(i,{children:$})},PE=({columnKey:e,sortDirection:i,sortByKey:o,onSort:n})=>{const r=b(),a=o===e?r.v2.colors.white[500]:r.v2.colors.grey[400],s=i===Ci.Ascending?0:180;return t(Uv,{variant:Pv.Text,size:Fv.S,leftIcon:()=>t(Vt,{fill:a,rotate:s}),onClick:()=>n(e)})},FE=({columnKey:e,filters:i,onFilter:o,rowsUnfiltered:n,filterOverride:r})=>{const a=b(),s=i[e]?.length?a.v2.colors.white[500]:a.v2.colors.grey[400],l=c(()=>r?r.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(n.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})),[n,e,r]);return t(Ew,{items:l,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Zt,{fill:s,...e})}})},ME=({variant:i,backgroundColor:o,columns:n,rowsUnfiltered:r,autoWidthColumnKeys:a,resolvedColumnWidths:s,headerFloorWidths:l,sortDirection:d,sortByKey:c,onSort:p,filters:u,onFilter:h,withCheckboxes:m,partiallySelected:g,allSelected:f,onSelectAll:y})=>e(xE,{children:[m&&t(TE,{$variant:i,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(mw,{partiallyChecked:g&&!f,value:f||!1,onChange:y})},"checkbox-column"),n.map(({key:g,label:f,tooltip:y,noSort:b,noFilter:v,filterOverride:$,textAlign:w},C)=>{const x=0===C&&!m,S=C===n.length-1,E=y?t(Za,{size:Ka.XS,align:w,nowrap:!0,children:f}):t(_w,{size:Ka.XS,align:w,nowrap:!0,fullWidth:!1,children:f});return e(TE,{$variant:i,$backgroundColor:o,$isFirst:x,$isLast:S,$autoWidth:a.has(g),$resolvedWidth:s[g],$floorWidth:l[g],children:[e(DE,{$textAlign:w,children:[y?t(Lv,{text:y,children:E}):E,(!b||!v)&&e(_E,{children:[!b&&t(PE,{columnKey:g,sortDirection:d,sortByKey:c,onSort:p}),!v&&t(FE,{columnKey:g,filters:u,onFilter:h,rowsUnfiltered:r,filterOverride:$})]})]}),!S&&i===bE.Data&&t(OE,{})]},`column-${g}`)})]}),UE=()=>{},zE={},BE=[],jE=e=>[],HE=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:a,hideHeader:l=!1,isLoading:u,noDataProps:h,columns:g,rows:f,getRowActions:y,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:$,filters:w,onFiltersChange:C,activeRowId:x,scrollSignal:S,expandedRowId:E,onExpandedRowIdChange:T})=>{const[O,N]=s(Ci.Ascending),[k,A]=s(""),[I,_]=s({}),[D,R]=s(null),L=w??I,P=void 0!==E,F=P?E:D,M=d(e=>{A(e),N(e=>e===Ci.Ascending?Ci.Descending:Ci.Ascending)},[]),U=d((e,t)=>{const i={...L,[e]:t};C&&C(i),void 0===w&&_(i)},[L,C,w]),z=c(()=>{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(k?[...f].sort((t,o)=>{const n=i(e(t,k)),r=i(e(o,k));return(O===Ci.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(n,r)}):f).filter(t=>{for(const[i,o]of Object.entries(L)){if(!o.length)continue;const n=g.find(e=>e.key===i)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1;continue}const r=String(e(t,i)??"");if(!o.map(String).includes(r))return!1}return!0})},[f,k,O,L,g]),B=c(()=>null==x?-1:z.findIndex(e=>e.id===x),[z,x]),j=!!$&&z.some(e=>!e.hideCheckbox),{partiallySelected:H,allSelected:W}=c(()=>{const e=z.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)}},[z]),X=c(()=>{const e=new Set,t=g[g.length-1]?.key;for(const i of g)i.key!==t&&!1!==i.autoWidth&&e.add(i.key);return e},[g]),G=p(null),[V,K]=s({}),[Y,q]=s({}),J=d(i=>e(IE,{children:[t(Za,{size:Ka.XS,align:i.textAlign,nowrap:!0,children:i.label}),(!i.noSort||!i.noFilter)&&e(_E,{children:[!i.noSort&&t(PE,{columnKey:i.key,sortDirection:Ci.Ascending,sortByKey:"",onSort:UE}),!i.noFilter&&t(FE,{columnKey:i.key,filters:zE,onFilter:UE,rowsUnfiltered:BE,filterOverride:i.filterOverride})]})]},`mw-${i.key}-header`),[]),Q=c(()=>{if(0===X.size)return[];const i=g[0]?.key,n=f.some(e=>null!=e.expandedContent);return g.filter(e=>X.has(e.key)).map(r=>{const a=[J(r)],s=n&&r.key===i;return f.forEach((i,n)=>{const l=i.cells.find(e=>e.key===r.key);if(!l)return;const d=l.component?l.component():t(Za,{size:Ka.XS,children:l.rawValue||"-"});a.push(s?e(id,{$gap:8,children:[t(Pt,{}),d]},`mw-${r.key}-${n}`):t(o.Fragment,{children:d},`mw-${r.key}-${n}`))}),{key:r.key,nodes:a}})},[g,f,X,J]),Z=c(()=>g.filter(e=>!X.has(e.key)).map(e=>({key:e.key,node:l?null:J(e)})),[g,l,X,J]);m(()=>{if(!G.current||0===X.size)return void K(e=>0===Object.keys(e).length?e:{});const e={};G.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const o=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||o>e[i])&&(e[i]=o)}),K(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[Q,X]),m(()=>{if(!G.current||0===Z.length)return void q(e=>0===Object.keys(e).length?e:{});const e={};G.current.querySelectorAll("[data-mw-floor-key]").forEach(t=>{const i=t.dataset.mwFloorKey;i&&(e[i]=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth)))}),q(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[Z]);const ee=c(()=>{const e={...Y};for(const t of g)null!=t.minWidth&&(e[t.key]=Math.max(e[t.key]??0,t.minWidth));return e},[Y,g]),te=c(()=>{let e=$?68:0;for(const t of g)e+=V[t.key]??ee[t.key]??0;return e},[g,V,ee,$]),ie=p(null),[oe,ne]=s(0),re=z.some(e=>null!=e.expandedContent);m(()=>{if(!re)return void ne(0);const e=ie.current;if(!e)return;const t=()=>{const t=e.clientHeight;ne(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[re,z.length]);const ae=d(e=>{const t=F===e?null:e;P||R(t),T?.(t)},[F,P,T]),se=re&&oe>0?`${oe}px`:void 0,le=r&&null!=n&&z.length>=100,de=!r||le;return e(vE,{$maxHeight:n,$fitContent:r,$virtualize:le,children:[(Q.length>0||Z.length>0)&&e(kE,{ref:G,"aria-hidden":!0,children:[Q.flatMap(({key:e,nodes:i})=>i.map((i,o)=>t(AE,{"data-mw-key":e,children:i},`mw-${e}-${o}`))),Z.map(({key:e,node:i})=>t(AE,{"data-mw-floor-key":e,children:i},`mf-${e}`))]}),e($E,{$variant:i,$contentMinWidth:te,children:[!l&&t(wE,{children:t(ME,{variant:i,backgroundColor:a,columns:g,rowsUnfiltered:f,autoWidthColumnKeys:X,resolvedColumnWidths:V,headerFloorWidths:ee,sortDirection:O,sortByKey:k,onSort:M,filters:L,onFilter:U,withCheckboxes:j,partiallySelected:H,allSelected:W,onSelectAll:e=>{e?z.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):z.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),z.length?de?t(CE,{ref:re?ie:void 0,children:t(LE,{variant:i,columns:g,rows:z,autoWidthColumnKeys:X,resolvedColumnWidths:V,headerFloorWidths:ee,getRowActions:y||jE,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:j,activeRowId:x,scrollToIndex:B,scrollSignal:S,useVirtua:!0,expandedRowId:F,onToggleExpand:ae,expandedMaxHeight:se})}):t(LE,{variant:i,columns:g,rows:z,autoWidthColumnKeys:X,resolvedColumnWidths:V,headerFloorWidths:ee,getRowActions:y||jE,rowActionsPushRightPosition:b,rowActionsPushLeftPosition:v,withCheckboxes:j,activeRowId:x,scrollToIndex:B,scrollSignal:S,useVirtua:!1,expandedRowId:F,onToggleExpand:ae,expandedMaxHeight:se}):t(nd,{$fullHeight:!n,$height:n,$padding:"12px 0",children:u?t(fE,{size:3,maxHeight:n}):t(aw,{...h})})]})]})},WE=e=>e.join(" "),XE=h(null),GE=({code:e,onDone:i,children:o})=>{const{clickCopy:n,CopyButton:r,isCopied:a}=i$({onDone:i}),s=c(()=>WE(e),[e]),l=d(()=>n(s),[n,s]),p=c(()=>({copyValue:s,isCopied:a,copy:l,CopyButton:r}),[s,a,l,r]);return t(XE.Provider,{value:p,children:o})},VE=()=>u(XE),KE=f.div``,YE=f.div`
1973
1971
  position: relative;
1974
1972
  display: flex;
1975
1973
  align-items: center;
@@ -2254,7 +2252,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
2254
2252
  box-sizing: border-box;
2255
2253
  border-left: 2px solid transparent;
2256
2254
  ${ET}
2257
- `,NT=e=>"placeholder"===e||"removed"===e,AT=(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];case"info":return e.v2.colors.blue[200]}},kT={danger:0,warning:1,info:2,success:3},IT=(e,t)=>{switch(t){case"added":return e.v2.colors.green[500];case"removed":return e.v2.colors.red[500];case"changed":return e.v2.colors.blue[300]}},_T=({diff:e})=>{const i=b(),o="added"===e?Mt:"removed"===e?Ft:void 0;return t(OT,{$diff:e,children:o&&e?t(o,{size:12,fill:IT(i,e)}):null})},DT=({row:i})=>{const o=b(),n=!!i.scope,r=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return n||i.scopePlaceholder||r.length?t(ST,{children:e(od,{$gap:0,children:[i.scopePlaceholder?t(_T,{diff:"added"}):n?t(TT,{title:i.scope??void 0,children:t(fS,{label:"Scope Attribute",value:i.scope})}):null,r.map((e,i)=>e.placeholder?t(_T,{diff:e.diff},`attr-placeholder-${i}`):t(TT,{$diff:e.diff,title:`${e.key??""}: ${e.value??""}`,children:t(fS,{label:e.key??"",value:e.value,labelPingColor:"changed"===e.diff?IT(o,e.diff):void 0,labelPingTooltip:"changed"===e.diff?"This attribute has a value that changed since the baseline trace.":void 0})},`${e.key}-${i}`))]})}):null},RT=({row:i,expanded:o,onToggle:n})=>{const r=b(),a=(e=>e??"default")(i.variant),s=!NT(a),l=i.depth??0,c=d(()=>{s&&n(i.id)},[s,n,i.id]);if(NT(a)){const e=i.badges?.[0]?.icon??void 0,o="removed"===a?r.v2.colors.red[500]:r.v2.colors.green[500];return t(mT,{type:"button",$variant:a,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(gT,{$depth:l,children:t(xT,{children:e?t(e,{size:12,fill:o}):null})})})}const p=(i.badges??[]).filter(e=>!!e?.label).map(e=>({...e,tone:e.tone??("new"===a?"danger":"warning")})).sort((e,t)=>kT[e.tone]-kT[t.tone]),u="timing"===a?r.v2.colors.yellow[500]:void 0;return e(mT,{type:"button",$variant:a,$selected:o,$interactive:s,onClick:c,"aria-pressed":o,children:[e(gT,{$depth:l,children:[t(fT,{size:Ka.XXXS,color:Ya.Disable,nowrap:!0,children:i.index??""}),e(yT,{children:[i.service?t(bT,{title:i.service,children:t(vT,{size:Ka.XXXS,color:r.v2.colors.purple[300],children:i.service})}):null,e($T,{children:[t(Za,{size:Ka.XXXS,color:o||"default"!==a?Ya.Primary:Ya.Secondary,nowrap:!0,children:i.name??""}),p.map((i,o)=>{const n=i.icon??void 0;return e(CT,{$tone:i.tone,children:[t(Za,{size:Ka.XXXS,color:AT(r,i.tone),nowrap:!0,children:i.label}),n?t(n,{size:12,fill:AT(r,i.tone)}):null]},`${i.label}-${o}`)})]}),i.durationLabel?t(wT,{size:Ka.XXXS,color:u??Ya.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),o?t(DT,{row:i}):null]})},LT=({traceId:i,title:o,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:p,corner:u="both"})=>{const h=b(),{clickCopy:m,isCopied:g}=i$(),f=c(()=>new Set(l??[]),[l]),y=d(e=>{p?.(e)},[p]),v=!!(n||o||r?.label||a?.length),$="success"===r?.tone?h.v2.colors.green[500]:"danger"===r?.tone?h.v2.colors.red[800]:h.v2.colors.silver[700],w="success"===r?.tone?h.v2.colors.black[500]:"danger"===r?.tone?h.v2.colors.white[500]:h.v2.colors.silver[200];return e(lT,{children:[v&&t(dT,{$corner:u??"both",children:e(od,{$gap:8,children:[e(id,{$gap:10,$wrap:"wrap",children:[(n||o)&&e(cT,{children:[n&&t(n,{size:16,fill:h.v2.colors.white[500]}),o&&t(Za,{size:Ka.XS,color:Ya.Primary,nowrap:!0,children:o})]}),r?.label?t(I$,{label:r.label,backgroundColor:$,textColor:w,textSize:Ka.XXXS}):null,a?.map(e=>t(pT,{children:t(Za,{size:Ka.XXXS,color:Ya.Secondary,nowrap:!0,children:e.label})},e.label))]}),!!i&&t(Gv,{value:g,children:t(nC,{label:"Trace ID",value:i,readOnly:!0,small:!0,leftIcon:Jv,leftIconClick:()=>m(i)})})]})}),t(uT,{$hasHeader:v,$corner:u??"both",children:s?.length?s.map(e=>t(RT,{row:e,expanded:f.has(e.id),onToggle:y},e.id)):t(id,{$justifyContent:"center",style:{padding:16},children:t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:"No spans"})})})]})},PT=f.div`
2255
+ `,NT=e=>"placeholder"===e||"removed"===e,kT=(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];case"info":return e.v2.colors.blue[200]}},AT={danger:0,warning:1,info:2,success:3},IT=(e,t)=>{switch(t){case"added":return e.v2.colors.green[500];case"removed":return e.v2.colors.red[500];case"changed":return e.v2.colors.blue[300]}},_T=({diff:e})=>{const i=b(),o="added"===e?Mt:"removed"===e?Ft:void 0;return t(OT,{$diff:e,children:o&&e?t(o,{size:12,fill:IT(i,e)}):null})},DT=({row:i})=>{const o=b(),n=!!i.scope,r=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return n||i.scopePlaceholder||r.length?t(ST,{children:e(od,{$gap:0,children:[i.scopePlaceholder?t(_T,{diff:"added"}):n?t(TT,{title:i.scope??void 0,children:t(fS,{label:"Scope Attribute",value:i.scope})}):null,r.map((e,i)=>e.placeholder?t(_T,{diff:e.diff},`attr-placeholder-${i}`):t(TT,{$diff:e.diff,title:`${e.key??""}: ${e.value??""}`,children:t(fS,{label:e.key??"",value:e.value,labelPingColor:"changed"===e.diff?IT(o,e.diff):void 0,labelPingTooltip:"changed"===e.diff?"This attribute has a value that changed since the baseline trace.":void 0})},`${e.key}-${i}`))]})}):null},RT=({row:i,expanded:o,onToggle:n})=>{const r=b(),a=(e=>e??"default")(i.variant),s=!NT(a),l=i.depth??0,c=d(()=>{s&&n(i.id)},[s,n,i.id]);if(NT(a)){const e=i.badges?.[0]?.icon??void 0,o="removed"===a?r.v2.colors.red[500]:r.v2.colors.green[500];return t(mT,{type:"button",$variant:a,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(gT,{$depth:l,children:t(xT,{children:e?t(e,{size:12,fill:o}):null})})})}const p=(i.badges??[]).filter(e=>!!e?.label).map(e=>({...e,tone:e.tone??("new"===a?"danger":"warning")})).sort((e,t)=>AT[e.tone]-AT[t.tone]),u="timing"===a?r.v2.colors.yellow[500]:void 0;return e(mT,{type:"button",$variant:a,$selected:o,$interactive:s,onClick:c,"aria-pressed":o,children:[e(gT,{$depth:l,children:[t(fT,{size:Ka.XXXS,color:Ya.Disable,nowrap:!0,children:i.index??""}),e(yT,{children:[i.service?t(bT,{title:i.service,children:t(vT,{size:Ka.XXXS,color:r.v2.colors.purple[300],children:i.service})}):null,e($T,{children:[t(Za,{size:Ka.XXXS,color:o||"default"!==a?Ya.Primary:Ya.Secondary,nowrap:!0,children:i.name??""}),p.map((i,o)=>{const n=i.icon??void 0;return e(CT,{$tone:i.tone,children:[t(Za,{size:Ka.XXXS,color:kT(r,i.tone),nowrap:!0,children:i.label}),n?t(n,{size:12,fill:kT(r,i.tone)}):null]},`${i.label}-${o}`)})]}),i.durationLabel?t(wT,{size:Ka.XXXS,color:u??Ya.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),o?t(DT,{row:i}):null]})},LT=({traceId:i,title:o,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:p,corner:u="both"})=>{const h=b(),{clickCopy:m,isCopied:g}=i$(),f=c(()=>new Set(l??[]),[l]),y=d(e=>{p?.(e)},[p]),v=!!(n||o||r?.label||a?.length),$="success"===r?.tone?h.v2.colors.green[500]:"danger"===r?.tone?h.v2.colors.red[800]:h.v2.colors.silver[700],w="success"===r?.tone?h.v2.colors.black[500]:"danger"===r?.tone?h.v2.colors.white[500]:h.v2.colors.silver[200];return e(lT,{children:[v&&t(dT,{$corner:u??"both",children:e(od,{$gap:8,children:[e(id,{$gap:10,$wrap:"wrap",children:[(n||o)&&e(cT,{children:[n&&t(n,{size:16,fill:h.v2.colors.white[500]}),o&&t(Za,{size:Ka.XS,color:Ya.Primary,nowrap:!0,children:o})]}),r?.label?t(I$,{label:r.label,backgroundColor:$,textColor:w,textSize:Ka.XXXS}):null,a?.map(e=>t(pT,{children:t(Za,{size:Ka.XXXS,color:Ya.Secondary,nowrap:!0,children:e.label})},e.label))]}),!!i&&t(Gv,{value:g,children:t(nC,{label:"Trace ID",value:i,readOnly:!0,small:!0,leftIcon:Jv,leftIconClick:()=>m(i)})})]})}),t(uT,{$hasHeader:v,$corner:u??"both",children:s?.length?s.map(e=>t(RT,{row:e,expanded:f.has(e.id),onToggle:y},e.id)):t(id,{$justifyContent:"center",style:{padding:16},children:t(Za,{size:Ka.XXXS,color:Ya.Secondary,children:"No spans"})})})]})},PT=f.div`
2258
2256
  min-width: 500px;
2259
2257
  `,FT=f.div`
2260
2258
  display: flex;
@@ -2270,4 +2268,4 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o,{forwar
2270
2268
  padding: 16px 24px;
2271
2269
  width: 100%;
2272
2270
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2273
- `,UT=({visual:i,title:o,description:n,isOpen:r,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(jS,{isOpen:r,onClose:a,...c,children:e(PT,{children:[e(FT,{children:[i&&t(i,{}),t(Za,{size:Ka.M,weight:500,color:Ya.Primary,children:o}),t(od,{$alignItems:"center",$gap:4,children:n.split("\n").map(e=>t(Za,{size:Ka.XS,weight:400,color:Ya.Secondary,children:e},e))}),d]}),(s||l)&&e(MT,{children:[s&&t(Uv,{"data-id":"deny",...s}),l&&t(Uv,{"data-id":"approve",...l})]})]})});export{tw as $,Tw as A,Uv as B,nd as C,Xx as D,nC as E,od as F,_i as G,Uw as H,RS as I,Mx as J,wu as K,Tu as L,A$ as M,aw as N,Ou as O,Si as P,Nu as Q,Iw as R,Di as S,Lv as T,ou as U,Cu as V,UT as W,Oi as X,Ws as Y,Xw as Z,lu as _,Ow as a,Op as a$,rC as a0,bu as a1,pw as a2,Au as a3,ku as a4,iu as a5,hs as a6,hx as a7,AS as a8,Y$ as a9,Kp as aA,Gp as aB,Ew as aC,Rp as aD,Yp as aE,_u as aF,Xp as aG,Su as aH,Du as aI,Iu as aJ,Ru as aK,Lu as aL,mu as aM,Lp as aN,Mp as aO,Up as aP,jp as aQ,Wp as aR,Hp as aS,eu as aT,Ep as aU,Tp as aV,_p as aW,gu as aX,fu as aY,$u as aZ,_m as a_,yp as aa,Jp as ab,Wi as ac,Vi as ad,to as ae,io as af,oo as ag,Gi as ah,Ki as ai,Xi as aj,Ga as ak,jS as al,au as am,Fp as an,ru as ao,Pp as ap,cu as aq,qp as ar,nu as as,du as at,vu as au,Qp as av,CS as aw,yu as ax,Vp as ay,Dp as az,xi as b,qr as b$,tu as b0,Ts as b1,Dm as b2,as as b3,zl as b4,iE as b5,md as b6,nw as b7,i$ as b8,Jv as b9,Ro as bA,hi as bB,pi as bC,Nd as bD,Ad as bE,jo as bF,Md as bG,Zi as bH,Fd as bI,E$ as bJ,$n as bK,wn as bL,Cn as bM,xn as bN,Sn as bO,fo as bP,mr as bQ,gr as bR,fr as bS,yr as bT,br as bU,po as bV,lo as bW,Ur as bX,wo as bY,ea as bZ,vo as b_,Ms as ba,ZC as bb,Gv as bc,pv as bd,rs as be,ml as bf,Ni as bg,Ai as bh,nv as bi,gv as bj,vv as bk,uv as bl,il as bm,is as bn,Uo as bo,ao as bp,ki as bq,Qs as br,cp as bs,dp as bt,sp as bu,lp as bv,Od as bw,Rc as bx,Td as by,$v as bz,pp as c,FS as c$,Xa as c0,Wa as c1,Dc as c2,Bi as c3,B$ as c4,td as c5,fE as c6,Io as c7,I$ as c8,mi as c9,rr as cA,ar as cB,sr as cC,Un as cD,Mn as cE,Ln as cF,Rn as cG,Gn as cH,Fn as cI,Pn as cJ,Xn as cK,Wn as cL,Bn as cM,zn as cN,Hn as cO,jn as cP,Zn as cQ,Qn as cR,Kn as cS,Vn as cT,Jn as cU,qn as cV,Yn as cW,or as cX,ir as cY,tr as cZ,er as c_,up as ca,vi as cb,hp as cc,vS as cd,_w as ce,es as cf,ac as cg,kc as ch,Ec as ci,Tc as cj,Nc as ck,Oc as cl,Vu as cm,Zp as cn,su as co,Ku as cp,hu as cq,Gu as cr,kp as cs,Ip as ct,zp as cu,In as cv,kn as cw,_n as cx,Dn as cy,nr as cz,dw as d,T$ as d$,cr as d0,Xo as d1,Wo as d2,dr as d3,LS as d4,Vr as d5,Kr as d6,Yr as d7,Qr as d8,tn as d9,ca as dA,da as dB,la as dC,ha as dD,ua as dE,pa as dF,oa as dG,fa as dH,ya as dI,ga as dJ,ma as dK,na as dL,$a as dM,va as dN,ba as dO,xa as dP,Ca as dQ,wa as dR,ra as dS,Ta as dT,Ea as dU,Sa as dV,aa as dW,Na as dX,Oa as dY,sa as dZ,Aa as d_,on as da,Jo as db,Jr as dc,Ir as dd,kr as de,h$ as df,Dr as dg,Zr as dh,_r as di,Tr as dj,pn as dk,Rr as dl,qo as dm,Nr as dn,Lr as dp,Pr as dq,Qo as dr,Zo as ds,en as dt,nn as du,rn as dv,Er as dw,Ha as dx,Ba as dy,ia as dz,Za as e,Ov as e$,ka as e0,Ia as e1,Da as e2,Pa as e3,La as e4,Ra as e5,_a as e6,ja as e7,Ua as e8,za as e9,ax as eA,xs as eB,px as eC,Do as eD,Pd as eE,Is as eF,Cd as eG,ol as eH,S$ as eI,gc as eJ,p$ as eK,cs as eL,Hi as eM,ds as eN,yc as eO,fS as eP,Xs as eQ,WC as eR,lv as eS,wd as eT,$d as eU,Ys as eV,aS as eW,sv as eX,hl as eY,Ps as eZ,fd as e_,Ma as ea,Fa as eb,uo as ec,vn as ed,fn as ee,bn as ef,yn as eg,hn as eh,mn as ei,gn as ej,un as ek,cn as el,Mo as em,ui as en,Ex as eo,xx as ep,Qv as eq,Ho as er,qs as es,_c as et,Va as eu,os as ev,ss as ew,$i as ex,eE as ey,Us as ez,Ya as f,Zf as f$,Cc as f0,vc as f1,Rd as f2,gl as f3,gd as f4,Gs as f5,Li as f6,hc as f7,fc as f8,q$ as f9,Pc as fA,Lc as fB,rp as fC,np as fD,mp as fE,$p as fF,fp as fG,vp as fH,Am as fI,Im as fJ,km as fK,Zu as fL,Ju as fM,qu as fN,Qu as fO,rh as fP,nh as fQ,lh as fR,sh as fS,ih as fT,th as fU,gp as fV,Bu as fW,by as fX,sy as fY,ly as fZ,Qf as f_,HE as fa,bE as fb,Bp as fc,bp as fd,dl as fe,Vs as ff,Oo as fg,qc as fh,ip as fi,No as fj,Yc as fk,tp as fl,op as fm,Kc as fn,Zc as fo,jc as fp,Hc as fq,ep as fr,Jc as fs,Qc as ft,ap as fu,Bc as fv,Gc as fw,Vc as fx,Xc as fy,Wc as fz,Ka as g,Rb as g$,mf as g0,vf as g1,yf as g2,Cf as g3,$f as g4,bf as g5,wf as g6,Og as g7,Tg as g8,Pf as g9,sf as gA,af as gB,nf as gC,lf as gD,Zg as gE,gy as gF,Qg as gG,qg as gH,Jg as gI,my as gJ,$g as gK,Of as gL,Ey as gM,Ny as gN,ef as gO,tf as gP,Gb as gQ,Vb as gR,Jb as gS,ev as gT,of as gU,Yg as gV,Gg as gW,Xg as gX,Lb as gY,Sg as gZ,xg as g_,Lf as ga,Ff as gb,Hf as gc,lg as gd,Uf as ge,Mf as gf,cy as gg,py as gh,Jf as gi,qf as gj,Yf as gk,ty as gl,ey as gm,oy as gn,iy as go,yy as gp,Cy as gq,xy as gr,$y as gs,wy as gt,Yv as gu,uf as gv,hf as gw,df as gx,cf as gy,pf as gz,id as h,dh as h$,Cg as h0,wg as h1,Ig as h2,kg as h3,Py as h4,Dg as h5,mx as h6,_g as h7,Mg as h8,Fg as h9,Nm as hA,ph as hB,Sh as hC,Eh as hD,Th as hE,Oh as hF,Ah as hG,Nh as hH,kh as hI,Vl as hJ,Cm as hK,xm as hL,Sm as hM,Em as hN,Tm as hO,Om as hP,uh as hQ,mh as hR,gh as hS,fh as hT,bh as hU,yh as hV,$h as hW,vh as hX,Ch as hY,wh as hZ,xh as h_,Ug as ha,Bg as hb,jg as hc,Wg as hd,Hg as he,Pg as hf,Lg as hg,Rg as hh,Yb as hi,qm as hj,Ub as hk,Bb as hl,zb as hm,Ng as hn,jb as ho,Hb as hp,Wb as hq,Xb as hr,ay as hs,Ym as ht,Oy as hu,Ty as hv,a$ as hw,kd as hx,m$ as hy,rv as hz,Fv as i,yo as i$,ch as i0,Ih as i1,_h as i2,Mh as i3,Ph as i4,Fh as i5,Rh as i6,Lh as i7,Dh as i8,jh as i9,om as iA,rm as iB,nm as iC,Vh as iD,Kh as iE,Yh as iF,qh as iG,Jh as iH,Qh as iI,Zh as iJ,em as iK,im as iL,am as iM,cl as iN,GE as iO,dC as iP,Ml as iQ,Tl as iR,Ol as iS,VE as iT,Zl as iU,Jw as iV,Rs as iW,go as iX,mo as iY,ho as iZ,bo as i_,Hh as ia,zh as ib,Bh as ic,Uh as id,Xh as ie,Gh as ig,Wh as ih,hh as ii,hm as ij,mm as ik,gm as il,um as im,ym as io,bm as ip,vm as iq,$m as ir,wm as is,fm as it,cm as iu,pm as iv,tm as iw,sm as ix,lm as iy,dm as iz,Pv as j,Cp as j$,$o as j0,C$ as j1,nE as j2,cE as j3,aE as j4,Fs as j5,LT as j6,rc as j7,Bo as j8,zo as j9,kC as jA,xo as jB,ed as jC,yE as jD,cv as jE,Ds as jF,ns as jG,bc as jH,f$ as jI,av as jJ,fv as jK,el as jL,zs as jM,Bs as jN,tl as jO,Zs as jP,Js as jQ,Sv as jR,_s as jS,ks as jT,As as jU,ts as jV,fl as jW,Yi as jX,Kw as jY,xp as jZ,wp as j_,AC as ja,co as jb,sn as jc,Tn as jd,$r as je,wr as jf,Ko as jg,Go as jh,Cr as ji,Yo as jj,xr as jk,Vo as jl,Ar as jm,vr as jn,ln as jo,dn as jp,an as jq,pr as jr,ur as js,hr as jt,An as ju,Nn as jv,On as jw,lr as jx,En as jy,UC as jz,cw as k,ag as k$,Sp as k0,Eu as k1,Yu as k2,zu as k3,Mu as k4,Uu as k5,Fu as k6,Pu as k7,Wu as k8,Xu as k9,Vy as kA,Ky as kB,Yy as kC,hb as kD,mb as kE,sg as kF,dg as kG,cg as kH,pg as kI,ug as kJ,jm as kK,Wm as kL,Xm as kM,Gm as kN,Vm as kO,Xf as kP,Km as kQ,Df as kR,hg as kS,mg as kT,gg as kU,tg as kV,ig as kW,og as kX,ng as kY,fg as kZ,rg as k_,Hu as ka,ju as kb,u$ as kc,eb as kd,tb as ke,Jy as kf,Qy as kg,Zy as kh,qy as ki,Dy as kj,Ay as kk,ky as kl,_y as km,Iy as kn,Hy as ko,ub as kp,By as kq,Wy as kr,Gy as ks,Xy as kt,Db as ku,kb as kv,Ab as kw,Pb as kx,Mb as ky,Fb as kz,Jx as l,sc as l$,bg as l0,yg as l1,eg as l2,Pm as l3,Lm as l4,Mi as l5,yi as l6,Pi as l7,zi as l8,Eo as l9,Kl as lA,Xl as lB,Ql as lC,Ss as lD,ps as lE,Es as lF,Ud as lG,Ls as lH,Hs as lI,Os as lJ,Ks as lK,ls as lL,rl as lM,al as lN,sl as lO,ll as lP,pl as lQ,yd as lR,xd as lS,Sd as lT,Ed as lU,Id as lV,_d as lW,Ld as lX,zd as lY,Bd as lZ,jd as l_,So as la,Co as lb,so as lc,Ei as ld,Ti as le,Ri as lf,bi as lg,ko as lh,wi as li,fi as lj,ji as lk,Qi as ll,Ji as lm,qi as ln,Ui as lo,Ao as lp,To as lq,ro as lr,no as ls,eo as lt,Ci as lu,gi as lv,Fi as lw,jl as lx,Bl as ly,Yl as lz,Zx as m,jy as m$,lc as m0,Ns as m1,dc as m2,cc as m3,_o as m4,xc as m5,xu as m6,wc as m7,Sr as m8,Or as m9,Vf as mA,Kf as mB,pb as mC,cb as mD,db as mE,ib as mF,rb as mG,lb as mH,ob as mI,ab as mJ,nb as mK,sb as mL,Sy as mM,Jm as mN,hy as mO,Bm as mP,Kb as mQ,gf as mR,ff as mS,If as mT,dy as mU,rf as mV,Zm as mW,Qm as mX,Hm as mY,vy as mZ,vg as m_,ah as ma,oh as mb,eh as mc,pu as md,uu as me,Gr as mf,Xr as mg,Wr as mh,Hr as mi,Mr as mj,Br as mk,Fr as ml,zr as mm,jr as mn,Ap as mo,Np as mp,$c as mq,Mc as mr,Uc as ms,zc as mt,Fc as mu,Rm as mv,fy as mw,Nf as mx,Af as my,kf as mz,dS as n,c$ as n$,zm as n0,Um as n1,Mm as n2,Bf as n3,Fy as n4,Ly as n5,zy as n6,Uy as n7,My as n8,Ry as n9,iv as nA,tv as nB,qb as nC,ny as nD,Fm as nE,Eg as nF,ry as nG,Rf as nH,_b as nI,Ib as nJ,Nb as nK,Wf as nL,zf as nM,Kg as nN,Po as nO,Fo as nP,ta as nQ,Sc as nR,Ev as nS,w$ as nT,Tv as nU,Cv as nV,g$ as nW,xv as nX,o$ as nY,r$ as nZ,d$ as n_,zg as na,Tf as nb,Sf as nc,Ef as nd,xf as ne,wb as nf,$b as ng,fb as nh,bb as ni,yb as nj,vb as nk,Ob as nl,Eb as nm,Sb as nn,Cb as no,xb as np,gb as nq,Tb as nr,_f as ns,Vg as nt,jf as nu,Qb as nv,Zb as nw,uy as nx,Gf as ny,Ag as nz,Ii as o,Nv as o0,b$ as o1,z$ as o2,K$ as o3,j$ as o4,U$ as o5,cC as o6,fw as o7,Zv as o8,nT as o9,Kx as oa,e$ as ob,iS as oc,nS as od,cS as oe,sd as of,KS as og,ad as oh,t$ as oi,R$ as oj,SS as ok,zw as ol,ld as om,dd as on,cd as oo,eT as op,VC as oq,Cx as or,rd as os,qv as ot,jv as ou,WE as ov,Hv as ow,Bv as ox,Ja as oy,$x as p,fx as q,gx as r,sT as s,ci as t,s$ as u,mw as v,Gx as w,oT as x,ms as y,bS as z};
2271
+ `,UT=({visual:i,title:o,description:n,isOpen:r,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(jS,{isOpen:r,onClose:a,...c,children:e(PT,{children:[e(FT,{children:[i&&t(i,{}),t(Za,{size:Ka.M,weight:500,color:Ya.Primary,children:o}),t(od,{$alignItems:"center",$gap:4,children:n.split("\n").map(e=>t(Za,{size:Ka.XS,weight:400,color:Ya.Secondary,children:e},e))}),d]}),(s||l)&&e(MT,{children:[s&&t(Uv,{"data-id":"deny",...s}),l&&t(Uv,{"data-id":"approve",...l})]})]})});export{tw as $,Tw as A,Uv as B,nd as C,Xx as D,nC as E,od as F,_i as G,Uw as H,RS as I,Mx as J,wu as K,Tu as L,k$ as M,aw as N,Ou as O,Si as P,Nu as Q,Iw as R,Di as S,Lv as T,ou as U,Cu as V,UT as W,Oi as X,Ws as Y,Xw as Z,lu as _,Ow as a,Op as a$,rC as a0,bu as a1,pw as a2,ku as a3,Au as a4,iu as a5,hs as a6,hx as a7,kS as a8,Y$ as a9,Kp as aA,Gp as aB,Ew as aC,Rp as aD,Yp as aE,_u as aF,Xp as aG,Su as aH,Du as aI,Iu as aJ,Ru as aK,Lu as aL,mu as aM,Lp as aN,Mp as aO,Up as aP,jp as aQ,Wp as aR,Hp as aS,eu as aT,Ep as aU,Tp as aV,_p as aW,gu as aX,fu as aY,$u as aZ,_m as a_,yp as aa,Jp as ab,Wi as ac,Vi as ad,to as ae,io as af,oo as ag,Gi as ah,Ki as ai,Xi as aj,Ga as ak,jS as al,au as am,Fp as an,ru as ao,Pp as ap,cu as aq,qp as ar,nu as as,du as at,vu as au,Qp as av,CS as aw,yu as ax,Vp as ay,Dp as az,xi as b,qr as b$,tu as b0,Ts as b1,Dm as b2,as as b3,zl as b4,iE as b5,md as b6,nw as b7,i$ as b8,Jv as b9,Ro as bA,hi as bB,pi as bC,Nd as bD,kd as bE,jo as bF,Md as bG,Zi as bH,Fd as bI,E$ as bJ,$n as bK,wn as bL,Cn as bM,xn as bN,Sn as bO,fo as bP,mr as bQ,gr as bR,fr as bS,yr as bT,br as bU,po as bV,lo as bW,Ur as bX,wo as bY,ea as bZ,vo as b_,Ms as ba,ZC as bb,Gv as bc,pv as bd,rs as be,ml as bf,Ni as bg,ki as bh,nv as bi,gv as bj,vv as bk,uv as bl,il as bm,is as bn,Uo as bo,ao as bp,Ai as bq,Qs as br,cp as bs,dp as bt,sp as bu,lp as bv,Od as bw,Rc as bx,Td as by,$v as bz,pp as c,FS as c$,Xa as c0,Wa as c1,Dc as c2,Bi as c3,B$ as c4,td as c5,fE as c6,Io as c7,I$ as c8,mi as c9,rr as cA,ar as cB,sr as cC,Un as cD,Mn as cE,Ln as cF,Rn as cG,Gn as cH,Fn as cI,Pn as cJ,Xn as cK,Wn as cL,Bn as cM,zn as cN,Hn as cO,jn as cP,Zn as cQ,Qn as cR,Kn as cS,Vn as cT,Jn as cU,qn as cV,Yn as cW,or as cX,ir as cY,tr as cZ,er as c_,up as ca,vi as cb,hp as cc,vS as cd,_w as ce,es as cf,ac as cg,Ac as ch,Ec as ci,Tc as cj,Nc as ck,Oc as cl,Vu as cm,Zp as cn,su as co,Ku as cp,hu as cq,Gu as cr,Ap as cs,Ip as ct,zp as cu,In as cv,An as cw,_n as cx,Dn as cy,nr as cz,dw as d,T$ as d$,cr as d0,Xo as d1,Wo as d2,dr as d3,LS as d4,Vr as d5,Kr as d6,Yr as d7,Qr as d8,tn as d9,ca as dA,da as dB,la as dC,ha as dD,ua as dE,pa as dF,oa as dG,fa as dH,ya as dI,ga as dJ,ma as dK,na as dL,$a as dM,va as dN,ba as dO,xa as dP,Ca as dQ,wa as dR,ra as dS,Ta as dT,Ea as dU,Sa as dV,aa as dW,Na as dX,Oa as dY,sa as dZ,ka as d_,on as da,Jo as db,Jr as dc,Ir as dd,Ar as de,h$ as df,Dr as dg,Zr as dh,_r as di,Tr as dj,pn as dk,Rr as dl,qo as dm,Nr as dn,Lr as dp,Pr as dq,Qo as dr,Zo as ds,en as dt,nn as du,rn as dv,Er as dw,Ha as dx,Ba as dy,ia as dz,Za as e,Ov as e$,Aa as e0,Ia as e1,Da as e2,Pa as e3,La as e4,Ra as e5,_a as e6,ja as e7,Ua as e8,za as e9,ax as eA,xs as eB,px as eC,Do as eD,Pd as eE,Is as eF,Cd as eG,ol as eH,S$ as eI,gc as eJ,p$ as eK,cs as eL,Hi as eM,ds as eN,yc as eO,fS as eP,Xs as eQ,WC as eR,lv as eS,wd as eT,$d as eU,Ys as eV,aS as eW,sv as eX,hl as eY,Ps as eZ,fd as e_,Ma as ea,Fa as eb,uo as ec,vn as ed,fn as ee,bn as ef,yn as eg,hn as eh,mn as ei,gn as ej,un as ek,cn as el,Mo as em,ui as en,Ex as eo,xx as ep,Qv as eq,Ho as er,qs as es,_c as et,Va as eu,os as ev,ss as ew,$i as ex,eE as ey,Us as ez,Ya as f,Zf as f$,Cc as f0,vc as f1,Rd as f2,gl as f3,gd as f4,Gs as f5,Li as f6,hc as f7,fc as f8,q$ as f9,Pc as fA,Lc as fB,rp as fC,np as fD,mp as fE,$p as fF,fp as fG,vp as fH,km as fI,Im as fJ,Am as fK,Zu as fL,Ju as fM,qu as fN,Qu as fO,rh as fP,nh as fQ,lh as fR,sh as fS,ih as fT,th as fU,gp as fV,Bu as fW,by as fX,sy as fY,ly as fZ,Qf as f_,HE as fa,bE as fb,Bp as fc,bp as fd,dl as fe,Vs as ff,Oo as fg,qc as fh,ip as fi,No as fj,Yc as fk,tp as fl,op as fm,Kc as fn,Zc as fo,jc as fp,Hc as fq,ep as fr,Jc as fs,Qc as ft,ap as fu,Bc as fv,Gc as fw,Vc as fx,Xc as fy,Wc as fz,Ka as g,Rb as g$,mf as g0,vf as g1,yf as g2,Cf as g3,$f as g4,bf as g5,wf as g6,Og as g7,Tg as g8,Pf as g9,sf as gA,af as gB,nf as gC,lf as gD,Zg as gE,gy as gF,Qg as gG,qg as gH,Jg as gI,my as gJ,$g as gK,Of as gL,Ey as gM,Ny as gN,ef as gO,tf as gP,Gb as gQ,Vb as gR,Jb as gS,ev as gT,of as gU,Yg as gV,Gg as gW,Xg as gX,Lb as gY,Sg as gZ,xg as g_,Lf as ga,Ff as gb,Hf as gc,lg as gd,Uf as ge,Mf as gf,cy as gg,py as gh,Jf as gi,qf as gj,Yf as gk,ty as gl,ey as gm,oy as gn,iy as go,yy as gp,Cy as gq,xy as gr,$y as gs,wy as gt,Yv as gu,uf as gv,hf as gw,df as gx,cf as gy,pf as gz,id as h,dh as h$,Cg as h0,wg as h1,Ig as h2,Ag as h3,Py as h4,Dg as h5,mx as h6,_g as h7,Mg as h8,Fg as h9,Nm as hA,ph as hB,Sh as hC,Eh as hD,Th as hE,Oh as hF,kh as hG,Nh as hH,Ah as hI,Vl as hJ,Cm as hK,xm as hL,Sm as hM,Em as hN,Tm as hO,Om as hP,uh as hQ,mh as hR,gh as hS,fh as hT,bh as hU,yh as hV,$h as hW,vh as hX,Ch as hY,wh as hZ,xh as h_,Ug as ha,Bg as hb,jg as hc,Wg as hd,Hg as he,Pg as hf,Lg as hg,Rg as hh,Yb as hi,qm as hj,Ub as hk,Bb as hl,zb as hm,Ng as hn,jb as ho,Hb as hp,Wb as hq,Xb as hr,ay as hs,Ym as ht,Oy as hu,Ty as hv,a$ as hw,Ad as hx,m$ as hy,rv as hz,Fv as i,yo as i$,ch as i0,Ih as i1,_h as i2,Mh as i3,Ph as i4,Fh as i5,Rh as i6,Lh as i7,Dh as i8,jh as i9,om as iA,rm as iB,nm as iC,Vh as iD,Kh as iE,Yh as iF,qh as iG,Jh as iH,Qh as iI,Zh as iJ,em as iK,im as iL,am as iM,cl as iN,GE as iO,dC as iP,Ml as iQ,Tl as iR,Ol as iS,VE as iT,Zl as iU,Jw as iV,Rs as iW,go as iX,mo as iY,ho as iZ,bo as i_,Hh as ia,zh as ib,Bh as ic,Uh as id,Xh as ie,Gh as ig,Wh as ih,hh as ii,hm as ij,mm as ik,gm as il,um as im,ym as io,bm as ip,vm as iq,$m as ir,wm as is,fm as it,cm as iu,pm as iv,tm as iw,sm as ix,lm as iy,dm as iz,Pv as j,Cp as j$,$o as j0,C$ as j1,nE as j2,cE as j3,aE as j4,Fs as j5,LT as j6,rc as j7,Bo as j8,zo as j9,AC as jA,xo as jB,ed as jC,yE as jD,cv as jE,Ds as jF,ns as jG,bc as jH,f$ as jI,av as jJ,fv as jK,el as jL,zs as jM,Bs as jN,tl as jO,Zs as jP,Js as jQ,Sv as jR,_s as jS,As as jT,ks as jU,ts as jV,fl as jW,Yi as jX,Kw as jY,xp as jZ,wp as j_,kC as ja,co as jb,sn as jc,Tn as jd,$r as je,wr as jf,Ko as jg,Go as jh,Cr as ji,Yo as jj,xr as jk,Vo as jl,kr as jm,vr as jn,ln as jo,dn as jp,an as jq,pr as jr,ur as js,hr as jt,kn as ju,Nn as jv,On as jw,lr as jx,En as jy,UC as jz,cw as k,rg as k$,Sp as k0,Eu as k1,c$ as k2,Yu as k3,zu as k4,Mu as k5,Uu as k6,Fu as k7,Pu as k8,Wu as k9,Fb as kA,Vy as kB,Ky as kC,Yy as kD,hb as kE,mb as kF,sg as kG,dg as kH,cg as kI,pg as kJ,ug as kK,jm as kL,Wm as kM,Xm as kN,Gm as kO,Vm as kP,Xf as kQ,Km as kR,Df as kS,hg as kT,mg as kU,gg as kV,tg as kW,ig as kX,og as kY,ng as kZ,fg as k_,Xu as ka,Hu as kb,ju as kc,u$ as kd,eb as ke,tb as kf,Jy as kg,Qy as kh,Zy as ki,qy as kj,Dy as kk,ky as kl,Ay as km,_y as kn,Iy as ko,Hy as kp,ub as kq,By as kr,Wy as ks,Gy as kt,Xy as ku,Db as kv,Ab as kw,kb as kx,Pb as ky,Mb as kz,Jx as l,jd as l$,ag as l0,bg as l1,yg as l2,eg as l3,Pm as l4,Lm as l5,Mi as l6,yi as l7,Pi as l8,zi as l9,Yl as lA,Kl as lB,Xl as lC,Ql as lD,Ss as lE,ps as lF,Es as lG,Ud as lH,Ls as lI,Hs as lJ,Os as lK,Ks as lL,ls as lM,rl as lN,al as lO,sl as lP,ll as lQ,pl as lR,yd as lS,xd as lT,Sd as lU,Ed as lV,Id as lW,_d as lX,Ld as lY,zd as lZ,Bd as l_,Eo as la,So as lb,Co as lc,so as ld,Ei as le,Ti as lf,Ri as lg,bi as lh,Ao as li,wi as lj,fi as lk,ji as ll,Qi as lm,Ji as ln,qi as lo,Ui as lp,ko as lq,To as lr,ro as ls,no as lt,eo as lu,Ci as lv,gi as lw,Fi as lx,jl as ly,Bl as lz,Zx as m,vg as m$,sc as m0,lc as m1,Ns as m2,dc as m3,cc as m4,_o as m5,xc as m6,xu as m7,wc as m8,Sr as m9,Af as mA,Vf as mB,Kf as mC,pb as mD,cb as mE,db as mF,ib as mG,rb as mH,lb as mI,ob as mJ,ab as mK,nb as mL,sb as mM,Sy as mN,Jm as mO,hy as mP,Bm as mQ,Kb as mR,gf as mS,ff as mT,If as mU,dy as mV,rf as mW,Zm as mX,Qm as mY,Hm as mZ,vy as m_,Or as ma,ah as mb,oh as mc,eh as md,pu as me,uu as mf,Gr as mg,Xr as mh,Wr as mi,Hr as mj,Mr as mk,Br as ml,Fr as mm,zr as mn,jr as mo,kp as mp,Np as mq,$c as mr,Mc as ms,Uc as mt,zc as mu,Fc as mv,Rm as mw,fy as mx,Nf as my,kf as mz,dS as n,d$ as n$,jy as n0,zm as n1,Um as n2,Mm as n3,Bf as n4,Fy as n5,Ly as n6,zy as n7,Uy as n8,My as n9,kg as nA,iv as nB,tv as nC,qb as nD,ny as nE,Fm as nF,Eg as nG,ry as nH,Rf as nI,_b as nJ,Ib as nK,Nb as nL,Wf as nM,zf as nN,Kg as nO,Po as nP,Fo as nQ,ta as nR,Sc as nS,Ev as nT,w$ as nU,Tv as nV,Cv as nW,g$ as nX,xv as nY,o$ as nZ,r$ as n_,Ry as na,zg as nb,Tf as nc,Sf as nd,Ef as ne,xf as nf,wb as ng,$b as nh,fb as ni,bb as nj,yb as nk,vb as nl,Ob as nm,Eb as nn,Sb as no,Cb as np,xb as nq,gb as nr,Tb as ns,_f as nt,Vg as nu,jf as nv,Qb as nw,Zb as nx,uy as ny,Gf as nz,Ii as o,Nv as o0,b$ as o1,z$ as o2,K$ as o3,j$ as o4,U$ as o5,cC as o6,fw as o7,Zv as o8,nT as o9,Kx as oa,e$ as ob,iS as oc,nS as od,cS as oe,sd as of,KS as og,ad as oh,t$ as oi,R$ as oj,SS as ok,zw as ol,ld as om,dd as on,cd as oo,eT as op,VC as oq,Cx as or,rd as os,qv as ot,jv as ou,WE as ov,Hv as ow,Bv as ox,Ja as oy,$x as p,fx as q,gx as r,sT as s,ci as t,s$ as u,mw as v,Gx as w,oT as x,ms as y,bS as z};