react-semaphor 0.1.497 → 0.1.499

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +22 -22
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +5 -5
  7. package/dist/chunks/{calculated-field-identity-Cq9GwHfE.js → calculated-field-identity-BC2NViZZ.js} +75 -65
  8. package/dist/chunks/{calculated-field-identity-DTfyvvLC.cjs → calculated-field-identity-CtYhhZoG.cjs} +1 -1
  9. package/dist/chunks/{constants-CC3WKmqC.js → constants-CTRduy1g.js} +5 -5
  10. package/dist/chunks/{constants-DIuhVR6J.cjs → constants-DNgpRMaX.cjs} +1 -1
  11. package/dist/chunks/{dashboard-briefing-launcher-72HdqDbJ.js → dashboard-briefing-launcher-Bp6SBVb6.js} +9 -9
  12. package/dist/chunks/{dashboard-briefing-launcher-CZZuHl61.cjs → dashboard-briefing-launcher-Dtzn9Tqg.cjs} +1 -1
  13. package/dist/chunks/{dashboard-controls-B7YP9m8Y.cjs → dashboard-controls-CLw5VQ2x.cjs} +1 -1
  14. package/dist/chunks/{dashboard-controls-BwisKmY9.js → dashboard-controls-DDI3atQf.js} +11 -11
  15. package/dist/chunks/{dashboard-date-comparison-definition-Bqti6YAo.js → dashboard-date-comparison-definition-C1vJshiP.js} +6 -6
  16. package/dist/chunks/{dashboard-date-comparison-definition-C69F-zaC.cjs → dashboard-date-comparison-definition-CWz_Yte8.cjs} +1 -1
  17. package/dist/chunks/{dashboard-json-B6GTxo8h.cjs → dashboard-json-BnT6W7Lt.cjs} +1 -1
  18. package/dist/chunks/{dashboard-json-C5Cu7-zC.js → dashboard-json-rHLrTBbN.js} +7 -7
  19. package/dist/chunks/{edit-dashboard-visual-drzAIBe2.js → edit-dashboard-visual-BH2LkjHV.js} +7536 -7584
  20. package/dist/chunks/edit-dashboard-visual-DqAMe8XW.cjs +172 -0
  21. package/dist/chunks/{editor-action-buttons-Cm_fqm5R.cjs → editor-action-buttons-Boq8MLya.cjs} +1 -1
  22. package/dist/chunks/{editor-action-buttons-B8HjvmzM.js → editor-action-buttons-DUEK2-kM.js} +6 -6
  23. package/dist/chunks/{field-aggregations-naKZ7S2Q.cjs → field-aggregations-mlkON_QA.cjs} +1 -1
  24. package/dist/chunks/{field-aggregations-C8kZqMTD.js → field-aggregations-tLaXZ2VJ.js} +19 -19
  25. package/dist/chunks/field-dependencies-R7MrlW6D.cjs +1 -0
  26. package/dist/chunks/field-dependencies-ZE2klbHO.js +182 -0
  27. package/dist/chunks/{index-oll4m-qi.js → index-BVIet238.js} +11 -11
  28. package/dist/chunks/{index-CCa-A-Yx.cjs → index-Bh3SlWJS.cjs} +1 -1
  29. package/dist/chunks/{index-Cg8HZmMI.js → index-CEm8bwwd.js} +38146 -37887
  30. package/dist/chunks/index-Gos2ij10.cjs +1417 -0
  31. package/dist/chunks/{matrix-analytical-definition-B1xhoCak.js → matrix-analytical-definition-CIVFNNnF.js} +1 -1
  32. package/dist/chunks/{matrix-analytical-definition-BK5y9XHH.cjs → matrix-analytical-definition-wIEDXvV5.cjs} +1 -1
  33. package/dist/chunks/{matrix-card-BEb6hr8i.js → matrix-card-BVvKHL7s.js} +2 -2
  34. package/dist/chunks/{matrix-card-Ii8yYSnw.cjs → matrix-card-Dh0J0_Of.cjs} +1 -1
  35. package/dist/chunks/matrix-control-sources-CjnsBREg.js +605 -0
  36. package/dist/chunks/matrix-control-sources-a67fwoOO.cjs +1 -0
  37. package/dist/chunks/{matrix-definition-CZM5-YJX.js → matrix-definition-BEXCfZAe.js} +3 -3
  38. package/dist/chunks/{matrix-definition-CSNthxru.cjs → matrix-definition-CKVi4VVg.cjs} +1 -1
  39. package/dist/chunks/{matrix-formatter-CiXzpX6X.js → matrix-formatter-BTPfthsa.js} +33 -33
  40. package/dist/chunks/{matrix-formatter-C19PZAal.cjs → matrix-formatter-CWtdnbfv.cjs} +1 -1
  41. package/dist/chunks/{matrix-member-presentation-CabW8mJc.js → matrix-member-presentation-DiDUvZts.js} +1 -1
  42. package/dist/chunks/{matrix-member-presentation-CQHvq18l.cjs → matrix-member-presentation-e_KZoZOx.cjs} +1 -1
  43. package/dist/chunks/{matrix-operation-contract-0Nor-C71.js → matrix-operation-contract-CPgckXxm.js} +164 -164
  44. package/dist/chunks/{matrix-operation-contract-o9GXbiHw.cjs → matrix-operation-contract-thtFuUYf.cjs} +1 -1
  45. package/dist/chunks/{metric-comparison-DeiOjEm5.cjs → metric-comparison-CAqV6VnZ.cjs} +1 -1
  46. package/dist/chunks/{metric-comparison-Br8l0WkK.js → metric-comparison-Dgyq1I3d.js} +1 -1
  47. package/dist/chunks/{pivot-header-presentation-DRv-cSIP.cjs → pivot-header-presentation-DUXM-VOP.cjs} +1 -1
  48. package/dist/chunks/{pivot-header-presentation-DW-ti5ek.js → pivot-header-presentation-DcCO8-Ij.js} +3 -3
  49. package/dist/chunks/{pivot-result-identity-sZc1RaIz.js → pivot-result-identity-Be1zm0AV.js} +1 -1
  50. package/dist/chunks/{pivot-result-identity-DEenUrMj.cjs → pivot-result-identity-DJyF4I2K.cjs} +1 -1
  51. package/dist/chunks/{pivot-result-lifecycle-DJ40gdwk.js → pivot-result-lifecycle-DpSZOMOZ.js} +7 -7
  52. package/dist/chunks/{pivot-result-lifecycle-D81qcCcZ.cjs → pivot-result-lifecycle-E_huAPev.cjs} +1 -1
  53. package/dist/chunks/{raw-temporal-DDTt2yv5.cjs → raw-temporal-DYoPBY6B.cjs} +1 -1
  54. package/dist/chunks/{raw-temporal-DHCZrFe7.js → raw-temporal-DfnRBxQn.js} +2 -2
  55. package/dist/chunks/{raw-temporal-contract-CkvdtPYA.js → raw-temporal-contract-CNwYygW2.js} +1 -1
  56. package/dist/chunks/{raw-temporal-contract-BcbV56Rc.cjs → raw-temporal-contract-D1_n2pBj.cjs} +1 -1
  57. package/dist/chunks/{report-preferences-dialog-KI7AgU11.js → report-preferences-dialog-8nfXNWvl.js} +6 -6
  58. package/dist/chunks/{report-preferences-dialog-BOGeoFLL.cjs → report-preferences-dialog-CW59SyVZ.cjs} +1 -1
  59. package/dist/chunks/{report-runtime-context-lSIvyKm2.cjs → report-runtime-context-CqFbgZq9.cjs} +1 -1
  60. package/dist/chunks/{report-runtime-context-BlDpc-F-.js → report-runtime-context-Dln1qvGS.js} +5 -5
  61. package/dist/chunks/{semantic-format--_VEin18.cjs → semantic-format-C7Goni6h.cjs} +1 -1
  62. package/dist/chunks/{semantic-format-ew5zviaT.js → semantic-format-PKQt2EAz.js} +2 -2
  63. package/dist/chunks/{source-entity-resolution-DPjslVgx.cjs → source-entity-resolution-BMKxwdKN.cjs} +1 -1
  64. package/dist/chunks/{source-entity-resolution-79Rihbk3.js → source-entity-resolution-BSZ07Sl6.js} +18 -18
  65. package/dist/chunks/{switch-DlLDM7Pu.js → switch-B4wVqV4L.js} +1292 -1280
  66. package/dist/chunks/{switch-wR8lV0zN.cjs → switch-DVjKkt22.cjs} +24 -24
  67. package/dist/chunks/{temporal-bucket-contract-BYR6tj6F.cjs → temporal-bucket-contract-CSdspcYj.cjs} +1 -1
  68. package/dist/chunks/{temporal-bucket-contract-C-kKQ_W4.js → temporal-bucket-contract-_WCvDnvn.js} +1 -1
  69. package/dist/chunks/{update-policy-BCtFr2Qh.cjs → update-policy-BESKAspa.cjs} +1 -1
  70. package/dist/chunks/{update-policy-CP_A1IVD.js → update-policy-BWbXhkk-.js} +2 -2
  71. package/dist/chunks/{validators-D-_IT-Xw.js → validators-CHlnnHuS.js} +1105 -1041
  72. package/dist/chunks/validators-D2F_uxxP.cjs +1 -0
  73. package/dist/dashboard/index.cjs +1 -1
  74. package/dist/dashboard/index.js +1 -1
  75. package/dist/dashboard-authoring/index.cjs +3 -3
  76. package/dist/dashboard-authoring/index.js +112 -107
  77. package/dist/data-app-builder/index.cjs +1 -1
  78. package/dist/data-app-builder/index.js +2 -2
  79. package/dist/data-app-codegen/index.cjs +1 -1
  80. package/dist/data-app-codegen/index.js +2 -2
  81. package/dist/data-app-codegen-node/index.cjs +1 -1
  82. package/dist/data-app-codegen-node/index.js +3 -3
  83. package/dist/data-app-sdk/index.cjs +1 -1
  84. package/dist/data-app-sdk/index.js +232 -232
  85. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  86. package/dist/data-app-sdk-adapters/index.js +2 -2
  87. package/dist/data-app-sdk-validation/index.cjs +1 -1
  88. package/dist/data-app-sdk-validation/index.js +5 -5
  89. package/dist/format-utils/index.cjs +1 -1
  90. package/dist/format-utils/index.js +16 -16
  91. package/dist/index.cjs +1 -1
  92. package/dist/index.js +97 -93
  93. package/dist/report-runtime-context/index.cjs +1 -1
  94. package/dist/report-runtime-context/index.js +2 -2
  95. package/dist/style.css +1 -1
  96. package/dist/surfboard/index.cjs +1 -1
  97. package/dist/surfboard/index.js +2 -2
  98. package/dist/types/analytics-protocol.d.ts +15 -0
  99. package/dist/types/briefings.d.ts +16 -1
  100. package/dist/types/dashboard-assistant.d.ts +15 -0
  101. package/dist/types/dashboard-authoring.d.ts +49 -1
  102. package/dist/types/dashboard.d.ts +23 -1
  103. package/dist/types/data-app-builder.d.ts +15 -0
  104. package/dist/types/data-app-codegen-node.d.ts +15 -0
  105. package/dist/types/data-app-codegen.d.ts +15 -0
  106. package/dist/types/data-app-sdk-adapters.d.ts +15 -0
  107. package/dist/types/data-app-sdk-validation.d.ts +15 -0
  108. package/dist/types/data-app-sdk.d.ts +15 -0
  109. package/dist/types/format-utils.d.ts +15 -0
  110. package/dist/types/index.cjs +1 -1
  111. package/dist/types/index.js +34 -21
  112. package/dist/types/main.d.ts +74 -6
  113. package/dist/types/shared.d.ts +16 -1
  114. package/dist/types/surfboard.d.ts +23 -1
  115. package/dist/types/types.d.ts +172 -6
  116. package/package.json +1 -1
  117. package/dist/chunks/edit-dashboard-visual-DqBcJ1bo.cjs +0 -172
  118. package/dist/chunks/index-B8-qrqSa.cjs +0 -1417
  119. package/dist/chunks/matrix-control-sources-CdegRBcA.cjs +0 -1
  120. package/dist/chunks/matrix-control-sources-cbYmqWNg.js +0 -523
  121. package/dist/chunks/token-types-BIYFAsGq.js +0 -8
  122. package/dist/chunks/token-types-CkAGFhiW.cjs +0 -1
  123. package/dist/chunks/validators-ux2obZB9.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/validators-ux2obZB9.cjs"),C=require("../chunks/operators-DEfKaU_V.cjs"),p=require("../chunks/matrix-member-presentation-CQHvq18l.cjs"),a=require("../chunks/matrix-operation-contract-o9GXbiHw.cjs"),i=require("../chunks/source-entity-resolution-DPjslVgx.cjs"),s=require("../chunks/metric-comparison-DeiOjEm5.cjs"),d=require("../chunks/dashboard-date-comparison-definition-C69F-zaC.cjs"),A=require("../chunks/temporal-bucket-contract-BYR6tj6F.cjs"),y=require("../chunks/raw-temporal-contract-BcbV56Rc.cjs"),g=require("../chunks/matrix-analytical-definition-BK5y9XHH.cjs"),h={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},E={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:h,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:h,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:h,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",inputId:"region",source:h,labelField:{name:"region",role:"dimension",dataType:"string"},valueField:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:h,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:h,measures:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMeasure:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}},T={visibleAxis:{source:{kind:"semantic",domainId:"commerce",datasetName:"orders"},field:{name:"order_date",label:"Order date",dataType:"timestamp with time zone"},expected:{status:"resolved",bindingSource:"visible_axis",name:"order_date",dataType:"datetime"}},invalidSource:{source:{kind:"semantic",datasetName:"orders"},field:{name:"order_date",label:"Order date",dataType:"date"},expected:{status:"unavailable",reason:"temporal_binding_invalid"}}};function R(t){return!!(t.name.trim()&&e.hasCompleteSemaphorSourceIdentity(t.source)&&(t.role==="date"||t.dataType==="date"||t.dataType==="datetime"))}function u(t){return t.filter((r,n)=>t.findIndex(l=>e.semaphorFieldRefsMatch(r.field,l.field))===n)}function x(t){return new Set(t.map(e.semaphorSourceIdentityKey).filter(Boolean)).size}function v(t){const r=u(t.candidates.filter(o=>o.kind==="visible_axis")),n=u(t.candidates.filter(o=>o.kind==="explicit_hidden"));if([...r,...n].some(o=>!R(o.field)))return"invalid";if(r.length>1||n.length>1)return"ambiguous";const l=r[0],c=n[0];if(l)return c&&!e.semaphorFieldRefsMatch(l.field,c.field)?"invalid":l;if(c)return c;if(x(t.querySources??[])>1)return"ambiguous";const S=u(t.candidates.filter(o=>o.kind==="semantic_primary"));return S.some(o=>!R(o.field))?"invalid":S.length>1?"ambiguous":S[0]??"missing"}function I(t){const r=new Date(t.startInclusive),n=new Date(t.endExclusive);return t.timezone.trim()?Number.isFinite(r.getTime())&&Number.isFinite(n.getTime())&&r.getTime()<n.getTime():!1}function _(t){const r=t.ranges??[];if(t.rawSql)return{status:"unavailable",reason:"unsupported_raw_sql",constraints:r};if((t.querySources??[]).some(m=>!e.hasCompleteSemaphorSourceIdentity(m))||r.some(m=>!R(m.field)))return{status:"unavailable",reason:"temporal_binding_invalid",constraints:r};const n=v(t);if(typeof n=="string")return{status:"unavailable",reason:`temporal_binding_${n}`,constraints:r};const l=r.filter(m=>e.semaphorFieldRefsMatch(m.field,n.field));if(l.some(m=>!I(m.window)))return{status:"unavailable",reason:"temporal_binding_invalid",constraints:r};const c=l.filter(m=>m.source==="global_date"),S=l.filter(m=>m.source==="card");if(c.length>1||c.length===0&&S.length>1)return{status:"unavailable",reason:"temporal_binding_ambiguous",constraints:r};const o=c[0]??S[0];return{status:"resolved",field:n.field,bindingSource:n.kind,...o?{currentWindow:o.window,governingWindowSource:o.source,governingRangeId:o.id}:{},constraints:r.filter(m=>m.id!==(o==null?void 0:o.id))}}exports.MAX_OPTION_MATCH_VALUES=e.MAX_OPTION_MATCH_VALUES;exports.OVERRIDABLE_OPTION_DEPENDENCY_REASONS=e.OVERRIDABLE_OPTION_DEPENDENCY_REASONS;exports.RAW_TEMPORAL_CONTRACT_ERROR_CODES=e.RAW_TEMPORAL_CONTRACT_ERROR_CODES;exports.SEMAPHOR_GENERATED_COUNT_METRIC_ID=e.SEMAPHOR_GENERATED_COUNT_METRIC_ID;exports.SEMAPHOR_TIME_GRAINS=e.SEMAPHOR_TIME_GRAINS;exports.TEMPORAL_BUCKET_CONTRACT_ERROR_CODES=e.TEMPORAL_BUCKET_CONTRACT_ERROR_CODES;exports.TEMPORAL_BUCKET_PRESETS=e.TEMPORAL_BUCKET_PRESETS;exports.buildAnalyticsCatalogFieldSummary=e.buildAnalyticsCatalogFieldSummary;exports.canonicalDashboardRecordsPayloadSchema=e.canonicalDashboardRecordsPayloadSchema;exports.canonicalizeExactNumericText=e.canonicalizeExactNumericText;exports.canonicalizeSemaphorSourceIdentity=e.canonicalizeSemaphorSourceIdentity;exports.configSourceRefSchema=e.configSourceRefSchema;exports.createExactNumericValue=e.createExactNumericValue;exports.dashboardRecordsPayloadSchema=e.dashboardRecordsPayloadSchema;exports.decodeNumericResultValue=e.decodeNumericResultValue;exports.exactNumericValueSchema=e.exactNumericValueSchema;exports.getAnalyticsCatalogFieldCandidates=e.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=e.getAnalyticsCatalogFieldName;exports.getAnalyticsIntentId=e.getAnalyticsIntentId;exports.getAnalyticsNumericStorageKind=e.getAnalyticsNumericStorageKind;exports.getSemaphorDatasetEntityId=e.getSemaphorDatasetEntityId;exports.getSemaphorNonRedundantDatasetId=e.getSemaphorNonRedundantDatasetId;exports.hasCompleteSemaphorSourceIdentity=e.hasCompleteSemaphorSourceIdentity;exports.isAnalyticsCatalogDateField=e.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=e.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=e.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=e.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=e.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=e.isAnalyticsTechnicalIdentifierField;exports.isExactNumericValue=e.isExactNumericValue;exports.isOverridableOptionDependencyReason=e.isOverridableOptionDependencyReason;exports.isSemaphorOptionMatchValue=e.isSemaphorOptionMatchValue;exports.isSemaphorTimeGrain=e.isSemaphorTimeGrain;exports.matrixAggregateSchema=e.matrixAggregateSchema;exports.matrixAnalyticalIntentSchema=e.matrixAnalyticalIntentSchema;exports.matrixAxisSchema=e.matrixAxisSchema;exports.matrixConfigSchema=e.matrixConfigSchema;exports.matrixCoordinateSchema=e.matrixCoordinateSchema;exports.matrixDefaultViewSchema=e.matrixDefaultViewSchema;exports.matrixDefinitionInputSchema=e.matrixDefinitionInputSchema;exports.matrixExpansionSchema=e.matrixExpansionSchema;exports.matrixExportRequestSchema=e.matrixExportRequestSchema;exports.matrixFieldSchema=e.matrixFieldSchema;exports.matrixFormattingRoleSchema=e.matrixFormattingRoleSchema;exports.matrixLevelSchema=e.matrixLevelSchema;exports.matrixMeasureSchema=e.matrixMeasureSchema;exports.matrixMemberSchema=e.matrixMemberSchema;exports.matrixPathKey=e.matrixPathKey;exports.matrixPathSchema=e.matrixPathSchema;exports.matrixPresentationSchema=e.matrixPresentationSchema;exports.matrixRankingSchema=e.matrixRankingSchema;exports.matrixSortKey=e.matrixSortKey;exports.matrixSortSchema=e.matrixSortSchema;exports.matrixSortTargetSchema=e.matrixSortTargetSchema;exports.matrixSpecSchema=e.matrixSpecSchema;exports.matrixTotalPresentationSchema=e.matrixTotalPresentationSchema;exports.matrixViewStateSchema=e.matrixViewStateSchema;exports.mergeSemaphorSourcesByIdentity=e.mergeSemaphorSourcesByIdentity;exports.normalizeAnalyticsCatalogDataType=e.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=e.normalizeAnalyticsCatalogName;exports.normalizeNumericLiteral=e.normalizeNumericLiteral;exports.nullableScalarSchema=e.nullableScalarSchema;exports.parseOptionMatchValues=e.parseOptionMatchValues;exports.parseSemaphorIsoInstant=e.parseSemaphorIsoInstant;exports.parseSemaphorIsoTimeWindowBoundary=e.parseSemaphorIsoTimeWindowBoundary;exports.preferSemaphorFieldRefMetadata=e.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=e.preferSemaphorSourceMetadata;exports.rawTemporalValueMetadataSchema=e.rawTemporalValueMetadataSchema;exports.recordArraySchema=e.recordArraySchema;exports.recordSchema=e.recordSchema;exports.semaphorAggregateFunctionSchema=e.semaphorAggregateFunctionSchema;exports.semaphorAnalyticsValidationIssueSchema=e.semaphorAnalyticsValidationIssueSchema;exports.semaphorAnalyticsValidationResultSchema=e.semaphorAnalyticsValidationResultSchema;exports.semaphorCompactFieldRefSchema=e.semaphorCompactFieldRefSchema;exports.semaphorDerivedFieldDefinitionObjectSchema=e.semaphorDerivedFieldDefinitionObjectSchema;exports.semaphorDerivedFieldDefinitionSchema=e.semaphorDerivedFieldDefinitionSchema;exports.semaphorExecutionFieldRefSchema=e.semaphorExecutionFieldRefSchema;exports.semaphorFieldRefObjectSchema=e.semaphorFieldRefObjectSchema;exports.semaphorFieldRefSchema=e.semaphorFieldRefSchema;exports.semaphorFieldRefsMatch=e.semaphorFieldRefsMatch;exports.semaphorInputOptionsResultSchema=e.semaphorInputOptionsResultSchema;exports.semaphorMetricAggregate=e.semaphorMetricAggregate;exports.semaphorMetricMeasureBindingKey=e.semaphorMetricMeasureBindingKey;exports.semaphorMetricResultSchema=e.semaphorMetricResultSchema;exports.semaphorOptionDependencyOutcomeSchema=e.semaphorOptionDependencyOutcomeSchema;exports.semaphorOptionMatchResultSchema=e.semaphorOptionMatchResultSchema;exports.semaphorPhysicalSourceRefSchema=e.semaphorPhysicalSourceRefSchema;exports.semaphorRecordsResultSchema=e.semaphorRecordsResultSchema;exports.semaphorResultColumnSchema=e.semaphorResultColumnSchema;exports.semaphorScalarValueFormatSchema=e.semaphorScalarValueFormatSchema;exports.semaphorScalarValueSchema=e.semaphorScalarValueSchema;exports.semaphorSemanticSourceRefSchema=e.semaphorSemanticSourceRefSchema;exports.semaphorSourceIdentityKey=e.semaphorSourceIdentityKey;exports.semaphorSourceRefSchema=e.semaphorSourceRefSchema;exports.semaphorSourcesReferToSameDataset=e.semaphorSourcesReferToSameDataset;exports.semaphorSqlResultSchema=e.semaphorSqlResultSchema;exports.semaphorSqlSourceRefSchema=e.semaphorSqlSourceRefSchema;exports.semaphorTimeGrainSchema=e.semaphorTimeGrainSchema;exports.temporalBucketDataTypeForGrain=e.temporalBucketDataTypeForGrain;exports.temporalBucketFormatSchema=e.temporalBucketFormatSchema;exports.temporalBucketMetadataSchema=e.temporalBucketMetadataSchema;exports.validateSemaphorAnalyticsIntent=e.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=e.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=e.validateSemaphorDashboardIntent;exports.validateSemaphorDerivedFieldDefinition=e.validateSemaphorDerivedFieldDefinition;exports.validateSemaphorOperationIntent=e.validateSemaphorOperationIntent;exports.validateSemaphorOptionDependencies=e.validateSemaphorOptionDependencies;exports.validateSemaphorResultCalculation=e.validateSemaphorResultCalculation;exports.normalizeSemaphorAnalyticsFilterOperator=C.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=C.normalizeSemaphorInputOperator;exports.toSemaphorInputOperatorFromFilterOperation=C.toSemaphorInputOperatorFromFilterOperation;exports.NATIVE_PREDICATE_OPERATIONS=p.NATIVE_PREDICATE_OPERATIONS;exports.isMatrixPathExpanded=p.isMatrixPathExpanded;exports.isNullCheckPredicate=p.isNullCheckPredicate;exports.parseNativePredicateSemantics=p.parseNativePredicateSemantics;exports.projectNativePredicateSemantics=p.projectNativePredicateSemantics;exports.resolveMatrixMemberPresentation=p.resolveMatrixMemberPresentation;exports.toNativePredicateSemantics=p.toNativePredicateSemantics;exports.MATRIX_WINDOW_LIMITS=a.MATRIX_WINDOW_LIMITS;exports.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT=a.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION=a.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION=a.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION;exports.analyticsExecutionEnvelopeSchema=a.analyticsExecutionEnvelopeSchema;exports.getSemaphorAnalyzeResultFieldNames=a.getSemaphorAnalyzeResultFieldNames;exports.isSemaphorAnalyzeResultFieldName=a.isSemaphorAnalyzeResultFieldName;exports.isSemaphorDataAppCodegenSummary=a.isSemaphorDataAppCodegenSummary;exports.matrixAxisPageSchema=a.matrixAxisPageSchema;exports.matrixBlockRequestSchema=a.matrixBlockRequestSchema;exports.matrixCapabilitiesSchema=a.matrixCapabilitiesSchema;exports.matrixCellBlockSchema=a.matrixCellBlockSchema;exports.matrixDescriptorSchema=a.matrixDescriptorSchema;exports.matrixExecutionResultSchema=a.matrixExecutionResultSchema;exports.matrixExportBatchSchema=a.matrixExportBatchSchema;exports.matrixExportColumnSchema=a.matrixExportColumnSchema;exports.matrixExportLayoutSchema=a.matrixExportLayoutSchema;exports.matrixExportRowSchema=a.matrixExportRowSchema;exports.matrixExportValueSchema=a.matrixExportValueSchema;exports.matrixFailureSchema=a.matrixFailureSchema;exports.matrixOperationRequestSchema=a.matrixOperationRequestSchema;exports.matrixPageRequestSchema=a.matrixPageRequestSchema;exports.matrixPathSelectionSchema=a.matrixPathSelectionSchema;exports.matrixResultSchema=a.matrixResultSchema;exports.matrixRuntimeInputsSchema=a.matrixRuntimeInputsSchema;exports.matrixWindowInputSchema=a.matrixWindowInputSchema;exports.matrixWindowOutcomeSchema=a.matrixWindowOutcomeSchema;exports.matrixWindowRequestSchema=a.matrixWindowRequestSchema;exports.matrixWindowSchema=a.matrixWindowSchema;exports.parseMatrixRuntimeInputs=a.parseMatrixRuntimeInputs;exports.parseSemaphorAnalyzeResult=a.parseSemaphorAnalyzeResult;exports.semaphorAnalyticsCoverageSchema=a.semaphorAnalyticsCoverageSchema;exports.semaphorAnalyticsDiagnosticFeedbackSchema=a.semaphorAnalyticsDiagnosticFeedbackSchema;exports.semaphorAnalyticsExecutionResultSchema=a.semaphorAnalyticsExecutionResultSchema;exports.semaphorAnalyticsPopulationSchema=a.semaphorAnalyticsPopulationSchema;exports.semaphorAnalyticsResultSchema=a.semaphorAnalyticsResultSchema;exports.semaphorAnalyzeResultSchema=a.semaphorAnalyzeResultSchema;exports.semaphorAnalyzeResultShape=a.semaphorAnalyzeResultShape;exports.semaphorDataAppCodegenSummarySchema=a.semaphorDataAppCodegenSummarySchema;exports.semaphorMatrixResultSchema=a.matrixResultSchema;exports.semaphorRelationshipDiagnosticsSchema=a.semaphorRelationshipDiagnosticsSchema;exports.validateSemaphorDataAppCodegenSummary=a.validateSemaphorDataAppCodegenSummary;exports.buildSemaphorQualifiedSourcePath=i.buildSemaphorQualifiedSourcePath;exports.canonicalizeSemaphorQualifiedSourcePath=i.canonicalizeSemaphorQualifiedSourcePath;exports.getSemaphorCatalogCoordinateLevels=i.getSemaphorCatalogCoordinateLevels;exports.getSemaphorConnectionCapabilities=i.getSemaphorConnectionCapabilities;exports.isSemaphorPhysicalSourceEntity=i.isSemaphorPhysicalSourceEntity;exports.isSemaphorSemanticSourceEntity=i.isSemaphorSemanticSourceEntity;exports.normalizeSemaphorDialect=i.normalizeSemaphorDialect;exports.parseSemaphorQualifiedSourcePath=i.parseSemaphorQualifiedSourcePath;exports.persistedIdentifierLeafName=i.persistedIdentifierLeafName;exports.resolveSemaphorConnectionCapabilities=i.resolveSemaphorConnectionCapabilities;exports.resolveSemaphorConnectionCapabilityIdentity=i.resolveSemaphorConnectionCapabilityIdentity;exports.resolveSemaphorPhysicalCatalogAddress=i.resolveSemaphorPhysicalCatalogAddress;exports.resolveSemaphorPhysicalSourceEntity=i.resolveSemaphorPhysicalSourceEntity;exports.resolveSemaphorSemanticDatasetEntity=i.resolveSemaphorSemanticDatasetEntity;exports.resolveSemaphorSourceEntity=i.resolveSemaphorSourceEntity;exports.semaphorPhysicalSourceCoordinatesAreCompatible=i.semaphorPhysicalSourceCoordinatesAreCompatible;exports.semaphorPhysicalSourceCoordinatesCover=i.semaphorPhysicalSourceCoordinatesCover;exports.semaphorSourceHasRequiredCoordinates=i.semaphorSourceHasRequiredCoordinates;exports.COMPARISON_PRESENTATION_DEFAULTS=s.COMPARISON_PRESENTATION_DEFAULTS;exports.DEFAULT_METRIC_COMPARISON_POLARITY=s.DEFAULT_METRIC_COMPARISON_POLARITY;exports.evaluateMetricComparison=s.evaluateMetricComparison;exports.resolveMetricComparisonRequest=s.resolveMetricComparisonRequest;exports.resolveMetricResultAlias=s.resolveMetricResultAlias;exports.validateComparisonPresentationSpec=s.validateComparisonPresentationSpec;exports.validateGlobalDateComparisonContext=s.validateGlobalDateComparisonContext;exports.validateGlobalDateComparisonSelection=s.validateGlobalDateComparisonSelection;exports.validateMetricComparisonConfig=s.validateMetricComparisonConfig;exports.validateMetricComparisonPolarity=s.validateMetricComparisonPolarity;exports.validateMetricComparisonSpec=s.validateMetricComparisonSpec;exports.getCardControlCompatInputId=d.getCardControlCompatInputId;exports.getCardInlineFilterCompatInputId=d.getCardInlineFilterCompatInputId;exports.getDashboardControlCompatInputId=d.getDashboardControlCompatInputId;exports.getDashboardFilterCompatInputId=d.getDashboardFilterCompatInputId;exports.isComparisonCapableDashboardDateInputDefinition=d.isComparisonCapableDashboardDateInputDefinition;exports.resolveDashboardDateComparisonFilterDefinition=d.resolveDashboardDateComparisonFilterDefinition;exports.resolveDashboardDateComparisonInputDefinition=d.resolveDashboardDateComparisonInputDefinition;exports.semanticDatasetMatchesFieldCoordinates=d.semanticDatasetMatchesFieldCoordinates;exports.validateActivatedTemporalBucketResultColumns=A.validateActivatedTemporalBucketResultColumns;exports.validateTemporalBucketMetadata=A.validateTemporalBucketMetadata;exports.validateTemporalBucketResultColumn=A.validateTemporalBucketResultColumn;exports.RawTemporalMetadataContractError=y.RawTemporalMetadataContractError;exports.parseRawTemporalValueMetadata=y.parseRawTemporalValueMetadata;exports.validateRawTemporalResultColumn=y.validateRawTemporalResultColumn;exports.getMatrixAnalyticalDefinition=g.getMatrixAnalyticalDefinition;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=E;exports.TEMPORAL_CONTEXT_ADAPTER_PARITY_FIXTURES=T;exports.resolveTemporalContext=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/validators-D2F_uxxP.cjs"),C=require("../chunks/operators-DEfKaU_V.cjs"),p=require("../chunks/matrix-member-presentation-e_KZoZOx.cjs"),a=require("../chunks/matrix-operation-contract-thtFuUYf.cjs"),i=require("../chunks/source-entity-resolution-BMKxwdKN.cjs"),s=require("../chunks/metric-comparison-CAqV6VnZ.cjs"),d=require("../chunks/dashboard-date-comparison-definition-CWz_Yte8.cjs"),A=require("../chunks/temporal-bucket-contract-CSdspcYj.cjs"),y=require("../chunks/raw-temporal-contract-D1_n2pBj.cjs"),g=require("../chunks/matrix-analytical-definition-wIEDXvV5.cjs"),h={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},E={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:h,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:h,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:h,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",inputId:"region",source:h,labelField:{name:"region",role:"dimension",dataType:"string"},valueField:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:h,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:h,measures:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMeasure:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}},T={visibleAxis:{source:{kind:"semantic",domainId:"commerce",datasetName:"orders"},field:{name:"order_date",label:"Order date",dataType:"timestamp with time zone"},expected:{status:"resolved",bindingSource:"visible_axis",name:"order_date",dataType:"datetime"}},invalidSource:{source:{kind:"semantic",datasetName:"orders"},field:{name:"order_date",label:"Order date",dataType:"date"},expected:{status:"unavailable",reason:"temporal_binding_invalid"}}};function R(t){return!!(t.name.trim()&&e.hasCompleteSemaphorSourceIdentity(t.source)&&(t.role==="date"||t.dataType==="date"||t.dataType==="datetime"))}function u(t){return t.filter((r,n)=>t.findIndex(l=>e.semaphorFieldRefsMatch(r.field,l.field))===n)}function x(t){return new Set(t.map(e.semaphorSourceIdentityKey).filter(Boolean)).size}function v(t){const r=u(t.candidates.filter(o=>o.kind==="visible_axis")),n=u(t.candidates.filter(o=>o.kind==="explicit_hidden"));if([...r,...n].some(o=>!R(o.field)))return"invalid";if(r.length>1||n.length>1)return"ambiguous";const l=r[0],c=n[0];if(l)return c&&!e.semaphorFieldRefsMatch(l.field,c.field)?"invalid":l;if(c)return c;if(x(t.querySources??[])>1)return"ambiguous";const S=u(t.candidates.filter(o=>o.kind==="semantic_primary"));return S.some(o=>!R(o.field))?"invalid":S.length>1?"ambiguous":S[0]??"missing"}function I(t){const r=new Date(t.startInclusive),n=new Date(t.endExclusive);return t.timezone.trim()?Number.isFinite(r.getTime())&&Number.isFinite(n.getTime())&&r.getTime()<n.getTime():!1}function _(t){const r=t.ranges??[];if(t.rawSql)return{status:"unavailable",reason:"unsupported_raw_sql",constraints:r};if((t.querySources??[]).some(m=>!e.hasCompleteSemaphorSourceIdentity(m))||r.some(m=>!R(m.field)))return{status:"unavailable",reason:"temporal_binding_invalid",constraints:r};const n=v(t);if(typeof n=="string")return{status:"unavailable",reason:`temporal_binding_${n}`,constraints:r};const l=r.filter(m=>e.semaphorFieldRefsMatch(m.field,n.field));if(l.some(m=>!I(m.window)))return{status:"unavailable",reason:"temporal_binding_invalid",constraints:r};const c=l.filter(m=>m.source==="global_date"),S=l.filter(m=>m.source==="card");if(c.length>1||c.length===0&&S.length>1)return{status:"unavailable",reason:"temporal_binding_ambiguous",constraints:r};const o=c[0]??S[0];return{status:"resolved",field:n.field,bindingSource:n.kind,...o?{currentWindow:o.window,governingWindowSource:o.source,governingRangeId:o.id}:{},constraints:r.filter(m=>m.id!==(o==null?void 0:o.id))}}exports.MAX_OPTION_MATCH_VALUES=e.MAX_OPTION_MATCH_VALUES;exports.OVERRIDABLE_OPTION_DEPENDENCY_REASONS=e.OVERRIDABLE_OPTION_DEPENDENCY_REASONS;exports.RAW_TEMPORAL_CONTRACT_ERROR_CODES=e.RAW_TEMPORAL_CONTRACT_ERROR_CODES;exports.SEMAPHOR_GENERATED_COUNT_METRIC_ID=e.SEMAPHOR_GENERATED_COUNT_METRIC_ID;exports.SEMAPHOR_TIME_GRAINS=e.SEMAPHOR_TIME_GRAINS;exports.TEMPORAL_BUCKET_CONTRACT_ERROR_CODES=e.TEMPORAL_BUCKET_CONTRACT_ERROR_CODES;exports.TEMPORAL_BUCKET_PRESETS=e.TEMPORAL_BUCKET_PRESETS;exports.buildAnalyticsCatalogFieldSummary=e.buildAnalyticsCatalogFieldSummary;exports.canonicalDashboardRecordsPayloadSchema=e.canonicalDashboardRecordsPayloadSchema;exports.canonicalizeExactNumericText=e.canonicalizeExactNumericText;exports.canonicalizeSemaphorSourceIdentity=e.canonicalizeSemaphorSourceIdentity;exports.configSourceRefSchema=e.configSourceRefSchema;exports.createExactNumericValue=e.createExactNumericValue;exports.dashboardRecordsPayloadSchema=e.dashboardRecordsPayloadSchema;exports.decodeNumericResultValue=e.decodeNumericResultValue;exports.exactNumericValueSchema=e.exactNumericValueSchema;exports.getAnalyticsCatalogFieldCandidates=e.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=e.getAnalyticsCatalogFieldName;exports.getAnalyticsIntentId=e.getAnalyticsIntentId;exports.getAnalyticsNumericStorageKind=e.getAnalyticsNumericStorageKind;exports.getSemaphorDatasetEntityId=e.getSemaphorDatasetEntityId;exports.getSemaphorNonRedundantDatasetId=e.getSemaphorNonRedundantDatasetId;exports.hasCompleteSemaphorSourceIdentity=e.hasCompleteSemaphorSourceIdentity;exports.isAnalyticsCatalogDateField=e.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=e.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=e.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=e.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=e.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=e.isAnalyticsTechnicalIdentifierField;exports.isExactNumericValue=e.isExactNumericValue;exports.isOverridableOptionDependencyReason=e.isOverridableOptionDependencyReason;exports.isSemaphorOptionMatchValue=e.isSemaphorOptionMatchValue;exports.isSemaphorTimeGrain=e.isSemaphorTimeGrain;exports.matrixAggregateSchema=e.matrixAggregateSchema;exports.matrixAnalyticalIntentSchema=e.matrixAnalyticalIntentSchema;exports.matrixAxisSchema=e.matrixAxisSchema;exports.matrixConfigSchema=e.matrixConfigSchema;exports.matrixCoordinateSchema=e.matrixCoordinateSchema;exports.matrixDefaultViewSchema=e.matrixDefaultViewSchema;exports.matrixDefinitionInputSchema=e.matrixDefinitionInputSchema;exports.matrixExpansionSchema=e.matrixExpansionSchema;exports.matrixExportRequestSchema=e.matrixExportRequestSchema;exports.matrixFieldSchema=e.matrixFieldSchema;exports.matrixFormattingRoleSchema=e.matrixFormattingRoleSchema;exports.matrixLevelSchema=e.matrixLevelSchema;exports.matrixMeasureSchema=e.matrixMeasureSchema;exports.matrixMemberSchema=e.matrixMemberSchema;exports.matrixPathKey=e.matrixPathKey;exports.matrixPathSchema=e.matrixPathSchema;exports.matrixPresentationSchema=e.matrixPresentationSchema;exports.matrixRankingSchema=e.matrixRankingSchema;exports.matrixSortKey=e.matrixSortKey;exports.matrixSortSchema=e.matrixSortSchema;exports.matrixSortTargetSchema=e.matrixSortTargetSchema;exports.matrixSpecSchema=e.matrixSpecSchema;exports.matrixTotalPresentationSchema=e.matrixTotalPresentationSchema;exports.matrixViewStateSchema=e.matrixViewStateSchema;exports.mergeSemaphorSourcesByIdentity=e.mergeSemaphorSourcesByIdentity;exports.normalizeAnalyticsCatalogDataType=e.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=e.normalizeAnalyticsCatalogName;exports.normalizeNumericLiteral=e.normalizeNumericLiteral;exports.nullableScalarSchema=e.nullableScalarSchema;exports.parseOptionMatchValues=e.parseOptionMatchValues;exports.parseSemaphorIsoInstant=e.parseSemaphorIsoInstant;exports.parseSemaphorIsoTimeWindowBoundary=e.parseSemaphorIsoTimeWindowBoundary;exports.preferSemaphorFieldRefMetadata=e.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=e.preferSemaphorSourceMetadata;exports.rawTemporalValueMetadataSchema=e.rawTemporalValueMetadataSchema;exports.recordArraySchema=e.recordArraySchema;exports.recordSchema=e.recordSchema;exports.semaphorAggregateFunctionSchema=e.semaphorAggregateFunctionSchema;exports.semaphorAnalyticsValidationIssueSchema=e.semaphorAnalyticsValidationIssueSchema;exports.semaphorAnalyticsValidationResultSchema=e.semaphorAnalyticsValidationResultSchema;exports.semaphorCompactFieldRefSchema=e.semaphorCompactFieldRefSchema;exports.semaphorDerivedFieldDefinitionObjectSchema=e.semaphorDerivedFieldDefinitionObjectSchema;exports.semaphorDerivedFieldDefinitionSchema=e.semaphorDerivedFieldDefinitionSchema;exports.semaphorExecutionFieldRefSchema=e.semaphorExecutionFieldRefSchema;exports.semaphorFieldRefObjectSchema=e.semaphorFieldRefObjectSchema;exports.semaphorFieldRefSchema=e.semaphorFieldRefSchema;exports.semaphorFieldRefsMatch=e.semaphorFieldRefsMatch;exports.semaphorInputOptionsResultSchema=e.semaphorInputOptionsResultSchema;exports.semaphorMetricAggregate=e.semaphorMetricAggregate;exports.semaphorMetricMeasureBindingKey=e.semaphorMetricMeasureBindingKey;exports.semaphorMetricResultSchema=e.semaphorMetricResultSchema;exports.semaphorOptionDependencyOutcomeSchema=e.semaphorOptionDependencyOutcomeSchema;exports.semaphorOptionMatchResultSchema=e.semaphorOptionMatchResultSchema;exports.semaphorPhysicalSourceRefSchema=e.semaphorPhysicalSourceRefSchema;exports.semaphorRecordsResultSchema=e.semaphorRecordsResultSchema;exports.semaphorResultColumnSchema=e.semaphorResultColumnSchema;exports.semaphorScalarValueFormatSchema=e.semaphorScalarValueFormatSchema;exports.semaphorScalarValueSchema=e.semaphorScalarValueSchema;exports.semaphorSemanticSourceRefSchema=e.semaphorSemanticSourceRefSchema;exports.semaphorSourceIdentityKey=e.semaphorSourceIdentityKey;exports.semaphorSourceRefSchema=e.semaphorSourceRefSchema;exports.semaphorSourcesReferToSameDataset=e.semaphorSourcesReferToSameDataset;exports.semaphorSqlResultSchema=e.semaphorSqlResultSchema;exports.semaphorSqlSourceRefSchema=e.semaphorSqlSourceRefSchema;exports.semaphorTimeGrainSchema=e.semaphorTimeGrainSchema;exports.temporalBucketDataTypeForGrain=e.temporalBucketDataTypeForGrain;exports.temporalBucketFormatSchema=e.temporalBucketFormatSchema;exports.temporalBucketMetadataSchema=e.temporalBucketMetadataSchema;exports.validateSemaphorAnalyticsIntent=e.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=e.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=e.validateSemaphorDashboardIntent;exports.validateSemaphorDerivedFieldDefinition=e.validateSemaphorDerivedFieldDefinition;exports.validateSemaphorOperationIntent=e.validateSemaphorOperationIntent;exports.validateSemaphorOptionDependencies=e.validateSemaphorOptionDependencies;exports.validateSemaphorResultCalculation=e.validateSemaphorResultCalculation;exports.normalizeSemaphorAnalyticsFilterOperator=C.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=C.normalizeSemaphorInputOperator;exports.toSemaphorInputOperatorFromFilterOperation=C.toSemaphorInputOperatorFromFilterOperation;exports.NATIVE_PREDICATE_OPERATIONS=p.NATIVE_PREDICATE_OPERATIONS;exports.isMatrixPathExpanded=p.isMatrixPathExpanded;exports.isNullCheckPredicate=p.isNullCheckPredicate;exports.parseNativePredicateSemantics=p.parseNativePredicateSemantics;exports.projectNativePredicateSemantics=p.projectNativePredicateSemantics;exports.resolveMatrixMemberPresentation=p.resolveMatrixMemberPresentation;exports.toNativePredicateSemantics=p.toNativePredicateSemantics;exports.MATRIX_WINDOW_LIMITS=a.MATRIX_WINDOW_LIMITS;exports.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT=a.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION=a.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION=a.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION;exports.analyticsExecutionEnvelopeSchema=a.analyticsExecutionEnvelopeSchema;exports.getSemaphorAnalyzeResultFieldNames=a.getSemaphorAnalyzeResultFieldNames;exports.isSemaphorAnalyzeResultFieldName=a.isSemaphorAnalyzeResultFieldName;exports.isSemaphorDataAppCodegenSummary=a.isSemaphorDataAppCodegenSummary;exports.matrixAxisPageSchema=a.matrixAxisPageSchema;exports.matrixBlockRequestSchema=a.matrixBlockRequestSchema;exports.matrixCapabilitiesSchema=a.matrixCapabilitiesSchema;exports.matrixCellBlockSchema=a.matrixCellBlockSchema;exports.matrixDescriptorSchema=a.matrixDescriptorSchema;exports.matrixExecutionResultSchema=a.matrixExecutionResultSchema;exports.matrixExportBatchSchema=a.matrixExportBatchSchema;exports.matrixExportColumnSchema=a.matrixExportColumnSchema;exports.matrixExportLayoutSchema=a.matrixExportLayoutSchema;exports.matrixExportRowSchema=a.matrixExportRowSchema;exports.matrixExportValueSchema=a.matrixExportValueSchema;exports.matrixFailureSchema=a.matrixFailureSchema;exports.matrixOperationRequestSchema=a.matrixOperationRequestSchema;exports.matrixPageRequestSchema=a.matrixPageRequestSchema;exports.matrixPathSelectionSchema=a.matrixPathSelectionSchema;exports.matrixResultSchema=a.matrixResultSchema;exports.matrixRuntimeInputsSchema=a.matrixRuntimeInputsSchema;exports.matrixWindowInputSchema=a.matrixWindowInputSchema;exports.matrixWindowOutcomeSchema=a.matrixWindowOutcomeSchema;exports.matrixWindowRequestSchema=a.matrixWindowRequestSchema;exports.matrixWindowSchema=a.matrixWindowSchema;exports.parseMatrixRuntimeInputs=a.parseMatrixRuntimeInputs;exports.parseSemaphorAnalyzeResult=a.parseSemaphorAnalyzeResult;exports.semaphorAnalyticsCoverageSchema=a.semaphorAnalyticsCoverageSchema;exports.semaphorAnalyticsDiagnosticFeedbackSchema=a.semaphorAnalyticsDiagnosticFeedbackSchema;exports.semaphorAnalyticsExecutionResultSchema=a.semaphorAnalyticsExecutionResultSchema;exports.semaphorAnalyticsPopulationSchema=a.semaphorAnalyticsPopulationSchema;exports.semaphorAnalyticsResultSchema=a.semaphorAnalyticsResultSchema;exports.semaphorAnalyzeResultSchema=a.semaphorAnalyzeResultSchema;exports.semaphorAnalyzeResultShape=a.semaphorAnalyzeResultShape;exports.semaphorDataAppCodegenSummarySchema=a.semaphorDataAppCodegenSummarySchema;exports.semaphorMatrixResultSchema=a.matrixResultSchema;exports.semaphorRelationshipDiagnosticsSchema=a.semaphorRelationshipDiagnosticsSchema;exports.validateSemaphorDataAppCodegenSummary=a.validateSemaphorDataAppCodegenSummary;exports.buildSemaphorQualifiedSourcePath=i.buildSemaphorQualifiedSourcePath;exports.canonicalizeSemaphorQualifiedSourcePath=i.canonicalizeSemaphorQualifiedSourcePath;exports.getSemaphorCatalogCoordinateLevels=i.getSemaphorCatalogCoordinateLevels;exports.getSemaphorConnectionCapabilities=i.getSemaphorConnectionCapabilities;exports.isSemaphorPhysicalSourceEntity=i.isSemaphorPhysicalSourceEntity;exports.isSemaphorSemanticSourceEntity=i.isSemaphorSemanticSourceEntity;exports.normalizeSemaphorDialect=i.normalizeSemaphorDialect;exports.parseSemaphorQualifiedSourcePath=i.parseSemaphorQualifiedSourcePath;exports.persistedIdentifierLeafName=i.persistedIdentifierLeafName;exports.resolveSemaphorConnectionCapabilities=i.resolveSemaphorConnectionCapabilities;exports.resolveSemaphorConnectionCapabilityIdentity=i.resolveSemaphorConnectionCapabilityIdentity;exports.resolveSemaphorPhysicalCatalogAddress=i.resolveSemaphorPhysicalCatalogAddress;exports.resolveSemaphorPhysicalSourceEntity=i.resolveSemaphorPhysicalSourceEntity;exports.resolveSemaphorSemanticDatasetEntity=i.resolveSemaphorSemanticDatasetEntity;exports.resolveSemaphorSourceEntity=i.resolveSemaphorSourceEntity;exports.semaphorPhysicalSourceCoordinatesAreCompatible=i.semaphorPhysicalSourceCoordinatesAreCompatible;exports.semaphorPhysicalSourceCoordinatesCover=i.semaphorPhysicalSourceCoordinatesCover;exports.semaphorSourceHasRequiredCoordinates=i.semaphorSourceHasRequiredCoordinates;exports.COMPARISON_PRESENTATION_DEFAULTS=s.COMPARISON_PRESENTATION_DEFAULTS;exports.DEFAULT_METRIC_COMPARISON_POLARITY=s.DEFAULT_METRIC_COMPARISON_POLARITY;exports.evaluateMetricComparison=s.evaluateMetricComparison;exports.resolveMetricComparisonRequest=s.resolveMetricComparisonRequest;exports.resolveMetricResultAlias=s.resolveMetricResultAlias;exports.validateComparisonPresentationSpec=s.validateComparisonPresentationSpec;exports.validateGlobalDateComparisonContext=s.validateGlobalDateComparisonContext;exports.validateGlobalDateComparisonSelection=s.validateGlobalDateComparisonSelection;exports.validateMetricComparisonConfig=s.validateMetricComparisonConfig;exports.validateMetricComparisonPolarity=s.validateMetricComparisonPolarity;exports.validateMetricComparisonSpec=s.validateMetricComparisonSpec;exports.getCardControlCompatInputId=d.getCardControlCompatInputId;exports.getCardInlineFilterCompatInputId=d.getCardInlineFilterCompatInputId;exports.getDashboardControlCompatInputId=d.getDashboardControlCompatInputId;exports.getDashboardFilterCompatInputId=d.getDashboardFilterCompatInputId;exports.isComparisonCapableDashboardDateInputDefinition=d.isComparisonCapableDashboardDateInputDefinition;exports.resolveDashboardDateComparisonFilterDefinition=d.resolveDashboardDateComparisonFilterDefinition;exports.resolveDashboardDateComparisonInputDefinition=d.resolveDashboardDateComparisonInputDefinition;exports.semanticDatasetMatchesFieldCoordinates=d.semanticDatasetMatchesFieldCoordinates;exports.validateActivatedTemporalBucketResultColumns=A.validateActivatedTemporalBucketResultColumns;exports.validateTemporalBucketMetadata=A.validateTemporalBucketMetadata;exports.validateTemporalBucketResultColumn=A.validateTemporalBucketResultColumn;exports.RawTemporalMetadataContractError=y.RawTemporalMetadataContractError;exports.parseRawTemporalValueMetadata=y.parseRawTemporalValueMetadata;exports.validateRawTemporalResultColumn=y.validateRawTemporalResultColumn;exports.getMatrixAnalyticalDefinition=g.getMatrixAnalyticalDefinition;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=E;exports.TEMPORAL_CONTEXT_ADAPTER_PARITY_FIXTURES=T;exports.resolveTemporalContext=_;
