import { r as __name } from "./chunks/rolldown-runtime.mjs"; import { $ as ComputedNode, $i as isStepPath, $n as OrOperator, $t as GlobalStyles, A as ViewRule, Ai as DeploymentFqn, An as ViewRuleGlobalStyle, Ar as RelationshipLineTypes, At as ElementSpecification, B as isViewRulePredicate, Bi as NodeId, Bn as ModelFqnExpr, Bt as DeploymentRelationship, C as ComputedView, Ca as ReorderedArray, Ci as _aux_d_exports, Cn as BaseParsedViewProperties, Cr as LikeC4StyleDefaults, Ct as ViewManualLayoutSnapshot, D as ProcessedDynamicView, Dn as ViewAutoLayout, Dr as RelationshipArrowTypes, Dt as LikeC4ProjectStylesConfig, E as ParsedView, En as RankValue, Er as RelationshipArrowType, Et as LikeC4ProjectStyleDefaults, F as isDiagramView, Fi as GlobalFqn, Fn as isAutoLayoutDirection, Fr as ThemeColor, Ft as DeployedInstance, G as DeploymentViewRule, Gi as RelationshipKind, Gn as RelationExpr, Gr as Any, Gt as ElementStyle, H as DeploymentViewExcludePredicate, Hi as ProjectId, Hn as Expression, Hr as IconPositions, Ht as isDeploymentNode, I as isDynamicView, Ii as GroupElementKind, In as isViewRuleAutoLayout, Ir as ThemeColorValues, It as DeploymentElement, J as ParsedViewRuleAncestors, Ji as Tag, Jn as Filterable, Jr as AnyParsed, Jt as ensureSizes, K as DeploymentViewRuleStyle, Ki as StepEdgeKind, Kn as AndOperator, Kr as AnyComputed, Kt as ModelRelation, L as isElementView, Li as Icon, Ln as isViewRuleGlobalPredicateRef, Lr as isCustomColor, Lt as DeploymentElementRef, M as ViewWithType, Mi as EdgeId, Mn as ViewType, Mr as Size, Mt as Specification, N as isComputedView, Ni as ElementKind, Nn as ViewWithHash, Nr as SpacingSize, Nt as TagSpecification, O as ProcessedView, Oi as AnyFqn, On as ViewRuleAutoLayout, Or as RelationshipColorValues, Ot as LikeC4ProjectStylesCustomStylesheets, P as isDeploymentView, Pi as Fqn, Pn as ViewWithNotation, Pr as TextSize, Pt as isTagColorSpecified, Q as ComputedElementView, Qi as isGroupElementKind, Qn as OperatorPredicate, Qt as GlobalStyleID, R as isExtendsElementView, Ri as IconUrl, Rn as isViewRuleGlobalStyle, Rr as isThemeColor, Rt as DeploymentNode, S as AnyView, Sa as Predicate, Sn as AutoLayoutDirection, Sr as IconSize, St as LayoutedViewDriftReason, T as LayoutedView, Ti as preferSummary, Tn as NodeNotation, Tr as LikeC4Theme, Tt as LikeC4ProjectManualLayoutsConfig, U as DeploymentViewIncludePredicate, Ui as RelationId, Un as FqnExpr, Ur as Sizes, Ut as AbstractRelationship, V as isViewRuleStyle, Vi as NoneIcon, Vn as ModelRelationExpr, Vr as ElementShapes, Vt as isDeployedInstance, W as DeploymentViewPredicate, Wi as RelationKind, Wn as PredicateSelector, Wr as ThemeColors, Wt as Element, X as ComputedDynamicView, Xi as flattenMarkdownOrString, Xn as MetadataEqual, Xt as GlobalPredicateId, Y as ComputedDeploymentView, Yi as ViewId, Yn as KindEqual, Yr as Aux, Yt as GlobalDynamicPredicates, Z as ComputedEdge, Zi as isGlobalFqn, Zn as NotOperator, Zt as GlobalPredicates, _ as AuxFromLikeC4ModelData, _a as Link, _n as isViewRuleGroup, _r as CustomColorDefinitions, _t as LayoutedDeploymentView, a as isAnyOf, aa as _stage, ai as LooseLiteral, an as ParsedDynamicView, ar as isKindEqual, at as DynamicViewFlowSteps, b as LikeC4ModelData, ba as NonEmptyReadonlyArray, bi as UnknownLayouted, bn as AnyIncludePredicate, br as HexColor, bt as DiagramEdgeDriftReason, c as RichText, ca as inferStage, cn as stepGuards, cr as isOrOperator, ct as flowAncestors, d as ViewChange, da as Coalesce, dn as ElementViewPredicate, dr as whereOperatorAsPredicate, dt as parentFlow, ea as scalar_d_exports, en as ModelGlobals, er as Participant, et as ComputedNodeStyle, f as AuxFromDump, fa as ExclusiveUnion, fn as ElementViewRule, fr as FqnRef, ft as stepsBefore, g as SpecificationDump, ga as KeysOf, gn as ParsedElementView, gr as CustomColor, gt as LayoutType, h as SpecTypesFromDump, ha as IteratorLike, hn as ElementViewRuleStyle, hr as ColorLiteral, ht as DiagramNode, i as hasProp, ia as _layout, in as DynamicViewRule, ir as isAndOperator, it as DynamicViewFlowStep, j as ViewRulePredicate, ji as DeploymentKind, jn as ViewRuleRank, jr as ShapeSize, jt as RelationshipSpecification, k as ViewOnStage, ki as BuiltInIcon, kn as ViewRuleGlobalPredicateRef, kr as RelationshipLineType, kt as LikeC4ProjectTheme, l as RichTextEmpty, la as inferType, ln as ElementViewExcludePredicate, lr as isParticipantOperator, lt as flowGuards, m as ProjectDump, ma as IterableContainer, mn as ElementViewRuleRank, mr as Color, mt as DiagramEdge, n as GuardedBy, na as ExtractOnStage, nn as DynamicViewDisplayVariant, nr as TagEqual, nt as DynamicViewFlow, o as isNonEmptyArray, oa as _type, on as Step, or as isMetadataEqual, ot as DynamicViewSubFlow, p as LikeC4ModelDump, pa as IsAnyOrNever, pi as SpecAux, pn as ElementViewRuleGroup, pr as BorderStyle, pt as walkthroughFlow, q as ParsedDeploymentView, qi as StepPath, qn as EqualOperator, qr as AnyLayouted, qt as Relationship, r as hasChildren, ra as ModelStage, rn as DynamicViewIncludeRule, rr as WhereOperator, rt as DynamicViewFlowData, s as isString, sa as _v, sn as WithSteps, sr as isNotOperator, st as dynamicViewFlow, t as Guard, ta as splitGlobalFqn, tn as AnyStep, tr as ParticipantOperator, tt as ComputedRankConstraint, u as RichTextOrEmpty, ua as isOnStage, un as ElementViewIncludePredicate, ur as isTagEqual, ut as flowHelpers, v as ComputedLikeC4ModelData, va as NTuple, vi as Unknown, vn as isViewRuleRank, vr as ElementColorValues, vt as LayoutedDynamicView, w as InferViewAux, wa as exact, wi as preferDescription, wn as BaseViewProperties, wr as LikeC4StylesConfig, wt as LikeC4Project, x as ParsedLikeC4ModelData, xa as OrString, xi as UnknownParsed, xn as AnyViewRuleStyle, xr as IconPosition, xt as DiagramNodeDriftReason, y as LayoutedLikeC4ModelData, ya as NonEmptyArray, yi as UnknownComputed, yn as AnyExcludePredicate, yr as ElementShape, yt as LayoutedElementView, z as isScopedElementView, zi as MarkdownOrString, zn as ModelExpression, zr as BorderStyles, zt as DeploymentRelation } from "./chunks/index.mjs"; import { a as RectBox, c as XYPoint, i as BBox, l as convertPoint, n as VectorValue, o as Dimensions, r as vector, s as Point, t as Vector, u as isPoint } from "./chunks/index2.mjs"; import { o as LikeC4Styles } from "./chunks/index3.mjs"; import { t as DefaultMap } from "./chunks/default-map.mjs"; import { $ as MultiMap, A as ancestorsFqn, B as parentFqn, H as sortNaturalByFqn, I as isAncestor, J as invariant, L as isDescendantOf, O as isIterable, Q as Queue, R as isSameHierarchy, U as sortParentsFirst, X as nonexhaustive, Y as nonNullable, et as LinkedList, h as memoizeProp, tt as DefaultWeakMap, z as nameFromFqn } from "./chunks/index4.mjs"; import { o as LayoutedProjectsView, r as ComputedProjectsView } from "./chunks/_types2.mjs"; //#region src/manual-layout/applyCachedLayout.d.ts /** * When restoring a LayoutedView from cache, the cached view may have stale * non-layout data (colors, links, tags, title, navigateTo, etc.) * because view-hash only covers layout-affecting properties. * This merges current ComputedView data onto the cached layout. */ declare function applyCachedLayout(current: ComputedView, cached: LayoutedView): LayoutedView; //#endregion //#region src/manual-layout/applyManualLayout.d.ts /** * Proof-of-concept * Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view * * @param autoLayouted Auto-layouted view * @param snapshot The view snapshot with manual-layout * @returns The snapshot with the next view applied */ declare function applyManualLayout>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V; //#endregion //#region src/manual-layout/calcDriftsFromSnapshot.d.ts /** * Calculates drifts comparing latest autoLayouted with manual snapshot. * * @returns The autoLayouted view with calculated drifts if any. */ declare function calcDriftsFromSnapshot>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V; //#endregion export { AbstractRelationship, AndOperator, type Any, type Any as AnyAux, type AnyComputed, AnyExcludePredicate, AnyFqn, AnyIncludePredicate, type AnyLayouted, type AnyParsed, AnyStep, AnyView, AnyViewRuleStyle, AutoLayoutDirection, type Aux, AuxFromDump, AuxFromLikeC4ModelData, BBox, BaseParsedViewProperties, BaseViewProperties, type BorderStyle, type BorderStyles, BuiltInIcon, type Coalesce, type Color, type ColorLiteral, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4ModelData, ComputedNode, ComputedNodeStyle, type ComputedProjectsView, ComputedRankConstraint, ComputedView, type CustomColor, type CustomColorDefinitions, DefaultMap, DefaultWeakMap, DeployedInstance, DeploymentElement, DeploymentElementRef, DeploymentFqn, DeploymentKind, DeploymentNode, DeploymentRelation, DeploymentRelationship, DeploymentViewExcludePredicate, DeploymentViewIncludePredicate, DeploymentViewPredicate, DeploymentViewRule, DeploymentViewRuleStyle, DiagramEdge, DiagramEdgeDriftReason, DiagramNode, DiagramNodeDriftReason, type LayoutedView as DiagramView, LayoutedView, type Dimensions, DynamicViewDisplayVariant, DynamicViewFlow, DynamicViewFlowData, DynamicViewFlowStep, DynamicViewFlowSteps, DynamicViewIncludeRule, DynamicViewRule, DynamicViewSubFlow, EdgeId, Element, type ElementColorValues, ElementKind, type ElementShape, type ElementShapes, ElementSpecification, ElementStyle, ElementViewExcludePredicate, ElementViewIncludePredicate, ElementViewPredicate, ElementViewRule, ElementViewRuleGroup, ElementViewRuleRank, ElementViewRuleStyle, EqualOperator, type ExclusiveUnion, Expression, ExtractOnStage, Filterable, Fqn, FqnExpr, FqnRef, GlobalDynamicPredicates, GlobalFqn, GlobalPredicateId, GlobalPredicates, GlobalStyleID, GlobalStyles, GroupElementKind, type Guard, type GuardedBy, type HexColor, Icon, type IconPosition, type IconPositions, type IconSize, IconUrl, InferViewAux, type IsAnyOrNever, type IterableContainer, type IteratorLike, type KeysOf, KindEqual, LayoutType, LayoutedDeploymentView, LayoutedDynamicView, LayoutedElementView, LayoutedLikeC4ModelData, type LayoutedProjectsView, LayoutedViewDriftReason, LikeC4ModelData, LikeC4ModelDump, LikeC4Project, LikeC4ProjectManualLayoutsConfig, LikeC4ProjectStyleDefaults, LikeC4ProjectStylesConfig, LikeC4ProjectStylesCustomStylesheets, LikeC4ProjectTheme, type LikeC4StyleDefaults, LikeC4Styles, type LikeC4StylesConfig, type LikeC4Theme, type ParsedView as LikeC4View, ParsedView, type Link, LinkedList, type LooseLiteral, MarkdownOrString, MetadataEqual, ModelExpression, ModelFqnExpr, ModelGlobals, ModelRelation, ModelRelationExpr, ModelStage, MultiMap, type NTuple, NodeId, NodeNotation, type NonEmptyArray, type NonEmptyReadonlyArray, NoneIcon, NotOperator, OperatorPredicate, OrOperator, type OrString, ParsedDeploymentView, ParsedDynamicView, ParsedElementView, ParsedLikeC4ModelData, ParsedViewRuleAncestors, Participant, ParticipantOperator, type Point, type Predicate, PredicateSelector, ProcessedDynamicView, ProcessedView, ProjectDump, ProjectId, Queue, RankValue, RectBox, RelationExpr, RelationId, RelationKind, Relationship, type RelationshipArrowType, type RelationshipArrowTypes, type RelationshipColorValues, RelationshipKind, type RelationshipLineType, type RelationshipLineTypes, RelationshipSpecification, type ReorderedArray, RichText, type RichTextEmpty, type RichTextOrEmpty, type ShapeSize, type Size, type Sizes, type SpacingSize, type SpecAux, SpecTypesFromDump, Specification, SpecificationDump, Step, StepEdgeKind, StepPath, Tag, TagEqual, TagSpecification, type TextSize, type ThemeColor, type ThemeColorValues, type ThemeColors, type Unknown, type UnknownComputed, type UnknownLayouted, type UnknownParsed, type Vector, type VectorValue, ViewAutoLayout, ViewChange, ViewId, ViewManualLayoutSnapshot, ViewOnStage, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRulePredicate, ViewRuleRank, ViewType, ViewWithHash, ViewWithNotation, ViewWithType, WhereOperator, WithSteps, type XYPoint, _layout, _stage, _type, _v, ancestorsFqn, applyCachedLayout, applyManualLayout, type _aux_d_exports as aux, calcDriftsFromSnapshot, type convertPoint, dynamicViewFlow, ensureSizes, exact, flattenMarkdownOrString, flowAncestors, flowGuards, flowHelpers, hasChildren, hasProp, inferStage, inferType, invariant, isAncestor, isAndOperator, isAnyOf, isAutoLayoutDirection, isComputedView, type isCustomColor, isDeployedInstance, isDeploymentNode, isDeploymentView, isDescendantOf, isDiagramView, isDiagramView as isLayoutedView, isDynamicView, isElementView, isExtendsElementView, isGlobalFqn, isGroupElementKind, isIterable, isKindEqual, isMetadataEqual, isNonEmptyArray, isNotOperator, isOnStage, isOrOperator, isParticipantOperator, type isPoint, isSameHierarchy, isScopedElementView, isStepPath, isString, isTagColorSpecified, isTagEqual, type isThemeColor, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, memoizeProp, nameFromFqn, nonNullable, nonexhaustive, parentFlow, parentFqn, preferDescription, preferSummary, scalar_d_exports as scalar, sortNaturalByFqn, sortParentsFirst, splitGlobalFqn, stepGuards, stepsBefore, type vector, walkthroughFlow, whereOperatorAsPredicate };