@seatlayer/core 0.100.0 → 0.102.0
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.
- package/dist/ar-TGXEBJUB.js +1 -0
- package/dist/be-JIDOHWF6.js +1 -0
- package/dist/bg-ODVJNCC2.js +1 -0
- package/dist/ca-3I7TMWYU.js +1 -0
- package/dist/{categoryInventory-DuOez0-4.d.cts → categoryInventory-7gSFTu0l.d.cts} +1 -1
- package/dist/{categoryInventory-DdJdJ4Og.d.ts → categoryInventory-hJxuFF9L.d.ts} +1 -1
- package/dist/chunk-254ABRJF.js +1 -0
- package/dist/{chunk-VWT44HBR.js → chunk-4DYJCT62.js} +1 -1
- package/dist/chunk-4R6TXHY2.js +1 -0
- package/dist/{chunk-D723OZEY.js → chunk-66T4EAUA.js} +1 -1
- package/dist/{chunk-GLGXP5I7.js → chunk-AFJWTB7L.js} +1 -1
- package/dist/chunk-COECA63Q.js +1 -0
- package/dist/chunk-EIV3CAGV.js +1 -0
- package/dist/chunk-FOIYJ5NT.js +1 -0
- package/dist/chunk-FUFRWRPM.js +1 -0
- package/dist/{chunk-KFVUBZMK.js → chunk-GPZFVQXV.js} +1 -1
- package/dist/{chunk-L34T3APU.js → chunk-GTRYL7YV.js} +1 -1
- package/dist/chunk-JRZHC75P.js +1 -0
- package/dist/chunk-KTMZ3QAO.js +1 -0
- package/dist/chunk-PHV2U54Y.js +1 -0
- package/dist/chunk-TAMY7HTV.js +1 -0
- package/dist/chunk-UEDS3HJ3.js +1 -0
- package/dist/{chunk-P4J57TK6.js → chunk-YPVYZYMH.js} +1 -1
- package/dist/chunk-ZS5YFXSE.js +1 -0
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +30 -9
- package/dist/core/chart-ops/index.d.ts +30 -9
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +72 -5
- package/dist/core/inventory/index.d.ts +72 -5
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.cjs +1 -1
- package/dist/core/layout/index.d.cts +63 -6
- package/dist/core/layout/index.d.ts +63 -6
- package/dist/core/layout/index.js +1 -1
- package/dist/core/quality/index.cjs +1 -1
- package/dist/core/quality/index.d.cts +18 -4
- package/dist/core/quality/index.d.ts +18 -4
- package/dist/core/quality/index.js +1 -1
- package/dist/core/render-assets/index.cjs +1 -1
- package/dist/core/render-assets/index.d.cts +2 -2
- package/dist/core/render-assets/index.d.ts +2 -2
- package/dist/core/render-assets/index.js +1 -1
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/core/sections/index.cjs +1 -1
- package/dist/core/sections/index.d.cts +5 -5
- package/dist/core/sections/index.d.ts +5 -5
- package/dist/core/sections/index.js +1 -1
- package/dist/cs-XXB624Z3.js +1 -0
- package/dist/cy-W2QNU2GO.js +1 -0
- package/dist/da-Q47YPK2E.js +1 -0
- package/dist/de-TS3DPLM5.js +1 -0
- package/dist/{el-ZPFVDCWA.js → el-3JQUH6DB.js} +1 -1
- package/dist/es-GP7VOX7S.js +1 -0
- package/dist/et-A22OMZ6V.js +1 -0
- package/dist/{eventConfigurations-DYn5XP3J.d.cts → eventConfigurations-BHIfPJJJ.d.cts} +1 -1
- package/dist/{eventConfigurations-BISNREZL.d.ts → eventConfigurations-I5UBS6r9.d.ts} +1 -1
- package/dist/fa-5MS3C6YX.js +1 -0
- package/dist/fi-OJLAOJO2.js +1 -0
- package/dist/fr-7ATOYJCF.js +1 -0
- package/dist/he-37LKRY5W.js +1 -0
- package/dist/hi-YXZ5EWK7.js +1 -0
- package/dist/hr-QFOPGLMR.js +1 -0
- package/dist/hu-RHRBK46E.js +1 -0
- package/dist/id-A5Q3MLSX.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +58 -17
- package/dist/index.d.ts +58 -17
- package/dist/index.js +1 -1
- package/dist/it-KG53QPQF.js +1 -0
- package/dist/ja-CC6EPUSN.js +1 -0
- package/dist/ko-7H4RGYFK.js +1 -0
- package/dist/ku-HFYWPSS4.js +1 -0
- package/dist/{labeling-CzuSxAkr.d.ts → labeling-2A31f781.d.cts} +11 -3
- package/dist/{labeling-owTTG6e0.d.cts → labeling-CDKZ9TO1.d.ts} +11 -3
- package/dist/localeLoaders-4YMC7FIZ.js +1 -0
- package/dist/lt-HQXE7W47.js +1 -0
- package/dist/lv-AN25XXPB.js +1 -0
- package/dist/ms-CWAYSF6E.js +1 -0
- package/dist/nl-63QBRZSZ.js +1 -0
- package/dist/no-RAPQMKWU.js +1 -0
- package/dist/pl-ILSTD4ZV.js +1 -0
- package/dist/pt-WF3US5D7.js +1 -0
- package/dist/{renderedQuality-BZycehrC.d.cts → renderedQuality-CwZ8hY-5.d.cts} +1 -1
- package/dist/{renderedQuality-DPElQ3-x.d.ts → renderedQuality-wDIiUId3.d.ts} +1 -1
- package/dist/{renderer-DnsIDiWN.d.cts → renderer-CdJx5l3B.d.ts} +12 -3
- package/dist/{renderer-DPKIlnuF.d.ts → renderer-D6ggv3bV.d.cts} +12 -3
- package/dist/ro-XR3HT6DE.js +1 -0
- package/dist/ru-TLJEWDPA.js +1 -0
- package/dist/{seatTypeIcons-dy3XQVWN.d.ts → seatTypeIcons-DMJX4rVN.d.cts} +2 -2
- package/dist/{seatTypeIcons-QwEebl3k.d.cts → seatTypeIcons-UpUTD8Xf.d.ts} +2 -2
- package/dist/{sections-DSIfnBJY.d.cts → sections-CempT5a0.d.cts} +5 -2
- package/dist/{sections-C8VTe6BN.d.ts → sections-lpdfwSdO.d.ts} +5 -2
- package/dist/{segmentedRowModel-CDvvJJ4-.d.cts → segmentedRowModel-Ddx5ol8T.d.cts} +1 -1
- package/dist/{segmentedRowModel-I8eYUQft.d.ts → segmentedRowModel-HwY4XuYa.d.ts} +1 -1
- package/dist/sk-OJC2EL3Z.js +1 -0
- package/dist/sl-7RGTVXCV.js +1 -0
- package/dist/sr-NHDJ54BS.js +1 -0
- package/dist/sv-ZODCCBCU.js +1 -0
- package/dist/{tableSizing-x8ADFtKS.d.cts → tableSizing-BJqAuJDg.d.cts} +3 -3
- package/dist/{tableSizing-0PwrOWi5.d.ts → tableSizing-C0zx97eg.d.ts} +3 -3
- package/dist/th-VCZA4MP5.js +1 -0
- package/dist/{ticketRestrictions-C8H-XJha.d.ts → ticketRestrictions-AU8UUmdL.d.ts} +39 -3
- package/dist/{ticketRestrictions-O-fv0Os6.d.cts → ticketRestrictions-DDQHiKF-.d.cts} +39 -3
- package/dist/tr-ROKZO3HC.js +1 -0
- package/dist/{types-DWx32xXH.d.cts → types-DL7qIUrD.d.cts} +85 -2
- package/dist/{types-DWx32xXH.d.ts → types-DL7qIUrD.d.ts} +85 -2
- package/dist/uk-LP2DPUHC.js +1 -0
- package/dist/vi-JDK3JRJR.js +1 -0
- package/dist/view3d/crossfade/panorama.d.cts +1 -1
- package/dist/view3d/crossfade/panorama.d.ts +1 -1
- package/dist/view3d/index.cjs +102 -60
- package/dist/view3d/index.d.cts +26 -5
- package/dist/view3d/index.d.ts +26 -5
- package/dist/view3d/index.js +100 -58
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/dist/zh-Hans-P3GB3FAZ.js +1 -0
- package/dist/zh-Hant-YU4OKSFZ.js +1 -0
- package/package.json +1 -1
- package/dist/ar-Q44JP5JY.js +0 -1
- package/dist/be-CGFFSIQL.js +0 -1
- package/dist/bg-WOYK6OLH.js +0 -1
- package/dist/ca-77ZVI3X5.js +0 -1
- package/dist/chunk-23OTKCJU.js +0 -1
- package/dist/chunk-5BMXWOE7.js +0 -1
- package/dist/chunk-5ITK5236.js +0 -1
- package/dist/chunk-COOPHSHM.js +0 -1
- package/dist/chunk-CTIGUXXK.js +0 -1
- package/dist/chunk-HO4MFTVX.js +0 -1
- package/dist/chunk-HYEZPOZU.js +0 -1
- package/dist/chunk-N4J4CT6P.js +0 -1
- package/dist/chunk-QJXSZT3H.js +0 -1
- package/dist/chunk-UIMDB6GZ.js +0 -1
- package/dist/chunk-UISTXRO5.js +0 -1
- package/dist/cs-OSBZYCSR.js +0 -1
- package/dist/cy-ZCOJW2WH.js +0 -1
- package/dist/da-2PDK6JTR.js +0 -1
- package/dist/de-R5LLVFUU.js +0 -1
- package/dist/es-7YASJP32.js +0 -1
- package/dist/et-J4TV6KQL.js +0 -1
- package/dist/fa-4TEO7UGM.js +0 -1
- package/dist/fi-GIUDDKMH.js +0 -1
- package/dist/fr-J5J2XJLA.js +0 -1
- package/dist/he-OCEHSVUJ.js +0 -1
- package/dist/hi-EK5CTBW5.js +0 -1
- package/dist/hr-SLDTQOYC.js +0 -1
- package/dist/hu-2QNE77NO.js +0 -1
- package/dist/id-LGDAFQJK.js +0 -1
- package/dist/it-DT4Y3IYB.js +0 -1
- package/dist/ja-D5EY2XCQ.js +0 -1
- package/dist/ko-DD2NV45Q.js +0 -1
- package/dist/ku-KZCMVLBE.js +0 -1
- package/dist/localeLoaders-GGAKX22E.js +0 -1
- package/dist/lt-QWGTJ47Y.js +0 -1
- package/dist/lv-LYAIG3VK.js +0 -1
- package/dist/ms-XTF4KNGD.js +0 -1
- package/dist/nl-QEXY6XHS.js +0 -1
- package/dist/no-HCOXN2CN.js +0 -1
- package/dist/pl-BWY53TSD.js +0 -1
- package/dist/pt-2UJUBCPL.js +0 -1
- package/dist/ro-GGXOLTED.js +0 -1
- package/dist/ru-ZTFK3WCU.js +0 -1
- package/dist/sk-KU543Y2U.js +0 -1
- package/dist/sl-FT576R7A.js +0 -1
- package/dist/sr-WE3J46JE.js +0 -1
- package/dist/sv-YEAOPSEB.js +0 -1
- package/dist/th-BEBRDHJA.js +0 -1
- package/dist/tr-LOAHUPSH.js +0 -1
- package/dist/uk-2GMICSHN.js +0 -1
- package/dist/vi-TC5B6AUR.js +0 -1
- package/dist/zh-Hans-TSZWTZQY.js +0 -1
- package/dist/zh-Hant-TLB4FZYM.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as Point,
|
|
2
|
-
export { F as FloorLabelStyle } from '../../types-
|
|
3
|
-
export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as polygonLabelPoint, D as rowInventoryCount, G as rowSeatPositions, H as stackFloors, I as tableInventoryCount, J as tableSeatCountsBySide, K as translateObject, L as usableHoles } from '../../tableSizing-
|
|
4
|
-
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-
|
|
5
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
1
|
+
import { P as Point, v as CubicPath, w as TextObject, x as TableChairNumbering, T as TableObject, y as RowAisleSeats, C as ChartDoc, R as RowObject, a as ChartObject } from '../../types-DL7qIUrD.js';
|
|
2
|
+
export { F as FloorLabelStyle } from '../../types-DL7qIUrD.js';
|
|
3
|
+
export { A as AUTOMATIC_ROUND_TABLE_RADIUS_MAX, a as AUTOMATIC_ROUND_TABLE_RADIUS_MIN, C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, b as FLOOR_STACK_MIN_SURFACE_PX, c as FloorStackOptions, d as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, e as TableSeatSlot, f as allObjects, g as automaticRoundTableRadius, h as chartBounds, i as combinedFloorZoneId, j as expandBooth, k as expandChart, l as expandRow, m as expandRowSlots, n as expandTable, o as expandTableSlots, p as floorObjects, q as floorStackPlacements, r as floorsOf, s as initialFloorMode, t as layoutCombinedFloorPlan, u as layoutFloorStack, v as mainFloorId, w as objectCenter, x as owningSectionForObject, y as pointInPolygon, z as pointInPolygonWithHoles, B as polygonLabelPoint, D as rowInventoryCount, G as rowSeatPositions, H as stackFloors, I as tableInventoryCount, J as tableSeatCountsBySide, K as translateObject, L as usableHoles } from '../../tableSizing-C0zx97eg.js';
|
|
4
|
+
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-HwY4XuYa.js';
|
|
5
|
+
import { E as ExpandedSeat } from '../../renderer-CdJx5l3B.js';
|
|
6
6
|
|
|
7
7
|
type SectionShellMode = 'auto' | 'rectangle' | 'tapered' | 'bezier';
|
|
8
8
|
declare function cubicPoint(path: CubicPath, t: number): Point;
|
|
@@ -374,4 +374,61 @@ interface TextLayoutMetrics {
|
|
|
374
374
|
* collision checks. Konva remains authoritative for exact glyph metrics. */
|
|
375
375
|
declare function textLayoutMetrics(text: TextObject): TextLayoutMetrics;
|
|
376
376
|
|
|
377
|
-
|
|
377
|
+
/**
|
|
378
|
+
* Buyer-facing chair numbers for a table. DISPLAY ONLY: the booking label of a
|
|
379
|
+
* chair stays `${table.label}-${index + 1}` (see `tableChairBookingLabel`)
|
|
380
|
+
* whatever the numbering says, so no ticket, hold or booking ever moves.
|
|
381
|
+
*
|
|
382
|
+
* Gaps (skipped chairs) keep their number, exactly as a row's seats and as
|
|
383
|
+
* tables always have: a gap at the third chair reads 1, 2, 4.
|
|
384
|
+
* Anticlockwise walks the same physical chairs in the reverse authored order
|
|
385
|
+
* (round tables: back round the ring; rectangular: right → left → bottom → top).
|
|
386
|
+
*/
|
|
387
|
+
declare const CHAIR_NUMBERING_START_MAX = 999;
|
|
388
|
+
declare const CHAIR_NUMBERING_DIRECTIONS: readonly ["clockwise", "anticlockwise"];
|
|
389
|
+
declare const CHAIR_NUMBERING_FORMATS: readonly ["table-number", "number", "letter"];
|
|
390
|
+
/** The stable inventory label of one chair. Never depends on `chairNumbering`. */
|
|
391
|
+
declare function tableChairBookingLabel(table: Pick<TableObject, 'label'>, index: number): string;
|
|
392
|
+
/** The token buyers read for chair `index`: "3", "C" (no table name). */
|
|
393
|
+
declare function tableChairToken(table: Pick<TableObject, 'seatCount' | 'chairNumbering'>, index: number): string;
|
|
394
|
+
/** What buyers read for chair `index` when the chair has no label of its own. */
|
|
395
|
+
declare function tableChairDisplayLabel(table: Pick<TableObject, 'label' | 'displayLabel' | 'seatCount' | 'chairNumbering'>, index: number): string;
|
|
396
|
+
/** Why a stored/proposed numbering is invalid, or null when it is fine. */
|
|
397
|
+
declare function chairNumberingProblem(value: unknown): string | null;
|
|
398
|
+
/** Drops default values so an all-default numbering is stored as absent. */
|
|
399
|
+
declare function compactChairNumbering(numbering: TableChairNumbering): TableChairNumbering | undefined;
|
|
400
|
+
|
|
401
|
+
/** What one row resolves to, for the Designer's aisle-seat control. */
|
|
402
|
+
interface RowAisleResolution {
|
|
403
|
+
/** The author's override, when the row carries one. */
|
|
404
|
+
override?: RowAisleSeats;
|
|
405
|
+
/** The ends the automatic rule marks for this row (before any override). */
|
|
406
|
+
automatic: RowAisleSeats;
|
|
407
|
+
/** Slot indices of the row's aisle seats (present seats only), ascending. */
|
|
408
|
+
slots: number[];
|
|
409
|
+
}
|
|
410
|
+
/** True when `value` is one of the four override values. */
|
|
411
|
+
declare function isRowAisleSeats(value: unknown): value is RowAisleSeats;
|
|
412
|
+
/**
|
|
413
|
+
* One row's aisle seats. `floorObjects` are the objects on the row's floor
|
|
414
|
+
* (segmented-row siblings are found there); omit them for a row on its own.
|
|
415
|
+
*/
|
|
416
|
+
declare function resolveRowAisleSeats(row: RowObject, floorObjects?: readonly ChartObject[]): RowAisleResolution;
|
|
417
|
+
/** Every aisle seat on the chart, as seat ids (`${rowId}:${slot}`), every floor. */
|
|
418
|
+
declare function aisleSeatIds(doc: ChartDoc): Set<string>;
|
|
419
|
+
/** Is slot `slotIndex` of row `rowId` an aisle seat? Convenience; prefer {@link aisleSeatIds} in loops. */
|
|
420
|
+
declare function isAisleSeat(doc: ChartDoc, rowId: string, slotIndex: number): boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Carry an override across a split: each half keeps the original's outer end
|
|
423
|
+
* and gains an aisle at the new cut. Without an override both halves stay
|
|
424
|
+
* automatic, which already says exactly that.
|
|
425
|
+
*/
|
|
426
|
+
declare function splitRowAisleSeats(original: RowObject, first: RowObject, second: RowObject): void;
|
|
427
|
+
/**
|
|
428
|
+
* Carry overrides across a merge (`ordered` in seat order; the survivor is
|
|
429
|
+
* `ordered[0]`): the merged row keeps the first row's start and the last
|
|
430
|
+
* row's end. The old inner ends now continue into each other.
|
|
431
|
+
*/
|
|
432
|
+
declare function mergeRowAisleSeats(ordered: readonly RowObject[], survivor: RowObject): void;
|
|
433
|
+
|
|
434
|
+
export { type Affine2D, type BuildOptions, CHAIR_NUMBERING_DIRECTIONS, CHAIR_NUMBERING_FORMATS, CHAIR_NUMBERING_START_MAX, DEFAULT_SEAT_RADIUS, type InscribedAnchor, type PerspectiveBounds, type PerspectiveCamera, type PerspectivePoint, type QueryOptions, type Rect, type RectQueryOptions, type RowAisleResolution, type SeatIndex, type SeatShape, type SectionShellMode, TEXT_BACKGROUND_PADDING_MAX, TEXT_BACKGROUND_RADIUS_MAX, TEXT_LETTER_SPACING_MAX, TEXT_LETTER_SPACING_MIN, TEXT_LINE_HEIGHT_MAX, TEXT_LINE_HEIGHT_MIN, TEXT_OPACITY_MIN, TEXT_WIDTH_MAX, TEXT_WIDTH_MIN, type TextLayoutMetrics, aisleSeatIds, applyAffine, buildAisleHoles, buildSeatIndex, buildSectionShell, chairNumberingProblem, compactChairNumbering, composeAffine, createPerspectiveCamera, cubicPoint, decomposeAffineLinear, distanceToRings, distributeAlongCubic, gridStats, hitTest, invertAffine, isAisleSeat, isRowAisleSeats, mergeRowAisleSeats, nearestWithin, perspectiveTangentAffine, polygonArea, polygonInscribedAnchor, polygonNetArea, projectPerspectivePoint, queryRect, resolveRowAisleSeats, smoothCubicThroughMiddle, splitRowAisleSeats, tableChairBookingLabel, tableChairDisplayLabel, tableChairToken, textLayoutMetrics };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as no,j as qo,k as so,l as uo,m as vo,n as wo,o as yo,p as zo,q as Ao,r as Bo,s as Co,t as Do,u as Eo}from"../../chunk-AFJWTB7L.js";import{a as ao,b as bo,c as co,d as go,e as ho,f as io,g as jo,h as ko,i as lo}from"../../chunk-PHV2U54Y.js";import"../../chunk-UEDS3HJ3.js";import"../../chunk-FOIYJ5NT.js";import{$ as s,Ba as F,Ca as G,D as c,Da as H,E as d,Ea as I,F as g,Fa as J,G as h,Ga as K,H as i,Ha as L,I as j,Ia as M,J as k,Ja as N,K as l,Ka as O,L as n,La as P,Ma as Q,Na as R,Oa as S,Pa as T,Qa as U,Ra as V,Sa as W,Ta as X,Ua as Y,Va as Z,Wa as _,Xa as $,_ as q,aa as u,ba as v,q as o,r,s as e,t as f,u as m,v as p,w as t,x,y as a,z as b}from"../../chunk-EIV3CAGV.js";import{j as w,k as y,l as z,m as A,n as B,o as C,p as D,q as E}from"../../chunk-KTMZ3QAO.js";import"../../chunk-CRCGO52K.js";export{bo as AUTOMATIC_ROUND_TABLE_RADIUS_MAX,ao as AUTOMATIC_ROUND_TABLE_RADIUS_MIN,y as CHAIR_NUMBERING_DIRECTIONS,z as CHAIR_NUMBERING_FORMATS,w as CHAIR_NUMBERING_START_MAX,no as DEFAULT_SEAT_RADIUS,oo as FLOOR_STACK_GAP_RATIO,to as FLOOR_STACK_MIN_SURFACE_PX,F as TABLE_SEAT_OFFSET,x as TEXT_BACKGROUND_PADDING_MAX,a as TEXT_BACKGROUND_RADIUS_MAX,p as TEXT_LETTER_SPACING_MAX,m as TEXT_LETTER_SPACING_MIN,f as TEXT_LINE_HEIGHT_MAX,e as TEXT_LINE_HEIGHT_MIN,t as TEXT_OPACITY_MIN,r as TEXT_WIDTH_MAX,o as TEXT_WIDTH_MIN,io as aisleSeatIds,X as allObjects,Ao as applyAffine,co as automaticRoundTableRadius,i as buildAisleHoles,qo as buildSeatIndex,h as buildSectionShell,D as chairNumberingProblem,$ as chartBounds,ro as combinedFloorZoneId,E as compactChairNumbering,Co as composeAffine,yo as createPerspectiveCamera,c as cubicPoint,Eo as decomposeAffineLinear,j as distanceToRings,g as distributeAlongCubic,O as expandBooth,_ as expandChart,J as expandRow,I as expandRowSlots,N as expandTable,L as expandTableSlots,W as floorObjects,eo as floorStackPlacements,V as floorsOf,wo as gridStats,so as hitTest,xo as initialFloorMode,Bo as invertAffine,jo as isAisleSeat,go as isRowAisleSeats,mo as layoutCombinedFloorPlan,fo as layoutFloorStack,po as mainFloorId,lo as mergeRowAisleSeats,uo as nearestWithin,T as objectCenter,U as owningSectionForObject,Do as perspectiveTangentAffine,P as pointInPolygon,R as pointInPolygonWithHoles,k as polygonArea,n as polygonInscribedAnchor,S as polygonLabelPoint,l as polygonNetArea,zo as projectPerspectivePoint,vo as queryRect,ho as resolveRowAisleSeats,v as resolveSegmentedRowGroups,H as rowInventoryCount,G as rowSeatPositions,s as segmentedRowComponentSeats,q as segmentedRowComponents,u as segmentedRowSeatTotal,d as smoothCubicThroughMiddle,ko as splitRowAisleSeats,Z as stackFloors,A as tableChairBookingLabel,C as tableChairDisplayLabel,B as tableChairToken,M as tableInventoryCount,K as tableSeatCountsBySide,b as textLayoutMetrics,Y as translateObject,Q as usableHoles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var Ce=(t,r)=>{for(var n in r)Z(t,n,{get:r[n],enumerable:!0})},ke=(t,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Ie(r))!Re.call(t,l)&&l!==n&&Z(t,l,{get:()=>r[l],enumerable:!(a=we(r,l))||a.enumerable});return t};var Ae=t=>ke(Z({},"__esModule",{value:!0}),t);var ct={};Ce(ct,{ACCESS_GLYPH_PATH:()=>$e,ACCESS_GLYPH_VIEWBOX:()=>Ue,ACCESS_TYPE_GLYPH_PATHS:()=>X,AUTHORED_LABEL_MIN_CONTRAST:()=>qe,BLOCK_LABEL_FILL_RATIO:()=>ue,BOOTH_LABEL_FONT_SIZE:()=>U,DARK_BOOKABLE_LABEL_INK:()=>f,DARK_NEUTRAL_SECTION_FILL:()=>pe,GA_CAPACITY_LABEL_FONT_SIZE:()=>Ge,GA_FILL_OPACITY:()=>je,GA_LABEL_FONT_SIZE:()=>De,LARGE_TEXT_CONTRAST:()=>de,LIGHT_BOOKABLE_LABEL_INK:()=>h,LIGHT_NEUTRAL_SECTION_FILL:()=>me,MIN_POINTER_TARGET_PX:()=>W,MIN_VISIBLE_BOOKABLE_LABEL_PX:()=>A,RENDERED_QUALITY_REPORT_VERSION:()=>he,ROW_LABEL_FONT_SIZE:()=>Fe,SEAT_LABEL_FONT_SIZE:()=>Oe,SECTION_NAME_CONTRAST:()=>$,SMALL_TEXT_CONTRAST:()=>v,accessGlyphInk:()=>nt,accessGlyphPath:()=>Xe,accessibilityRingInk:()=>Ye,blockLabelFontSize:()=>Ne,bookableMarkerLabel:()=>We,categoryBandInk:()=>et,compositeHexOver:()=>Je,explicitOrStateAwareLabelInk:()=>tt,inspectRenderedQualityEvidence:()=>st,isBookableLabelLegibleAtScale:()=>Qe,isLightFill:()=>ge,mapSeparatingInk:()=>be,minimumTextContrast:()=>Ze,neutralSectionFill:()=>it,renderedTextContrast:()=>d,stateAwareBookableLabelInk:()=>Y,summarizeLabelInkContrast:()=>ot});module.exports=Ae(ct);var Te=[{key:"wheelchair",label:"Wheelchair space",short:"Wheelchair",icon:"\u267F"},{key:"companion",label:"Companion seat",short:"Companion",icon:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}"},{key:"semi-ambulatory",label:"Semi-ambulatory (limited mobility)",short:"Limited mobility",icon:"\u{1F9AF}"},{key:"designated-aisle",label:"Designated aisle / transfer seat",short:"Aisle transfer",icon:"AS"},{key:"step-free",label:"Step-free accessible seat",short:"Step-free",icon:"SF"},{key:"hearing",label:"Assistive listening",short:"Hearing",icon:"\u{1F9BB}"},{key:"cart",label:"CART live-caption view",short:"CART captions",icon:"CC"},{key:"sign-language",label:"Sign-language view",short:"Sign language",icon:"\u{1F91F}"},{key:"low-vision",label:"Blind / low-vision viewing",short:"Low vision",icon:"LV"},{key:"sensory-friendly",label:"Quiet / sensory-friendly seating",short:"Sensory-friendly",icon:"QS"},{key:"plus-size",label:"Plus-size seat",short:"Plus-size",icon:"\u{1F4BA}"},{key:"lift-armrest",label:"Lift-up armrest",short:"Lift armrest",icon:"\u2195\uFE0F"}],ut=new Map(Te.map(t=>[t.key,t]));var Ee={wheelchair:"#3b82f6",companion:"#8b5cf6","semi-ambulatory":"#0ea5e9","designated-aisle":"#0284c7","step-free":"#16a34a",hearing:"#14b8a6",cart:"#7c3aed","sign-language":"#f59e0b","low-vision":"#d97706","sensory-friendly":"#6366f1","plus-size":"#ec4899","lift-armrest":"#22c55e"};function se(t){let r=t?.[0];return r&&Ee[r]||"#3b82f6"}var Me=[{key:"obstructedView",label:"Obstructed view",short:"Obstructed",icon:"\u26D4"},{key:"restrictedView",label:"Restricted view",short:"Restricted",icon:"\u{1F441}"},{key:"premium",label:"Premium seat",short:"Premium",icon:"\u2605"}],dt=new Map(Me.map(t=>[t.key,t]));var Be=["reference-focal","bar","entrance","exit","restroom","screen","sound","concession","coat","wall","rail","suite","obstruction"],bt=new Set(Be);var Pe=/^#?([\da-f]{3}|[\da-f]{6})$/i;function L(t){let r=Pe.exec((t??"").trim());if(!r)return null;let n=r[1].length===3?r[1].split("").map(l=>l+l).join(""):r[1],a=parseInt(n,16);return[a>>16&255,a>>8&255,a&255]}function Q(t){let r=t/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function z(t){return .2126*Q(t[0])+.7152*Q(t[1])+.0722*Q(t[2])}function ce(t,r){let n=L(t),a=L(r);if(!n||!a)return null;let l=z(n),u=z(a);return(Math.max(l,u)+.05)/(Math.min(l,u)+.05)}function _e(t){let r=t.trim();if(r.startsWith("#")){let a=L(r);return a?(.2126*a[0]+.7152*a[1]+.0722*a[2])/255:NaN}let n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/.exec(r);return n?(.2126*+n[1]+.7152*+n[2]+.0722*+n[3])/255:NaN}function V(t,r=.6){let n=_e(t);return!Number.isNaN(n)&&n>r}var Oe=7,Fe=10,U=10,ue=.39,ze=.8,Ve=.62;function Ne(t){let r=Math.min(Math.abs(t.width),Math.abs(t.height));if(!(r>0))return U;let n=Math.max(1,t.text.length),a=Math.abs(t.width)*ze/(n*Ve);return Math.max(U,Math.min(r*ue,a))}var De=15,Ge=11,je=.85,A=12,v=4.5,$=3,de=3,f="#000000",h="#ffffff",Ke=24,He=18.67;function Ze(t,r=400){return t>=Ke||r>=700&&t>=He?de:v}function Qe(t,r){return t*r>=A}var Ue=24,X={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z","designated-aisle":"M3 5L6 5L6 14L3 14ZM3 12L13 12L13 15L3 15ZM5 15L7 15L7 20L5 20ZM11 15L13 15L13 20L11 20ZM13 7L20 7L17 4L19 4L23 8.5L19 13L17 13L20 10L13 10Z","step-free":"M4 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM4.4 7L7.5 7L7.5 13L11 15L9.5 17L5 14L4.4 7ZM2 19L8 19L17 10L22 10L22 13L18 13L10 21L2 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","low-vision":"M2.5 12C6 6 18 6 21.5 12C18 18 6 18 2.5 12ZM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM17.5 3L19 3L19 6L17.5 6ZM19 4L22 4L22 5.5L19 5.5Z","sensory-friendly":"M4 11C4 5 7 2.5 12 2.5S20 5 20 11L17 11C17 7 15.5 5.5 12 5.5S7 7 7 11ZM3 10L8 10L8 19L5 19a2 2 0 0 1 -2 -2ZM16 10L21 10L21 17a2 2 0 0 1 -2 2L16 19ZM9 12L15 12L15 14L9 14ZM10 16L14 16L14 18L10 18Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},$e=X.wheelchair;function Xe(t){if(!t?.length)return null;let r=t.includes("wheelchair")?"wheelchair":t[0];return X[r]??null}function Ye(t,r){return r.colorblind?be(r.canvasBackground):se(t)}function We(t){return/-(\d{1,5})$/.exec(t)?.[1]??t}var d=ce;function Je(t,r,n){let a=L(t),l=L(r);if(!a||!l)return r;let u=Math.max(0,Math.min(1,n));return`#${a.map((p,M)=>Math.round(p*u+l[M]*(1-u))).map(p=>p.toString(16).padStart(2,"0")).join("")}`}var qe=3;function et(t){let r=d(h,t)??0,n=d(f,t)??0;return r>=v?h:n>=v&&V(t)||V(t)?f:h}function be(t){return V(t)?f:h}function Y(t,r,n=v){let a=d(r,t);if(a!=null&&a>=n)return r;let l=d(f,t)??0,u=d(h,t)??0;return l===0&&u===0?r:l>=u?f:h}function tt(t,r,n,a=v){return r??Y(t,n,a)}var rt=3;function nt(t){let r=d("#ffffff",t);if(r!=null&&r>=rt)return"#ffffff";let n=d(f,t)??0,a=d(h,t)??0;return n===0&&a===0?"#ffffff":n>=a?f:h}var le=/^#[0-9a-f]{6}$/i;function ge(t){let r=L(t);return r!=null&&z(r)>.5}var me="#e5e7eb",pe="#273142";function it(t){return ge(t)?me:pe}function ot(t,r,n=v){let a=le.test(t.trim()),l=t.trim().toLowerCase(),u=0,m=0,p=null;for(let B of r){if(!a||!le.test(B.trim()))continue;u+=1;let P=Y(B,t,n);P.toLowerCase()!==l&&(m+=1,p=P)}return{total:u,overridden:m,status:u===0?"none":m===0?"applies":m===u?"overridden":"mixed",overrideInk:p}}var he=3,T=4.5,N=3,W=24,at=20;function D(t){return t.filter(r=>r.visible&&!!r.screenBox)}function S(t,r){return t.x<r.x+r.width&&t.x+t.width>r.x&&t.y<r.y+r.height&&t.y+t.height>r.y}function y(t){return t.length?Math.round(Math.min(...t)*100)/100:null}function c(t,r,n){return n.length?{code:t,message:r,count:n.length,samples:n.slice(0,at)}:null}function E(t,r,n){return{primaryId:t.seatId,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function G(t,r,n){return{primaryId:t.id,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function fe(t,r,n){return{primaryId:t.objectId,primaryLabel:t.text,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function w(t,r,n,a){return{primaryId:t,primaryLabel:r,secondaryId:n,secondaryLabel:a}}function st(t,r="overview",n=null){let a=D(t.labels),l=D(t.hierarchyLabels),u=D(t.freeTextLabels),m=D(t.rowLabels),p=t.gaAreas.filter(e=>e.visible),M=a.map(e=>d(e.ink,e.fill)??0),B=l.map(e=>d(e.ink,e.fill)??0),P=u.map(e=>d(e.ink,e.background)??0),ye=p.map(e=>d(e.effectiveBackground,t.canvasBackground)??0),b=n?t.labels.filter(e=>e.categoryKey===n):t.labels,I=n?t.gaAreas.filter(e=>e.categoryKey===n):t.gaAreas,x=b.filter(e=>e.selected),R=b.filter(e=>e.status==="held"),C=b.filter(e=>e.status==="booked"),_=b.filter(e=>e.pointerTarget.active),J=new Set([...t.labels.filter(e=>e.visible&&(e.opacity>.25||e.selected||e.status!=="free")).map(e=>e.categoryKey),...t.gaAreas.filter(e=>e.visible&&e.opacity>.1).map(e=>e.categoryKey)]),O=x.length?y(x.map(e=>d(e.selectionRingColor??t.selectionRingColor,e.fill)??0)):null,s=[],k=(e,i)=>Array.from({length:e},(g,F)=>({primaryId:`overview:${F+1}`,primaryLabel:i}));r==="overview"&&t.rung==="sections"&&(s.push(c("overview-section-category-paint","Section overview shells must use the neutral hierarchy palette, not category paint",k(t.overviewStyle.categoryPaintedSectionShells,"category-painted section shell"))),s.push(c("overview-category-detail-visible","Category-tinted section detail must wait until section focus or seat zoom",k(t.overviewStyle.visibleCategoryDetailOutlines,"category detail outline"))),s.push(c("overview-row-hints-visible","Row and seat patterns must not clutter the section overview",k(t.overviewStyle.visibleSectionRowHints,"section row hint"))),s.push(c("overview-availability-clutter","Live availability counts belong in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionAvailabilityLabels,"section availability label"))),s.push(c("overview-ga-detail-visible","Section-contained standing paint belongs in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionGADetails,"section-contained GA detail")))),s.push(c("bookable-label-undersized","Visible bookable labels must meet the rendered small-text size floor",a.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>E(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),s.push(c("bookable-label-viewport-clipped","Visible interaction labels must remain fully inside the buyer viewport",r==="interaction"?a.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>E(e)):[])),s.push(c("row-label-viewport-clipped","Visible interaction row labels must remain fully inside the buyer viewport",r==="interaction"?m.flatMap((e,i)=>{let g=e.screenBox;return g.x<0||g.y<0||g.x+g.width>t.viewport.width||g.y+g.height>t.viewport.height?[{primaryId:`row-label-${i}`,primaryLabel:e.text}]:[]}):[]));let q=[];if(r==="interaction")for(let e=0;e<m.length;e+=1)for(let i=0;i<e;i+=1)S(m[e].screenBox,m[i].screenBox)&&q.push(w(`row-label-${i}`,m[i].text,`row-label-${e}`,m[e].text));if(s.push(c("row-label-collision","Visible interaction row labels must not overlap",q)),r==="interaction"){let e=b.length>0,i=I.length>0,g=e||i,F=I.filter(o=>o.visible),xe=new Set([...b.flatMap(o=>o.sectionId?[o.sectionId]:[]),...I.flatMap(o=>o.sectionId?[o.sectionId]:[])]),Le=new Set([...t.labels.map(o=>o.categoryKey),...t.gaAreas.map(o=>o.categoryKey)]),j=o=>o.screenCenter.x>=0&&o.screenCenter.x<=t.viewport.width&&o.screenCenter.y>=0&&o.screenCenter.y<=t.viewport.height;s.push(c("detail-rung-missing","Interaction evidence with bookable inventory must render the seat-detail rung",g&&t.rung!=="seats"?[{primaryId:"renderer",primaryLabel:t.rung}]:[])),s.push(c("detail-inventory-not-visible","Interaction evidence must frame at least one real bookable unit",g&&!b.some(j)&&!F.length?[{primaryId:"renderer",primaryLabel:"no target inventory in viewport"}]:[])),s.push(c("pointer-target-inactive","Interaction evidence must expose a live production pointer target",e&&!_.some(j)||!e&&i&&!F.some(o=>o.interactive)?[{primaryId:"renderer",primaryLabel:"no active pointer target in viewport"}]:[])),s.push(c("pointer-target-undersized","Every active production pointer target must reach at least 24 CSS pixels",_.filter(o=>j(o)&&o.pointerTarget.effectiveMinimumPx<W).map(o=>E(o,o.pointerTarget.effectiveMinimumPx,W)))),s.push(c("selected-state-missing","Interaction evidence must paint a selected unit and its renderer-owned ring",e&&(!x.length||!x.some(o=>t.selectionRingSeatIds.includes(o.seatId)))?[{primaryId:"renderer",primaryLabel:"selected state"}]:[])),s.push(c("selected-state-contrast-low","The selected-state ring must maintain 3:1 graphical contrast with the seat paint",x.length&&(O??0)<N?[{primaryId:x[0].seatId,primaryLabel:x[0].label,measured:Math.round((O??0)*100)/100,minimum:N}]:[])),s.push(c("held-state-missing","Interaction evidence must paint a held state when the floor has at least two status-managed units",b.length>=2&&!R.length?[{primaryId:"renderer",primaryLabel:"held state"}]:[])),s.push(c("booked-state-missing","Interaction evidence must paint a taken state when the floor has at least three status-managed units",b.length>=3&&!C.length?[{primaryId:"renderer",primaryLabel:"booked state"}]:[]));let ve=new Set(R.map(o=>`${o.fill.toLowerCase()}:${o.opacity}`)),Se=new Set(C.map(o=>`${o.fill.toLowerCase()}:${o.opacity}`));s.push(c("status-state-indistinct","Held and taken evidence must resolve to distinct renderer paint",R.length&&C.length&&[...ve].some(o=>Se.has(o))?[{primaryId:R[0].seatId,primaryLabel:R[0].label,secondaryId:C[0].seatId,secondaryLabel:C[0].label}]:[])),s.push(c("section-focus-missing","Interaction evidence must exercise section focus and its backdrop when section membership exists",xe.size&&(!t.focusedSectionId||!t.focusBackdropVisible)?[{primaryId:"renderer",primaryLabel:"section focus"}]:[])),s.push(c("category-filter-missing","Interaction evidence must exercise a category filter when multiple categories exist",Le.size>=2&&(!t.categoryFilterKeys||!t.categoryFilterKeys.length)?[{primaryId:"renderer",primaryLabel:"category filter"}]:[]));let K=t.labels.filter(o=>o.status==="free"&&!o.selected&&t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(o.categoryKey)),H=t.gaAreas.filter(o=>t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(o.categoryKey));s.push(c("category-filter-ineffective","The active category filter must visibly dim excluded free inventory",(K.length||H.length)&&!K.some(o=>o.opacity<=.25)&&!H.some(o=>o.opacity<=.1)?[...K.map(o=>E(o,o.opacity)),...H.map(o=>({primaryId:o.areaId,primaryLabel:o.label,measured:o.opacity}))]:[])),s.push(c("target-category-not-visible","A category-specific interaction scene must visibly paint its exact target category",n&&!J.has(n)?[{primaryId:n,primaryLabel:n}]:[])),s.push(c("target-category-filter-mismatch","A category-specific interaction scene must bind its filter to only the exact target category",n&&(t.categoryFilterKeys?.length!==1||t.categoryFilterKeys[0]!==n)?[{primaryId:n,primaryLabel:n}]:[]))}s.push(c("bookable-label-contrast-low","Visible bookable labels must meet 4.5:1 contrast against their actual paint",a.flatMap(e=>{let i=d(e.ink,e.fill)??0;return i<T?[E(e,i,T)]:[]})));let ee=[];for(let e=0;e<a.length;e+=1)for(let i=0;i<e;i+=1)S(a[e].screenBox,a[i].screenBox)&&ee.push(w(a[i].seatId,a[i].label,a[e].seatId,a[e].label));s.push(c("bookable-label-collision","Visible bookable labels must not overlap",ee)),s.push(c("hierarchy-label-undersized","Visible section and zone labels must meet the rendered small-text size floor",l.filter(e=>e.renderedFontPx<(e.sizeFloorPx??A)).map(e=>G(e,e.renderedFontPx,e.sizeFloorPx??A)))),s.push(c("hierarchy-label-contrast-low","Visible section and zone labels must meet 4.5:1 contrast against their backing paint",l.flatMap(e=>{let i=d(e.ink,e.fill)??0,g=e.kind==="section"&&e.role==="name"?$:T;return i<g?[G(e,i,g)]:[]}))),s.push(c("hierarchy-label-viewport-clipped","Visible overview hierarchy labels must remain fully inside the buyer viewport",r==="overview"?l.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>G(e)):[])),s.push(c("hierarchy-label-outside-section","Visible section labels must remain inside the filled section surface and outside holes",l.filter(e=>e.kind==="section"&&e.fitsContainer===!1).map(e=>G(e))));let te=[];for(let e=0;e<l.length;e+=1)for(let i=0;i<e;i+=1)S(l[e].screenBox,l[i].screenBox)&&te.push(w(l[i].id,l[i].label,l[e].id,l[e].label));s.push(c("hierarchy-label-collision","Visible hierarchy labels must not overlap each other",te));let re=[];for(let e of l)for(let i of a)S(e.screenBox,i.screenBox)&&re.push(w(e.id,e.label,i.seatId,i.label));s.push(c("hierarchy-bookable-collision","Visible hierarchy labels must not overlap bookable labels",re)),s.push(c("free-text-undersized","Visible chart text must meet the rendered small-text size floor",u.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>fe(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),s.push(c("free-text-contrast-low","Visible chart text must meet 4.5:1 contrast against its measured background",u.flatMap(e=>{let i=d(e.ink,e.background)??0;return i<T?[fe(e,i,T)]:[]})));let ne=[];for(let e=0;e<u.length;e+=1)for(let i=0;i<e;i+=1)S(u[e].screenBox,u[i].screenBox)&&ne.push(w(u[i].objectId,u[i].text,u[e].objectId,u[e].text));s.push(c("free-text-collision","Visible chart text labels must not overlap each other",ne));let ie=[];for(let e of u)for(let i of a)S(e.screenBox,i.screenBox)&&ie.push(w(e.objectId,e.text,i.seatId,i.label));s.push(c("free-text-bookable-collision","Visible chart text must not overlap bookable labels",ie));let oe=[];for(let e of u)for(let i of l)S(e.screenBox,i.screenBox)&&oe.push(w(e.objectId,e.text,i.id,i.label));s.push(c("free-text-hierarchy-collision","Visible chart text must not overlap hierarchy labels",oe)),s.push(c("ga-contrast-low","Visible GA surfaces must maintain 3:1 graphical contrast with the canvas",p.flatMap(e=>{let i=d(e.effectiveBackground,t.canvasBackground)??0;return i<N?[{primaryId:e.areaId,primaryLabel:e.label,measured:Math.round(i*100)/100,minimum:N}]:[]})));let ae=s.filter(e=>!!e);return{version:he,passed:ae.length===0,state:r,targetCategoryKey:n,resolvedRules:["rendered-overview-label-size","rendered-overview-label-contrast","rendered-overview-label-collision","rendered-overview-hierarchy-viewport","rendered-overview-hierarchy-containment","rendered-overview-section-first-style","rendered-overview-ga-contrast",...r==="interaction"?["rendered-detail-label-viewport","rendered-detail-inventory","rendered-pointer-target","rendered-selected-held-taken-states","rendered-section-focus","rendered-category-filter"]:[]],viewport:t.viewport,canvasBackground:t.canvasBackground,effectiveScale:t.effectiveScale,rung:t.rung,inventory:{totalBookableUnits:t.totalBookableUnits,totalLabelledBookableUnits:t.totalLabelledBookableUnits,visibleBookableLabels:a.length,hiddenBookableLabels:t.hiddenLabels,visibleHierarchyLabels:l.length,visibleFreeTextLabels:u.length,visibleGAAreas:p.length},overviewStyle:t.overviewStyle,composition:{hierarchy:t.hierarchyLabels.filter(e=>e.role==="name").map(e=>({id:e.id,kind:e.kind,label:e.label,visible:e.visible})).sort((e,i)=>e.kind.localeCompare(i.kind)||e.id.localeCompare(i.id)),labelledObjects:t.freeTextLabels.map(e=>({objectId:e.objectId,kind:e.kind,text:e.text,visible:e.visible})).sort((e,i)=>e.objectId.localeCompare(i.objectId)||e.kind.localeCompare(i.kind)),gaAreas:t.gaAreas.map(e=>({areaId:e.areaId,label:e.label,categoryKey:e.categoryKey,...e.sectionId?{sectionId:e.sectionId}:{},visible:e.visible})).sort((e,i)=>e.areaId.localeCompare(i.areaId)),bookableSectionIds:[...new Set(t.labels.flatMap(e=>e.sectionId?[e.sectionId]:[]))].sort(),categoryKeys:[...new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)])].sort(),activeCategoryKeys:[...J].sort()},metrics:{minimumRenderedBookableLabelPx:y(a.map(e=>e.renderedFontPx)),minimumBookableLabelContrast:y(M),minimumRenderedHierarchyLabelPx:y(l.map(e=>e.renderedFontPx)),minimumHierarchyLabelContrast:y(B),minimumRenderedFreeTextPx:y(u.map(e=>e.renderedFontPx)),minimumFreeTextContrast:y(P),minimumGAContrast:y(ye),minimumEffectivePointerTargetPx:y(_.map(e=>e.pointerTarget.effectiveMinimumPx)),selectedRingContrast:O==null?null:Math.round(O*100)/100},interaction:{applicable:{detail:b.length>0||I.length>0,pointer:b.length>0||I.length>0,held:b.length>=2,booked:b.length>=3,sectionFocus:b.some(e=>!!e.sectionId)||I.some(e=>!!e.sectionId),categoryFilter:new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)]).size>=2},selectedUnits:x.length,heldUnits:R.length,bookedUnits:C.length,activePointerTargets:_.length,focusedSectionId:t.focusedSectionId,focusBackdropVisible:t.focusBackdropVisible,categoryFilterKeys:t.categoryFilterKeys},findings:ae}}0&&(module.exports={ACCESS_GLYPH_PATH,ACCESS_GLYPH_VIEWBOX,ACCESS_TYPE_GLYPH_PATHS,AUTHORED_LABEL_MIN_CONTRAST,BLOCK_LABEL_FILL_RATIO,BOOTH_LABEL_FONT_SIZE,DARK_BOOKABLE_LABEL_INK,DARK_NEUTRAL_SECTION_FILL,GA_CAPACITY_LABEL_FONT_SIZE,GA_FILL_OPACITY,GA_LABEL_FONT_SIZE,LARGE_TEXT_CONTRAST,LIGHT_BOOKABLE_LABEL_INK,LIGHT_NEUTRAL_SECTION_FILL,MIN_POINTER_TARGET_PX,MIN_VISIBLE_BOOKABLE_LABEL_PX,RENDERED_QUALITY_REPORT_VERSION,ROW_LABEL_FONT_SIZE,SEAT_LABEL_FONT_SIZE,SECTION_NAME_CONTRAST,SMALL_TEXT_CONTRAST,accessGlyphInk,accessGlyphPath,accessibilityRingInk,blockLabelFontSize,bookableMarkerLabel,categoryBandInk,compositeHexOver,explicitOrStateAwareLabelInk,inspectRenderedQualityEvidence,isBookableLabelLegibleAtScale,isLightFill,mapSeparatingInk,minimumTextContrast,neutralSectionFill,renderedTextContrast,stateAwareBookableLabelInk,summarizeLabelInkContrast});
|
|
1
|
+
"use strict";var Z=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var Ce=(t,r)=>{for(var n in r)Z(t,n,{get:r[n],enumerable:!0})},Ae=(t,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Ie(r))!Re.call(t,l)&&l!==n&&Z(t,l,{get:()=>r[l],enumerable:!(a=we(r,l))||a.enumerable});return t};var ke=t=>Ae(Z({},"__esModule",{value:!0}),t);var dt={};Ce(dt,{ACCESS_GLYPH_PATH:()=>We,ACCESS_GLYPH_VIEWBOX:()=>Ye,ACCESS_TYPE_GLYPH_PATHS:()=>X,AUTHORED_LABEL_MIN_CONTRAST:()=>rt,BLOCK_LABEL_FILL_RATIO:()=>ue,BOOTH_LABEL_FONT_SIZE:()=>U,DARK_BOOKABLE_LABEL_INK:()=>f,DARK_NEUTRAL_SECTION_FILL:()=>pe,GA_CAPACITY_LABEL_FONT_SIZE:()=>Ge,GA_FILL_OPACITY:()=>Ze,GA_LABEL_FONT_SIZE:()=>De,LARGE_TEXT_CONTRAST:()=>de,LIGHT_BOOKABLE_LABEL_INK:()=>h,LIGHT_NEUTRAL_SECTION_FILL:()=>me,MIN_POINTER_TARGET_PX:()=>W,MIN_VISIBLE_BOOKABLE_LABEL_PX:()=>k,RENDERED_QUALITY_REPORT_VERSION:()=>he,ROW_LABEL_FONT_SIZE:()=>Fe,SEAT_LABEL_FONT_SIZE:()=>Oe,SECTION_NAME_CONTRAST:()=>$,SMALL_TEXT_CONTRAST:()=>v,TABLE_NAME_FONT_SIZE:()=>je,accessGlyphInk:()=>at,accessGlyphPath:()=>Je,accessibilityRingInk:()=>qe,blockLabelFontSize:()=>Ve,bookableMarkerLabel:()=>et,bookableNameSize:()=>He,bookableNameVisible:()=>Ke,categoryBandInk:()=>nt,compositeHexOver:()=>tt,explicitOrStateAwareLabelInk:()=>it,inspectRenderedQualityEvidence:()=>ut,isBookableLabelLegibleAtScale:()=>Xe,isLightFill:()=>ge,mapSeparatingInk:()=>be,minimumTextContrast:()=>$e,neutralSectionFill:()=>st,renderedTextContrast:()=>d,stateAwareBookableLabelInk:()=>Y,summarizeLabelInkContrast:()=>ct});module.exports=ke(dt);var Te=[{key:"wheelchair",label:"Wheelchair space",short:"Wheelchair",icon:"\u267F"},{key:"companion",label:"Companion seat",short:"Companion",icon:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}"},{key:"semi-ambulatory",label:"Semi-ambulatory (limited mobility)",short:"Limited mobility",icon:"\u{1F9AF}"},{key:"designated-aisle",label:"Designated aisle / transfer seat",short:"Aisle transfer",icon:"AS"},{key:"step-free",label:"Step-free accessible seat",short:"Step-free",icon:"SF"},{key:"hearing",label:"Assistive listening",short:"Hearing",icon:"\u{1F9BB}"},{key:"cart",label:"CART live-caption view",short:"CART captions",icon:"CC"},{key:"sign-language",label:"Sign-language view",short:"Sign language",icon:"\u{1F91F}"},{key:"low-vision",label:"Blind / low-vision viewing",short:"Low vision",icon:"LV"},{key:"sensory-friendly",label:"Quiet / sensory-friendly seating",short:"Sensory-friendly",icon:"QS"},{key:"plus-size",label:"Plus-size seat",short:"Plus-size",icon:"\u{1F4BA}"},{key:"lift-armrest",label:"Lift-up armrest",short:"Lift armrest",icon:"\u2195\uFE0F"}],gt=new Map(Te.map(t=>[t.key,t]));var Ee={wheelchair:"#3b82f6",companion:"#8b5cf6","semi-ambulatory":"#0ea5e9","designated-aisle":"#0284c7","step-free":"#16a34a",hearing:"#14b8a6",cart:"#7c3aed","sign-language":"#f59e0b","low-vision":"#d97706","sensory-friendly":"#6366f1","plus-size":"#ec4899","lift-armrest":"#22c55e"};function se(t){let r=t?.[0];return r&&Ee[r]||"#3b82f6"}var Me=[{key:"obstructedView",label:"Obstructed view",short:"Obstructed",icon:"\u26D4"},{key:"restrictedView",label:"Restricted view",short:"Restricted",icon:"\u{1F441}"},{key:"premium",label:"Premium seat",short:"Premium",icon:"\u2605"}],mt=new Map(Me.map(t=>[t.key,t]));var Pe=["reference-focal","bar","entrance","exit","restroom","screen","sound","concession","coat","wall","rail","suite","obstruction"],pt=new Set(Pe);var Be=/^#?([\da-f]{3}|[\da-f]{6})$/i;function L(t){let r=Be.exec((t??"").trim());if(!r)return null;let n=r[1].length===3?r[1].split("").map(l=>l+l).join(""):r[1],a=parseInt(n,16);return[a>>16&255,a>>8&255,a&255]}function Q(t){let r=t/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function N(t){return .2126*Q(t[0])+.7152*Q(t[1])+.0722*Q(t[2])}function ce(t,r){let n=L(t),a=L(r);if(!n||!a)return null;let l=N(n),u=N(a);return(Math.max(l,u)+.05)/(Math.min(l,u)+.05)}function _e(t){let r=t.trim();if(r.startsWith("#")){let a=L(r);return a?(.2126*a[0]+.7152*a[1]+.0722*a[2])/255:NaN}let n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/.exec(r);return n?(.2126*+n[1]+.7152*+n[2]+.0722*+n[3])/255:NaN}function z(t,r=.6){let n=_e(t);return!Number.isNaN(n)&&n>r}var Oe=7,Fe=10,U=10,ue=.39,Ne=.8,ze=.62;function Ve(t){let r=Math.min(Math.abs(t.width),Math.abs(t.height));if(!(r>0))return U;let n=Math.max(1,t.text.length),a=Math.abs(t.width)*Ne/(n*ze);return Math.max(U,Math.min(r*ue,a))}var De=15,Ge=11,je=12;function Ke(t){return t.labelPresentation?.visible!==!1}function He(t){let r=t.labelPresentation?.labelStyle?.size;return typeof r=="number"&&Number.isFinite(r)?r:void 0}var Ze=.85,k=12,v=4.5,$=3,de=3,f="#000000",h="#ffffff",Qe=24,Ue=18.67;function $e(t,r=400){return t>=Qe||r>=700&&t>=Ue?de:v}function Xe(t,r){return t*r>=k}var Ye=24,X={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z","designated-aisle":"M3 5L6 5L6 14L3 14ZM3 12L13 12L13 15L3 15ZM5 15L7 15L7 20L5 20ZM11 15L13 15L13 20L11 20ZM13 7L20 7L17 4L19 4L23 8.5L19 13L17 13L20 10L13 10Z","step-free":"M4 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM4.4 7L7.5 7L7.5 13L11 15L9.5 17L5 14L4.4 7ZM2 19L8 19L17 10L22 10L22 13L18 13L10 21L2 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","low-vision":"M2.5 12C6 6 18 6 21.5 12C18 18 6 18 2.5 12ZM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM17.5 3L19 3L19 6L17.5 6ZM19 4L22 4L22 5.5L19 5.5Z","sensory-friendly":"M4 11C4 5 7 2.5 12 2.5S20 5 20 11L17 11C17 7 15.5 5.5 12 5.5S7 7 7 11ZM3 10L8 10L8 19L5 19a2 2 0 0 1 -2 -2ZM16 10L21 10L21 17a2 2 0 0 1 -2 2L16 19ZM9 12L15 12L15 14L9 14ZM10 16L14 16L14 18L10 18Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},We=X.wheelchair;function Je(t){if(!t?.length)return null;let r=t.includes("wheelchair")?"wheelchair":t[0];return X[r]??null}function qe(t,r){return r.colorblind?be(r.canvasBackground):se(t)}function et(t){return/-(\d{1,5})$/.exec(t)?.[1]??t}var d=ce;function tt(t,r,n){let a=L(t),l=L(r);if(!a||!l)return r;let u=Math.max(0,Math.min(1,n));return`#${a.map((p,M)=>Math.round(p*u+l[M]*(1-u))).map(p=>p.toString(16).padStart(2,"0")).join("")}`}var rt=3;function nt(t){let r=d(h,t)??0,n=d(f,t)??0;return r>=v?h:n>=v&&z(t)||z(t)?f:h}function be(t){return z(t)?f:h}function Y(t,r,n=v){let a=d(r,t);if(a!=null&&a>=n)return r;let l=d(f,t)??0,u=d(h,t)??0;return l===0&&u===0?r:l>=u?f:h}function it(t,r,n,a=v){return r??Y(t,n,a)}var ot=3;function at(t){let r=d("#ffffff",t);if(r!=null&&r>=ot)return"#ffffff";let n=d(f,t)??0,a=d(h,t)??0;return n===0&&a===0?"#ffffff":n>=a?f:h}var le=/^#[0-9a-f]{6}$/i;function ge(t){let r=L(t);return r!=null&&N(r)>.5}var me="#e5e7eb",pe="#273142";function st(t){return ge(t)?me:pe}function ct(t,r,n=v){let a=le.test(t.trim()),l=t.trim().toLowerCase(),u=0,m=0,p=null;for(let P of r){if(!a||!le.test(P.trim()))continue;u+=1;let B=Y(P,t,n);B.toLowerCase()!==l&&(m+=1,p=B)}return{total:u,overridden:m,status:u===0?"none":m===0?"applies":m===u?"overridden":"mixed",overrideInk:p}}var he=3,T=4.5,V=3,W=24,lt=20;function D(t){return t.filter(r=>r.visible&&!!r.screenBox)}function S(t,r){return t.x<r.x+r.width&&t.x+t.width>r.x&&t.y<r.y+r.height&&t.y+t.height>r.y}function y(t){return t.length?Math.round(Math.min(...t)*100)/100:null}function c(t,r,n){return n.length?{code:t,message:r,count:n.length,samples:n.slice(0,lt)}:null}function E(t,r,n){return{primaryId:t.seatId,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function G(t,r,n){return{primaryId:t.id,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function fe(t,r,n){return{primaryId:t.objectId,primaryLabel:t.text,...r==null?{}:{measured:Math.round(r*100)/100},...n==null?{}:{minimum:n}}}function w(t,r,n,a){return{primaryId:t,primaryLabel:r,secondaryId:n,secondaryLabel:a}}function ut(t,r="overview",n=null){let a=D(t.labels),l=D(t.hierarchyLabels),u=D(t.freeTextLabels),m=D(t.rowLabels),p=t.gaAreas.filter(e=>e.visible),M=a.map(e=>d(e.ink,e.fill)??0),P=l.map(e=>d(e.ink,e.fill)??0),B=u.map(e=>d(e.ink,e.background)??0),ye=p.map(e=>d(e.effectiveBackground,t.canvasBackground)??0),b=n?t.labels.filter(e=>e.categoryKey===n):t.labels,I=n?t.gaAreas.filter(e=>e.categoryKey===n):t.gaAreas,x=b.filter(e=>e.selected),R=b.filter(e=>e.status==="held"),C=b.filter(e=>e.status==="booked"),_=b.filter(e=>e.pointerTarget.active),J=new Set([...t.labels.filter(e=>e.visible&&(e.opacity>.25||e.selected||e.status!=="free")).map(e=>e.categoryKey),...t.gaAreas.filter(e=>e.visible&&e.opacity>.1).map(e=>e.categoryKey)]),O=x.length?y(x.map(e=>d(e.selectionRingColor??t.selectionRingColor,e.fill)??0)):null,s=[],A=(e,i)=>Array.from({length:e},(g,F)=>({primaryId:`overview:${F+1}`,primaryLabel:i}));r==="overview"&&t.rung==="sections"&&(s.push(c("overview-section-category-paint","Section overview shells must use the neutral hierarchy palette, not category paint",A(t.overviewStyle.categoryPaintedSectionShells,"category-painted section shell"))),s.push(c("overview-category-detail-visible","Category-tinted section detail must wait until section focus or seat zoom",A(t.overviewStyle.visibleCategoryDetailOutlines,"category detail outline"))),s.push(c("overview-row-hints-visible","Row and seat patterns must not clutter the section overview",A(t.overviewStyle.visibleSectionRowHints,"section row hint"))),s.push(c("overview-availability-clutter","Live availability counts belong in focused detail, not on section overview shells",A(t.overviewStyle.visibleSectionAvailabilityLabels,"section availability label"))),s.push(c("overview-ga-detail-visible","Section-contained standing paint belongs in focused detail, not on section overview shells",A(t.overviewStyle.visibleSectionGADetails,"section-contained GA detail")))),s.push(c("bookable-label-undersized","Visible bookable labels must meet the rendered small-text size floor",a.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>E(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),s.push(c("bookable-label-viewport-clipped","Visible interaction labels must remain fully inside the buyer viewport",r==="interaction"?a.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>E(e)):[])),s.push(c("row-label-viewport-clipped","Visible interaction row labels must remain fully inside the buyer viewport",r==="interaction"?m.flatMap((e,i)=>{let g=e.screenBox;return g.x<0||g.y<0||g.x+g.width>t.viewport.width||g.y+g.height>t.viewport.height?[{primaryId:`row-label-${i}`,primaryLabel:e.text}]:[]}):[]));let q=[];if(r==="interaction")for(let e=0;e<m.length;e+=1)for(let i=0;i<e;i+=1)S(m[e].screenBox,m[i].screenBox)&&q.push(w(`row-label-${i}`,m[i].text,`row-label-${e}`,m[e].text));if(s.push(c("row-label-collision","Visible interaction row labels must not overlap",q)),r==="interaction"){let e=b.length>0,i=I.length>0,g=e||i,F=I.filter(o=>o.visible),xe=new Set([...b.flatMap(o=>o.sectionId?[o.sectionId]:[]),...I.flatMap(o=>o.sectionId?[o.sectionId]:[])]),Le=new Set([...t.labels.map(o=>o.categoryKey),...t.gaAreas.map(o=>o.categoryKey)]),j=o=>o.screenCenter.x>=0&&o.screenCenter.x<=t.viewport.width&&o.screenCenter.y>=0&&o.screenCenter.y<=t.viewport.height;s.push(c("detail-rung-missing","Interaction evidence with bookable inventory must render the seat-detail rung",g&&t.rung!=="seats"?[{primaryId:"renderer",primaryLabel:t.rung}]:[])),s.push(c("detail-inventory-not-visible","Interaction evidence must frame at least one real bookable unit",g&&!b.some(j)&&!F.length?[{primaryId:"renderer",primaryLabel:"no target inventory in viewport"}]:[])),s.push(c("pointer-target-inactive","Interaction evidence must expose a live production pointer target",e&&!_.some(j)||!e&&i&&!F.some(o=>o.interactive)?[{primaryId:"renderer",primaryLabel:"no active pointer target in viewport"}]:[])),s.push(c("pointer-target-undersized","Every active production pointer target must reach at least 24 CSS pixels",_.filter(o=>j(o)&&o.pointerTarget.effectiveMinimumPx<W).map(o=>E(o,o.pointerTarget.effectiveMinimumPx,W)))),s.push(c("selected-state-missing","Interaction evidence must paint a selected unit and its renderer-owned ring",e&&(!x.length||!x.some(o=>t.selectionRingSeatIds.includes(o.seatId)))?[{primaryId:"renderer",primaryLabel:"selected state"}]:[])),s.push(c("selected-state-contrast-low","The selected-state ring must maintain 3:1 graphical contrast with the seat paint",x.length&&(O??0)<V?[{primaryId:x[0].seatId,primaryLabel:x[0].label,measured:Math.round((O??0)*100)/100,minimum:V}]:[])),s.push(c("held-state-missing","Interaction evidence must paint a held state when the floor has at least two status-managed units",b.length>=2&&!R.length?[{primaryId:"renderer",primaryLabel:"held state"}]:[])),s.push(c("booked-state-missing","Interaction evidence must paint a taken state when the floor has at least three status-managed units",b.length>=3&&!C.length?[{primaryId:"renderer",primaryLabel:"booked state"}]:[]));let ve=new Set(R.map(o=>`${o.fill.toLowerCase()}:${o.opacity}`)),Se=new Set(C.map(o=>`${o.fill.toLowerCase()}:${o.opacity}`));s.push(c("status-state-indistinct","Held and taken evidence must resolve to distinct renderer paint",R.length&&C.length&&[...ve].some(o=>Se.has(o))?[{primaryId:R[0].seatId,primaryLabel:R[0].label,secondaryId:C[0].seatId,secondaryLabel:C[0].label}]:[])),s.push(c("section-focus-missing","Interaction evidence must exercise section focus and its backdrop when section membership exists",xe.size&&(!t.focusedSectionId||!t.focusBackdropVisible)?[{primaryId:"renderer",primaryLabel:"section focus"}]:[])),s.push(c("category-filter-missing","Interaction evidence must exercise a category filter when multiple categories exist",Le.size>=2&&(!t.categoryFilterKeys||!t.categoryFilterKeys.length)?[{primaryId:"renderer",primaryLabel:"category filter"}]:[]));let K=t.labels.filter(o=>o.status==="free"&&!o.selected&&t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(o.categoryKey)),H=t.gaAreas.filter(o=>t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(o.categoryKey));s.push(c("category-filter-ineffective","The active category filter must visibly dim excluded free inventory",(K.length||H.length)&&!K.some(o=>o.opacity<=.25)&&!H.some(o=>o.opacity<=.1)?[...K.map(o=>E(o,o.opacity)),...H.map(o=>({primaryId:o.areaId,primaryLabel:o.label,measured:o.opacity}))]:[])),s.push(c("target-category-not-visible","A category-specific interaction scene must visibly paint its exact target category",n&&!J.has(n)?[{primaryId:n,primaryLabel:n}]:[])),s.push(c("target-category-filter-mismatch","A category-specific interaction scene must bind its filter to only the exact target category",n&&(t.categoryFilterKeys?.length!==1||t.categoryFilterKeys[0]!==n)?[{primaryId:n,primaryLabel:n}]:[]))}s.push(c("bookable-label-contrast-low","Visible bookable labels must meet 4.5:1 contrast against their actual paint",a.flatMap(e=>{let i=d(e.ink,e.fill)??0;return i<T?[E(e,i,T)]:[]})));let ee=[];for(let e=0;e<a.length;e+=1)for(let i=0;i<e;i+=1)S(a[e].screenBox,a[i].screenBox)&&ee.push(w(a[i].seatId,a[i].label,a[e].seatId,a[e].label));s.push(c("bookable-label-collision","Visible bookable labels must not overlap",ee)),s.push(c("hierarchy-label-undersized","Visible section and zone labels must meet the rendered small-text size floor",l.filter(e=>e.renderedFontPx<(e.sizeFloorPx??k)).map(e=>G(e,e.renderedFontPx,e.sizeFloorPx??k)))),s.push(c("hierarchy-label-contrast-low","Visible section and zone labels must meet 4.5:1 contrast against their backing paint",l.flatMap(e=>{let i=d(e.ink,e.fill)??0,g=e.kind==="section"&&e.role==="name"?$:T;return i<g?[G(e,i,g)]:[]}))),s.push(c("hierarchy-label-viewport-clipped","Visible overview hierarchy labels must remain fully inside the buyer viewport",r==="overview"?l.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>G(e)):[])),s.push(c("hierarchy-label-outside-section","Visible section labels must remain inside the filled section surface and outside holes",l.filter(e=>e.kind==="section"&&e.fitsContainer===!1).map(e=>G(e))));let te=[];for(let e=0;e<l.length;e+=1)for(let i=0;i<e;i+=1)S(l[e].screenBox,l[i].screenBox)&&te.push(w(l[i].id,l[i].label,l[e].id,l[e].label));s.push(c("hierarchy-label-collision","Visible hierarchy labels must not overlap each other",te));let re=[];for(let e of l)for(let i of a)S(e.screenBox,i.screenBox)&&re.push(w(e.id,e.label,i.seatId,i.label));s.push(c("hierarchy-bookable-collision","Visible hierarchy labels must not overlap bookable labels",re)),s.push(c("free-text-undersized","Visible chart text must meet the rendered small-text size floor",u.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>fe(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),s.push(c("free-text-contrast-low","Visible chart text must meet 4.5:1 contrast against its measured background",u.flatMap(e=>{let i=d(e.ink,e.background)??0;return i<T?[fe(e,i,T)]:[]})));let ne=[];for(let e=0;e<u.length;e+=1)for(let i=0;i<e;i+=1)S(u[e].screenBox,u[i].screenBox)&&ne.push(w(u[i].objectId,u[i].text,u[e].objectId,u[e].text));s.push(c("free-text-collision","Visible chart text labels must not overlap each other",ne));let ie=[];for(let e of u)for(let i of a)S(e.screenBox,i.screenBox)&&ie.push(w(e.objectId,e.text,i.seatId,i.label));s.push(c("free-text-bookable-collision","Visible chart text must not overlap bookable labels",ie));let oe=[];for(let e of u)for(let i of l)S(e.screenBox,i.screenBox)&&oe.push(w(e.objectId,e.text,i.id,i.label));s.push(c("free-text-hierarchy-collision","Visible chart text must not overlap hierarchy labels",oe)),s.push(c("ga-contrast-low","Visible GA surfaces must maintain 3:1 graphical contrast with the canvas",p.flatMap(e=>{let i=d(e.effectiveBackground,t.canvasBackground)??0;return i<V?[{primaryId:e.areaId,primaryLabel:e.label,measured:Math.round(i*100)/100,minimum:V}]:[]})));let ae=s.filter(e=>!!e);return{version:he,passed:ae.length===0,state:r,targetCategoryKey:n,resolvedRules:["rendered-overview-label-size","rendered-overview-label-contrast","rendered-overview-label-collision","rendered-overview-hierarchy-viewport","rendered-overview-hierarchy-containment","rendered-overview-section-first-style","rendered-overview-ga-contrast",...r==="interaction"?["rendered-detail-label-viewport","rendered-detail-inventory","rendered-pointer-target","rendered-selected-held-taken-states","rendered-section-focus","rendered-category-filter"]:[]],viewport:t.viewport,canvasBackground:t.canvasBackground,effectiveScale:t.effectiveScale,rung:t.rung,inventory:{totalBookableUnits:t.totalBookableUnits,totalLabelledBookableUnits:t.totalLabelledBookableUnits,visibleBookableLabels:a.length,hiddenBookableLabels:t.hiddenLabels,visibleHierarchyLabels:l.length,visibleFreeTextLabels:u.length,visibleGAAreas:p.length},overviewStyle:t.overviewStyle,composition:{hierarchy:t.hierarchyLabels.filter(e=>e.role==="name").map(e=>({id:e.id,kind:e.kind,label:e.label,visible:e.visible})).sort((e,i)=>e.kind.localeCompare(i.kind)||e.id.localeCompare(i.id)),labelledObjects:t.freeTextLabels.map(e=>({objectId:e.objectId,kind:e.kind,text:e.text,visible:e.visible})).sort((e,i)=>e.objectId.localeCompare(i.objectId)||e.kind.localeCompare(i.kind)),gaAreas:t.gaAreas.map(e=>({areaId:e.areaId,label:e.label,categoryKey:e.categoryKey,...e.sectionId?{sectionId:e.sectionId}:{},visible:e.visible})).sort((e,i)=>e.areaId.localeCompare(i.areaId)),bookableSectionIds:[...new Set(t.labels.flatMap(e=>e.sectionId?[e.sectionId]:[]))].sort(),categoryKeys:[...new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)])].sort(),activeCategoryKeys:[...J].sort()},metrics:{minimumRenderedBookableLabelPx:y(a.map(e=>e.renderedFontPx)),minimumBookableLabelContrast:y(M),minimumRenderedHierarchyLabelPx:y(l.map(e=>e.renderedFontPx)),minimumHierarchyLabelContrast:y(P),minimumRenderedFreeTextPx:y(u.map(e=>e.renderedFontPx)),minimumFreeTextContrast:y(B),minimumGAContrast:y(ye),minimumEffectivePointerTargetPx:y(_.map(e=>e.pointerTarget.effectiveMinimumPx)),selectedRingContrast:O==null?null:Math.round(O*100)/100},interaction:{applicable:{detail:b.length>0||I.length>0,pointer:b.length>0||I.length>0,held:b.length>=2,booked:b.length>=3,sectionFocus:b.some(e=>!!e.sectionId)||I.some(e=>!!e.sectionId),categoryFilter:new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)]).size>=2},selectedUnits:x.length,heldUnits:R.length,bookedUnits:C.length,activePointerTargets:_.length,focusedSectionId:t.focusedSectionId,focusBackdropVisible:t.focusBackdropVisible,categoryFilterKeys:t.categoryFilterKeys},findings:ae}}0&&(module.exports={ACCESS_GLYPH_PATH,ACCESS_GLYPH_VIEWBOX,ACCESS_TYPE_GLYPH_PATHS,AUTHORED_LABEL_MIN_CONTRAST,BLOCK_LABEL_FILL_RATIO,BOOTH_LABEL_FONT_SIZE,DARK_BOOKABLE_LABEL_INK,DARK_NEUTRAL_SECTION_FILL,GA_CAPACITY_LABEL_FONT_SIZE,GA_FILL_OPACITY,GA_LABEL_FONT_SIZE,LARGE_TEXT_CONTRAST,LIGHT_BOOKABLE_LABEL_INK,LIGHT_NEUTRAL_SECTION_FILL,MIN_POINTER_TARGET_PX,MIN_VISIBLE_BOOKABLE_LABEL_PX,RENDERED_QUALITY_REPORT_VERSION,ROW_LABEL_FONT_SIZE,SEAT_LABEL_FONT_SIZE,SECTION_NAME_CONTRAST,SMALL_TEXT_CONTRAST,TABLE_NAME_FONT_SIZE,accessGlyphInk,accessGlyphPath,accessibilityRingInk,blockLabelFontSize,bookableMarkerLabel,bookableNameSize,bookableNameVisible,categoryBandInk,compositeHexOver,explicitOrStateAwareLabelInk,inspectRenderedQualityEvidence,isBookableLabelLegibleAtScale,isLightFill,mapSeparatingInk,minimumTextContrast,neutralSectionFill,renderedTextContrast,stateAwareBookableLabelInk,summarizeLabelInkContrast});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccessibilityType } from '../../types-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-DL7qIUrD.cjs';
|
|
2
2
|
import { contrastRatioOrNull } from '../color.cjs';
|
|
3
|
-
export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-
|
|
4
|
-
import '../../renderer-
|
|
3
|
+
export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-CwZ8hY-5.cjs';
|
|
4
|
+
import '../../renderer-D6ggv3bV.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Rendering constants that quality inspection must agree with.
|
|
@@ -50,6 +50,20 @@ declare function blockLabelFontSize(input: {
|
|
|
50
50
|
/** GA area captions and their capacity sublabels. */
|
|
51
51
|
declare const GA_LABEL_FONT_SIZE = 15;
|
|
52
52
|
declare const GA_CAPACITY_LABEL_FONT_SIZE = 11;
|
|
53
|
+
/** A table's name at its centre, when the author set no size. */
|
|
54
|
+
declare const TABLE_NAME_FONT_SIZE = 12;
|
|
55
|
+
type NamedOnMap = {
|
|
56
|
+
labelPresentation?: {
|
|
57
|
+
visible?: boolean;
|
|
58
|
+
labelStyle?: {
|
|
59
|
+
size?: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/** "Name on map" for a table, booth or standing area: hidden only when the author hid it. */
|
|
64
|
+
declare function bookableNameVisible(object: NamedOnMap): boolean;
|
|
65
|
+
/** The author's name size, or undefined for the renderer's own default. */
|
|
66
|
+
declare function bookableNameSize(object: NamedOnMap): number | undefined;
|
|
53
67
|
/**
|
|
54
68
|
* GA category paint remains slightly translucent, but must still separate from
|
|
55
69
|
* both supported canvas surfaces by the shared 3:1 graphical-object floor.
|
|
@@ -233,4 +247,4 @@ interface LabelInkContrastSummary {
|
|
|
233
247
|
*/
|
|
234
248
|
declare function summarizeLabelInkContrast(preferred: string, backgrounds: Iterable<string>, minContrast?: number): LabelInkContrastSummary;
|
|
235
249
|
|
|
236
|
-
export { ACCESS_GLYPH_PATH, ACCESS_GLYPH_VIEWBOX, ACCESS_TYPE_GLYPH_PATHS, AUTHORED_LABEL_MIN_CONTRAST, type AccessibilityRingInkOptions, BLOCK_LABEL_FILL_RATIO, BOOTH_LABEL_FONT_SIZE, DARK_BOOKABLE_LABEL_INK, DARK_NEUTRAL_SECTION_FILL, GA_CAPACITY_LABEL_FONT_SIZE, GA_FILL_OPACITY, GA_LABEL_FONT_SIZE, LARGE_TEXT_CONTRAST, LIGHT_BOOKABLE_LABEL_INK, LIGHT_NEUTRAL_SECTION_FILL, type LabelInkContrastSummary, MIN_VISIBLE_BOOKABLE_LABEL_PX, ROW_LABEL_FONT_SIZE, SEAT_LABEL_FONT_SIZE, SECTION_NAME_CONTRAST, SMALL_TEXT_CONTRAST, accessGlyphInk, accessGlyphPath, accessibilityRingInk, blockLabelFontSize, bookableMarkerLabel, categoryBandInk, compositeHexOver, explicitOrStateAwareLabelInk, isBookableLabelLegibleAtScale, isLightFill, mapSeparatingInk, minimumTextContrast, neutralSectionFill, renderedTextContrast, stateAwareBookableLabelInk, summarizeLabelInkContrast };
|
|
250
|
+
export { ACCESS_GLYPH_PATH, ACCESS_GLYPH_VIEWBOX, ACCESS_TYPE_GLYPH_PATHS, AUTHORED_LABEL_MIN_CONTRAST, type AccessibilityRingInkOptions, BLOCK_LABEL_FILL_RATIO, BOOTH_LABEL_FONT_SIZE, DARK_BOOKABLE_LABEL_INK, DARK_NEUTRAL_SECTION_FILL, GA_CAPACITY_LABEL_FONT_SIZE, GA_FILL_OPACITY, GA_LABEL_FONT_SIZE, LARGE_TEXT_CONTRAST, LIGHT_BOOKABLE_LABEL_INK, LIGHT_NEUTRAL_SECTION_FILL, type LabelInkContrastSummary, MIN_VISIBLE_BOOKABLE_LABEL_PX, ROW_LABEL_FONT_SIZE, SEAT_LABEL_FONT_SIZE, SECTION_NAME_CONTRAST, SMALL_TEXT_CONTRAST, TABLE_NAME_FONT_SIZE, accessGlyphInk, accessGlyphPath, accessibilityRingInk, blockLabelFontSize, bookableMarkerLabel, bookableNameSize, bookableNameVisible, categoryBandInk, compositeHexOver, explicitOrStateAwareLabelInk, isBookableLabelLegibleAtScale, isLightFill, mapSeparatingInk, minimumTextContrast, neutralSectionFill, renderedTextContrast, stateAwareBookableLabelInk, summarizeLabelInkContrast };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccessibilityType } from '../../types-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-DL7qIUrD.js';
|
|
2
2
|
import { contrastRatioOrNull } from '../color.js';
|
|
3
|
-
export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-
|
|
4
|
-
import '../../renderer-
|
|
3
|
+
export { M as MIN_POINTER_TARGET_PX, R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-wDIiUId3.js';
|
|
4
|
+
import '../../renderer-CdJx5l3B.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Rendering constants that quality inspection must agree with.
|
|
@@ -50,6 +50,20 @@ declare function blockLabelFontSize(input: {
|
|
|
50
50
|
/** GA area captions and their capacity sublabels. */
|
|
51
51
|
declare const GA_LABEL_FONT_SIZE = 15;
|
|
52
52
|
declare const GA_CAPACITY_LABEL_FONT_SIZE = 11;
|
|
53
|
+
/** A table's name at its centre, when the author set no size. */
|
|
54
|
+
declare const TABLE_NAME_FONT_SIZE = 12;
|
|
55
|
+
type NamedOnMap = {
|
|
56
|
+
labelPresentation?: {
|
|
57
|
+
visible?: boolean;
|
|
58
|
+
labelStyle?: {
|
|
59
|
+
size?: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/** "Name on map" for a table, booth or standing area: hidden only when the author hid it. */
|
|
64
|
+
declare function bookableNameVisible(object: NamedOnMap): boolean;
|
|
65
|
+
/** The author's name size, or undefined for the renderer's own default. */
|
|
66
|
+
declare function bookableNameSize(object: NamedOnMap): number | undefined;
|
|
53
67
|
/**
|
|
54
68
|
* GA category paint remains slightly translucent, but must still separate from
|
|
55
69
|
* both supported canvas surfaces by the shared 3:1 graphical-object floor.
|
|
@@ -233,4 +247,4 @@ interface LabelInkContrastSummary {
|
|
|
233
247
|
*/
|
|
234
248
|
declare function summarizeLabelInkContrast(preferred: string, backgrounds: Iterable<string>, minContrast?: number): LabelInkContrastSummary;
|
|
235
249
|
|
|
236
|
-
export { ACCESS_GLYPH_PATH, ACCESS_GLYPH_VIEWBOX, ACCESS_TYPE_GLYPH_PATHS, AUTHORED_LABEL_MIN_CONTRAST, type AccessibilityRingInkOptions, BLOCK_LABEL_FILL_RATIO, BOOTH_LABEL_FONT_SIZE, DARK_BOOKABLE_LABEL_INK, DARK_NEUTRAL_SECTION_FILL, GA_CAPACITY_LABEL_FONT_SIZE, GA_FILL_OPACITY, GA_LABEL_FONT_SIZE, LARGE_TEXT_CONTRAST, LIGHT_BOOKABLE_LABEL_INK, LIGHT_NEUTRAL_SECTION_FILL, type LabelInkContrastSummary, MIN_VISIBLE_BOOKABLE_LABEL_PX, ROW_LABEL_FONT_SIZE, SEAT_LABEL_FONT_SIZE, SECTION_NAME_CONTRAST, SMALL_TEXT_CONTRAST, accessGlyphInk, accessGlyphPath, accessibilityRingInk, blockLabelFontSize, bookableMarkerLabel, categoryBandInk, compositeHexOver, explicitOrStateAwareLabelInk, isBookableLabelLegibleAtScale, isLightFill, mapSeparatingInk, minimumTextContrast, neutralSectionFill, renderedTextContrast, stateAwareBookableLabelInk, summarizeLabelInkContrast };
|
|
250
|
+
export { ACCESS_GLYPH_PATH, ACCESS_GLYPH_VIEWBOX, ACCESS_TYPE_GLYPH_PATHS, AUTHORED_LABEL_MIN_CONTRAST, type AccessibilityRingInkOptions, BLOCK_LABEL_FILL_RATIO, BOOTH_LABEL_FONT_SIZE, DARK_BOOKABLE_LABEL_INK, DARK_NEUTRAL_SECTION_FILL, GA_CAPACITY_LABEL_FONT_SIZE, GA_FILL_OPACITY, GA_LABEL_FONT_SIZE, LARGE_TEXT_CONTRAST, LIGHT_BOOKABLE_LABEL_INK, LIGHT_NEUTRAL_SECTION_FILL, type LabelInkContrastSummary, MIN_VISIBLE_BOOKABLE_LABEL_PX, ROW_LABEL_FONT_SIZE, SEAT_LABEL_FONT_SIZE, SECTION_NAME_CONTRAST, SMALL_TEXT_CONTRAST, TABLE_NAME_FONT_SIZE, accessGlyphInk, accessGlyphPath, accessibilityRingInk, blockLabelFontSize, bookableMarkerLabel, bookableNameSize, bookableNameVisible, categoryBandInk, compositeHexOver, explicitOrStateAwareLabelInk, isBookableLabelLegibleAtScale, isLightFill, mapSeparatingInk, minimumTextContrast, neutralSectionFill, renderedTextContrast, stateAwareBookableLabelInk, summarizeLabelInkContrast };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as M,b as N,c as O}from"../../chunk-GPZFVQXV.js";import{A,B,C,D,E,F,G,H,I,J,K,L,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"../../chunk-JRZHC75P.js";import"../../chunk-UEDS3HJ3.js";import"../../chunk-JBOTRSMY.js";export{u as ACCESS_GLYPH_PATH,q as ACCESS_GLYPH_VIEWBOX,s as ACCESS_TYPE_GLYPH_PATHS,B as AUTHORED_LABEL_MIN_CONTRAST,f as BLOCK_LABEL_FILL_RATIO,e as BOOTH_LABEL_FONT_SIZE,j as DARK_BOOKABLE_LABEL_INK,J as DARK_NEUTRAL_SECTION_FILL,t as GA_CAPACITY_LABEL_FONT_SIZE,c as GA_FILL_OPACITY,p as GA_LABEL_FONT_SIZE,i as LARGE_TEXT_CONTRAST,k as LIGHT_BOOKABLE_LABEL_INK,I as LIGHT_NEUTRAL_SECTION_FILL,N as MIN_POINTER_TARGET_PX,d as MIN_VISIBLE_BOOKABLE_LABEL_PX,M as RENDERED_QUALITY_REPORT_VERSION,r as ROW_LABEL_FONT_SIZE,o as SEAT_LABEL_FONT_SIZE,h as SECTION_NAME_CONTRAST,g as SMALL_TEXT_CONTRAST,x as TABLE_NAME_FONT_SIZE,G as accessGlyphInk,v as accessGlyphPath,w as accessibilityRingInk,m as blockLabelFontSize,y as bookableMarkerLabel,b as bookableNameSize,a as bookableNameVisible,C as categoryBandInk,A as compositeHexOver,F as explicitOrStateAwareLabelInk,O as inspectRenderedQualityEvidence,n as isBookableLabelLegibleAtScale,H as isLightFill,D as mapSeparatingInk,l as minimumTextContrast,K as neutralSectionFill,z as renderedTextContrast,E as stateAwareBookableLabelInk,L as summarizeLabelInkContrast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var N=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!T.call(e,a)&&a!==n&&c(e,a,{get:()=>t[a],enumerable:!(r=G(t,a))||r.enumerable});return e};var w=e=>P(c({},"__esModule",{value:!0}),e);var ce={};N(ce,{DECOR_STAMP_ICON_PATHS:()=>U,DEFAULT_SHAPE_LINE_CAP:()=>_,DEFAULT_SHAPE_LINE_ENDING:()=>f,DEFAULT_SHAPE_LINE_JOIN:()=>R,SEAT_GLYPHS:()=>h,SEAT_GLYPH_DETAIL_MIN_PX:()=>Le,SEAT_GLYPH_INSET:()=>Se,SEAT_GLYPH_ORDER:()=>z,SEAT_GLYPH_VIEWBOX:()=>Me,SEAT_TYPE_ICON_BODY:()=>E,SEAT_TYPE_ICON_VIEWBOX:()=>xe,SHAPE_LINE_CAPS:()=>re,SHAPE_LINE_ENDINGS:()=>ie,SHAPE_LINE_JOINS:()=>ae,VENUE_ICONS:()=>u,VENUE_ICON_GROUP_LABELS:()=>F,VENUE_ICON_GROUP_ORDER:()=>Y,VENUE_ICON_KEYS:()=>W,VENUE_ICON_STROKE:()=>ge,VENUE_ICON_VIEWBOX:()=>be,buyerBackgroundImage:()=>x,buyerFacingChartDoc:()=>B,hasConflictingLegacyTrace:()=>K,isOpenShapeKind:()=>A,isPointShapeKind:()=>oe,isSeatGlyphKind:()=>p,isVenueIconKey:()=>$,migrateLegacyBackgroundLayersInPlace:()=>H,resolveSeatGlyph:()=>te,resolvedShapeLineStyle:()=>se,seatGlyph:()=>l,seatGlyphFit:()=>C,seatGlyphLabel:()=>X,seatGlyphMarkOnSeat:()=>ee,seatGlyphPath:()=>q,seatTypeIconBody:()=>V,seatTypeIconSvg:()=>ne,shapeArrowMetrics:()=>le,traceReferenceImage:()=>D,venueIcon:()=>I,venueIconPath:()=>J});module.exports=w(ce);function g(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var m=2,j=3,M=6;function o(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function s(e){return{...e,x:o(e.x,m),y:o(e.y,m)}}function L(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=s(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(s)),Array.isArray(t.points)&&(t.points=t.points.map(s)),typeof t.rotation=="number"&&(t.rotation=o(t.rotation,M)),typeof t.seatSpacing=="number"&&(t.seatSpacing=o(t.seatSpacing,M));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:s(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let a={...r};for(let i of["dx","dy"]){let y=a[i];if(typeof y!="number")continue;let b=o(y,j);b===0?delete a[i]:a[i]=b}return a})),t}function D(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function x(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function S(e){let t=x(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:a,...i}=t;return i}function H(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function v(e){let t=L(e);return g(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function Z(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function B(e){let t=S(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(v),referenceImage:void 0,backgroundImage:S(r)}));return{...e,categories:e.categories.map(Z),objects:e.objects.map(v),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:t,...n?{floors:n}:{}}}function K(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var be=24,ge=2,F={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Y=["facilities","food-drink","navigation","accessibility"],k="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",u=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:k},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:k},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],U={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},O=new Map(u.map(e=>[e.key,e]));function I(e){return e?O.get(e):void 0}function J(e){return I(e)?.path}function $(e){return typeof e=="string"&&O.has(e)}var W=u.map(e=>e.key);var Me=24,Le=16,Se=.14,h=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null,mark:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21},mark:{x:12,y:10,radius:6}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22},mark:{x:12,y:10,radius:4.5}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21},mark:{x:12,y:5,radius:3}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5},mark:{x:12,y:7.5,radius:5.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5},mark:{x:12,y:8,radius:5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20},mark:{x:12,y:9.25,radius:6.5}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22},mark:{x:12,y:12.25,radius:4.75}}],z=h.map(e=>e.key),d=new Map(h.map(e=>[e.key,e]));function l(e){return d.get(e)??d.get("circle")}function X(e){return l(e).label}function q(e){return l(e).path}function C(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function ee(e,t){let n=l(e);if(!n.bounds||!n.mark||!(t>0))return null;let r=C(n.bounds,t);return{x:(n.mark.x-r.centreX)*r.scale,y:(n.mark.y-r.centreY)*r.scale,radius:n.mark.radius*r.scale}}function p(e){return typeof e=="string"&&d.has(e)}function te(e,t){return p(e)?e:p(t?.seatGlyph)?t.seatGlyph:"circle"}var xe=20,E={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />'};function V(e){return E[e]??""}function ne(e,t={}){let n=V(e);if(!n)return"";let r=t.size??18,a=20;return`<svg viewBox="0 0 ${a} ${a}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var re=["butt","round","square"],ae=["miter","round","bevel"],ie=["none","arrow"],_="round",R="round",f="none";function A(e){return e==="line"||e==="polyline"}function oe(e){return e==="polygon"||A(e)}function se(e){return{lineCap:e.lineCap??_,lineJoin:e.lineJoin??R,startEnding:e.startEnding??f,endEnding:e.endEnding??f}}function le(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphMarkOnSeat,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
|
|
1
|
+
"use strict";var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var N=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!T.call(e,a)&&a!==n&&c(e,a,{get:()=>t[a],enumerable:!(r=G(t,a))||r.enumerable});return e};var w=e=>P(c({},"__esModule",{value:!0}),e);var ce={};N(ce,{DECOR_STAMP_ICON_PATHS:()=>U,DEFAULT_SHAPE_LINE_CAP:()=>_,DEFAULT_SHAPE_LINE_ENDING:()=>f,DEFAULT_SHAPE_LINE_JOIN:()=>R,SEAT_GLYPHS:()=>h,SEAT_GLYPH_DETAIL_MIN_PX:()=>Le,SEAT_GLYPH_INSET:()=>ve,SEAT_GLYPH_ORDER:()=>X,SEAT_GLYPH_VIEWBOX:()=>Me,SEAT_TYPE_ICON_BODY:()=>E,SEAT_TYPE_ICON_VIEWBOX:()=>xe,SHAPE_LINE_CAPS:()=>re,SHAPE_LINE_ENDINGS:()=>ie,SHAPE_LINE_JOINS:()=>ae,VENUE_ICONS:()=>u,VENUE_ICON_GROUP_LABELS:()=>F,VENUE_ICON_GROUP_ORDER:()=>Y,VENUE_ICON_KEYS:()=>z,VENUE_ICON_STROKE:()=>ge,VENUE_ICON_VIEWBOX:()=>be,buyerBackgroundImage:()=>x,buyerFacingChartDoc:()=>B,hasConflictingLegacyTrace:()=>K,isOpenShapeKind:()=>A,isPointShapeKind:()=>oe,isSeatGlyphKind:()=>p,isVenueIconKey:()=>W,migrateLegacyBackgroundLayersInPlace:()=>H,resolveSeatGlyph:()=>te,resolvedShapeLineStyle:()=>se,seatGlyph:()=>l,seatGlyphFit:()=>C,seatGlyphLabel:()=>$,seatGlyphMarkOnSeat:()=>ee,seatGlyphPath:()=>q,seatTypeIconBody:()=>V,seatTypeIconSvg:()=>ne,shapeArrowMetrics:()=>le,traceReferenceImage:()=>D,venueIcon:()=>I,venueIconPath:()=>J});module.exports=w(ce);function g(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var m=2,j=3,M=6;function o(e,t){if(!Number.isFinite(e))return e;let n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function s(e){return{...e,x:o(e.x,m),y:o(e.y,m)}}function L(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=s(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(s)),Array.isArray(t.points)&&(t.points=t.points.map(s)),typeof t.rotation=="number"&&(t.rotation=o(t.rotation,M)),typeof t.seatSpacing=="number"&&(t.seatSpacing=o(t.seatSpacing,M));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:s(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let a={...r};for(let i of["dx","dy"]){let y=a[i];if(typeof y!="number")continue;let b=o(y,j);b===0?delete a[i]:a[i]=b}return a})),t}function D(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function x(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function v(e){let t=x(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:a,...i}=t;return i}function H(e){let t=n=>{let r=n.backgroundImage;r?.assetId&&(n.referenceImage||(n.referenceImage=r,n.backgroundImage=void 0))};t(e);for(let n of e.floors??[])t(n);return e}function S(e){let t=L(e);return g(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function Z(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function B(e){let t=v(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(S),referenceImage:void 0,backgroundImage:v(r)}));return{...e,categories:e.categories.map(Z),objects:e.objects.map(S),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:t,...n?{floors:n}:{}}}function K(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var be=24,ge=2,F={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Y=["facilities","food-drink","navigation","accessibility"],k="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",u=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:k},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:k},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],U={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},O=new Map(u.map(e=>[e.key,e]));function I(e){return e?O.get(e):void 0}function J(e){return I(e)?.path}function W(e){return typeof e=="string"&&O.has(e)}var z=u.map(e=>e.key);var Me=24,Le=16,ve=.14,h=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null,mark:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21},mark:{x:12,y:10,radius:6}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22},mark:{x:12,y:10,radius:4.5}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21},mark:{x:12,y:5,radius:3}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5},mark:{x:12,y:7.5,radius:5.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5},mark:{x:12,y:8,radius:5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20},mark:{x:12,y:9.25,radius:6.5}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22},mark:{x:12,y:12.25,radius:4.75}}],X=h.map(e=>e.key),d=new Map(h.map(e=>[e.key,e]));function l(e){return d.get(e)??d.get("circle")}function $(e){return l(e).label}function q(e){return l(e).path}function C(e,t){return{scale:t*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function ee(e,t){let n=l(e);if(!n.bounds||!n.mark||!(t>0))return null;let r=C(n.bounds,t);return{x:(n.mark.x-r.centreX)*r.scale,y:(n.mark.y-r.centreY)*r.scale,radius:n.mark.radius*r.scale}}function p(e){return typeof e=="string"&&d.has(e)}function te(e,t){return p(e)?e:p(t?.seatGlyph)?t.seatGlyph:"circle"}var xe=20,E={wheelchair:'<circle cx="10.6" cy="3.7" r="1.7" /><path d="M8.9 6.3v4.3a1.3 1.3 0 0 0 1.3 1.3h3.4l1.9 4.5h1.9" /><circle cx="9.7" cy="13.3" r="4.7" />',companion:'<circle cx="6" cy="6" r="2" /><circle cx="14" cy="6" r="2" /><path d="M2.5 16v-3.5A3.5 3.5 0 0 1 6 9a3.5 3.5 0 0 1 3.5 3.5V16M10.5 16v-3.5A3.5 3.5 0 0 1 14 9a3.5 3.5 0 0 1 3.5 3.5V16" />',"semi-ambulatory":'<circle cx="8" cy="4" r="1.7" /><path d="m8 6 2 4 3 2M10 10l-2 3-1 4M10 10l2 7M14 7l2 10" />',"designated-aisle":'<path d="M3.5 5.5v7h8.5V10H6.5M5 12.5V17M11 12.5V17" /><path d="M13.5 6.5H19M16.5 4l2.5 2.5L16.5 9" />',"step-free":'<circle cx="5.5" cy="5" r="1.7" /><path d="M5.5 7v4l3 2M2.5 16.5H8l7-7h3M8 16.5h10" />',hearing:'<path d="M7 16c-1-1.2-1.5-2.4-1.5-3.8V9a5 5 0 1 1 10 0c0 2.2-1.2 3.2-2.6 4-1.2.7-1.7 1.4-1.7 2.4A2.6 2.6 0 0 1 8.6 18" />',cart:'<path d="M8 6.5A4 4 0 1 0 8 13M17 6.5a4 4 0 1 0 0 6.5" />',"sign-language":'<path d="M6 16V8.5a1 1 0 0 1 2 0v3M8 11V5.5a1 1 0 0 1 2 0V11M10 11V4.5a1 1 0 0 1 2 0V11M12 11V6a1 1 0 0 1 2 0v6l1-1.5a1.2 1.2 0 0 1 2 1.3L14 17H9.5A3.5 3.5 0 0 1 6 13.5" />',"low-vision":'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><circle cx="10" cy="10" r="2.5" /><path d="m15 4 .5-1.5M17 5l1.5-.8" />',"sensory-friendly":'<path d="M4 11v-1a6 6 0 0 1 12 0v1M4 11h2.5v5H5a1 1 0 0 1-1-1v-4ZM16 11h-2.5v5H15a1 1 0 0 0 1-1v-4Z" /><path d="M8.5 11.5c.8.7 2.2.7 3 0M9 14c.6.4 1.4.4 2 0" />',"plus-size":'<path d="M5 9V6.5A2.5 2.5 0 0 1 7.5 4h5A2.5 2.5 0 0 1 15 6.5V9M3.5 8.5v5h13v-5M6 13.5V17M14 13.5V17" />',"lift-armrest":'<path d="M5 10V6.5A2.5 2.5 0 0 1 7.5 4h4A2.5 2.5 0 0 1 14 6.5V10M4 9v4h11V9M6 13v4M13 13v4" /><path d="M17 11V4M15 6l2-2 2 2" />',obstructedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="m4 17 12-14" />',restrictedView:'<path d="M2.5 10s3-5 7.5-5 7.5 5 7.5 5-3 5-7.5 5-7.5-5-7.5-5Z" /><path d="M10 7.5v3.5M10 13.5h.01" />',premium:'<path d="m10 2.5 2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7Z" />',note:'<circle cx="10" cy="10" r="7.5" /><path d="M10 9.2v4.6M10 6.3h.01" />',aisle:'<path d="M2.5 6v7h6.5v-2.5H4.5M3.5 13v3.5M8 13v3.5" /><path d="M12.5 3v14M17 3v14" />',entrance:'<path d="M10 3.5h6.5v13H10" /><path d="M3 10h8.5M8.5 7l3 3-3 3" />',booth:'<path d="M3.5 8.5h13v8h-13ZM2.5 8.5 4 4h12l1.5 4.5M8 16.5v-4h4v4" />'};function V(e){return E[e]??""}function ne(e,t={}){let n=V(e);if(!n)return"";let r=t.size??18,a=20;return`<svg viewBox="0 0 ${a} ${a}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.45" stroke-linecap="round" stroke-linejoin="round"`+(t.className?` class="${t.className}"`:"")+` aria-hidden="true" focusable="false">${n}</svg>`}var re=["butt","round","square"],ae=["miter","round","bevel"],ie=["none","arrow"],_="round",R="round",f="none";function A(e){return e==="line"||e==="polyline"}function oe(e){return e==="polygon"||A(e)}function se(e){return{lineCap:e.lineCap??_,lineJoin:e.lineJoin??R,startEnding:e.startEnding??f,endEnding:e.endEnding??f}}function le(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SEAT_TYPE_ICON_BODY,SEAT_TYPE_ICON_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphMarkOnSeat,seatGlyphPath,seatTypeIconBody,seatTypeIconSvg,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-
|
|
2
|
-
export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-
|
|
1
|
+
import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-DL7qIUrD.cjs';
|
|
2
|
+
export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-DMJX4rVN.cjs';
|
|
3
3
|
|
|
4
4
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-
|
|
2
|
-
export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-
|
|
1
|
+
import { C as ChartDoc, l as Floor, n as ChartReferenceImage, e as SeatGlyphKind, o as Category, p as ShapeLineCap, q as ShapeLineEnding, r as ShapeLineJoin, s as ShapeObject } from '../../types-DL7qIUrD.js';
|
|
2
|
+
export { S as SEAT_TYPE_ICON_BODY, a as SEAT_TYPE_ICON_VIEWBOX, b as SeatTypeIconKey, c as SeatTypeIconOptions, s as seatTypeIconBody, d as seatTypeIconSvg } from '../../seatTypeIcons-UpUTD8Xf.js';
|
|
3
3
|
|
|
4
4
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as t,c as x,d as a}from"../../chunk-
|
|
1
|
+
import{a as p,b as t,c as x,d as a}from"../../chunk-YPVYZYMH.js";import{a as b,b as c,c as d,d as g,e as h,f as i,g as j,h as k,i as l,j as n,k as q,l as s}from"../../chunk-4N5CHKHD.js";import{a as u,b as v,c as w,d as y,e as z,f as A,g as B,h as C,i as D,j as E,k as F,l as G,m as H,n as I,o as J,p as K,q as L,r as M,s as N,t as O}from"../../chunk-TQN2VWQO.js";import{k as o,l as r,m as e,n as f,o as m}from"../../chunk-FOIYJ5NT.js";import"../../chunk-KTMZ3QAO.js";export{A as DECOR_STAMP_ICON_PATHS,I as DEFAULT_SHAPE_LINE_CAP,K as DEFAULT_SHAPE_LINE_ENDING,J as DEFAULT_SHAPE_LINE_JOIN,g as SEAT_GLYPHS,c as SEAT_GLYPH_DETAIL_MIN_PX,d as SEAT_GLYPH_INSET,h as SEAT_GLYPH_ORDER,b as SEAT_GLYPH_VIEWBOX,t as SEAT_TYPE_ICON_BODY,p as SEAT_TYPE_ICON_VIEWBOX,F as SHAPE_LINE_CAPS,H as SHAPE_LINE_ENDINGS,G as SHAPE_LINE_JOINS,z as VENUE_ICONS,w as VENUE_ICON_GROUP_LABELS,y as VENUE_ICON_GROUP_ORDER,E as VENUE_ICON_KEYS,v as VENUE_ICON_STROKE,u as VENUE_ICON_VIEWBOX,r as buyerBackgroundImage,f as buyerFacingChartDoc,m as hasConflictingLegacyTrace,L as isOpenShapeKind,M as isPointShapeKind,q as isSeatGlyphKind,D as isVenueIconKey,e as migrateLegacyBackgroundLayersInPlace,s as resolveSeatGlyph,N as resolvedShapeLineStyle,i as seatGlyph,l as seatGlyphFit,j as seatGlyphLabel,n as seatGlyphMarkOnSeat,k as seatGlyphPath,x as seatTypeIconBody,a as seatTypeIconSvg,O as shapeArrowMetrics,o as traceReferenceImage,B as venueIcon,C as venueIconPath};
|