@@ -1,14 +1,14 @@
1
- import { w as u, s as d, k as p } from "../chunks/validators-D-_IT-Xw.js";
2
- import { _ as T, Y as _, R as x, a2 as b, $ as E, T as I, a1 as D, ao as O, aJ as M, b2 as P, aV as N, X as F, a$ as k, aI as w, b1 as L, aZ as q, af as B, ae as V, aS as z, ah as G, aT as U, aU as W, aj as H, an as K, am as Y, ai as j, al as Q, ak as X, b0 as J, Z, a3 as $, a0 as ee, z as ae, m as te, y as ie, n as re, H as se, U as oe, u as ne, S as me, W as le, A as ce, x as de, B as ue, E as pe, F as Se, M as he, G as Re, Q as ge, K as ve, j as ye, J as Ce, I as Ae, N as fe, O as Te, V as _e, o as xe, ag as be, ad as Ee, b3 as Ie, at as De, a4 as Oe, v as Me, a5 as Pe, p as Ne, aX as Fe, av as ke, aq as we, ap as Le, ar as qe, aK as Be, aL as Ve, aG as ze, aD as Ge, aE as Ue, aF as We, aB as He, aC as Ke, aQ as Ye, f as je, aY as Qe, aM as Xe, aO as Je, aP as Ze, ay as $e, aN as ea, aH as aa, aw as ta, a_ as ia, ax as ra, aA as sa, aW as oa, aR as na, az as ma, as as la, q as ca, au as da, t as ua, a8 as pa, aa as Sa, ab as ha, ac as Ra, a9 as ga, a6 as va, a7 as ya } from "../chunks/validators-D-_IT-Xw.js";
1
+ import { A as u, k as d, q as p } from "../chunks/validators-CHlnnHuS.js";
2
+ import { a2 as T, a0 as _, R as x, a6 as b, a3 as E, T as I, a5 as D, as as O, aN as M, b6 as P, aZ as N, $ as F, b3 as k, aM as w, b5 as L, b1 as q, aj as B, ai as V, aW as z, al as G, aX as U, aY as W, an as H, ar as K, aq as Y, am as Q, ap as X, ao as j, b4 as J, a1 as Z, a7 as $, a4 as ee, F as ae, m as te, E as ie, t as re, M as se, Y as oe, y as ne, X as me, _ as le, G as ce, B as de, H as ue, I as pe, J as Se, S as he, K as Re, W as ge, Q as ve, o as ye, O as Ce, N as Ae, U as fe, V as Te, Z as _e, u as xe, ak as be, ah as Ee, b7 as Ie, ax as De, a8 as Oe, z as Me, a9 as Pe, p as Ne, a$ as Fe, az as ke, au as we, at as Le, av as qe, aO as Be, aP as Ve, aK as ze, aH as Ge, aI as Ue, aJ as We, aF as He, aG as Ke, aU as Ye, l as Qe, b0 as Xe, aQ as je, aS as Je, aT as Ze, aC as $e, aR as ea, aL as aa, aA as ta, b2 as ia, aB as ra, aE as sa, a_ as oa, aV as na, aD as ma, aw as la, w as ca, ay as da, v as ua, ac as pa, ae as Sa, af as ha, ag as Ra, ad as ga, aa as va, ab as ya } from "../chunks/validators-CHlnnHuS.js";
3
3
  import { a as Aa, n as fa, t as Ta } from "../chunks/operators-B3zZoskU.js";
4
- import { N as xa, b as ba, i as Ea, a as Ia, p as Da, r as Oa, t as Ma } from "../chunks/matrix-member-presentation-CabW8mJc.js";
5
- import { M as Na, c as Fa, S as ka, a as wa, j as La, g as qa, b as Ba, i as Va, x as za, t as Ga, B as Ua, y as Wa, z as Ha, L as Ka, I as Ya, E as ja, F as Qa, H as Xa, G as Ja, A as Za, N as $a, q as et, r as at, o as tt, J as it, w as rt, D as st, u as ot, C as nt, K as mt, p as lt, h as ct, e as dt, k as ut, f as pt, s as St, m as ht, l as Rt, n as gt, o as vt, d as yt, v as Ct } from "../chunks/matrix-operation-contract-0Nor-C71.js";
6
- import { e as ft, c as Tt, h as _t, g as xt, j as bt, l as Et, n as It, p as Dt, f as Ot, r as Mt, b as Pt, i as Nt, k as Ft, m as kt, o as wt, s as Lt, a as qt, d as Bt } from "../chunks/source-entity-resolution-79Rihbk3.js";
7
- import { C as zt, D as Gt, g as Ut, r as Wt, a as Ht, f as Kt, d as Yt, c as jt, b as Qt, e as Xt, v as Jt } from "../chunks/metric-comparison-Br8l0WkK.js";
8
- import { d as $t, c as ei, b as ai, g as ti, i as ii, r as ri, a as si, s as oi } from "../chunks/dashboard-date-comparison-definition-Bqti6YAo.js";
9
- import { b as mi, v as li, a as ci } from "../chunks/temporal-bucket-contract-C-kKQ_W4.js";
10
- import { R as ui, p as pi, v as Si } from "../chunks/raw-temporal-contract-CkvdtPYA.js";
11
- import { g as Ri } from "../chunks/matrix-analytical-definition-B1xhoCak.js";
4
+ import { N as xa, b as ba, i as Ea, a as Ia, p as Da, r as Oa, t as Ma } from "../chunks/matrix-member-presentation-DiDUvZts.js";
5
+ import { M as Na, c as Fa, S as ka, a as wa, j as La, g as qa, b as Ba, i as Va, x as za, t as Ga, B as Ua, y as Wa, z as Ha, L as Ka, I as Ya, E as Qa, F as Xa, H as ja, G as Ja, A as Za, N as $a, q as et, r as at, o as tt, J as it, w as rt, D as st, u as ot, C as nt, K as mt, p as lt, h as ct, e as dt, k as ut, f as pt, s as St, m as ht, l as Rt, n as gt, o as vt, d as yt, v as Ct } from "../chunks/matrix-operation-contract-CPgckXxm.js";
6
+ import { e as ft, c as Tt, h as _t, g as xt, j as bt, l as Et, n as It, p as Dt, f as Ot, r as Mt, b as Pt, i as Nt, k as Ft, m as kt, o as wt, s as Lt, a as qt, d as Bt } from "../chunks/source-entity-resolution-BSZ07Sl6.js";
7
+ import { C as zt, D as Gt, g as Ut, r as Wt, a as Ht, f as Kt, d as Yt, c as Qt, b as Xt, e as jt, v as Jt } from "../chunks/metric-comparison-Dgyq1I3d.js";
8
+ import { d as $t, c as ei, b as ai, g as ti, i as ii, r as ri, a as si, s as oi } from "../chunks/dashboard-date-comparison-definition-C1vJshiP.js";
9
+ import { b as mi, v as li, a as ci } from "../chunks/temporal-bucket-contract-_WCvDnvn.js";
10
+ import { R as ui, p as pi, v as Si } from "../chunks/raw-temporal-contract-CNwYygW2.js";
11
+ import { g as Ri } from "../chunks/matrix-analytical-definition-CIVFNNnF.js";
12
12
  const m = {
13
13
  kind: "semantic",
14
14
  domainId: "domain_sales",
@@ -298,9 +298,9 @@ export {
298
298
  H as isAnalyticsCatalogDateField,
299
299
  K as isAnalyticsCatalogDimensionField,
300
300
  Y as isAnalyticsCatalogMetricField,
301
- j as isAnalyticsDateLikeDataType,
302
- Q as isAnalyticsMetricIdentifierField,
303
- X as isAnalyticsTechnicalIdentifierField,
301
+ Q as isAnalyticsDateLikeDataType,
302
+ X as isAnalyticsMetricIdentifierField,
303
+ j as isAnalyticsTechnicalIdentifierField,
304
304
  ii as isComparisonCapableDashboardDateInputDefinition,
305
305
  J as isExactNumericValue,
306
306
  ba as isMatrixPathExpanded,
@@ -327,10 +327,10 @@ export {
327
327
  Ka as matrixExecutionResultSchema,
328
328
  me as matrixExpansionSchema,
329
329
  Ya as matrixExportBatchSchema,
330
- ja as matrixExportColumnSchema,
331
- Qa as matrixExportLayoutSchema,
330
+ Qa as matrixExportColumnSchema,
331
+ Xa as matrixExportLayoutSchema,
332
332
  le as matrixExportRequestSchema,
333
- Xa as matrixExportRowSchema,
333
+ ja as matrixExportRowSchema,
334
334
  Ja as matrixExportValueSchema,
335
335
  Za as matrixFailureSchema,
336
336
  ce as matrixFieldSchema,
@@ -413,9 +413,9 @@ export {
413
413
  d as semaphorFieldRefsMatch,
414
414
  Ye as semaphorInputOptionsResultSchema,
415
415
  vt as semaphorMatrixResultSchema,
416
- je as semaphorMetricAggregate,
417
- Qe as semaphorMetricMeasureBindingKey,
418
- Xe as semaphorMetricResultSchema,
416
+ Qe as semaphorMetricAggregate,
417
+ Xe as semaphorMetricMeasureBindingKey,
418
+ je as semaphorMetricResultSchema,
419
419
  Je as semaphorOptionDependencyOutcomeSchema,
420
420
  Ze as semaphorOptionMatchResultSchema,
421
421
  Lt as semaphorPhysicalSourceCoordinatesAreCompatible,
@@ -442,9 +442,9 @@ export {
442
442
  mi as validateActivatedTemporalBucketResultColumns,
443
443
  Kt as validateComparisonPresentationSpec,
444
444
  Yt as validateGlobalDateComparisonContext,
445
- jt as validateGlobalDateComparisonSelection,
446
- Qt as validateMetricComparisonConfig,
447
- Xt as validateMetricComparisonPolarity,
445
+ Qt as validateGlobalDateComparisonSelection,
446
+ Xt as validateMetricComparisonConfig,
447
+ jt as validateMetricComparisonPolarity,
448
448
  Jt as validateMetricComparisonSpec,
449
449
  Si as validateRawTemporalResultColumn,
450
450
  pa as validateSemaphorAnalyticsIntent,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-wR8lV0zN.cjs"),oe=require("../chunks/color-CyB5o13F.cjs"),L=require("../chunks/x-B6ghREd2.cjs");require("../chunks/constants-DIuhVR6J.cjs");require("../chunks/validators-ux2obZB9.cjs");require("../chunks/matrix-operation-contract-o9GXbiHw.cjs");require("../value-format-preferences/index.cjs");const W=require("../chunks/index-C8XCKzB6.cjs"),_=require("../chunks/palette-BN-jYtaK.cjs"),fe=require("../chunks/braces-v55uLCAK.cjs"),me=require("../chunks/save-3dYRmehL.cjs"),xe=require("../chunks/layout-grid-xm8pqtx0.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-DVjKkt22.cjs"),oe=require("../chunks/color-CyB5o13F.cjs"),L=require("../chunks/x-B6ghREd2.cjs");require("../chunks/constants-DNgpRMaX.cjs");require("../chunks/validators-D2F_uxxP.cjs");require("../chunks/matrix-operation-contract-thtFuUYf.cjs");require("../value-format-preferences/index.cjs");const W=require("../chunks/index-C8XCKzB6.cjs"),_=require("../chunks/palette-BN-jYtaK.cjs"),fe=require("../chunks/braces-v55uLCAK.cjs"),me=require("../chunks/save-3dYRmehL.cjs"),xe=require("../chunks/layout-grid-xm8pqtx0.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as d, jsx as r, Fragment as ce } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, L as le, S as se, d as Je, T as je, F as Le, G as U, H as $e, I as M, J as _e, K as Ve, M as Ue, N as Me, O as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-DlLDM7Pu.js";
3
+ import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, L as le, S as se, d as Je, T as je, F as Le, G as U, H as $e, I as M, J as _e, K as Ve, M as Ue, N as Me, O as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-B4wVqV4L.js";
4
4
  import { A as We, p as He } from "../chunks/color-CJvdlFM_.js";
5
5
  import { c as ae, X as Xe } from "../chunks/x-CXDkqdur.js";
6
- import "../chunks/constants-CC3WKmqC.js";
7
- import "../chunks/validators-D-_IT-Xw.js";
8
- import "../chunks/matrix-operation-contract-0Nor-C71.js";
6
+ import "../chunks/constants-CTRduy1g.js";
7
+ import "../chunks/validators-CHlnnHuS.js";
8
+ import "../chunks/matrix-operation-contract-CPgckXxm.js";
9
9
  import "../value-format-preferences/index.js";
10
10
  import { r as Ye, v as Ze, A as qe } from "../chunks/index-C9KXfCkC.js";
11
11
  import { P as G } from "../chunks/palette-Cp1hqZtm.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/raw-temporal-DDTt2yv5.cjs");require("../chunks/validators-ux2obZB9.cjs");require("../chunks/matrix-continuation-6nhDy-lF.cjs");require("../chunks/matrix-operation-contract-o9GXbiHw.cjs");require("../value-format-preferences/index.cjs");require("../chunks/pivot-result-lifecycle-D81qcCcZ.cjs");const e=require("../chunks/index-CCa-A-Yx.cjs");exports.BRIEFING_ARTIFACT_FORMATS=e.BRIEFING_ARTIFACT_FORMATS;exports.BRIEFING_CONTENT_LIMITS=e.BRIEFING_CONTENT_LIMITS;exports.BRIEFING_KIND=e.BRIEFING_KIND;exports.BRIEFING_TEXT_LIMITS=e.BRIEFING_TEXT_LIMITS;exports.BriefingContractError=e.BriefingContractError;exports.DEFAULT_BRIEFING_ARTIFACT_FORMATS=e.DEFAULT_BRIEFING_ARTIFACT_FORMATS;exports.DEFAULT_BRIEFING_SCHEDULE=e.DEFAULT_BRIEFING_SCHEDULE;exports.MAX_BRIEFING_ATTACHMENTS=e.MAX_BRIEFING_ATTACHMENTS;exports.buildBriefingJobConfig=e.buildBriefingJobConfig;exports.buildBriefingScheduleExpr=e.buildBriefingScheduleExpr;exports.buildCreateBriefingRequest=e.buildCreateBriefingRequest;exports.buildDashboardTemporalSnapshotEntries=e.buildDashboardTemporalSnapshotEntries;exports.buildMatrixDeliveryEnvelope=e.buildMatrixDeliveryEnvelope;exports.buildUpdateBriefingRequest=e.buildUpdateBriefingRequest;exports.canCreateBriefingForUser=e.canCreateBriefingForUser;exports.captureMatrixExport=e.captureMatrixExport;exports.describeBriefingSchedule=e.describeBriefingSchedule;exports.formatBriefingComparisonValues=e.formatBriefingComparisonValues;exports.formatBriefingDisplayValue=e.formatBriefingDisplayValue;exports.getBriefingCardAttachmentCapability=e.getBriefingCardAttachmentCapability;exports.getBriefingCardAttachmentFormats=e.getBriefingCardAttachmentFormats;exports.getBriefingCreationIntents=e.getBriefingCreationIntents;exports.getBriefingDisplayTypeLabel=e.getBriefingDisplayTypeLabel;exports.getBriefingPresentation=e.getBriefingPresentation;exports.getDefaultBriefingCardAttachmentFormat=e.getDefaultBriefingCardAttachmentFormat;exports.isBriefingArtifactFormat=e.isBriefingArtifactFormat;exports.isBriefingDeliveryChannel=e.isBriefingDeliveryChannel;exports.isBriefingNumericValue=e.isBriefingNumericValue;exports.isEmailOnlyBriefingDelivery=e.isEmailOnlyBriefingDelivery;exports.isValidBriefingTimezone=e.isValidBriefingTimezone;exports.matrixDeliveryPayloadSchema=e.matrixDeliveryPayloadSchema;exports.matrixDeliveryQuerySchema=e.matrixDeliveryQuerySchema;exports.normalizeBriefingContentDocument=e.normalizeBriefingContentDocument;exports.normalizeBriefingDraft=e.normalizeBriefingDraft;exports.normalizeBriefingJobConfig=e.normalizeBriefingJobConfig;exports.parseBriefingScheduleExpr=e.parseBriefingScheduleExpr;exports.validateBriefingContentDocument=e.validateBriefingContentDocument;exports.validateBriefingDraft=e.validateBriefingDraft;exports.validateBriefingJobConfig=e.validateBriefingJobConfig;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/raw-temporal-DYoPBY6B.cjs");require("../chunks/validators-D2F_uxxP.cjs");require("../chunks/matrix-continuation-6nhDy-lF.cjs");require("../chunks/matrix-operation-contract-thtFuUYf.cjs");require("../value-format-preferences/index.cjs");require("../chunks/pivot-result-lifecycle-E_huAPev.cjs");const e=require("../chunks/index-Bh3SlWJS.cjs");exports.BRIEFING_ARTIFACT_FORMATS=e.BRIEFING_ARTIFACT_FORMATS;exports.BRIEFING_CONTENT_LIMITS=e.BRIEFING_CONTENT_LIMITS;exports.BRIEFING_KIND=e.BRIEFING_KIND;exports.BRIEFING_TEXT_LIMITS=e.BRIEFING_TEXT_LIMITS;exports.BriefingContractError=e.BriefingContractError;exports.DEFAULT_BRIEFING_ARTIFACT_FORMATS=e.DEFAULT_BRIEFING_ARTIFACT_FORMATS;exports.DEFAULT_BRIEFING_SCHEDULE=e.DEFAULT_BRIEFING_SCHEDULE;exports.MAX_BRIEFING_ATTACHMENTS=e.MAX_BRIEFING_ATTACHMENTS;exports.buildBriefingJobConfig=e.buildBriefingJobConfig;exports.buildBriefingScheduleExpr=e.buildBriefingScheduleExpr;exports.buildCreateBriefingRequest=e.buildCreateBriefingRequest;exports.buildDashboardTemporalSnapshotEntries=e.buildDashboardTemporalSnapshotEntries;exports.buildMatrixDeliveryEnvelope=e.buildMatrixDeliveryEnvelope;exports.buildUpdateBriefingRequest=e.buildUpdateBriefingRequest;exports.canCreateBriefingForUser=e.canCreateBriefingForUser;exports.captureMatrixExport=e.captureMatrixExport;exports.describeBriefingSchedule=e.describeBriefingSchedule;exports.formatBriefingComparisonValues=e.formatBriefingComparisonValues;exports.formatBriefingDisplayValue=e.formatBriefingDisplayValue;exports.getBriefingCardAttachmentCapability=e.getBriefingCardAttachmentCapability;exports.getBriefingCardAttachmentFormats=e.getBriefingCardAttachmentFormats;exports.getBriefingCreationIntents=e.getBriefingCreationIntents;exports.getBriefingDisplayTypeLabel=e.getBriefingDisplayTypeLabel;exports.getBriefingPresentation=e.getBriefingPresentation;exports.getDefaultBriefingCardAttachmentFormat=e.getDefaultBriefingCardAttachmentFormat;exports.isBriefingArtifactFormat=e.isBriefingArtifactFormat;exports.isBriefingDeliveryChannel=e.isBriefingDeliveryChannel;exports.isBriefingNumericValue=e.isBriefingNumericValue;exports.isEmailOnlyBriefingDelivery=e.isEmailOnlyBriefingDelivery;exports.isValidBriefingTimezone=e.isValidBriefingTimezone;exports.matrixDeliveryPayloadSchema=e.matrixDeliveryPayloadSchema;exports.matrixDeliveryQuerySchema=e.matrixDeliveryQuerySchema;exports.normalizeBriefingContentDocument=e.normalizeBriefingContentDocument;exports.normalizeBriefingDraft=e.normalizeBriefingDraft;exports.normalizeBriefingJobConfig=e.normalizeBriefingJobConfig;exports.parseBriefingScheduleExpr=e.parseBriefingScheduleExpr;exports.validateBriefingContentDocument=e.validateBriefingContentDocument;exports.validateBriefingDraft=e.validateBriefingDraft;exports.validateBriefingJobConfig=e.validateBriefingJobConfig;
@@ -1,10 +1,10 @@
1
- import "../chunks/raw-temporal-DHCZrFe7.js";
2
- import "../chunks/validators-D-_IT-Xw.js";
1
+ import "../chunks/raw-temporal-DfnRBxQn.js";
2
+ import "../chunks/validators-CHlnnHuS.js";
3
3
  import "../chunks/matrix-continuation-C4sRcjZU.js";
4
- import "../chunks/matrix-operation-contract-0Nor-C71.js";
4
+ import "../chunks/matrix-operation-contract-CPgckXxm.js";
5
5
  import "../value-format-preferences/index.js";
6
- import "../chunks/pivot-result-lifecycle-DJ40gdwk.js";
7
- import { aa as f, ae as g, a9 as l, ad as B, ai as m, ab as d, a1 as p, ac as E, am as I, a0 as u, ao as C, B as T, E as D, ap as c, a3 as F, D as A, d as _, ah as b, ag as R, Z as h, C as y, a as N, ax as S, g as v, aw as x, as as M, at as G, af as L, a2 as U, _ as z, au as O, av as V, aj as q, an as J, al as H, $ as P, ak as X, aq as j, ar as k } from "../chunks/index-oll4m-qi.js";
6
+ import "../chunks/pivot-result-lifecycle-DpSZOMOZ.js";
7
+ import { aa as f, ae as g, a9 as l, ad as B, ai as m, ab as d, a1 as p, ac as E, am as I, a0 as u, ao as C, B as T, E as D, ap as c, a3 as F, D as A, d as _, ah as b, ag as R, Z as h, C as y, a as N, ax as S, g as v, aw as x, as as M, at as G, af as L, a2 as U, _ as z, au as O, av as V, aj as q, an as J, al as H, $ as P, ak as X, aq as j, ar as k } from "../chunks/index-BVIet238.js";
8
8
  export {
9
9
  f as BRIEFING_ARTIFACT_FORMATS,
10
10
  g as BRIEFING_CONTENT_LIMITS,
@@ -1,10 +1,10 @@
1
1
  var re = Object.defineProperty;
2
2
  var oe = (e, t, n) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var j = (e, t, n) => oe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ad as w, ag as R, aW as S, a6 as se, w as P, ai as ae, r as de, N as ce, l as L, n as z, b8 as le, C as q } from "./validators-D-_IT-Xw.js";
5
- import "./matrix-operation-contract-0Nor-C71.js";
6
- import { l as ue, f as fe, h as pe } from "./field-aggregations-C8kZqMTD.js";
7
- import { g as H } from "./matrix-analytical-definition-B1xhoCak.js";
4
+ import { ah as w, ak as R, a_ as S, aa as se, A as P, am as ae, x as de, U as ce, r as L, t as z, bc as le, C as q } from "./validators-CHlnnHuS.js";
5
+ import "./matrix-operation-contract-CPgckXxm.js";
6
+ import { l as ue, f as fe, h as pe } from "./field-aggregations-tLaXZ2VJ.js";
7
+ import { g as H } from "./matrix-analytical-definition-CIVFNNnF.js";
8
8
  import { s as T } from "./stable-serialize-CfqXeiBP.js";
9
9
  const me = (e, t) => {
10
10
  const n = {};
@@ -53,7 +53,7 @@ const me = (e, t) => {
53
53
  for (const n in e)
54
54
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = O(e[n]));
55
55
  return t;
56
- }, G = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, U = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
56
+ }, U = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, G = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
57
57
  function he(e) {
58
58
  const t = [];
59
59
  let n = 0;
@@ -77,18 +77,18 @@ function ee(e) {
77
77
  return [];
78
78
  const t = /* @__PURE__ */ new Set();
79
79
  let n;
80
- for (G.lastIndex = 0; (n = G.exec(e)) !== null; ) {
80
+ for (U.lastIndex = 0; (n = U.exec(e)) !== null; ) {
81
81
  const o = (i = n[1]) == null ? void 0 : i.trim();
82
82
  o && t.add(o);
83
83
  }
84
84
  for (const o of he(e))
85
- for (U.lastIndex = 0; (n = U.exec(o)) !== null; ) {
85
+ for (G.lastIndex = 0; (n = G.exec(o)) !== null; ) {
86
86
  const d = (r = n[2]) == null ? void 0 : r.trim();
87
87
  d && t.add(d);
88
88
  }
89
89
  return Array.from(t);
90
90
  }
91
- function Ze(e) {
91
+ function et(e) {
92
92
  const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
93
93
  for (const i of e.controlBindings || [])
94
94
  t.add(i.controlId), i.target === "sql_param" && n.set(i.paramId, i.controlId);
@@ -131,7 +131,7 @@ function te(e, t) {
131
131
  inputId: ((o = t.inputIds) == null ? void 0 : o[i.inputId]) ?? i.inputId
132
132
  } : i;
133
133
  }
134
- function et(e, t) {
134
+ function tt(e, t) {
135
135
  var r;
136
136
  const n = {};
137
137
  for (const o of [
@@ -151,7 +151,7 @@ function et(e, t) {
151
151
  i[o] = te(d, t);
152
152
  return Object.keys(i).length && (n.inputAliases = i), n;
153
153
  }
154
- function tt(e, t) {
154
+ function nt(e, t) {
155
155
  var r, o, d, s;
156
156
  const n = O(e);
157
157
  n.controlBindings = be(
@@ -188,7 +188,7 @@ function tt(e, t) {
188
188
  c.cardId = ((s = t.cardIds) == null ? void 0 : s[c.cardId]) ?? c.cardId;
189
189
  return n;
190
190
  }
191
- function A(e) {
191
+ function N(e) {
192
192
  return (e == null ? void 0 : e.trim()) || void 0;
193
193
  }
194
194
  function K(e) {
@@ -196,12 +196,12 @@ function K(e) {
196
196
  }
197
197
  function Y(e, t) {
198
198
  var c, a;
199
- const n = A(t);
199
+ const n = N(t);
200
200
  if (!n) return;
201
- const i = K(n), r = A((c = e.fieldMeta) == null ? void 0 : c.name);
201
+ const i = K(n), r = N((c = e.fieldMeta) == null ? void 0 : c.name);
202
202
  if (r && r !== n && r !== i)
203
203
  return;
204
- const o = A(
204
+ const o = N(
205
205
  (a = e.fieldMeta) == null ? void 0 : a.qualifiedFieldName
206
206
  );
207
207
  if (o && K(o) !== i)
@@ -293,7 +293,7 @@ function ve({
293
293
  )
294
294
  });
295
295
  }
296
- function nt({
296
+ function it({
297
297
  filterDefinitions: e,
298
298
  filterValues: t
299
299
  }) {
@@ -317,7 +317,7 @@ function nt({
317
317
  });
318
318
  return i ? r : t;
319
319
  }
320
- function it(e) {
320
+ function rt(e) {
321
321
  const t = Ie({
322
322
  fieldName: e.column,
323
323
  definition: e
@@ -389,7 +389,7 @@ function Fe(e, t) {
389
389
  const n = X(t), i = X(e.field);
390
390
  return ie(t.dataType, e.field.dataType) && [...i].some((r) => n.has(r));
391
391
  }
392
- function rt(e) {
392
+ function ot(e) {
393
393
  const t = e.candidates.filter(
394
394
  (n) => Fe(
395
395
  n,
@@ -398,7 +398,7 @@ function rt(e) {
398
398
  );
399
399
  return t.length === 1 ? { status: "matched", target: t[0] } : t.length > 1 ? { status: "ambiguous" } : { status: "notApplicable" };
400
400
  }
401
- function ot(e) {
401
+ function st(e) {
402
402
  const t = [];
403
403
  for (const n of e.acceptedTargets)
404
404
  !ie(
@@ -413,7 +413,7 @@ const ke = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, De = /\{\{-?\s*filters\s*\
413
413
  function Te(e) {
414
414
  return e != null && e.trim() ? ke.test(e) || De.test(e) : !1;
415
415
  }
416
- function st(e) {
416
+ function at(e) {
417
417
  return !(e != null && e.trim()) || Te(e) ? null : we.test(e) ? {
418
418
  helper: "{{ filters | and }}",
419
419
  description: "For queries with an existing WHERE clause."
@@ -425,7 +425,7 @@ function st(e) {
425
425
  function $e(e) {
426
426
  return (e.field.sourceField || e.field.name).trim() || void 0;
427
427
  }
428
- function at(e) {
428
+ function dt(e) {
429
429
  if (e.inventory.kind !== "sql" || e.target.kind !== "field")
430
430
  return { status: "ineligible" };
431
431
  const t = ue(
@@ -502,7 +502,7 @@ function xe(e) {
502
502
  };
503
503
  }
504
504
  }
505
- function Ne(e) {
505
+ function Ae(e) {
506
506
  if (e === void 0) return { ok: !0, population: void 0 };
507
507
  const t = { ok: !1, error: "Invalid option population." };
508
508
  if (!e || typeof e != "object" || Array.isArray(e)) return t;
@@ -525,7 +525,7 @@ function Ne(e) {
525
525
  }
526
526
  };
527
527
  }
528
- function dt(e) {
528
+ function ct(e) {
529
529
  const { dependencies: t } = e, n = /* @__PURE__ */ new Set([
530
530
  e.targetInputId,
531
531
  ...t.excludeInputIds || []
@@ -534,7 +534,7 @@ function dt(e) {
534
534
  (i) => !n.has(i)
535
535
  ) : e.peerInputIds.filter((i) => !n.has(i));
536
536
  }
537
- function ct(e, t, n) {
537
+ function lt(e, t, n) {
538
538
  if (t === n) return e;
539
539
  let i = !1;
540
540
  const r = (d) => d != null && d.includes(t) ? (i = !0, Array.from(
@@ -554,14 +554,14 @@ function ct(e, t, n) {
554
554
  });
555
555
  return i ? o : e;
556
556
  }
557
- function lt(e, t) {
558
- const n = Ae(
557
+ function ut(e, t) {
558
+ const n = Ne(
559
559
  e.dependencies,
560
560
  t
561
561
  );
562
562
  return n === e.dependencies ? e : { ...e, dependencies: n };
563
563
  }
564
- function Ae(e, t) {
564
+ function Ne(e, t) {
565
565
  if (!(t != null && t.length) || e.mode !== "explicit")
566
566
  return e;
567
567
  const n = new Set(e.includeInputIds || []), i = Array.from(new Set(t)).filter(
@@ -687,7 +687,7 @@ function Be(e, t, n) {
687
687
  });
688
688
  }
689
689
  if (e.optionPopulation !== void 0) {
690
- const r = Ne(e.optionPopulation);
690
+ const r = Ae(e.optionPopulation);
691
691
  r.ok ? ((i = r.population) == null ? void 0 : i.kind) === "related_population" && !je(e.optionSource) && n.push({
692
692
  code: "invalid_option_population",
693
693
  path: `${t}.optionPopulation`,
@@ -915,12 +915,12 @@ function qe({
915
915
  });
916
916
  return;
917
917
  }
918
- const N = typeof (_ == null ? void 0 : _.filterId) == "string" ? _.filterId : void 0;
919
- if (y = N ? o.get(N) : void 0, l = "dashboardFilter", !y) {
918
+ const A = typeof (_ == null ? void 0 : _.filterId) == "string" ? _.filterId : void 0;
919
+ if (y = A ? o.get(A) : void 0, l = "dashboardFilter", !y) {
920
920
  r.push({
921
921
  code: "orphaned_filter_reference",
922
922
  path: `${f}.filterReference.filterId`,
923
- message: `${f}.filterReference cannot resolve dashboard filter '${N || ""}'.`,
923
+ message: `${f}.filterReference cannot resolve dashboard filter '${A || ""}'.`,
924
924
  inputId: u.id
925
925
  });
926
926
  return;
@@ -1001,12 +1001,12 @@ function qe({
1001
1001
  });
1002
1002
  }), r.length ? { ok: !1, inputs: s, issues: r } : { ok: !0, inputs: s });
1003
1003
  }
1004
- function ut(e) {
1004
+ function ft(e) {
1005
1005
  const t = qe(e);
1006
1006
  if (!t.ok) throw new Re(t.issues);
1007
1007
  return t.inputs;
1008
1008
  }
1009
- function ft(e = () => globalThis.crypto.randomUUID()) {
1009
+ function pt(e = () => globalThis.crypto.randomUUID()) {
1010
1010
  return e();
1011
1011
  }
1012
1012
  const He = {
@@ -1052,7 +1052,7 @@ function We(e) {
1052
1052
  const t = R(e);
1053
1053
  return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
1054
1054
  }
1055
- function pt(e, t) {
1055
+ function mt(e, t) {
1056
1056
  return typeof t != "string" ? !1 : He[We(e)].has(t);
1057
1057
  }
1058
1058
  function Q(e, t, n = (i) => {
@@ -1061,7 +1061,7 @@ function Q(e, t, n = (i) => {
1061
1061
  }) {
1062
1062
  return t === "sql_param" || t === "presentation_currency" ? [] : t === "config_metric_selector" || t === "config_aggregation" ? e.measures.flatMap((i) => i.kind === "aggregate" ? [{ id: i.id, kind: "measure", measure: i }] : []) : ["rows", "columns"].flatMap((i) => e[i].filter((r) => t !== "config_grain" || ae(n(r.field))).map((r) => ({ id: r.id, kind: "level", axis: i, level: r })));
1063
1063
  }
1064
- function mt(e, t, n, i) {
1064
+ function ht(e, t, n, i) {
1065
1065
  const r = [...e.rows, ...e.columns].find((a) => a.id === t);
1066
1066
  if (!r) throw new Error("Matrix level is no longer present.");
1067
1067
  if (i === t) return { kind: "structure", rows: e.rows, columns: e.columns };
@@ -1088,7 +1088,7 @@ function Z(e, t, n, i) {
1088
1088
  return c && a.every((p) => o.has(p)) ? !0 : (i.push({ kind: "conditional_format", id: d.id, message: "Removed a conditional rule whose measure, level or member path changed." }), !1);
1089
1089
  }) };
1090
1090
  }
1091
- function Ge(e, t, n = !1) {
1091
+ function Ue(e, t, n = !1) {
1092
1092
  const i = { ...t }, r = [], o = C(e, i), d = new Set(i.measures.map((c) => c.id)), s = (c, a, p) => r.push({ kind: c, id: a, message: p });
1093
1093
  return i.sorts = i.sorts.filter((c) => {
1094
1094
  const a = i[c.axis].findIndex(
@@ -1114,7 +1114,7 @@ function Ge(e, t, n = !1) {
1114
1114
  ), a;
1115
1115
  }), { spec: (n ? de : ce).parse(i), notices: r };
1116
1116
  }
1117
- function ht(e, t, n = [], i, r = !1) {
1117
+ function gt(e, t, n = [], i, r = !1) {
1118
1118
  const o = [];
1119
1119
  if (t.kind !== "structure") {
1120
1120
  const l = t.kind === "presentation" ? { ...e, presentation: t.presentation } : t.kind === "defaults" ? { ...e, defaultView: t.defaultView } : t.kind === "sorts" ? { ...e, spec: { ...e.spec, sorts: t.sorts } } : {
@@ -1128,7 +1128,7 @@ function ht(e, t, n = [], i, r = !1) {
1128
1128
  bindings: n
1129
1129
  };
1130
1130
  }
1131
- const d = Ge(e.spec, {
1131
+ const d = Ue(e.spec, {
1132
1132
  ...e.spec,
1133
1133
  rows: t.rows ?? e.spec.rows,
1134
1134
  columns: t.columns ?? e.spec.columns,
@@ -1220,47 +1220,57 @@ function ht(e, t, n = [], i, r = !1) {
1220
1220
  bindings: _
1221
1221
  };
1222
1222
  }
1223
- function Ue(e) {
1223
+ function Ge(e) {
1224
1224
  return !e.entityName || e.entityName === q || e.entityName === "calculated_fields" || e.qualifiedEntityName === q || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
1225
1225
  }
1226
- function gt(e) {
1227
- return ["domain", e.role || "field", Ue(e), e.name].join("::");
1226
+ function Ke(e) {
1227
+ return ["domain", e.role || "field", Ge(e), e.name].join("::");
1228
+ }
1229
+ function bt(e) {
1230
+ var r, o;
1231
+ if (e.fieldScope !== "domain") return;
1232
+ const t = e.calculatedFieldOrigin;
1233
+ if ((r = t == null ? void 0 : t.id) != null && r.startsWith("domain::")) return t.id;
1234
+ const n = (o = e.derivedField) == null ? void 0 : o.resultRole, i = n === "measure" ? "metric" : n === "dimension" || n === "date" ? "groupby" : e.derivedField || t == null ? void 0 : t.role;
1235
+ if (!(i !== "metric" && i !== "groupby"))
1236
+ return Ke({ ...e, role: i });
1228
1237
  }
1229
1238
  export {
1230
1239
  ct as A,
1231
1240
  lt as B,
1232
- Ae as C,
1241
+ ut as C,
1233
1242
  Re as D,
1234
- me as E,
1235
- ge as F,
1236
- it as G,
1237
- Ze as H,
1238
- nt as I,
1239
- ee as J,
1240
- rt as a,
1241
- ot as b,
1243
+ Ne as E,
1244
+ me as F,
1245
+ ge as G,
1246
+ rt as H,
1247
+ et as I,
1248
+ it as J,
1249
+ ee as K,
1250
+ ot as a,
1251
+ st as b,
1242
1252
  O as c,
1243
1253
  Fe as d,
1244
- st as e,
1245
- at as f,
1254
+ at as e,
1255
+ dt as f,
1246
1256
  Q as g,
1247
1257
  Te as h,
1248
- ut as i,
1249
- ft as j,
1258
+ ft as i,
1259
+ pt as j,
1250
1260
  We as k,
1251
- pt as l,
1261
+ mt as l,
1252
1262
  ve as m,
1253
1263
  qe as n,
1254
- et as o,
1255
- tt as p,
1256
- mt as q,
1257
- Ge as r,
1264
+ tt as o,
1265
+ nt as p,
1266
+ ht as q,
1267
+ Ue as r,
1258
1268
  Z as s,
1259
- Ue as t,
1260
- ht as u,
1261
- gt as v,
1262
- Se as w,
1263
- xe as x,
1264
- Ne as y,
1265
- dt as z
1269
+ Ge as t,
1270
+ gt as u,
1271
+ Ke as v,
1272
+ bt as w,
1273
+ Se as x,
1274
+ xe as y,
1275
+ Ae as z
1266
1276
  };