@seatlayer/core 0.102.0 → 0.104.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.
Files changed (172) hide show
  1. package/dist/ar-D6ASWQBI.js +1 -0
  2. package/dist/be-T23MSCFC.js +1 -0
  3. package/dist/bg-2MMSY43I.js +1 -0
  4. package/dist/ca-EXRTYE33.js +1 -0
  5. package/dist/{categoryInventory-7gSFTu0l.d.cts → categoryInventory-DYcNVyxN.d.cts} +1 -1
  6. package/dist/{categoryInventory-hJxuFF9L.d.ts → categoryInventory-QTVDRqNG.d.ts} +1 -1
  7. package/dist/{chunk-GPZFVQXV.js → chunk-4522UUXG.js} +1 -1
  8. package/dist/chunk-6YTPIDLM.js +1 -0
  9. package/dist/{chunk-ZS5YFXSE.js → chunk-BF3XROP5.js} +1 -1
  10. package/dist/{chunk-JRZHC75P.js → chunk-EE2CVYFJ.js} +1 -1
  11. package/dist/chunk-GUNNA5LB.js +1 -0
  12. package/dist/{chunk-4DYJCT62.js → chunk-HIU4MMID.js} +1 -1
  13. package/dist/chunk-HKVCBUON.js +1 -0
  14. package/dist/chunk-IEBXXGQC.js +1 -0
  15. package/dist/{chunk-254ABRJF.js → chunk-KYPY7GWB.js} +1 -1
  16. package/dist/{chunk-GTRYL7YV.js → chunk-O4ZAGGMP.js} +1 -1
  17. package/dist/{chunk-PHV2U54Y.js → chunk-P2BTUNG6.js} +1 -1
  18. package/dist/chunk-P6ASVG3X.js +1 -0
  19. package/dist/chunk-PBXGWYB4.js +1 -0
  20. package/dist/chunk-QFX6XSO6.js +1 -0
  21. package/dist/{chunk-FOIYJ5NT.js → chunk-TFYAMLCK.js} +1 -1
  22. package/dist/chunk-TZBJCAXH.js +1 -0
  23. package/dist/{chunk-COECA63Q.js → chunk-UKODEMIM.js} +1 -1
  24. package/dist/{chunk-UEDS3HJ3.js → chunk-URW7MSCJ.js} +1 -1
  25. package/dist/core/chart-ops/index.cjs +1 -1
  26. package/dist/core/chart-ops/index.d.cts +466 -14
  27. package/dist/core/chart-ops/index.d.ts +466 -14
  28. package/dist/core/chart-ops/index.js +1 -1
  29. package/dist/core/color.d.cts +1 -1
  30. package/dist/core/color.d.ts +1 -1
  31. package/dist/core/inventory/index.cjs +1 -1
  32. package/dist/core/inventory/index.d.cts +4 -4
  33. package/dist/core/inventory/index.d.ts +4 -4
  34. package/dist/core/inventory/index.js +1 -1
  35. package/dist/core/layout/index.cjs +1 -1
  36. package/dist/core/layout/index.d.cts +6 -72
  37. package/dist/core/layout/index.d.ts +6 -72
  38. package/dist/core/layout/index.js +1 -1
  39. package/dist/core/quality/index.d.cts +3 -3
  40. package/dist/core/quality/index.d.ts +3 -3
  41. package/dist/core/quality/index.js +1 -1
  42. package/dist/core/render-assets/index.cjs +1 -1
  43. package/dist/core/render-assets/index.d.cts +45 -5
  44. package/dist/core/render-assets/index.d.ts +45 -5
  45. package/dist/core/render-assets/index.js +1 -1
  46. package/dist/core/seatConfidence.d.cts +1 -1
  47. package/dist/core/seatConfidence.d.ts +1 -1
  48. package/dist/core/sections/index.cjs +1 -1
  49. package/dist/core/sections/index.d.cts +5 -5
  50. package/dist/core/sections/index.d.ts +5 -5
  51. package/dist/core/sections/index.js +1 -1
  52. package/dist/cs-L5EG7LLR.js +1 -0
  53. package/dist/cy-AB2Q6XHI.js +1 -0
  54. package/dist/da-EGJO7W4Q.js +1 -0
  55. package/dist/de-Q56NNVPD.js +1 -0
  56. package/dist/el-JW2YADAL.js +1 -0
  57. package/dist/es-N35HVHMD.js +1 -0
  58. package/dist/et-53UYPQR7.js +1 -0
  59. package/dist/{eventConfigurations-BHIfPJJJ.d.cts → eventConfigurations-1sMqxBpq.d.cts} +1 -1
  60. package/dist/{eventConfigurations-I5UBS6r9.d.ts → eventConfigurations-B7vGmmD3.d.ts} +1 -1
  61. package/dist/{fa-5MS3C6YX.js → fa-JL3HW42Q.js} +1 -1
  62. package/dist/fi-ZFWROLPU.js +1 -0
  63. package/dist/fr-6EKBGKIT.js +1 -0
  64. package/dist/he-KSOTIRJW.js +1 -0
  65. package/dist/hi-RWHSYCVV.js +1 -0
  66. package/dist/hr-ECH5LYKR.js +1 -0
  67. package/dist/hu-BAXHRRWC.js +1 -0
  68. package/dist/id-ECFNLK3G.js +1 -0
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.d.cts +45 -120
  71. package/dist/index.d.ts +45 -120
  72. package/dist/index.js +1 -1
  73. package/dist/{it-KG53QPQF.js → it-HT57FDFI.js} +1 -1
  74. package/dist/ja-LHVHSM5J.js +1 -0
  75. package/dist/ko-G2HVHBKT.js +1 -0
  76. package/dist/ku-MNPV6BJJ.js +1 -0
  77. package/dist/{labeling-2A31f781.d.cts → labeling-B-FQz2d2.d.cts} +1 -1
  78. package/dist/{labeling-CDKZ9TO1.d.ts → labeling-DqyXzIgw.d.ts} +1 -1
  79. package/dist/localeLoaders-L36RHPNS.js +1 -0
  80. package/dist/lt-GB2GJDNS.js +1 -0
  81. package/dist/lv-3ZE6IM47.js +1 -0
  82. package/dist/ms-YH2PYOHG.js +1 -0
  83. package/dist/nl-D4FX7T7U.js +1 -0
  84. package/dist/no-5YNLYHN4.js +1 -0
  85. package/dist/pl-RUXCR6JV.js +1 -0
  86. package/dist/pt-TKFGIUL6.js +1 -0
  87. package/dist/{renderedQuality-CwZ8hY-5.d.cts → renderedQuality-D62MKRV8.d.cts} +1 -1
  88. package/dist/{renderedQuality-wDIiUId3.d.ts → renderedQuality-DZOIkUX_.d.ts} +1 -1
  89. package/dist/{renderer-CdJx5l3B.d.ts → renderer-BIR1jJrt.d.cts} +10 -18
  90. package/dist/{renderer-D6ggv3bV.d.cts → renderer-CiPst9uA.d.ts} +10 -18
  91. package/dist/ro-UFIOIOVH.js +1 -0
  92. package/dist/ru-VMRD53B7.js +1 -0
  93. package/dist/{seatTypeIcons-DMJX4rVN.d.cts → seatTypeIcons-BTw3K-yP.d.cts} +1 -1
  94. package/dist/{seatTypeIcons-UpUTD8Xf.d.ts → seatTypeIcons-qlLxwByo.d.ts} +1 -1
  95. package/dist/{sections-CempT5a0.d.cts → sections-Cr6f5csG.d.cts} +1 -1
  96. package/dist/{sections-lpdfwSdO.d.ts → sections-dqlb491l.d.ts} +1 -1
  97. package/dist/{segmentedRowModel-HwY4XuYa.d.ts → segmentedRowModel-BSXPftwU.d.ts} +1 -1
  98. package/dist/{segmentedRowModel-Ddx5ol8T.d.cts → segmentedRowModel-Dy_zNI1E.d.cts} +1 -1
  99. package/dist/sk-XIK2KO3F.js +1 -0
  100. package/dist/sl-CDZGH6C6.js +1 -0
  101. package/dist/sr-A3TESNV3.js +1 -0
  102. package/dist/sv-HKGKDGSG.js +1 -0
  103. package/dist/{tableSizing-C0zx97eg.d.ts → tableSizing-BnlXRH_v.d.ts} +40 -8
  104. package/dist/{tableSizing-BJqAuJDg.d.cts → tableSizing-DuRJVaJs.d.cts} +40 -8
  105. package/dist/th-ZPGRIY7D.js +1 -0
  106. package/dist/{ticketRestrictions-DDQHiKF-.d.cts → ticketRestrictions-BBZ5mbsi.d.cts} +2 -2
  107. package/dist/{ticketRestrictions-AU8UUmdL.d.ts → ticketRestrictions-BEHxDUyd.d.ts} +2 -2
  108. package/dist/tr-IUB54G3R.js +1 -0
  109. package/dist/{types-DL7qIUrD.d.cts → types-CB1llwVg.d.cts} +131 -14
  110. package/dist/{types-DL7qIUrD.d.ts → types-CB1llwVg.d.ts} +131 -14
  111. package/dist/uk-JQKEV42K.js +1 -0
  112. package/dist/vi-KRM5S2Q7.js +1 -0
  113. package/dist/view3d/crossfade/panorama.d.cts +1 -1
  114. package/dist/view3d/crossfade/panorama.d.ts +1 -1
  115. package/dist/view3d/index.cjs +54 -54
  116. package/dist/view3d/index.d.cts +12 -3
  117. package/dist/view3d/index.d.ts +12 -3
  118. package/dist/view3d/index.js +44 -44
  119. package/dist/view3d/scene/scene.worker.cjs +1 -1
  120. package/dist/view3d/scene/scene.worker.js +1 -1
  121. package/dist/zh-Hans-FEUYIOYS.js +1 -0
  122. package/dist/zh-Hant-PK2XOE2G.js +1 -0
  123. package/package.json +1 -1
  124. package/dist/ar-TGXEBJUB.js +0 -1
  125. package/dist/be-JIDOHWF6.js +0 -1
  126. package/dist/bg-ODVJNCC2.js +0 -1
  127. package/dist/ca-3I7TMWYU.js +0 -1
  128. package/dist/chunk-4R6TXHY2.js +0 -1
  129. package/dist/chunk-5N4H3KMR.js +0 -1
  130. package/dist/chunk-66T4EAUA.js +0 -1
  131. package/dist/chunk-AFJWTB7L.js +0 -1
  132. package/dist/chunk-EIV3CAGV.js +0 -1
  133. package/dist/chunk-FUFRWRPM.js +0 -1
  134. package/dist/chunk-TAMY7HTV.js +0 -1
  135. package/dist/chunk-TQN2VWQO.js +0 -1
  136. package/dist/cs-XXB624Z3.js +0 -1
  137. package/dist/cy-W2QNU2GO.js +0 -1
  138. package/dist/da-Q47YPK2E.js +0 -1
  139. package/dist/de-TS3DPLM5.js +0 -1
  140. package/dist/el-3JQUH6DB.js +0 -1
  141. package/dist/es-GP7VOX7S.js +0 -1
  142. package/dist/et-A22OMZ6V.js +0 -1
  143. package/dist/fi-OJLAOJO2.js +0 -1
  144. package/dist/fr-7ATOYJCF.js +0 -1
  145. package/dist/he-37LKRY5W.js +0 -1
  146. package/dist/hi-YXZ5EWK7.js +0 -1
  147. package/dist/hr-QFOPGLMR.js +0 -1
  148. package/dist/hu-RHRBK46E.js +0 -1
  149. package/dist/id-A5Q3MLSX.js +0 -1
  150. package/dist/ja-CC6EPUSN.js +0 -1
  151. package/dist/ko-7H4RGYFK.js +0 -1
  152. package/dist/ku-HFYWPSS4.js +0 -1
  153. package/dist/localeLoaders-4YMC7FIZ.js +0 -1
  154. package/dist/lt-HQXE7W47.js +0 -1
  155. package/dist/lv-AN25XXPB.js +0 -1
  156. package/dist/ms-CWAYSF6E.js +0 -1
  157. package/dist/nl-63QBRZSZ.js +0 -1
  158. package/dist/no-RAPQMKWU.js +0 -1
  159. package/dist/pl-ILSTD4ZV.js +0 -1
  160. package/dist/pt-WF3US5D7.js +0 -1
  161. package/dist/ro-XR3HT6DE.js +0 -1
  162. package/dist/ru-TLJEWDPA.js +0 -1
  163. package/dist/sk-OJC2EL3Z.js +0 -1
  164. package/dist/sl-7RGTVXCV.js +0 -1
  165. package/dist/sr-NHDJ54BS.js +0 -1
  166. package/dist/sv-ZODCCBCU.js +0 -1
  167. package/dist/th-VCZA4MP5.js +0 -1
  168. package/dist/tr-ROKZO3HC.js +0 -1
  169. package/dist/uk-LP2DPUHC.js +0 -1
  170. package/dist/vi-JDK3JRJR.js +0 -1
  171. package/dist/zh-Hans-P3GB3FAZ.js +0 -1
  172. package/dist/zh-Hant-YU4OKSFZ.js +0 -1
@@ -1,7 +1,7 @@
1
- import { A as AccessibilityType } from '../../types-DL7qIUrD.js';
1
+ import { A as AccessibilityType } from '../../types-CB1llwVg.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-wDIiUId3.js';
4
- import '../../renderer-CdJx5l3B.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-DZOIkUX_.js';
4
+ import '../../renderer-CiPst9uA.js';
5
5
 
6
6
  /**
7
7
  * Rendering constants that quality inspection must agree with.
@@ -1 +1 @@
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
+ import{a as M,b as N,c as O}from"../../chunk-4522UUXG.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-EE2CVYFJ.js";import"../../chunk-URW7MSCJ.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:()=>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
+ "use strict";var R=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var ve=Object.prototype.hasOwnProperty;var Oe=(e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})},Ie=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Se(t))!ve.call(e,o)&&o!==n&&R(e,o,{get:()=>t[o],enumerable:!(r=ye(t,o))||r.enumerable});return e};var ke=e=>Ie(R({},"__esModule",{value:!0}),e);var l1={};Oe(l1,{DECOR_STAMP_ICON_PATHS:()=>Fe,DEFAULT_SHAPE_LINE_CAP:()=>me,DEFAULT_SHAPE_LINE_ENDING:()=>j,DEFAULT_SHAPE_LINE_JOIN:()=>fe,SEAT_GLYPHS:()=>w,SEAT_GLYPH_DETAIL_MIN_PX:()=>x1,SEAT_GLYPH_INSET:()=>_1,SEAT_GLYPH_ORDER:()=>We,SEAT_GLYPH_VIEWBOX:()=>k1,SEAT_TYPE_ICON_BODY:()=>Le,SEAT_TYPE_ICON_VIEWBOX:()=>C1,SHAPE_LINE_CAPS:()=>n1,SHAPE_LINE_ENDINGS:()=>o1,SHAPE_LINE_JOINS:()=>r1,VENUE_ICONS:()=>B,VENUE_ICON_BADGE:()=>N,VENUE_ICON_BADGE_INK:()=>ce,VENUE_ICON_GROUP_COLORS:()=>le,VENUE_ICON_GROUP_LABELS:()=>Qe,VENUE_ICON_GROUP_ORDER:()=>Ke,VENUE_ICON_KEYS:()=>Ye,VENUE_ICON_LEGACY_DEFAULT_INK:()=>$e,VENUE_ICON_STROKE:()=>He,VENUE_ICON_VIEWBOX:()=>De,buyerBackgroundImage:()=>z,buyerFacingChartDoc:()=>Ae,hasConflictingLegacyTrace:()=>Pe,isOpenShapeKind:()=>Me,isPointShapeKind:()=>a1,isSeatGlyphKind:()=>V,isVenueIconKey:()=>Ue,migrateLegacyBackgroundLayersInPlace:()=>Ee,resolveSeatGlyph:()=>e1,resolvedShapeLineStyle:()=>i1,seatGlyph:()=>T,seatGlyphFit:()=>ge,seatGlyphLabel:()=>Xe,seatGlyphMarkOnSeat:()=>qe,seatGlyphPath:()=>Je,seatTypeIconBody:()=>be,seatTypeIconSvg:()=>t1,shapeArrowMetrics:()=>s1,traceReferenceImage:()=>_e,venueIcon:()=>he,venueIconBadgeGlyph:()=>ue,venueIconPath:()=>ze});module.exports=ke(l1);function D(e){let t=e;return delete t.referenceScan,delete t.referenceInventorySource,delete t.referenceInventoryExclusion,delete t.referenceSource,delete t.referenceAnnotationSource,e}var H=2,xe=3,Q=6;function x(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 E(e){return{...e,x:x(e.x,H),y:x(e.y,H)}}function K(e){let t={...e};t.origin&&typeof t.origin=="object"&&(t.origin=E(t.origin)),Array.isArray(t.outline)&&(t.outline=t.outline.map(E)),Array.isArray(t.points)&&(t.points=t.points.map(E)),typeof t.rotation=="number"&&(t.rotation=x(t.rotation,Q)),typeof t.seatSpacing=="number"&&(t.seatSpacing=x(t.seatSpacing,Q));let n=t.labelPresentation;return n?.position&&(t.labelPresentation={...n,position:E(n.position)}),Array.isArray(t.overrides)&&(t.overrides=t.overrides.map(r=>{let o={...r};for(let i of["dx","dy"]){let c=o[i];if(typeof c!="number")continue;let L=x(c,xe);L===0?delete o[i]:o[i]=L}return o})),t}function _e(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function z(e){let t=e.backgroundImage;return t?.url&&!t.assetId?t:void 0}function $(e){let t=z(e);if(!t?.url)return;let{calibration:n,derivedScale:r,assetId:o,...i}=t;return i}function Ee(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 F(e){let t=K(e);return D(t),delete t.editor,delete t.arcFanGeneration,delete t.rowBlockGeneration,t}function Ce(e){let t={...e};return delete t.referenceCategorySource,delete t.referenceDirectSeatImport,t}function Ae(e){let t=$(e),n=e.floors?.map(r=>({...r,objects:r.objects.map(F),referenceImage:void 0,backgroundImage:$(r)}));return{...e,categories:e.categories.map(Ce),objects:e.objects.map(F),referenceImage:void 0,venueSurveyRegistrations:void 0,designerSettings:void 0,backgroundImage:t,...n?{floors:n}:{}}}function Pe(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var C=["#e69f00","#56b4e9","#009e73","#f0e442","#0072b2","#d55e00","#cc79a7"],U="#a4508b";var Y="#ffffff";var Te={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"},b1=Te.wheelchair;var le={facilities:U,"food-drink":C[5],navigation:C[2],accessibility:C[4]},ce=Y,N={minDiameterPx:12,glyphScale:.66,ringRatio:1/14,largeFromPx:24};function ue(e,t){return t>=N.largeFromPx&&e.solidLarge?e.solidLarge:e.solid}var u=e=>{let t=Math.round(e*100)/100;return Object.is(t,-0)?"0":String(t)},k=e=>`${u(e[0])} ${u(e[1])}`,I=(e,t,n,r)=>[e+n*Math.cos(r*Math.PI/180),t+n*Math.sin(r*Math.PI/180)];function pe(e){let t=`M${k(e.from)}`;for(let n of e.segs)t+=n.arc?`A${u(n.arc.r)} ${u(n.arc.r)} 0 ${n.arc.large} ${n.arc.sweep} ${k(n.to)}`:`L${k(n.to)}`;return`${t}Z`}function p(e){let t=[e.from,...e.segs.map(r=>r.to)],n=[];for(let r=e.segs.length-1;r>=0;r--){let o=e.segs[r].arc;n.push({to:t[r],arc:o&&{...o,sweep:o.sweep?0:1}})}return{from:t[t.length-1],segs:n}}function d(e,t,n){let r={r:n,large:0,sweep:1};return{from:[e-n,t],segs:[{to:[e+n,t],arc:r},{to:[e-n,t],arc:r}]}}function a(e,t,n,r,o){let i=Math.min(o,n/2,r/2),c={r:i,large:0,sweep:1};return i<=0?g([[e,t],[e+n,t],[e+n,t+r],[e,t+r]]):{from:[e+i,t],segs:[{to:[e+n-i,t]},{to:[e+n,t+i],arc:c},{to:[e+n,t+r-i]},{to:[e+n-i,t+r],arc:c},{to:[e+i,t+r]},{to:[e,t+r-i],arc:c},{to:[e,t+i]},{to:[e+i,t],arc:c}]}}function g(e){let t=0;for(let r=0;r<e.length;r++){let[o,i]=e[r],[c,L]=e[(r+1)%e.length];t+=o*L-c*i}let n=t>0?e:[...e].reverse();return{from:n[0],segs:[...n.slice(1).map(r=>({to:r})),{to:n[0]}]}}function l(e,t,n){let r=n/2,o=t[0]-e[0],i=t[1]-e[1],c=Math.hypot(o,i);if(c<1e-6)return d(e[0],e[1],r);let L=[i/c*r,-o/c*r],M={r,large:0,sweep:1},y=[e[0]+L[0],e[1]+L[1]];return{from:y,segs:[{to:[t[0]+L[0],t[1]+L[1]]},{to:[t[0]-L[0],t[1]-L[1]],arc:M},{to:[e[0]-L[0],e[1]-L[1]]},{to:y,arc:M}]}}function h(e,t,n=!1){let r=[],o=n?e.length:e.length-1;for(let i=0;i<o;i++)r.push(l(e[i],e[(i+1)%e.length],t));return r}function m(e,t,n,r,o,i){let c=i/2,L=o-r>180?1:0,M={r:c,large:0,sweep:1},y=I(e,t,n+c,r);return{from:y,segs:[{to:I(e,t,n+c,o),arc:{r:n+c,large:L,sweep:1}},{to:I(e,t,n-c,o),arc:M},{to:I(e,t,n-c,r),arc:{r:n-c,large:L,sweep:0}},{to:y,arc:M}]}}var s=(...e)=>e.flat().map(pe).join(" "),b=(e,t,n)=>`M${u(e-n)} ${u(t)}a${u(n)} ${u(n)} 0 1 0 ${u(2*n)} 0a${u(n)} ${u(n)} 0 1 0 ${u(-2*n)} 0`,f=(e,t,n,r,o)=>pe(a(e,t,n,r,o)),P=e=>`M${e.map(k).join("L")}`,A=(e,t,n,r,o)=>`M${k(I(e,t,n,r))}A${u(n)} ${u(n)} 0 ${o-r>180?1:0} 1 ${k(I(e,t,n,o))}`;function v(e,t,n,r=1){let o=i=>[i[0]*r+t,i[1]*r+n];return{head:[e.head[0]*r+t,e.head[1]*r+n,e.head[2]*r],limbs:e.limbs.map(i=>i.map(o)),arcs:e.arcs?.map(([i,c,L,M,y])=>[i*r+t,c*r+n,L*r,M,y])}}function _(e){return[b(e.head[0],e.head[1],e.head[2]),...e.limbs.map(P),...(e.arcs??[]).map(([t,n,r,o,i])=>A(t,n,r,o,i))].join(" ")}function O(e,t=2.6){return[d(e.head[0],e.head[1],e.head[2]+1),...e.limbs.flatMap(n=>h(n,t)),...(e.arcs??[]).map(([n,r,o,i,c])=>m(n,r,o,i,c,t-.2))]}var S={head:[10,4,2],limbs:[[[10,8.2],[10,14],[15.5,14],[18,19.5],[20.5,19.5]],[[10,10.6],[14.5,10.6]]],arcs:[[9.5,16,5.5,35,235]]},W={head:[10.6,3.9,1.9],limbs:[[[9.6,7.8],[7.6,12]],[[5.4,8.2],[9.4,8.4],[12.8,10]],[[4,15.6],[7.6,12],[11,13.6],[10.6,16.4]]]},X={cx:12,hr:1.9,arm:5,leg:3,r:2},J={cx:12,hr:1.9,sh:2.2,hem:6,leg:3},q={cx:6.2,hr:1.8,arm:3.6,leg:2.2,r:1.4},ee={cx:17.8,hr:1.8,sh:1.4,hem:4.1,leg:2.2};function te({cx:e,hr:t,arm:n,leg:r,r:o}){return[b(e,2+t,t),`M${u(e-n+o)} 8.5H${u(e+n-o)}a${o} ${o} 0 0 1 ${o} ${o}V15H${u(e+r)}V22H${u(e-r)}V15H${u(e-n)}V${u(8.5+o)}a${o} ${o} 0 0 1 ${o} ${-o}Z`,`M${u(e)} 15V22`].join(" ")}function ne({cx:e,hr:t,arm:n,leg:r,r:o}){return[d(e,2+t,t+1),a(e-n-.5,7.8,2*n+1,7.7,o+.5),a(e-r-.5,13,r,9.5,1),a(e+.5,13,r,9.5,1)]}function re({cx:e,hr:t,sh:n,hem:r,leg:o}){return[b(e,2+t,t),P([[e-n,8.5],[e+n,8.5],[e+r,16],[e+o,16],[e+o,22],[e-o,22],[e-o,16],[e-r,16]])+"Z",`M${u(e)} 16V22`].join(" ")}function oe({cx:e,hr:t,sh:n,hem:r,leg:o}){return[d(e,2+t,t+1),g([[e-n-.6,7.8],[e+n+.6,7.8],[e+r+.9,16.8],[e-r-.9,16.8]]),a(e-o-.1,15,o-.4,7.5,.9),a(e+.5,15,o-.4,7.5,.9)]}var Re=[[14.6,1.5],[5.2,13.6],[11,13.6],[9.4,22.5],[18.8,10.4],[13,10.4]],Ne="M8.5 3.5 4 5.5l-1.5 5 3 1 1-2v11h11v-11l1 2 3-1-1.5-5-4.5-2c-.5 1.5-1.8 2.5-3.5 2.5s-3-1-3.5-2.5Z",Ge="M12 2.5S5 9.5 5 14.5a7 7 0 0 0 14 0c0-5-7-12-7-12Z",Be="M2.5 21.5h19V3h-6v6.2H9.2v6.2H2.5Z",ae=[[9,3],[15,3],[15,9],[21,9],[21,15],[15,15],[15,21],[9,21],[9,15],[3,15],[3,9],[9,9]],Ze={from:[3.8,5.2],segs:[{to:[20.2,5.2]},{to:[22,7],arc:{r:1.8,large:0,sweep:1}},{to:[22,9.7]},{to:[22,14.3],arc:{r:2.3,large:0,sweep:0}},{to:[22,17]},{to:[20.2,18.8],arc:{r:1.8,large:0,sweep:1}},{to:[3.8,18.8]},{to:[2,17],arc:{r:1.8,large:0,sweep:1}},{to:[2,14.3]},{to:[2,9.7],arc:{r:2.3,large:0,sweep:0}},{to:[2,7]},{to:[3.8,5.2],arc:{r:1.8,large:0,sweep:1}}]},Ve={from:[12,1.6],segs:[{to:[20.4,4.9]},{to:[20.4,11.2]},{to:[12,22.4],arc:{r:13,large:0,sweep:1}},{to:[3.6,11.2],arc:{r:13,large:0,sweep:1}},{to:[3.6,4.9]},{to:[12,1.6]}]};function ie(e,t,n){return{from:[e-n,t],segs:[{to:[e+n,t],arc:{r:n,large:0,sweep:1}},{to:[e-n,t]}]}}var se={head:[13.2,4.3,2.2],limbs:[[[12.6,8.6],[11.2,15],[17.8,18.4],[9.4,18.4]],[[12.4,9.8],[16,14.4]]]},we=[[6,10.5],[15,10.5],[16.5,7],[18.5,5.5],[20,6.5],[21.5,8.5],[19.5,10],[18,12],[18,19],[16.5,19],[15.5,14],[9.5,14],[8.5,19],[7,19],[6.5,13]],je=[[5.4,9.8],[14.6,9.8],[16.1,6.4],[18.4,4.6],[20.5,5.9],[22.4,8.6],[19.9,10.6],[18.8,12.3],[18.8,19.8],[15.8,19.8],[15,14.8],[10.1,14.8],[9.2,19.8],[6.2,19.8],[5.6,13.2]],G=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:te(X),solid:s(ne(X))},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:re(J),solid:s(oe(J))},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:[f(2.5,2.5,19,19,3.5),_(v(S,4.6,4.3,.66))].join(" "),solid:s(O(S)),solidLarge:s(a(1.5,1.5,21,21,4.5),p(a(3.9,3.9,16.2,16.2,2.6)),O(v(S,4.9,4.7,.62),2.2))},{key:"first-aid",label:"First aid",group:"facilities",path:P(ae)+"Z",solid:s(g(ae.map(([e,t])=>[e+(e-12)*.08,t+(t-12)*.08])))},{key:"coat-check",label:"Coat check",group:"facilities",path:"M10 6.5a2 2 0 1 1 2 2V10 M12 10 3.4 16.9a1.4 1.4 0 0 0 .9 2.6h15.4a1.4 1.4 0 0 0 .9-2.6Z",solid:s(m(12,6.2,2.2,180,450,2.3),l([12,8.4],[12,10.5],2.3),h([[12,10.2],[3.2,18.8],[20.8,18.8]],2.8,!0))},{key:"atm",label:"ATM / cash",group:"facilities",path:[f(2,6,20,12,2),b(12,12,2.75),"M6 12h.01 M18 12h.01"].join(" "),solid:s(a(1.5,5.5,21,13,2.4),p(d(12,12,3.2)))},{key:"info",label:"Info point",group:"facilities",path:[b(12,12,9.5),"M10.8 11H12v5.8 M12 7.6h.01"].join(" "),solid:s(d(12,4.9,2.4),a(10.3,9.2,3.4,12.3,1),a(8.2,9.2,4,3,1),a(8.2,18.5,7.6,3,1))},{key:"lost-found",label:"Lost & found",group:"facilities",path:[b(10.5,10.5,7.5),"M16 16l5.5 5.5","M8.4 8.4a2.1 2.1 0 1 1 3 1.9c-.6.4-.9.8-.9 1.6 M10.5 14.6h.01"].join(" "),solid:s(m(12,7.6,4.2,180,405,3.4),h([[14.97,10.57],[12,13],[12,15]],3.4),d(12,20,2.1))},{key:"restrooms",label:"Toilets",group:"facilities",path:[te(q),re(ee)].join(" "),solid:s(ne(q),oe(ee))},{key:"charging",label:"Charging point",group:"facilities",path:[f(6,2,12,20,2.5),"M13.2 6.2 9.6 12h4.8l-3.6 5.8"].join(" "),solid:s(g(Re))},{key:"smoking",label:"Smoking area",group:"facilities",path:[f(2,14.5,14.5,4,1),"M6.5 14.5v4","M15.5 11.5c0-1.4 1.5-1.9 1.5-3.4s-1.5-2-1.5-3.4 M19 11.5c0-1.4 1.5-1.9 1.5-3.4s-1.5-2-1.5-3.4"].join(" "),solid:s(a(1.5,14,4.2,5,1.2),a(6.8,14,10.4,5,1.2),h([[15.9,11.4],[17.3,8.9],[15.9,6.4],[17.1,3.9]],2.2),h([[19.6,11.4],[21,8.9],[19.6,6.4],[20.8,3.9]],2.2))},{key:"no-smoking",label:"No smoking",group:"facilities",path:[b(12,12,9.5),"M5.3 5.3l13.4 13.4","M5.5 10.5h13v3h-13Z"].join(" "),solid:s(d(12,12,10.6),p(d(12,12,8)),l([6,6],[18,18],2.8),a(5,10.4,3,3.2,.6),a(16,10.4,3,3.2,.6))},{key:"food",label:"Food",group:"food-drink",path:"M5 2.5V8a2.5 2.5 0 0 0 5 0V2.5 M7.5 2.5v19 M18.5 13.5h-2c-1.3 0-2-1-2-2.5 0-4 1.5-7 4-8.5v19",solid:s(h([[4.9,2.6],[4.9,8]],2.2),h([[10.1,2.6],[10.1,8]],2.2),h([[7.5,2.6],[7.5,8]],2.2),m(7.5,8,2.6,0,180,2.2),l([7.5,10],[7.5,21.4],3),g([[19.4,2.2],[19.4,14.2],[16.2,14.2],[14.1,12],[14.1,9.4],[15.2,5.8],[17.3,3.3]]),l([18,13],[18,21.4],3))},{key:"bar",label:"Bar",group:"food-drink",path:"M3.5 3.5h17L12 13Z M6.2 6.5h11.6 M12 13v7.5 M8 20.5h8",solid:s(g([[2.8,3],[21.2,3],[12,13.6]]),l([12,12],[12,20.6],2.8),l([7.4,21],[16.6,21],2.8))},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 9h12v4.5a5.5 5.5 0 0 1-5.5 5.5h-1A5.5 5.5 0 0 1 4 13.5Z M16 10.5h1.2a2.75 2.75 0 0 1 0 5.5H16 M8 3v3 M12 3v3 M3 21.5h14",solid:s({from:[3.4,8.4],segs:[{to:[16.6,8.4]},{to:[16.6,13.4]},{to:[11,19.4],arc:{r:5.8,large:0,sweep:1}},{to:[9,19.4]},{to:[3.4,13.4],arc:{r:5.8,large:0,sweep:1}},{to:[3.4,8.4]}]},m(17.2,13.25,2.5,270,450,2.4),l([7.8,2.6],[7.8,5.6],2.4),l([12.2,2.6],[12.2,5.6],2.4),l([2.6,21.6],[17.4,21.6],2.6))},{key:"water",label:"Water / drinks",group:"food-drink",path:Ge,solid:"M12 1.2S4 8.9 4 14.5a8 8 0 0 0 16 0c0-5.6-8-13.3-8-13.3Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:Ne,solid:"M8.4 2.8 3.5 5l-1.9 6 4.2 1.4.4-.8v9.4h11.6v-9.4l.4.8 4.2-1.4-1.9-6-4.9-2.2c-.4 1.5-1.8 2.6-3.6 2.6s-3.2-1.1-3.6-2.6Z"},{key:"screen",label:"Screen",group:"facilities",path:[f(2,3.5,20,13.5,2),"M12 17v3.5 M8 20.5h8","M10 7.8v5.9l5-2.95Z"].join(" "),solid:s(a(1.5,3,21,14.4,2.4),p(g([[9.6,6.7],[16,10.2],[9.6,13.7]])),a(10.6,16.5,2.8,4,0),l([7.4,21],[16.6,21],2.8))},{key:"sound-booth",label:"Sound booth",group:"facilities",path:["M6 3v9 M6 16v5 M12 3v3 M12 10v11 M18 3v10 M18 17v4",b(6,14,2),b(12,8,2),b(18,15,2)].join(" "),solid:s(l([6,2.8],[6,21.2],1.8),l([12,2.8],[12,21.2],1.8),l([18,2.8],[18,21.2],1.8),a(3.2,11.6,5.6,4.8,1.4),a(9.2,5.6,5.6,4.8,1.4),a(15.2,12.6,5.6,4.8,1.4))},{key:"entrance",label:"Entrance",group:"navigation",path:"M11 7V3.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V17 M2.5 12h13.5 M12.5 8.5 16 12l-3.5 3.5",solid:s(h([[11,6.5],[11,2.6],[21,2.6],[21,21.4],[11,21.4],[11,17.5]],2.6),l([2.8,12],[13.5,12],3.2),g([[12.6,7.8],[18,12],[12.6,16.2]]))},{key:"exit",label:"Exit",group:"navigation",path:"M13 7V3.5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V17 M8 12h13.5 M18 8.5l3.5 3.5-3.5 3.5",solid:s(h([[13,6.5],[13,2.6],[3,2.6],[3,21.4],[13,21.4],[13,17.5]],2.6),l([7.2,12],[17,12],3.2),g([[16.2,7.8],[21.6,12],[16.2,16.2]]))},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:[_(v(W,-2,1.4,1.15)),"M15.5 13h6 M19 10.5l2.5 2.5-2.5 2.5"].join(" "),solid:s(O(v(W,-2,1.4,1.15),2.7),l([15.6,13],[19.5,13],2.8),g([[18.4,9.4],[22.4,13],[18.4,16.6]]))},{key:"stairs",label:"Stairs",group:"navigation",path:Be,solid:"M1.5 22.5h21V2h-7.8v6.4H8.4v6.4H1.5Z"},{key:"elevator",label:"Elevator",group:"navigation",path:[f(3.5,2.5,17,19,2.5),"M8.5 9.5 12 5.5l3.5 4Z M8.5 14.5l3.5 4 3.5-4Z"].join(" "),solid:s(g([[12,1.6],[19.6,10.2],[4.4,10.2]]),g([[4.4,13.8],[19.6,13.8],[12,22.4]]))},{key:"parking",label:"Parking",group:"navigation",path:[f(3,3,18,18,3),"M9.5 17V7h3.75a3 3 0 0 1 0 6H9.5"].join(" "),solid:"M6.5 21V3H12a5.5 5.5 0 0 1 0 11h-1.9v7Z M10.1 6.6v3.8H12a1.9 1.9 0 0 0 0-3.8Z"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:_(S),solid:s(O(S))},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:["M4 9a6 6 0 1 1 12 0c0 3-1.8 4.3-3 5.2-1.1.8-1.6 1.7-1.6 3.1a3.6 3.6 0 0 1-6.2 2.1","M7.5 9a2.5 2.5 0 0 1 5 0c0 1.2-.7 1.9-1.6 2.5","M18.5 5.5a6.5 6.5 0 0 1 0 8"].join(" "),solid:s(m(10,9,6,180,380,3),h([[15.64,11.05],[12.8,14.3],[11.5,17.2]],3),m(8.2,17.2,3.3,0,150,3),m(10,9,2.2,180,400,2.4),m(13.38,9.5,6.5,322,398,2.6))},{key:"box-office",label:"Box office / tickets",group:"navigation",path:"M3 7.5A1.5 1.5 0 0 1 4.5 6h15A1.5 1.5 0 0 1 21 7.5V10a2 2 0 0 0 0 4v2.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 16.5V14a2 2 0 0 0 0-4Z M15 6v2 M15 11v2 M15 16v2",solid:s(Ze,p(a(14.1,7,1.8,2.2,.9)),p(a(14.1,10.9,1.8,2.2,.9)),p(a(14.1,14.8,1.8,2.2,.9)))},{key:"escalator",label:"Escalator",group:"navigation",path:"M2.5 17H7l9-9h5.5v4h-4l-9 9h-6Z M11 4.5h.01 M11 8.2v3.3",solid:s(g([[2,16.4],[6.8,16.4],[15.8,7.4],[22,7.4],[22,12.6],[17.8,12.6],[8.8,21.6],[2,21.6]]),d(11,4.3,2.3),l([11,8],[11,11],2.6))},{key:"ramp",label:"Ramp",group:"navigation",path:"M2.5 19.5h19v-10Z M4.5 13.2 14 8.2 M10.53 7.76 14 8.2l-1.6 3.11",solid:s(g([[1.6,20.4],[22.4,20.4],[22.4,8.6]]),l([4.2,13.4],[13.2,8.6],2.6),g([[15.4,7.5],[13.16,11.84],[10.56,6.88]]))},{key:"taxi",label:"Taxi / rideshare",group:"navigation",path:["M9.5 2.5h5V5h-5Z M6.5 11 8 7h8l1.5 4",f(3.5,11,17,6,2),"M6.5 17v2.5 M17.5 17v2.5 M7 14h.01 M17 14h.01"].join(" "),solid:s(a(9,1.8,6,3.4,.8),g([[6,11.4],[7.6,6.4],[16.4,6.4],[18,11.4]]),a(2.8,10.6,18.4,7,2.2),p(d(6.8,14,1.3)),p(d(17.2,14,1.3)),a(4.8,16,3.6,5.2,1.2),a(15.6,16,3.6,5.2,1.2))},{key:"transit",label:"Bus / transit",group:"navigation",path:[f(4.5,2.5,15,16,3),"M4.5 10.5h15 M9 5.5h6 M7.5 18.5V21 M16.5 18.5V21 M8 14.5h.01 M16 14.5h.01"].join(" "),solid:s(a(4,2,16,17,3.2),p(a(6.2,5.8,11.6,5,1)),p(d(8,14.5,1.3)),p(d(16,14.5,1.3)),a(6,17,3.4,5,1.2),a(14.6,17,3.4,5,1.2))},{key:"bike-parking",label:"Bike parking",group:"navigation",path:[b(6,14.5,4),b(18,14.5,4),"M6 14.5 9 7.5h6.5L18 14.5 M9 7.5l2.5 7H6 M11.5 14.5l4-7 M7.5 6h3 M15.5 7.5 15 5.5h2"].join(" "),solid:s(d(6,14.5,4.9),p(d(6,14.5,2.7)),d(18,14.5,4.9),p(d(18,14.5,2.7)),h([[6,14.5],[9,7.5],[15.5,7.5],[18,14.5]],2.2),h([[9,7.5],[11.5,14.5],[15.5,7.5]],2.2),l([6,14.5],[11.5,14.5],2.2),l([7.2,5.8],[10.6,5.8],2.2),h([[15.4,7.3],[15,5.4],[17.2,5.4]],2.2))},{key:"meeting-point",label:"Meeting point",group:"navigation",path:["M9.5 2.5 12 5l2.5-2.5 M9.5 21.5 12 19l2.5 2.5 M2.5 9.5 5 12l-2.5 2.5 M21.5 9.5 19 12l2.5 2.5",b(10,9.6,1.5),b(14,9.6,1.5),"M7.5 15.5a2.5 2.5 0 0 1 5 0 M11.5 15.5a2.5 2.5 0 0 1 5 0"].join(" "),solid:s(h([[9.4,2.4],[12,5],[14.6,2.4]],2.6),h([[9.4,21.6],[12,19],[14.6,21.6]],2.6),h([[2.4,9.4],[5,12],[2.4,14.6]],2.6),h([[21.6,9.4],[19,12],[21.6,14.6]],2.6),d(9.7,9.3,2.2),d(14.3,9.3,2.2),ie(9.7,16,3),ie(14.3,16,3))},{key:"security",label:"Security / bag check",group:"facilities",path:"M12 2.5 19.5 5.5v6c0 4.6-3.2 8.4-7.5 10-4.3-1.6-7.5-5.4-7.5-10v-6Z M8.5 12l2.5 2.5 4.5-5",solid:s(Ve,p(g([[7.4,12.2],[9,10.6],[10.9,12.5],[15,8.4],[16.6,10],[10.9,15.7]])))},{key:"lockers",label:"Lockers",group:"facilities",path:[f(3.5,2.5,17,19,1.5),"M12 2.5v19 M6 6h3 M15 6h3 M9.5 11.5v2.5 M14.5 11.5v2.5"].join(" "),solid:s(a(3,2,8.4,20,1.4),p(a(5,5,4.4,1.7,.8)),p(a(8.6,10.8,1.5,3.8,.7)),a(12.6,2,8.4,20,1.4),p(a(14.6,5,4.4,1.7,.8)),p(a(13.9,10.8,1.5,3.8,.7)))},{key:"baby-change",label:"Baby change",group:"facilities",path:"M10 6.5l.8-3.3a1.2 1.2 0 0 1 2.4 0l.8 3.3 M8.5 6.5h7 M9.5 6.5l-.9 2.2a3 3 0 0 0-.1.9V19a2.5 2.5 0 0 0 2.5 2.5h2a2.5 2.5 0 0 0 2.5-2.5V9.6a3 3 0 0 0-.1-.9l-.9-2.2 M8.5 12.5h3 M8.5 16h3",solid:s(g([[9.6,6.2],[10.6,1.8],[13.4,1.8],[14.4,6.2]]),a(7.6,5.4,8.8,2.6,1),a(7.8,7.4,8.4,15,2.6),p(a(7.8,11.8,3.4,1.5,0)),p(a(7.8,15.4,3.4,1.5,0)))},{key:"prayer-room",label:"Prayer room",group:"facilities",path:[_(se),"M3 21.5h18"].join(" "),solid:s(O(se),a(2.4,20.2,19.2,2.6,1.3))},{key:"quiet-room",label:"Quiet room",group:"facilities",path:"M4 9h3.5l5-4v14l-5-4H4Z M15.5 9.5l5 5 M20.5 9.5l-5 5",solid:s(g([[2.6,8.4],[7.2,8.4],[13,3.6],[13,20.4],[7.2,15.6],[2.6,15.6]]),l([15.4,9.2],[20.8,14.8],2.8),l([20.8,9.2],[15.4,14.8],2.8))},{key:"wifi",label:"Wi-Fi",group:"facilities",path:[A(12,19,11.5,218,322),A(12,19,7.5,218,322),A(12,19,3.5,218,322),"M12 19h.01"].join(" "),solid:s(m(12,19.2,11,218,322,2.8),m(12,19.2,6.9,218,322,2.8),d(12,19.2,2.2))},{key:"vip-lounge",label:"VIP lounge",group:"facilities",path:["M6.5 11V7a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v4","M3.5 11.5a1.5 1.5 0 0 1 3 0V14h11v-2.5a1.5 1.5 0 0 1 3 0v6h-17Z","M5.5 17.5V20 M18.5 17.5V20"].join(" "),solid:s(a(6,4,12,8.5,2.2),a(2.4,9.6,4.6,9,2.2),a(17,9.6,4.6,9,2.2),a(6,13.2,12,5.4,.6),l([5,18],[5,20.6],2.4),l([19,18],[19,20.6],2.4))},{key:"accessible-entrance",label:"Accessible entrance",group:"accessibility",path:[_(v(S,.3,5,.62)),"M12.5 3.5H20a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1h-7.5"].join(" "),solid:s(O(v(S,.3,5,.62),2.2),h([[13,2.8],[21.2,2.8],[21.2,21.2],[13,21.2]],2.6))},{key:"assistance-dog",label:"Assistance-dog area",group:"accessibility",path:[P(we)+"Z","M6 10.8 3.5 7.5","M10.5 10.5V6h4.5l1 2.5"].join(" "),solid:s(g(je),l([6.2,11],[3.2,7.2],2.4),h([[10.5,11],[10.5,5.6],[15.2,5.6],[16.2,8.2]],2.2))}],y1=new Map(G.map(e=>[e.key,e]));var De=24,He=2,Qe={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Ke=["facilities","food-drink","navigation","accessibility"],B=G,$e="#8b93a7",Fe={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"},de=new Map(B.map(e=>[e.key,e]));function he(e){return e?de.get(e):void 0}function ze(e){return he(e)?.path}function Ue(e){return typeof e=="string"&&de.has(e)}var Ye=B.map(e=>e.key);var k1=24,x1=16,_1=.14,w=[{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}}],We=w.map(e=>e.key),Z=new Map(w.map(e=>[e.key,e]));function T(e){return Z.get(e)??Z.get("circle")}function Xe(e){return T(e).label}function Je(e){return T(e).path}function ge(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 qe(e,t){let n=T(e);if(!n.bounds||!n.mark||!(t>0))return null;let r=ge(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 V(e){return typeof e=="string"&&Z.has(e)}function e1(e,t){return V(e)?e:V(t?.seatGlyph)?t.seatGlyph:"circle"}var C1=20,Le={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 be(e){return Le[e]??""}function t1(e,t={}){let n=be(e);if(!n)return"";let r=t.size??18,o=20;return`<svg viewBox="0 0 ${o} ${o}" 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 n1=["butt","round","square"],r1=["miter","round","bevel"],o1=["none","arrow"],me="round",fe="round",j="none";function Me(e){return e==="line"||e==="polyline"}function a1(e){return e==="polygon"||Me(e)}function i1(e){return{lineCap:e.lineCap??me,lineJoin:e.lineJoin??fe,startEnding:e.startEnding??j,endEnding:e.endEnding??j}}function s1(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_BADGE,VENUE_ICON_BADGE_INK,VENUE_ICON_GROUP_COLORS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_LEGACY_DEFAULT_INK,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,venueIconBadgeGlyph,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-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';
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-CB1llwVg.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-BTw3K-yP.cjs';
3
3
 
4
4
  type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
5
5
  /**
@@ -31,6 +31,36 @@ declare function buyerFacingChartDoc(doc: ChartDoc): ChartDoc;
31
31
  /** True when a scope has two different trace candidates and cannot be migrated safely. */
32
32
  declare function hasConflictingLegacyTrace(owner: BackgroundOwner): boolean;
33
33
 
34
+ interface Pictogram extends VenueIcon {
35
+ /** Stroke path (fill:none, stroke 2, round caps/joins). Same contract as `VenueIcon.path`. */
36
+ path: string;
37
+ /** Filled path (fill-rule nonzero, no stroke) for the map badge glyph. */
38
+ solid: string;
39
+ /**
40
+ * Optional fuller badge glyph for badges ≥ `PICTOGRAM_BADGE.largeFromPx`, where
41
+ * there is room for the detail that tells two icons apart by shape (the sign
42
+ * frame of the accessible restroom).
43
+ */
44
+ solidLarge?: string;
45
+ }
46
+ /** Group → badge disc colour. */
47
+ declare const PICTOGRAM_GROUP_COLORS: Record<VenueIconGroup, string>;
48
+ /** Glyph ink inside a badge, and the separating ring on dark maps. */
49
+ declare const PICTOGRAM_BADGE_INK = "#ffffff";
50
+ /** Map-badge geometry, in screen px / ratios of the badge diameter. */
51
+ declare const PICTOGRAM_BADGE: {
52
+ /** Never draw a badge smaller than this on screen. */
53
+ readonly minDiameterPx: 12;
54
+ /** Glyph box side as a fraction of the badge diameter. */
55
+ readonly glyphScale: 0.66;
56
+ /** Ring (badge ink) width as a fraction of the diameter; drawn on dark maps. */
57
+ readonly ringRatio: number;
58
+ /** From this diameter up, a badge draws `solidLarge` when the icon has one. */
59
+ readonly largeFromPx: 24;
60
+ };
61
+ /** The glyph a badge of `diameterPx` should draw for this pictogram. */
62
+ declare function pictogramBadgeGlyph(p: Pictogram, diameterPx: number): string;
63
+
34
64
  /** Logical grouping for the Designer palette (plain-language section headers). */
35
65
  type VenueIconGroup = 'facilities' | 'food-drink' | 'navigation' | 'accessibility';
36
66
  interface VenueIcon {
@@ -50,7 +80,17 @@ declare const VENUE_ICON_STROKE = 2;
50
80
  declare const VENUE_ICON_GROUP_LABELS: Record<VenueIconGroup, string>;
51
81
  /** Display order of the groups in the palette. */
52
82
  declare const VENUE_ICON_GROUP_ORDER: VenueIconGroup[];
53
- declare const VENUE_ICONS: VenueIcon[];
83
+ /**
84
+ * Every placeable venue icon, in palette order within its group. The drawings
85
+ * come from `./pictograms`; keys and labels are persisted/user-facing contracts.
86
+ */
87
+ declare const VENUE_ICONS: readonly Pictogram[];
88
+ /**
89
+ * The ink every icon placed before the v2 badges was saved with (the old
90
+ * placement default). It means "no colour chosen": such markers take their
91
+ * group colour. Any other saved colour is the organizer's and tints the badge.
92
+ */
93
+ declare const VENUE_ICON_LEGACY_DEFAULT_INK = "#8b93a7";
54
94
  /**
55
95
  * Décor-stamp-only glyphs. Some Designer décor presets (e.g. a structural wall)
56
96
  * are not buyer-placeable wayfinding markers, so they must NOT appear in the
@@ -60,7 +100,7 @@ declare const VENUE_ICONS: VenueIcon[];
60
100
  */
61
101
  declare const DECOR_STAMP_ICON_PATHS: Record<string, string>;
62
102
  /** Resolve a registry entry by key, or undefined for legacy/unknown keys. */
63
- declare function venueIcon(key: string | undefined | null): VenueIcon | undefined;
103
+ declare function venueIcon(key: string | undefined | null): Pictogram | undefined;
64
104
  /** Vector path for a key, or undefined when the key is not in the registry. */
65
105
  declare function venueIconPath(key: string | undefined | null): string | undefined;
66
106
  /** True when `key` names a real registry icon (MCP/validation fail-closed guard). */
@@ -207,4 +247,4 @@ declare function shapeArrowMetrics(strokeWidth: number): {
207
247
  pointerWidth: number;
208
248
  };
209
249
 
210
- export { 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, SHAPE_LINE_CAPS, SHAPE_LINE_ENDINGS, SHAPE_LINE_JOINS, type SeatGlyph, type SeatGlyphBounds, type SeatGlyphGroup, type SeatGlyphMark, VENUE_ICONS, VENUE_ICON_GROUP_LABELS, VENUE_ICON_GROUP_ORDER, VENUE_ICON_KEYS, VENUE_ICON_STROKE, VENUE_ICON_VIEWBOX, type VenueIcon, type VenueIconGroup, buyerBackgroundImage, buyerFacingChartDoc, hasConflictingLegacyTrace, isOpenShapeKind, isPointShapeKind, isSeatGlyphKind, isVenueIconKey, migrateLegacyBackgroundLayersInPlace, resolveSeatGlyph, resolvedShapeLineStyle, seatGlyph, seatGlyphFit, seatGlyphLabel, seatGlyphMarkOnSeat, seatGlyphPath, shapeArrowMetrics, traceReferenceImage, venueIcon, venueIconPath };
250
+ export { 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, SHAPE_LINE_CAPS, SHAPE_LINE_ENDINGS, SHAPE_LINE_JOINS, type SeatGlyph, type SeatGlyphBounds, type SeatGlyphGroup, type SeatGlyphMark, VENUE_ICONS, PICTOGRAM_BADGE as VENUE_ICON_BADGE, PICTOGRAM_BADGE_INK as VENUE_ICON_BADGE_INK, PICTOGRAM_GROUP_COLORS as VENUE_ICON_GROUP_COLORS, VENUE_ICON_GROUP_LABELS, VENUE_ICON_GROUP_ORDER, VENUE_ICON_KEYS, VENUE_ICON_LEGACY_DEFAULT_INK, VENUE_ICON_STROKE, VENUE_ICON_VIEWBOX, type VenueIcon, type Pictogram as VenueIconDrawing, type VenueIconGroup, buyerBackgroundImage, buyerFacingChartDoc, hasConflictingLegacyTrace, isOpenShapeKind, isPointShapeKind, isSeatGlyphKind, isVenueIconKey, migrateLegacyBackgroundLayersInPlace, resolveSeatGlyph, resolvedShapeLineStyle, seatGlyph, seatGlyphFit, seatGlyphLabel, seatGlyphMarkOnSeat, seatGlyphPath, shapeArrowMetrics, traceReferenceImage, venueIcon, pictogramBadgeGlyph as venueIconBadgeGlyph, 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-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';
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-CB1llwVg.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-qlLxwByo.js';
3
3
 
4
4
  type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
5
5
  /**
@@ -31,6 +31,36 @@ declare function buyerFacingChartDoc(doc: ChartDoc): ChartDoc;
31
31
  /** True when a scope has two different trace candidates and cannot be migrated safely. */
32
32
  declare function hasConflictingLegacyTrace(owner: BackgroundOwner): boolean;
33
33
 
34
+ interface Pictogram extends VenueIcon {
35
+ /** Stroke path (fill:none, stroke 2, round caps/joins). Same contract as `VenueIcon.path`. */
36
+ path: string;
37
+ /** Filled path (fill-rule nonzero, no stroke) for the map badge glyph. */
38
+ solid: string;
39
+ /**
40
+ * Optional fuller badge glyph for badges ≥ `PICTOGRAM_BADGE.largeFromPx`, where
41
+ * there is room for the detail that tells two icons apart by shape (the sign
42
+ * frame of the accessible restroom).
43
+ */
44
+ solidLarge?: string;
45
+ }
46
+ /** Group → badge disc colour. */
47
+ declare const PICTOGRAM_GROUP_COLORS: Record<VenueIconGroup, string>;
48
+ /** Glyph ink inside a badge, and the separating ring on dark maps. */
49
+ declare const PICTOGRAM_BADGE_INK = "#ffffff";
50
+ /** Map-badge geometry, in screen px / ratios of the badge diameter. */
51
+ declare const PICTOGRAM_BADGE: {
52
+ /** Never draw a badge smaller than this on screen. */
53
+ readonly minDiameterPx: 12;
54
+ /** Glyph box side as a fraction of the badge diameter. */
55
+ readonly glyphScale: 0.66;
56
+ /** Ring (badge ink) width as a fraction of the diameter; drawn on dark maps. */
57
+ readonly ringRatio: number;
58
+ /** From this diameter up, a badge draws `solidLarge` when the icon has one. */
59
+ readonly largeFromPx: 24;
60
+ };
61
+ /** The glyph a badge of `diameterPx` should draw for this pictogram. */
62
+ declare function pictogramBadgeGlyph(p: Pictogram, diameterPx: number): string;
63
+
34
64
  /** Logical grouping for the Designer palette (plain-language section headers). */
35
65
  type VenueIconGroup = 'facilities' | 'food-drink' | 'navigation' | 'accessibility';
36
66
  interface VenueIcon {
@@ -50,7 +80,17 @@ declare const VENUE_ICON_STROKE = 2;
50
80
  declare const VENUE_ICON_GROUP_LABELS: Record<VenueIconGroup, string>;
51
81
  /** Display order of the groups in the palette. */
52
82
  declare const VENUE_ICON_GROUP_ORDER: VenueIconGroup[];
53
- declare const VENUE_ICONS: VenueIcon[];
83
+ /**
84
+ * Every placeable venue icon, in palette order within its group. The drawings
85
+ * come from `./pictograms`; keys and labels are persisted/user-facing contracts.
86
+ */
87
+ declare const VENUE_ICONS: readonly Pictogram[];
88
+ /**
89
+ * The ink every icon placed before the v2 badges was saved with (the old
90
+ * placement default). It means "no colour chosen": such markers take their
91
+ * group colour. Any other saved colour is the organizer's and tints the badge.
92
+ */
93
+ declare const VENUE_ICON_LEGACY_DEFAULT_INK = "#8b93a7";
54
94
  /**
55
95
  * Décor-stamp-only glyphs. Some Designer décor presets (e.g. a structural wall)
56
96
  * are not buyer-placeable wayfinding markers, so they must NOT appear in the
@@ -60,7 +100,7 @@ declare const VENUE_ICONS: VenueIcon[];
60
100
  */
61
101
  declare const DECOR_STAMP_ICON_PATHS: Record<string, string>;
62
102
  /** Resolve a registry entry by key, or undefined for legacy/unknown keys. */
63
- declare function venueIcon(key: string | undefined | null): VenueIcon | undefined;
103
+ declare function venueIcon(key: string | undefined | null): Pictogram | undefined;
64
104
  /** Vector path for a key, or undefined when the key is not in the registry. */
65
105
  declare function venueIconPath(key: string | undefined | null): string | undefined;
66
106
  /** True when `key` names a real registry icon (MCP/validation fail-closed guard). */
@@ -207,4 +247,4 @@ declare function shapeArrowMetrics(strokeWidth: number): {
207
247
  pointerWidth: number;
208
248
  };
209
249
 
210
- export { 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, SHAPE_LINE_CAPS, SHAPE_LINE_ENDINGS, SHAPE_LINE_JOINS, type SeatGlyph, type SeatGlyphBounds, type SeatGlyphGroup, type SeatGlyphMark, VENUE_ICONS, VENUE_ICON_GROUP_LABELS, VENUE_ICON_GROUP_ORDER, VENUE_ICON_KEYS, VENUE_ICON_STROKE, VENUE_ICON_VIEWBOX, type VenueIcon, type VenueIconGroup, buyerBackgroundImage, buyerFacingChartDoc, hasConflictingLegacyTrace, isOpenShapeKind, isPointShapeKind, isSeatGlyphKind, isVenueIconKey, migrateLegacyBackgroundLayersInPlace, resolveSeatGlyph, resolvedShapeLineStyle, seatGlyph, seatGlyphFit, seatGlyphLabel, seatGlyphMarkOnSeat, seatGlyphPath, shapeArrowMetrics, traceReferenceImage, venueIcon, venueIconPath };
250
+ export { 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, SHAPE_LINE_CAPS, SHAPE_LINE_ENDINGS, SHAPE_LINE_JOINS, type SeatGlyph, type SeatGlyphBounds, type SeatGlyphGroup, type SeatGlyphMark, VENUE_ICONS, PICTOGRAM_BADGE as VENUE_ICON_BADGE, PICTOGRAM_BADGE_INK as VENUE_ICON_BADGE_INK, PICTOGRAM_GROUP_COLORS as VENUE_ICON_GROUP_COLORS, VENUE_ICON_GROUP_LABELS, VENUE_ICON_GROUP_ORDER, VENUE_ICON_KEYS, VENUE_ICON_LEGACY_DEFAULT_INK, VENUE_ICON_STROKE, VENUE_ICON_VIEWBOX, type VenueIcon, type Pictogram as VenueIconDrawing, type VenueIconGroup, buyerBackgroundImage, buyerFacingChartDoc, hasConflictingLegacyTrace, isOpenShapeKind, isPointShapeKind, isSeatGlyphKind, isVenueIconKey, migrateLegacyBackgroundLayersInPlace, resolveSeatGlyph, resolvedShapeLineStyle, seatGlyph, seatGlyphFit, seatGlyphLabel, seatGlyphMarkOnSeat, seatGlyphPath, shapeArrowMetrics, traceReferenceImage, venueIcon, pictogramBadgeGlyph as venueIconBadgeGlyph, venueIconPath };
@@ -1 +1 @@
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};
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 T,b as u,c as v,d as w,e as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G,o as H,p as I,q as J,r as K,s as L,t as M,u as N,v as O,w as P,x as Q,y as R,z as S}from"../../chunk-GUNNA5LB.js";import{k as o,l as r,m as e,n as f,o as m}from"../../chunk-TFYAMLCK.js";import"../../chunk-EE2CVYFJ.js";import"../../chunk-URW7MSCJ.js";import"../../chunk-KTMZ3QAO.js";import"../../chunk-JBOTRSMY.js";export{F as DECOR_STAMP_ICON_PATHS,N as DEFAULT_SHAPE_LINE_CAP,P as DEFAULT_SHAPE_LINE_ENDING,O 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,K as SHAPE_LINE_CAPS,M as SHAPE_LINE_ENDINGS,L as SHAPE_LINE_JOINS,D as VENUE_ICONS,w as VENUE_ICON_BADGE,v as VENUE_ICON_BADGE_INK,u as VENUE_ICON_GROUP_COLORS,B as VENUE_ICON_GROUP_LABELS,C as VENUE_ICON_GROUP_ORDER,J as VENUE_ICON_KEYS,E as VENUE_ICON_LEGACY_DEFAULT_INK,A as VENUE_ICON_STROKE,z as VENUE_ICON_VIEWBOX,r as buyerBackgroundImage,f as buyerFacingChartDoc,m as hasConflictingLegacyTrace,Q as isOpenShapeKind,R as isPointShapeKind,q as isSeatGlyphKind,I as isVenueIconKey,e as migrateLegacyBackgroundLayersInPlace,s as resolveSeatGlyph,S as resolvedShapeLineStyle,i as seatGlyph,l as seatGlyphFit,j as seatGlyphLabel,n as seatGlyphMarkOnSeat,k as seatGlyphPath,x as seatTypeIconBody,a as seatTypeIconSvg,T as shapeArrowMetrics,o as traceReferenceImage,G as venueIcon,y as venueIconBadgeGlyph,H as venueIconPath};
@@ -1,4 +1,4 @@
1
- import { d as ResolvedSeatConfidenceEvidence } from '../types-DL7qIUrD.cjs';
1
+ import { d as ResolvedSeatConfidenceEvidence } from '../types-CB1llwVg.cjs';
2
2
 
3
3
  interface SeatConfidenceDisclosure {
4
4
  headline: string;
@@ -1,4 +1,4 @@
1
- import { d as ResolvedSeatConfidenceEvidence } from '../types-DL7qIUrD.js';
1
+ import { d as ResolvedSeatConfidenceEvidence } from '../types-CB1llwVg.js';
2
2
 
3
3
  interface SeatConfidenceDisclosure {
4
4
  headline: string;
@@ -1 +1 @@
1
- "use strict";var le=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var gt=Object.getOwnPropertyNames;var xt=Object.prototype.hasOwnProperty;var St=(e,t)=>{for(var n in t)le(e,n,{get:t[n],enumerable:!0})},Mt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gt(t))!xt.call(e,r)&&r!==n&&le(e,r,{get:()=>t[r],enumerable:!(o=yt(t,r))||o.enumerable});return e};var wt=e=>Mt(le({},"__esModule",{value:!0}),e);var Vn={};St(Vn,{DEFAULT_SECTION_CORNER_SMOOTHING:()=>Ve,MAX_EDGE_SAGITTA_RATIO:()=>$e,TIER_HEIGHT_M:()=>Me,UNGROUPED_ID:()=>ae,applyHidden:()=>Hn,arcLevelAt:()=>jt,bearingDeg:()=>_e,buildSectionRake:()=>Wt,computeSections:()=>Un,computeSectionsPerFloor:()=>bt,cornerSmoothingThresholdDeg:()=>ze,distanceToPolyline:()=>fe,fitBowlProfile:()=>Dt,fitCircle:()=>ne,hiddenObjectIds:()=>mt,indexLabel:()=>ke,isSectionHidden:()=>ht,logicalNumberingRow:()=>Fe,reflectEdgeCurvature:()=>ln,relabelRows:()=>Ut,resolveSection:()=>Ot,reverseSectionOutlinePath:()=>hn,sampleSectionOutlinePath:()=>cn,seatConfidenceDisclosure:()=>Zt,seatDisplayLabel:()=>he,seatInventoryLabel:()=>be,seatLabelPart:()=>ee,sectionCornerSmoothingPath:()=>dn,sectionEntrancesById:()=>Bn,sectionGeometry:()=>Ze,sectionIdentitiesById:()=>Ce,sectionLabelsById:()=>Gn,sectionOutlinePathFrom:()=>We,sectionOwnersByObject:()=>dt,sectionPathSegmentEnd:()=>rn,toBijectiveBase:()=>de,toLetters:()=>q,toRoman:()=>pe,transformSectionOutlinePath:()=>He,translateSectionOutlinePath:()=>an,validSectionOutlinePath:()=>ge});module.exports=wt(Vn);function Ee(e){let t=e.length;return t<=3?[...e]:[e[Math.floor(t*.25)],e[Math.floor(t*.5)],e[Math.floor(t*.75)]]}function fe(e,t,n){if(!e.length)return 1/0;if(e.length===1)return Math.hypot(t-e[0].x,n-e[0].y);let o=1/0;for(let r=0;r+1<e.length;r++){let i=e[r],s=e[r+1],u=s.x-i.x,l=s.y-i.y,h=u*u+l*l,c=h>1e-12?((t-i.x)*u+(n-i.y)*l)/h:0;c<0?c=0:c>1&&(c=1);let p=t-(i.x+c*u),d=n-(i.y+c*l);if(Math.abs(p)>=o||Math.abs(d)>=o)continue;let f=Math.hypot(p,d);f<o&&(o=f)}return o}function vt(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let o=e.length||1;t/=o,n/=o;let r=0;for(let i of e){let s=Math.hypot(i.x-t,i.y-n);s>r&&(r=s)}return{cx:t,cy:n,r}}function Oe(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function ue(e,t){let n=1/0;for(let o of Ee(e)){let r=fe(t,o.x,o.y);r<n&&(n=r)}for(let o of Ee(t)){let r=fe(e,o.x,o.y);r<n&&(n=r)}return n}function It(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let c of e)n+=c.x,o+=c.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let c of e){let p=Math.hypot(c.x-n,c.y-o);p>r&&(r=p,i=c)}let s=i.x-n,u=i.y-o,l=Math.hypot(s,u);l>1e-9?(s/=l,u/=l):(s=1,u=0);let h=e.map((c,p)=>({p:c,i:p,t:(c.x-n)*s+(c.y-o)*u})).sort((c,p)=>c.t-p.t);return{pts:h.map(c=>c.p),seatIndices:h.map(c=>t[c.i])}}function ne(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let k of e)n+=k.x,o+=k.y;n/=t,o/=t;let r=0,i=0,s=0,u=0,l=0,h=0,c=0;for(let k of e){let E=k.x-n,g=k.y-o;r+=E*E,s+=g*g,i+=E*g,u+=E*E*E,l+=g*g*g,h+=E*g*g,c+=g*E*E}let p=r*s-i*i;if(Math.abs(p)<1e-9)return null;let d=(u+h)/2,f=(l+c)/2,b=(d*s-f*i)/p,R=(f*r-d*i)/p,I=b+n,O=R+o;return!Number.isFinite(I)||!Number.isFinite(O)?null:{cx:I,cy:O}}var Pt=.15;function At(e){if(e.length<2)return null;let t=e.map(w=>{let a=0,m=0;for(let S of w.pts)a+=S.x,m+=S.y;return{x:a/w.pts.length,y:m/w.pts.length}}),n=0,o=0;for(let w of t)n+=w.x,o+=w.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let w of t){let a=w.x-n,m=w.y-o;r+=a*a,i+=a*m,s+=m*m}let u=r+s,l=r*s-i*i,h=u/2+Math.sqrt(Math.max(0,u*u/4-l)),c,p;Math.abs(i)>1e-12?(c=h-s,p=i):r>=s?(c=1,p=0):(c=0,p=1);let d=Math.hypot(c,p);if(!(d>1e-12))return null;c/=d,p/=d;let f=0,b=0,R=0;for(let w of e){if(w.pts.length<2)continue;let a=w.pts[0],m=w.pts[w.pts.length-1],S=m.x-a.x,x=m.y-a.y,C=Math.hypot(S,x);if(!(C>1e-9))continue;let B=S/C,A=x/C;f+=(B*B-A*A)*C,b+=2*B*A*C,R+=C}if(R>0&&Math.hypot(f,b)>=Ct*R){let w=Math.atan2(b,f)/2,a=Math.cos(w),m=Math.sin(w);Math.abs(c*a+p*m)>Et&&(c=-m,p=a)}let I=1/0,O=-1/0,k=[];for(let w of e){let a=1/0,m=-1/0;for(let S of w.pts){let x=S.x*c+S.y*p;x<a&&(a=x),x>m&&(m=x),x<I&&(I=x),x>O&&(O=x)}k.push(m-a)}let E=O-I;return E>1e-9?(k.sort((w,a)=>w-a),k[Math.min(k.length-1,Math.floor(k.length*.9))]/E<=Rt?{x:c,y:p}:null):null}var Rt=.35,Ct=.8,Et=.7;function Ot(e,t,n,o){let r=new Map;for(let a of n){let m=t[a],S=m.rowId||`__seat-${a}`,x=r.get(S);x||(x={pts:[],idx:[]},r.set(S,x)),x.pts.push({x:m.x,y:m.y}),x.idx.push(a)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[a,m]of r){let S=It(m.pts,m.idx),x=0;for(let C of S.pts)x+=Math.hypot(C.x-o.x,C.y-o.y);i.push({id:a,pts:S.pts,seatIndices:S.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:x/S.pts.length})}let s=i.map(a=>vt(a.pts)),u=i.length<=256?i.length*(i.length-1)/2:0,l=u?new Float64Array(u):null;l?.fill(Number.NaN);let h=l?new Map(i.map((a,m)=>[a,m])):null,c=(a,m)=>(a>m&&([a,m]=[m,a]),a*(2*i.length-a-1)/2+(m-a-1)),p=(a,m)=>{if(!l)return ue(i[a].pts,i[m].pts);let S=c(a,m),x=l[S];if(!Number.isNaN(x))return x;let C=ue(i[a].pts,i[m].pts);return l[S]=C,C},d=(a,m)=>h?p(h.get(a),h.get(m)):ue(a.pts,m.pts),f=[];for(let a=0;a<i.length;a++){let m=1/0;for(let S=0;S<i.length;S++){if(a===S||Oe(s[a],s[S])>=m)continue;let x=p(a,S);x<m&&(m=x)}Number.isFinite(m)&&f.push(m)}f.sort((a,m)=>a-m);let b=f.length?f[Math.floor(f.length/2)]:1,R=Math.max(b*1.8,1e-6),I=i.map(()=>[]);for(let a=0;a<i.length;a++)for(let m=a+1;m<i.length;m++)Oe(s[a],s[m])>R||p(a,m)<=R&&(I[a].push(m),I[m].push(a));let O=0;for(let a=0;a<i.length;a++){if(i[a].blockId!==-1)continue;let m=O++,S=[a];for(i[a].blockId=m;S.length;){let x=S.pop();for(let C of I[x])i[C].blockId===-1&&(i[C].blockId=m,S.push(C))}}let k=new Map;for(let a of i){let m=k.get(a.blockId)??[];m.push(a),k.set(a.blockId,m)}let E=[];for(let a of i){if(a.pts.length<4)continue;let m=ne(a.pts);m&&(!Number.isFinite(m.cx)||!Number.isFinite(m.cy)||E.push({x:m.cx,y:m.cy}))}let g=E.length>=2?(()=>{let a=E.map(x=>x.x).sort((x,C)=>x-C),m=E.map(x=>x.y).sort((x,C)=>x-C),S=Math.floor(E.length/2);return{cx:a[S],cy:m[S]}})():null;if(g){let a=A=>Math.hypot(A.x-g.cx,A.y-g.cy),m=1/0,S=-1/0,x=[];for(let A of i){let y=1/0,M=-1/0;for(let T of A.pts){let L=a(T);L<y&&(y=L),L>M&&(M=L)}x.push(M-y),y<m&&(m=y),M>S&&(S=M)}let C=S-m;x.sort((A,y)=>A-y);let B=x[Math.min(x.length-1,Math.floor(x.length*.9))];if(C>1e-9&&B/C<=Pt){let A=i.map(P=>{let j=0;for(let $ of P.pts)j+=a($);return{row:P,radius:j/P.pts.length}}),y=0,M=0;for(let P of A)y+=P.radius,M+=P.row.focalDistance;y/=A.length,M/=A.length;let T=0;for(let P of A)T+=(P.radius-y)*(P.row.focalDistance-M);if(T<0)for(let P of A)P.radius=-P.radius;let G=1/0;for(let P of A)P.radius<G&&(G=P.radius);A.sort((P,j)=>P.radius-j.radius);let z=-1,_=-1/0,V=C/Math.max(1,A.length)*.5,U=[];for(let P of A)P.radius-_>V&&(z++,_=P.radius),P.row.ordinal=z,P.row.blockDepth=P.radius-G,U.push(P.row);return{sectionId:e,rows:U,blockCount:O}}}let w=[];for(let[,a]of k){let m=At(a);if(m){let S=A=>{let y=0;for(let M of A.pts)y+=M.x*m.x+M.y*m.y;return y/A.pts.length};a.sort((A,y)=>S(A)-S(y)),a.length>=2&&a[0].focalDistance>a[a.length-1].focalDistance&&a.reverse();let x=[],C=b*.5;for(let A of a){let y=x[x.length-1];y&&Math.abs(S(A)-S(y[0]))<C?y.push(A):x.push([A])}let B=0;for(let A=0;A<x.length;A++){if(A>0){let y=1/0;for(let M of x[A-1])for(let T of x[A])y=Math.min(y,d(M,T));B+=y}for(let y of x[A])y.ordinal=A,y.blockDepth=B,w.push(y)}}else{let S=1/0;for(let x of a)x.focalDistance<S&&(S=x.focalDistance);a.sort((x,C)=>x.focalDistance-C.focalDistance);for(let x=0;x<a.length;x++)a[x].ordinal=x,a[x].blockDepth=Math.max(0,a[x].focalDistance-S),w.push(a[x])}}return{sectionId:e,rows:w,blockCount:O}}var Tt=Math.PI/180,N=96,_t=6,Nt=60,kt=150,Te=.2,Lt=.35;function _e(e,t){let n=Math.atan2(t.x-e.x,t.y-e.y)/Tt;return n<0?n+360:n}function oe(e){if(!e.length)return NaN;let t=[...e].sort((n,o)=>n-o);return t[Math.floor(t.length/2)]}function re(e,t,n=2){let o=e.length,r=new Float64Array(o);for(let i=0;i<o;i++){let s=0,u=0;for(let l=-n;l<=n;l++){let h=i+l;if(t)h=(h%o+o)%o;else if(h<0||h>=o)continue;s+=e[h],u++}r[i]=s/u}return r}function Dt(e,t){let n=e.filter(d=>d.rows.length>=1);if(n.length<1)return null;let o=[],r=0,i=0,s=0;for(let d of n)for(let f of d.rows){for(let b of f.pts)r+=b.x,i+=b.y,s++;if(f.pts.length>=4){let b=ne(f.pts);b&&Number.isFinite(b.cx)&&Number.isFinite(b.cy)&&o.push({x:b.cx,y:b.cy})}}if(!s)return null;let u={x:r/s,y:i/s},l=u;if(o.length>=8){let d=oe(o.map(O=>O.x)),f=oe(o.map(O=>O.y)),b=0;for(let O of n)for(let k of O.rows)for(let E of k.pts){let g=Math.hypot(E.x-u.x,E.y-u.y);g>b&&(b=g)}let R=0,I=b*.2;for(let O of n)for(let k of O.rows)for(let E of k.pts)Math.hypot(E.x-d,E.y-f)<I&&R++;Math.hypot(d-u.x,f-u.y)<=b&&R/s<.01&&(l={x:d,y:f})}let h=[];for(let d of n){let f={sectionId:d.sectionId,rMin:1/0,rMax:-1/0,samples:[]};for(let b of d.rows)for(let R of b.pts){let I=Math.hypot(R.x-l.x,R.y-l.y),O=Math.min(N-1,Math.floor(_e(l,R)/(360/N)));f.samples.push({r:I,bin:O,levelM:b.levelM}),I<f.rMin&&(f.rMin=I),I>f.rMax&&(f.rMax=I)}f.samples.length&&h.push(f)}if(!h.length)return null;h.sort((d,f)=>d.rMin+d.rMax-(f.rMin+f.rMax));let c=[];for(let d of h){let f=!1;for(let b of c){let R=Math.min(d.rMax,b.rMax)-Math.max(d.rMin,b.rMin),I=Math.min(d.rMax-d.rMin,b.rMax-b.rMin);if(I>1e-9&&R>=Lt*I){b.members.push(d),b.rMin=Math.min(b.rMin,d.rMin),b.rMax=Math.max(b.rMax,d.rMax),f=!0;break}}f||c.push({members:[d],rMin:d.rMin,rMax:d.rMax})}let p=[];for(let d of c){let f=new Array(N).fill(null);for(let y of d.members)for(let M of y.samples){let T=f[M.bin];T||(T={samples:[]},f[M.bin]=T),T.samples.push({r:M.r,levelM:M.levelM})}let b=f.map(y=>!!y);if(!b.filter(Boolean).length)continue;let I=[],O=[];for(let y of f){if(!y)continue;let M=1/0,T=-1/0;for(let L of y.samples)L.r<M&&(M=L.r),L.r>T&&(T=L.r);I.push(M),O.push(T)}let k=oe(I),E=oe(O);if(!(k>=Te*E)||!(E>0))continue;let g=[...I].sort((y,M)=>y-M);if(!(g[Math.floor(g.length*.1)]>=Te*E))continue;let a=f.map(y=>{if(!y)return null;let M=[...y.samples].sort((P,j)=>P.r-j.r),T=M[0].r,L=M[M.length-1].r,G=M[0].levelM,z=-1/0;for(let P of M)P.levelM>z&&(z=P.levelM);let _=[];for(let P of M){let j={r:P.r,l:P.levelM};for(;_.length&&Math.abs(_[_.length-1].r-j.r)<1e-9;){if(_[_.length-1].l<=j.l){j.skip=!0;break}_.pop()}if(!j.skip){for(;_.length>=2;){let $=_[_.length-2],K=_[_.length-1];if((K.r-$.r)*(j.l-$.l)-(K.l-$.l)*(j.r-$.r)<=0)_.pop();else break}_.push(j)}}let V=_.map(P=>P.r),U=_.map(P=>P.l);return{inner:T,outer:L,front:G,top:z,profile:{rs:V,ls:U}}}),m=b.slice();for(let y=0;y<N;y++){if(m[y])continue;let M=-1,T=-1,L=0;for(let v=1;v<=N;v++){let D=(y-v+N*2)%N;if(m[D]){M=D;break}}for(let v=1;v<=N;v++){let D=(y+v)%N;if(m[D]){T=D,L=v;break}}if(M<0||T<0)continue;let G=0;for(let v=1;v<=N;v++){let D=(y-v+N*2)%N;if(b[D]){G=v;break}}if(G-1+L>_t)continue;let _=a[M],V=a[T],U=G/(G+L),P=_.inner+(V.inner-_.inner)*U,j=_.outer+(V.outer-_.outer)*U,$=_.front+(V.front-_.front)*U,K=_.top+(V.top-_.top)*U;a[y]={inner:P,outer:j,front:$,top:K,profile:{rs:[P,j],ls:[$,K]}}}for(let y=0;y<N;y++)a[y]&&(m[y]=!0);let S=360/N,x=[],C=m.filter(Boolean).length,B=[];if(C===N)B.push({start:0,len:N});else{let y=0;for(;m[y];)y=(y+1)%N;let M=-1;for(let T=0;T<=N;T++){let L=(y+T)%N,G=T<N&&m[L];if(G&&M<0)M=L;else if(!G&&M>=0){let z=(L-M+N)%N||N;B.push({start:M,len:z}),M=-1}}}for(let y of B){if(y.len*S<Nt&&y.len<N)continue;let M=y.len===N,T=new Float64Array(y.len),L=new Float64Array(y.len),G=new Float64Array(y.len),z=new Float64Array(y.len),_=[];for(let v=0;v<y.len;v++){let D=a[(y.start+v)%N];T[v]=D.inner,L[v]=D.outer,G[v]=D.front,z[v]=D.top,_.push(D.profile??{rs:[D.inner,D.outer],ls:[D.front,D.top]})}let V=re(T,M),U=re(L,M),P=re(G,M),j=re(z,M);for(let v=0;v<y.len;v++)V[v]>T[v]&&(V[v]=T[v]),U[v]<L[v]&&(U[v]=L[v]),V[v]>U[v]-1e-6&&(V[v]=Math.max(0,U[v]-1e-6)),j[v]<P[v]&&(j[v]=P[v]);let $={startBin:y.start,binCount:y.len,closed:M,innerR:V,outerR:U,frontLevelM:P,topLevelM:j,profiles:_},K=(v,D,H)=>{let Z=_[v],X=Z.rs,W=Z.ls;if(D<=X[0]){W[0]>H&&(W[0]=H);return}if(D>=X[X.length-1]){W[W.length-1]>H&&(W[W.length-1]=H);return}for(let Y=0;Y+1<X.length;Y++)if(D<=X[Y+1]){W[Y]>H&&(W[Y]=H),W[Y+1]>H&&(W[Y+1]=H);return}};for(let v=0;v<y.len;v++){let D=f[(y.start+v)%N];if(D)for(let H of D.samples){K(v,H.r,H.levelM);let Z=M?(v-1+y.len)%y.len:v-1,X=M?(v+1)%y.len:v+1;Z>=0&&K(Z,H.r,H.levelM),X<y.len&&K(X,H.r,H.levelM)}}x.push($)}x.reduce((y,M)=>y+M.binCount*S,0)<kt||p.push({arcs:x,sectionIds:d.members.map(y=>y.sectionId),innerRMedian:k,outerRMedian:E})}if(!p.length)return null;if(p.sort((d,f)=>d.innerRMedian-f.innerRMedian),t){let d=p[p.length-1].outerRMedian;if(Math.hypot(t.x-l.x,t.y-l.y)>.9*d)return null}return{centre:l,binCount:N,binStepDeg:360/N,rings:p}}function jt(e,t,n,o){let r=e.binStepDeg,i=n/r-.5-t.startBin;i=(i%e.binCount+e.binCount)%e.binCount,i>t.binCount-1&&(t.closed?i=i-t.binCount<t.binCount-i?0:t.binCount-1:i=i-(t.binCount-1)<e.binCount-i?t.binCount-1:0);let s=Math.floor(i),u=t.closed?(s+1)%t.binCount:Math.min(t.binCount-1,s+1),l=i-s,h=c=>{let p=t.profiles[c],d=p.rs,f=p.ls;if(o<=d[0])return f[0];if(o>=d[d.length-1])return f[f.length-1];for(let b=0;b+1<d.length;b++)if(o<=d[b+1]){let R=d[b+1]-d[b],I=R>1e-9?(o-d[b])/R:0;return f[b]+(f[b+1]-f[b])*I}return f[f.length-1]};return h(s)*(1-l)+h(u)*l}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ft="ABCDEFGHJKLMNPQRSTUVWXYZ",Bt="abcdefghijklmnopqrstuvwxyz";function de(e,t){let n=t.length,o=e+1,r="";for(;o>0;){o-=1;let i=o%n;r=t[i]+r,o=Math.floor(o/n)}return r}function ke(e,t){let n=t.startAt-1,o=e+n;if(t.scheme==="numbers")return String(o+1);let r=t.skipAmbiguous?Ft:Ne;return de(o,r)}function q(e,t=!1){let n=t?Bt:Ne;return de(Math.max(0,Math.floor(e)-1),n)}var Gt=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function pe(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Gt)for(;t>=o;)n+=r,t-=o;return n}function Ut(e,t){let n=e.length;return e.map((o,r)=>{let i=t.reverse?n-1-r:r;return{...o,label:ke(i,t)}})}function Ht(e){return{kind:"radial",rowCount:0,rows:[],nearestRow:()=>-1,depthAt:(t,n)=>Math.hypot(t-e.x,n-e.y),gradientAt:(t,n)=>{let o=t-e.x,r=n-e.y,i=Math.hypot(o,r);return i<1e-9?[0,0]:[o/i,r/i]}}}function Vt(e,t){if(!e.length)return null;let n=0,o=0,r=0;for(let f of e)n+=f.x,o+=f.y,r+=Math.hypot(f.x-t.x,f.y-t.y);let i=e.length;n/=i,o/=i,r/=i;let s=e[0],u=-1;for(let f of e){let b=Math.hypot(f.x-n,f.y-o);b>u&&(u=b,s=f)}let l=s.x-n,h=s.y-o,c=Math.hypot(l,h);c>1e-9?(l/=c,h/=c):(l=1,h=0);let p=[...e].sort((f,b)=>(f.x-n)*l+(f.y-o)*h-((b.x-n)*l+(b.y-o)*h)),d=0;for(let f of p){let b=Math.hypot(f.x-n,f.y-o);b>d&&(d=b)}return{pts:p,cx:n,cy:o,radius:d,depth:r}}function Le(e,t,n){let o=e.pts;if(o.length===1)return Math.hypot(t-o[0].x,n-o[0].y);let r=1/0;for(let i=0;i+1<o.length;i++){let s=o[i],u=o[i+1],l=u.x-s.x,h=u.y-s.y,c=l*l+h*h,p=c>1e-12?((t-s.x)*l+(n-s.y)*h)/c:0;p<0?p=0:p>1&&(p=1);let d=Math.hypot(t-(s.x+p*l),n-(s.y+p*h));d<r&&(r=d)}return r}var ie=8;function zt(e,t,n){let o=new Array(ie).fill(1/0),r=new Array(ie).fill(-1);for(let c=0;c<e.length;c++){let p=e[c],d=Math.hypot(t-p.cx,n-p.cy)-p.radius;for(let f=0;f<ie;f++)if(d<o[f]){for(let b=ie-1;b>f;b--)o[b]=o[b-1],r[b]=r[b-1];o[f]=d,r[f]=c;break}}let i=new Array(3).fill(1/0),s=new Array(3).fill(-1);for(let c of r){if(c<0)continue;let p=Le(e[c],t,n);for(let d=0;d<3;d++)if(p<i[d]){for(let f=2;f>d;f--)i[f]=i[f-1],s[f]=s[f-1];i[d]=p,s[d]=c;break}}if(s[0]<0)return 0;if(i[0]<1e-6)return e[s[0]].depth;let u=i[0]*2.2,l=0,h=0;for(let c=0;c<3;c++){let p=s[c];if(p<0||i[c]>u)continue;let d=1/(i[c]*i[c]);l+=d*e[p].depth,h+=d}return h>0?l/h:e[s[0]].depth}function $t(e){let t=(o,r)=>zt(e,o,r),n=(o,r)=>{let i=1/0,s=-1;for(let u=0;u<e.length;u++){let l=e[u];if(Math.hypot(o-l.cx,r-l.cy)-l.radius>=i)continue;let h=Le(l,o,r);h<i&&(i=h,s=u)}return s};return{kind:"rows",rowCount:e.length,rows:e,nearestRow:n,depthAt:t,gradientAt:(o,r)=>{let i=(t(o+.5,r)-t(o-.5,r))/1,s=(t(o,r+.5)-t(o,r-.5))/(2*.5),u=Math.hypot(i,s);return u<1e-9?[0,0]:[i/u,s/u]}}}function Wt(e,t){let n=[];for(let o of e){let r=Vt(o.points,t);r&&n.push(r)}return n.length<2?Ht(t):(n.sort((o,r)=>o.depth-r.depth),$t(n))}var Kt=/^\d{4}-\d{2}-\d{2}$/;function Xt(e){let t=Date.parse(e);return Number.isFinite(t)?Kt.test(e)?t+864e5:t:null}function De(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let o=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(o)&&(t instanceof Date?t.getTime():t)<=o+366*864e5}let n=Xt(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function je(e){return e.status!=="draft"&&e.status!=="retracted"}function Yt(e){return e==="exact-seat"?"Exact seat in the model":e==="row-representative"?"Representative row evidence":e==="section-representative"?"Representative section evidence":e==="floor-representative"?"Representative floor evidence":"Representative venue evidence"}function qt(e){if(!e)return"No assessment date supplied";let t=new Date(e);return Number.isFinite(t.getTime())?`Assessed ${t.toISOString().slice(0,10)}`:"No assessment date supplied"}function Jt(){return{headline:"Generated view \xB7 unverified",model:"No geometry or event-configuration verification supplied",reality:"No real-world check supplied",coverage:"Selected chart seat",provenance:"Chart-derived model",freshness:"No current organizer-approved evidence matches this Event, venue revision, or renewal window",limitations:["Generated view is not surveyed sightline truth."]}}function Qt(e){let t=qt(e.assessedAt);if(!e.validUntil)return t;let n=Date.parse(e.validUntil);return Number.isFinite(n)?`${t} \xB7 valid until ${e.validUntil.slice(0,10)}`:t}function Zt(e,t={}){if(!e||!je(e)||!De(e,t.now))return Jt();let n=e.evidenceKind==="synthetic-model",o=e.modelLevel==="configuration-verified"?"Event configuration verified":e.modelLevel==="geometry-verified"?"Venue geometry verified":n?"Versioned synthetic model":"Generated model \xB7 not verified",r=e.realityLevel==="actual-build-checked"?"Actual event build reality checked":e.realityLevel==="comparable-build-reference"?"Comparable-build reference only":"No real-world check supplied",i=n?"Synthetic model evidence":e.modelLevel==="configuration-verified"?"Configuration verified":e.modelLevel==="geometry-verified"?"Geometry verified":"Generated view \xB7 unverified",s=[...e.limitations??[],...n?["Synthetic demo; not surveyed or venue-certified."]:[]],u=e.modeledTarget?`${e.modeledTarget.label} \xB7 ${e.modeledTarget.clearRayCount}/${e.modeledTarget.totalRayCount} target rays clear \xB7 ${e.modeledTarget.classification} in bounded model \xB7 ${e.modeledTarget.methodLabel}`+(e.modeledTarget.occluderLabels?.length?` \xB7 modeled occluders: ${e.modeledTarget.occluderLabels.join(", ")}`:""):void 0;return u&&s.push("Modeled target is not a percentage of the show visible."),{headline:i,model:o,reality:r,coverage:Yt(e.coverage),provenance:e.sourceLabel??e.approvedByRole??"Source not supplied",freshness:Qt(e),limitations:s,...u?{modeledTarget:u}:{}}}function en(e){let t=new Array(e);return Array.from({length:e},(n,o)=>o).sort((n,o)=>Math.abs(2*n-(e-1))-Math.abs(2*o-(e-1))||n-o).forEach((n,o)=>t[n]=o),t}function ee(e,t){let n=e.seatLabelStart??1,o=e.seatNumbering?.direction??"ltr",r=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",s=e.seatNumbering?.prefix??"",u=e.seatNumbering?.endAt,l=e.seatCount;if(i==="updown"||i==="updown-descending"){let f=Math.ceil(l/2),b=i==="updown"?t<f?n+2*t:n-1+2*(l-t):t<f?n+2*(f-1-t):n+1+2*(t-f);return`${s}${b}`}let h=i==="odd"||i==="even"?2:r,c=u!=null&&Number.isFinite(u)?u-(l-1)*h:n,p=o==="center"?en(l)[t]:o==="rtl"?l-1-t:t,d;switch(i){case"odd":{let f=c%2===1?c:c+1;d=String(f+p*2);break}case"even":{let f=c%2===0?c:c+1;d=String(f+p*2);break}case"roman":d=pe(c+p*r);break;case"letters-upper":d=q(c+p*r,!1);break;case"letters-lower":d=q(c+p*r,!0);break;default:d=String(c+p*r);break}return`${s}${d}`}function Fe(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function be(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${ee(e,t)}`}function he(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return ee(e,t);if(!n)return`${e.displayLabel||e.label}-${ee(e,t)}`;let r=Fe(n),i=n.displayOffset+t;return`${n.displayLabel}-${ee(r,i)}`}function tn(e,t,n){return Math.max(t,Math.min(n,e))}function nn(e){return tn(e,0,1)}function Be(e){let t=nn(e);return t*t*(3-2*t)}var no=Math.PI/180;function F(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function me(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}var J=Math.PI*2;function Q(e){return Number.isFinite(e.x)&&Number.isFinite(e.y)}function on(e,t,n){let o=t-e;if(n){for(;o<0;)o+=J;for(;o>=J;)o-=J}else{for(;o>0;)o-=J;for(;o<=-J;)o+=J}return o}function rn(e){return e.end}function ge(e){if(e.version!==1||e.closed!==!0||!Q(e.start)||!Array.isArray(e.segments)||e.segments.length<2||e.segments.length>512)return!1;let t=e.start;for(let n of e.segments){if(!n||!Q(n.end))return!1;if(n.kind==="line"){if(F(t,n.end)<=1e-9)return!1}else if(n.kind==="bezier"){if(!Q(n.control1)||!Q(n.control2)||F(t,n.end)<=1e-9)return!1}else if(n.kind==="arc"){if(!Q(n.center)||!Number.isFinite(n.radius)||n.radius<=1e-6||Math.abs(F(t,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||Math.abs(F(n.end,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||F(t,n.end)<=1e-9)return!1}else return!1;t=n.end}return F(t,e.start)<=1e-4}function sn(e,t,n){let o=1-n;return{x:o**3*e.x+3*o**2*n*t.control1.x+3*o*n**2*t.control2.x+n**3*t.end.x,y:o**3*e.y+3*o**2*n*t.control1.y+3*o*n**2*t.control2.y+n**3*t.end.y}}function cn(e,t=2){if(!ge(e))throw new Error("Section outline path is invalid");let n=Math.max(.25,t),o=[{...e.start}],r=e.start;for(let i of e.segments){if(i.kind==="line")o.push({...i.end});else if(i.kind==="arc"){let s=Math.atan2(r.y-i.center.y,r.x-i.center.x),u=Math.atan2(i.end.y-i.center.y,i.end.x-i.center.x),l=on(s,u,i.clockwise),h=Math.max(2,Math.ceil(Math.abs(l)*i.radius/n));for(let c=1;c<=h;c+=1){let p=s+l*c/h;o.push({x:i.center.x+Math.cos(p)*i.radius,y:i.center.y+Math.sin(p)*i.radius})}}else{let s=F(r,i.control1)+F(i.control1,i.control2)+F(i.control2,i.end),u=Math.max(2,Math.ceil(s/n));for(let l=1;l<=u;l+=1)o.push(sn(r,i,l/u))}r=i.end}return F(o[o.length-1],o[0])<=1e-4&&o.pop(),o}function an(e,t,n){return He(e,r=>({x:r.x+t,y:r.y+n}))}function He(e,t,n=1,o=!1){return{...e,start:t(e.start),segments:e.segments.map(r=>r.kind==="line"?{...r,end:t(r.end)}:r.kind==="arc"?{...r,center:t(r.center),radius:r.radius*Math.abs(n),clockwise:o?!r.clockwise:r.clockwise,end:t(r.end)}:{...r,control1:t(r.control1),control2:t(r.control2),end:t(r.end)})}}function ln(e){return e.map(t=>t===0?0:-t)}var Ve=45,ye=150,un=60;function ze(e){let t=Ve/100;if(e<=t)return ye;let n=Math.min(1,(e-t)/(1-t));return ye-n*(ye-un)}var Ge=.5523;function Ue(e,t){return Math.abs(e.x-t.x)<=1e-6&&Math.abs(e.y-t.y)<=1e-6}function fn(e){let t=[],n=[];for(e.forEach((o,r)=>{Q(o)&&(t.length&&Ue(t[t.length-1],o)||(t.push({x:o.x,y:o.y}),n.push(r)))});t.length>1&&Ue(t[0],t[t.length-1]);)t.pop(),n.pop();return{points:t,sourceIndex:n}}function dn(e,t,n){return We(e,{cornerSmoothing:t,...n})}var $e=.5,pn=4/3;function bn(e,t,n){let o=t.x-e.x,r=t.y-e.y,i=Math.hypot(o,r);if(i<=1e-9)return{kind:"line",end:{...t}};let s=-r/i,u=o/i,l=n*pn;return{kind:"bezier",control1:{x:e.x+o/3+s*l,y:e.y+r/3+u*l},control2:{x:e.x+o*2/3+s*l,y:e.y+r*2/3+u*l},end:{...t}}}function We(e,t){let{points:n,sourceIndex:o}=fn(e),r=n.length;if(r<3)return null;let i=Math.min(100,Math.max(0,t.cornerSmoothing??0))/100,s=t.edgeCurvature,u=new Array(r).fill(0);if(s?.length)for(let g=0;g<r;g+=1){let w=s[o[g]];u[g]=Number.isFinite(w)?Math.min(100,Math.max(-100,w))/100:0}let l=u.some(g=>Math.abs(g)>1e-6);if(i<=0&&!l)return null;let h=t.wideAngleThresholdDeg??ze(i),c=[];for(let g=0;g<r;g+=1)c[g]=F(n[g],n[(g+1)%r]);let p=new Array(r).fill(0);for(let g=0;g<r;g+=1){let w=n[(g-1+r)%r],a=n[g],m=n[(g+1)%r],S={x:w.x-a.x,y:w.y-a.y},x={x:m.x-a.x,y:m.y-a.y},C=Math.hypot(S.x,S.y),B=Math.hypot(x.x,x.y);if(C<=1e-9||B<=1e-9)continue;let A=Math.min(1,Math.max(-1,(S.x*x.x+S.y*x.y)/(C*B))),y=Math.acos(A)*180/Math.PI;if(y<h)continue;let M=Be((y-h)/(180-h));p[g]=i*M*.5*Math.min(C,B)}for(let g=0;g<r;g+=1){let w=(g+1)%r,a=p[g]+p[w];if(a>c[g]&&a>1e-9){let m=c[g]/a;p[g]*=m,p[w]*=m}}let d=new Array(r),f=new Array(r);for(let g=0;g<r;g+=1){let w=n[(g-1+r)%r],a=n[g],m=n[(g+1)%r];if(p[g]<=1e-6){d[g]={...a},f[g]={...a};continue}let S=F(a,w)||1,x=F(a,m)||1;d[g]={x:a.x+(w.x-a.x)/S*p[g],y:a.y+(w.y-a.y)/S*p[g]},f[g]={x:a.x+(m.x-a.x)/x*p[g],y:a.y+(m.y-a.y)/x*p[g]}}if(p.every(g=>g<=1e-6)&&!l)return null;let b=[],R={...f[0]},I=R,O=(g,w)=>{if(F(I,g)<=1e-9)return;let a=u[w];Math.abs(a)>1e-6?b.push(bn(I,g,a*$e*c[w])):b.push({kind:"line",end:{...g}}),I=g};for(let g=1;g<=r;g+=1){let w=g%r,a=n[w];O(d[w],(g-1)%r),p[w]>1e-6&&F(d[w],f[w])>1e-9&&(b.push({kind:"bezier",control1:me(d[w],a,Ge),control2:me(f[w],a,Ge),end:{...f[w]}}),I=f[w])}if(!b.length)return null;let k=b[b.length-1];F(k.end,R)>1e-9&&(k.kind==="line"?k.end={...R}:b.push({kind:"line",end:{...R}}));let E={version:1,closed:!0,start:R,segments:b};return ge(E)?E:null}function hn(e){let t=[],n=e.start;for(let r of e.segments)t.push(n),n=r.end;let o=[];for(let r=e.segments.length-1;r>=0;r-=1){let i=e.segments[r],s=t[r];i.kind==="line"?o.push({kind:"line",end:{...s}}):i.kind==="arc"?o.push({kind:"arc",center:{...i.center},radius:i.radius,clockwise:!i.clockwise,end:{...s}}):o.push({kind:"bezier",control1:{...i.control2},control2:{...i.control1},end:{...s}})}return{version:1,closed:!0,start:{...e.start},segments:o}}function Ke(e,t){let n=1-t,o=n*n*n,r=3*n*n*t,i=3*n*t*t,s=t*t*t;return{x:o*e.start.x+r*e.control1.x+i*e.control2.x+s*e.end.x,y:o*e.start.y+r*e.control1.y+i*e.control2.y+s*e.end.y}}function Xe(e,t,n=192){if(!Number.isInteger(t)||t<1)throw new Error("Path point count must be a positive integer");if(t===1)return[Ke(e,.5)];let o=Array.from({length:n+1},(l,h)=>Ke(e,h/n)),r=new Float64Array(o.length);for(let l=1;l<o.length;l+=1){let h=o[l].x-o[l-1].x,c=o[l].y-o[l-1].y;r[l]=r[l-1]+Math.hypot(h,c)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],u=1;for(let l=0;l<t;l+=1){let h=i*l/(t-1);for(;u<r.length-1&&r[u]<h;)u+=1;let c=r[u-1],p=r[u],d=p===c?0:(h-c)/(p-c);s.push({x:o[u-1].x+(o[u].x-o[u-1].x)*d,y:o[u-1].y+(o[u].y-o[u-1].y)*d})}return s}function Ye(e,t){return`${e.label}-${t+1}`}function mn(e,t,n){return e?.direction==="anticlockwise"?Math.max(0,t-1-n):n}function yn(e,t){let n=e.chairNumbering,o=n?.start??1,r=mn(n,Math.max(0,Math.round(e.seatCount)),t);return n?.format==="letter"?q(Math.max(1,o)+r):String(o+r)}function qe(e,t){let n=yn(e,t);return(e.chairNumbering?.format??"table-number")==="table-number"?`${e.displayLabel??e.label}-${n}`:n}var Qe=.02291666666666667,uo=1/Qe,gn=58,Me=gn*Qe;var xn=3,Je=0,xe=120,Sn=0,Mn=45,wn=7;function Se(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function vn(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=wn?e:xn}function Ze(e,t={}){let n=Se(t.floorBaseHeightM,Je,xe,0),o=Math.min(xe,n+vn(e.elevation)*Me),r=e.height===void 0?o:Se(e.height,Je,xe,o),i=Se(e.rake,Sn,Mn,0);return{height:r,rake:i}}function we(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var se=Math.PI/180;var te=16;function Ie(e,t,n,o){let r=n*se,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function ot(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return Xe(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let h=0;h<t;h++)s.push(Ie(h*n,0,r,i));return s}let u=o/(t-1)*se,l=n/(2*Math.sin(Math.abs(u)/2));for(let h=0;h<t;h++){let c=h*u,p=l*Math.sin(c),d=-l+l*Math.cos(c);s.push(Ie(p,d,r,i))}return s}function rt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function In(e,t){let n=rt(e);return ot(e).map((o,r)=>{let i=n.get(r),s=we(i),u=be(e,r,i),l={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:u,displayLabel:he(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(l).some(h=>h!==void 0&&h!==!1&&h!=="")?l:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function it(e){let t=[];for(let n of In(e))n.skipped||t.push({id:`${e.id}:${n.index}`,label:n.label,displayLabel:n.displayLabel===n.label?void 0:n.displayLabel,x:n.x,y:n.y,rowId:e.id,categoryKey:n.categoryKey,accessible:n.accessible||void 0,accessibility:n.accessibility.length?n.accessibility:void 0,wheelchairSpaceType:n.wheelchairSpaceType,commercial:n.commercial,glyph:n.glyph,viewUrl:n.viewUrl,viewMeta:n.viewMeta,labelStyle:n.labelStyle});return t}function Pn(e){if(e.seatCountsBySide)return{...e.seatCountsBySide};let t=e.sides&&e.sides.length?e.sides:["top","bottom"],n=["top","bottom","left","right"].filter(i=>t.includes(i)),o={top:0,bottom:0,left:0,right:0};if(!n.length)return o;let r=Math.max(0,Math.round(e.seatCount));for(let i=0;i<r;i++)o[n[i%n.length]]+=1;return o}function An(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(c=>[c.index,c])),r=(c,p,d,f)=>{let b=o.get(c),R=we(b),I=b?.label??Ye(e,c);return{index:c,label:I,displayLabel:b?.displayLabel??qe(e,c),x:p+(b?.dx??0),y:d+(b?.dy??0),categoryKey:b?.categoryKey??e.categoryKey,skipped:!!b?.skip,accessible:R.length>0,accessibility:R,wheelchairSpaceType:b?.wheelchairSpaceType,commercial:b?.commercial,glyph:b?.glyph,viewUrl:b?.viewFromSeatUrl,viewMeta:b?.viewFromSeatUrl?b.viewFromSeatMeta:void 0,labelStyle:b?.labelStyle,...f?{side:f}:{}}};if(e.shape==="round"){let c=(e.radius??40)+te,p=e.rotation*se,d=Math.max(0,Math.min(360,e.seatArc??360));if(d>=360||n===1){for(let I=0;I<n;I++){let O=p+I/n*2*Math.PI;t.push(r(I,e.center.x+c*Math.cos(O),e.center.y+c*Math.sin(O)))}return t}let f=d*se,b=(2*Math.PI-f)/2,R=p+b;for(let I=0;I<n;I++){let O=R+I/(n-1)*f;t.push(r(I,e.center.x+c*Math.cos(O),e.center.y+c*Math.sin(O)))}return t}let i=e.width??80,s=e.height??50,u=Pn(e),l=["top","bottom","left","right"],h=0;for(let c of l){let p=u[c];for(let d=0;d<p;d++){let f,b;c==="top"?(f=-i/2+(d+.5)*i/p,b=-s/2-te):c==="bottom"?(f=-i/2+(d+.5)*i/p,b=s/2+te):c==="left"?(f=-i/2-te,b=-s/2+(d+.5)*s/p):(f=i/2+te,b=-s/2+(d+.5)*s/p);let R=Ie(f,b,e.rotation,e.center);t.push(r(h++,R.x,R.y,c))}}return t}function st(e){return An(e).filter(t=>!t.skipped).map(t=>({id:`${e.id}:${t.index}`,label:t.label,...t.displayLabel!==t.label?{displayLabel:t.displayLabel}:{},x:t.x,y:t.y,rowId:e.id,categoryKey:t.categoryKey,...t.accessible?{accessible:!0}:{},...t.accessibility.length?{accessibility:t.accessibility}:{},...t.wheelchairSpaceType?{wheelchairSpaceType:t.wheelchairSpaceType}:{},...t.commercial?{commercial:t.commercial}:{},...t.glyph?{glyph:t.glyph}:{},...t.viewUrl?{viewUrl:t.viewUrl}:{},...t.viewUrl&&t.viewMeta?{viewMeta:t.viewMeta}:{},...t.labelStyle?{labelStyle:t.labelStyle}:{}}))}function ct(e){return[{id:`${e.id}:0`,label:e.label,...e.displayLabel&&e.displayLabel!==e.label?{displayLabel:e.displayLabel}:{},x:e.center.x,y:e.center.y,rowId:e.id,categoryKey:e.categoryKey,kind:"booth",...e.commercial?.note?{commercial:{note:e.commercial.note}}:{}}]}function et(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,u=t[r].x,l=t[r].y;s>e.y!=l>e.y&&e.x<(u-i)*(e.y-s)/(l-s)+i&&(n=!n)}return n}function Rn(e,t){return t.some((n,o)=>{let r=t[(o+1)%t.length],i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y);if(Math.abs(i)>1e-7)return!1;let s=(e.x-n.x)*(r.x-n.x)+(e.y-n.y)*(r.y-n.y),u=(r.x-n.x)**2+(r.y-n.y)**2;return s>=-1e-7&&s<=u+1e-7})}function Pe(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function tt(e,t,n){return et(e,t)&&!Pe(n).some(o=>et(e,o)||Rn(e,o))}function ve(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let o of e)t+=o.x,n+=o.y;return{x:t/e.length,y:n/e.length}}function Cn(e){switch(e.type){case"row":{let t=ot(e),n=rt(e),o=0,r=0,i=0;for(let s=0;s<t.length;s++){let u=n.get(s);u?.skip||(o+=t[s].x+(u?.dx??0),r+=t[s].y+(u?.dy??0),i++)}return i?{x:o/i,y:r/i}:{x:e.origin.x,y:e.origin.y}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return ve(e.points);case"section":return ve(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?ve(e.points):e.x!=null&&e.y!=null&&e.width!=null&&e.height!=null?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:e.x??0,y:e.y??0};case"decorImage":return{x:e.x+e.width/2,y:e.y+e.height/2}}}function nt(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function En(e,t){if(e.type!=="gaArea"||!nt(e.points,t.outline))return!1;let n=Pe(e.holes),o=Pe(t.holes);return n.length===o.length&&n.every((r,i)=>nt(r,o[i]))}function Ae(e,t,n=e.filter(r=>r.type==="section"),o=Cn(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(En(t,s)||tt(o,s.outline,s.holes))):void 0)??n.find(s=>tt(o,s.outline,s.holes))}function at(e){return e.floors&&e.floors.length?e.floors:[{id:"floor-0",name:"Main",objects:e.objects,focalPoint:e.focalPoint,referenceImage:e.referenceImage,backgroundImage:e.backgroundImage}]}function ce(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}var lt="__sl_ga__";var On=lt,Re=1e5;function Tn(e,t){return`${On}${encodeURIComponent(e)}__${t+1}`}function _n(e){let t=e.inventorySegments;if(t===void 0)return!0;if(!Array.isArray(t)||t.length<1||t.length>256)return!1;let n=0,o=new Map;for(let r of t){if(!r||typeof r.sourceAreaId!="string"||!r.sourceAreaId.trim()||r.sourceAreaId.length>160||!Number.isInteger(r.startIndex)||r.startIndex<0||!Number.isInteger(r.count)||r.count<1||r.startIndex+r.count>Re||(n+=r.count,n>Re))return!1;let i=o.get(r.sourceAreaId)??[],s=r.startIndex+r.count;if(i.some(u=>r.startIndex<u.end&&s>u.start))return!1;i.push({start:r.startIndex,end:s}),o.set(r.sourceAreaId,i)}return n===e.capacity}function Nn(e){let t=Math.min(Re,Math.max(0,Math.floor(e.capacity)));return e.inventorySegments===void 0?t?[{sourceAreaId:e.id,startIndex:0,count:t}]:[]:_n(e)?e.inventorySegments.map(n=>({...n})):[]}var kn=100,wo=`An area sold to one party holds at most ${kn} guests.`;function Ln(e){return e.variableOccupancy?"variable":e.bookAsWhole?"whole":null}function ut(e){return Dn(e,2)}function Dn(e,t){return t===2&&Ln(e)&&e.inventorySegments===void 0?e.label.trim()?[e.label]:[]:Nn(e).flatMap(n=>Array.from({length:n.count},(o,r)=>Tn(n.sourceAreaId,n.startIndex+r)))}var ae="__ungrouped__";function jn(e){return e.type==="row"?it(e).map(t=>t.label):e.type==="table"?st(e).map(t=>t.label):e.type==="booth"?ct(e).map(t=>t.label):e.type==="gaArea"?ut(e):[]}function ft(e){return e.type==="row"||e.type==="table"||e.type==="booth"||e.type==="gaArea"}function Fn(e){return e.displayLabel||e.label||"Section"}function Ce(e){let t=new Map;for(let n of ce(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id;t.has(o)||t.set(o,{id:o,label:Fn(n),zone:n.zone})}return t}function Bn(e){let t=new Map;for(let n of ce(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id,r=n.entrance?.trim();r&&!t.has(o)&&t.set(o,r)}return t}function Gn(e){let t=new Map;for(let[n,o]of Ce(e))t.set(n,o.label);return t}function dt(e){let t=new Map;for(let n of at(e)){let o=n.objects.filter(r=>r.type==="section");if(o.length)for(let r of n.objects){if(!ft(r))continue;let i=Ae(n.objects,r,o);i&&t.set(r.id,i.logicalSectionId??i.id)}}return t}function pt(e,t){let n=ce(e),o=n.filter(u=>u.type==="section"),r=new Map;for(let[u,l]of Ce(e))r.set(u,{id:u,label:l.label,zone:l.zone,seatCount:0,objectIds:[],seatLabels:[]});let i={id:ae,label:"Other seats",seatCount:0,objectIds:[],seatLabels:[]},s=new Map;for(let u of n){if(!ft(u))continue;let l=jn(u);if(l.length===0)continue;let h;if(t)h=t.get(u.id);else{let p=Ae(n,u,o);h=p?p.logicalSectionId??p.id:void 0}let c=h?r.get(h):i;c.seatCount+=l.length,c.objectIds.push(u.id),c.seatLabels.push(...l),s.set(u.id,c.id)}return{sections:[...r.values()],ungrouped:i.objectIds.length?i:null,objectToSection:s}}function Un(e){return pt(e,null)}function bt(e){return pt(e,dt(e))}function ht(e,t){return t.has(e.id)||!!e.logicalSectionId&&t.has(e.logicalSectionId)||!!e.zone&&t.has(e.zone)}function mt(e,t){let n=new Set;if(!t.size)return n;let{sections:o,ungrouped:r,objectToSection:i}=bt(e),s=new Set,u=new Map(o.map(h=>[h.id,h.zone]));for(let h of o){let c=u.get(h.id);(t.has(h.id)||c&&t.has(c))&&s.add(h.id)}let l=!!r&&t.has(ae);for(let[h,c]of i)(s.has(c)||l&&c===ae)&&n.add(h);return n}function Hn(e,t){if(!t.size)return e;let n=mt(e,t),o=t instanceof Set?t:new Set(t),r=s=>!(n.has(s.id)||s.type==="section"&&ht(s,o));if(e.floors&&e.floors.length){let s=!1,u=e.floors.map(l=>{let h=l.objects.filter(r);return h.length!==l.objects.length&&(s=!0),h.length===l.objects.length?l:{...l,objects:h}});return s?{...e,floors:u,objects:u[0].objects}:e}let i=e.objects.filter(r);return i.length===e.objects.length?e:{...e,objects:i}}0&&(module.exports={DEFAULT_SECTION_CORNER_SMOOTHING,MAX_EDGE_SAGITTA_RATIO,TIER_HEIGHT_M,UNGROUPED_ID,applyHidden,arcLevelAt,bearingDeg,buildSectionRake,computeSections,computeSectionsPerFloor,cornerSmoothingThresholdDeg,distanceToPolyline,fitBowlProfile,fitCircle,hiddenObjectIds,indexLabel,isSectionHidden,logicalNumberingRow,reflectEdgeCurvature,relabelRows,resolveSection,reverseSectionOutlinePath,sampleSectionOutlinePath,seatConfidenceDisclosure,seatDisplayLabel,seatInventoryLabel,seatLabelPart,sectionCornerSmoothingPath,sectionEntrancesById,sectionGeometry,sectionIdentitiesById,sectionLabelsById,sectionOutlinePathFrom,sectionOwnersByObject,sectionPathSegmentEnd,toBijectiveBase,toLetters,toRoman,transformSectionOutlinePath,translateSectionOutlinePath,validSectionOutlinePath});
1
+ "use strict";var le=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var gt=Object.getOwnPropertyNames;var xt=Object.prototype.hasOwnProperty;var St=(e,t)=>{for(var n in t)le(e,n,{get:t[n],enumerable:!0})},Mt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gt(t))!xt.call(e,r)&&r!==n&&le(e,r,{get:()=>t[r],enumerable:!(o=yt(t,r))||o.enumerable});return e};var wt=e=>Mt(le({},"__esModule",{value:!0}),e);var Vn={};St(Vn,{DEFAULT_SECTION_CORNER_SMOOTHING:()=>Ve,MAX_EDGE_SAGITTA_RATIO:()=>$e,TIER_HEIGHT_M:()=>Me,UNGROUPED_ID:()=>ae,applyHidden:()=>Hn,arcLevelAt:()=>jt,bearingDeg:()=>_e,buildSectionRake:()=>Wt,computeSections:()=>Un,computeSectionsPerFloor:()=>ht,cornerSmoothingThresholdDeg:()=>ze,distanceToPolyline:()=>fe,fitBowlProfile:()=>Dt,fitCircle:()=>ne,hiddenObjectIds:()=>mt,indexLabel:()=>ke,isSectionHidden:()=>bt,logicalNumberingRow:()=>Fe,reflectEdgeCurvature:()=>ln,relabelRows:()=>Ut,resolveSection:()=>Ot,reverseSectionOutlinePath:()=>bn,sampleSectionOutlinePath:()=>cn,seatConfidenceDisclosure:()=>Zt,seatDisplayLabel:()=>be,seatInventoryLabel:()=>he,seatLabelPart:()=>ee,sectionCornerSmoothingPath:()=>dn,sectionEntrancesById:()=>Bn,sectionGeometry:()=>Ze,sectionIdentitiesById:()=>Ce,sectionLabelsById:()=>Gn,sectionOutlinePathFrom:()=>We,sectionOwnersByObject:()=>dt,sectionPathSegmentEnd:()=>rn,toBijectiveBase:()=>de,toLetters:()=>q,toRoman:()=>pe,transformSectionOutlinePath:()=>He,translateSectionOutlinePath:()=>an,validSectionOutlinePath:()=>ge});module.exports=wt(Vn);function Ee(e){let t=e.length;return t<=3?[...e]:[e[Math.floor(t*.25)],e[Math.floor(t*.5)],e[Math.floor(t*.75)]]}function fe(e,t,n){if(!e.length)return 1/0;if(e.length===1)return Math.hypot(t-e[0].x,n-e[0].y);let o=1/0;for(let r=0;r+1<e.length;r++){let i=e[r],s=e[r+1],u=s.x-i.x,l=s.y-i.y,b=u*u+l*l,c=b>1e-12?((t-i.x)*u+(n-i.y)*l)/b:0;c<0?c=0:c>1&&(c=1);let p=t-(i.x+c*u),d=n-(i.y+c*l);if(Math.abs(p)>=o||Math.abs(d)>=o)continue;let f=Math.hypot(p,d);f<o&&(o=f)}return o}function vt(e){let t=0,n=0;for(let i of e)t+=i.x,n+=i.y;let o=e.length||1;t/=o,n/=o;let r=0;for(let i of e){let s=Math.hypot(i.x-t,i.y-n);s>r&&(r=s)}return{cx:t,cy:n,r}}function Oe(e,t){return Math.hypot(e.cx-t.cx,e.cy-t.cy)-e.r-t.r}function ue(e,t){let n=1/0;for(let o of Ee(e)){let r=fe(t,o.x,o.y);r<n&&(n=r)}for(let o of Ee(t)){let r=fe(e,o.x,o.y);r<n&&(n=r)}return n}function It(e,t){if(e.length<3)return{pts:e,seatIndices:t};let n=0,o=0;for(let c of e)n+=c.x,o+=c.y;n/=e.length,o/=e.length;let r=-1,i=e[0];for(let c of e){let p=Math.hypot(c.x-n,c.y-o);p>r&&(r=p,i=c)}let s=i.x-n,u=i.y-o,l=Math.hypot(s,u);l>1e-9?(s/=l,u/=l):(s=1,u=0);let b=e.map((c,p)=>({p:c,i:p,t:(c.x-n)*s+(c.y-o)*u})).sort((c,p)=>c.t-p.t);return{pts:b.map(c=>c.p),seatIndices:b.map(c=>t[c.i])}}function ne(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let k of e)n+=k.x,o+=k.y;n/=t,o/=t;let r=0,i=0,s=0,u=0,l=0,b=0,c=0;for(let k of e){let E=k.x-n,g=k.y-o;r+=E*E,s+=g*g,i+=E*g,u+=E*E*E,l+=g*g*g,b+=E*g*g,c+=g*E*E}let p=r*s-i*i;if(Math.abs(p)<1e-9)return null;let d=(u+b)/2,f=(l+c)/2,h=(d*s-f*i)/p,R=(f*r-d*i)/p,I=h+n,O=R+o;return!Number.isFinite(I)||!Number.isFinite(O)?null:{cx:I,cy:O}}var Pt=.15;function At(e){if(e.length<2)return null;let t=e.map(w=>{let a=0,m=0;for(let S of w.pts)a+=S.x,m+=S.y;return{x:a/w.pts.length,y:m/w.pts.length}}),n=0,o=0;for(let w of t)n+=w.x,o+=w.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let w of t){let a=w.x-n,m=w.y-o;r+=a*a,i+=a*m,s+=m*m}let u=r+s,l=r*s-i*i,b=u/2+Math.sqrt(Math.max(0,u*u/4-l)),c,p;Math.abs(i)>1e-12?(c=b-s,p=i):r>=s?(c=1,p=0):(c=0,p=1);let d=Math.hypot(c,p);if(!(d>1e-12))return null;c/=d,p/=d;let f=0,h=0,R=0;for(let w of e){if(w.pts.length<2)continue;let a=w.pts[0],m=w.pts[w.pts.length-1],S=m.x-a.x,x=m.y-a.y,C=Math.hypot(S,x);if(!(C>1e-9))continue;let B=S/C,A=x/C;f+=(B*B-A*A)*C,h+=2*B*A*C,R+=C}if(R>0&&Math.hypot(f,h)>=Ct*R){let w=Math.atan2(h,f)/2,a=Math.cos(w),m=Math.sin(w);Math.abs(c*a+p*m)>Et&&(c=-m,p=a)}let I=1/0,O=-1/0,k=[];for(let w of e){let a=1/0,m=-1/0;for(let S of w.pts){let x=S.x*c+S.y*p;x<a&&(a=x),x>m&&(m=x),x<I&&(I=x),x>O&&(O=x)}k.push(m-a)}let E=O-I;return E>1e-9?(k.sort((w,a)=>w-a),k[Math.min(k.length-1,Math.floor(k.length*.9))]/E<=Rt?{x:c,y:p}:null):null}var Rt=.35,Ct=.8,Et=.7;function Ot(e,t,n,o){let r=new Map;for(let a of n){let m=t[a],S=m.rowId||`__seat-${a}`,x=r.get(S);x||(x={pts:[],idx:[]},r.set(S,x)),x.pts.push({x:m.x,y:m.y}),x.idx.push(a)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[a,m]of r){let S=It(m.pts,m.idx),x=0;for(let C of S.pts)x+=Math.hypot(C.x-o.x,C.y-o.y);i.push({id:a,pts:S.pts,seatIndices:S.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:x/S.pts.length})}let s=i.map(a=>vt(a.pts)),u=i.length<=256?i.length*(i.length-1)/2:0,l=u?new Float64Array(u):null;l?.fill(Number.NaN);let b=l?new Map(i.map((a,m)=>[a,m])):null,c=(a,m)=>(a>m&&([a,m]=[m,a]),a*(2*i.length-a-1)/2+(m-a-1)),p=(a,m)=>{if(!l)return ue(i[a].pts,i[m].pts);let S=c(a,m),x=l[S];if(!Number.isNaN(x))return x;let C=ue(i[a].pts,i[m].pts);return l[S]=C,C},d=(a,m)=>b?p(b.get(a),b.get(m)):ue(a.pts,m.pts),f=[];for(let a=0;a<i.length;a++){let m=1/0;for(let S=0;S<i.length;S++){if(a===S||Oe(s[a],s[S])>=m)continue;let x=p(a,S);x<m&&(m=x)}Number.isFinite(m)&&f.push(m)}f.sort((a,m)=>a-m);let h=f.length?f[Math.floor(f.length/2)]:1,R=Math.max(h*1.8,1e-6),I=i.map(()=>[]);for(let a=0;a<i.length;a++)for(let m=a+1;m<i.length;m++)Oe(s[a],s[m])>R||p(a,m)<=R&&(I[a].push(m),I[m].push(a));let O=0;for(let a=0;a<i.length;a++){if(i[a].blockId!==-1)continue;let m=O++,S=[a];for(i[a].blockId=m;S.length;){let x=S.pop();for(let C of I[x])i[C].blockId===-1&&(i[C].blockId=m,S.push(C))}}let k=new Map;for(let a of i){let m=k.get(a.blockId)??[];m.push(a),k.set(a.blockId,m)}let E=[];for(let a of i){if(a.pts.length<4)continue;let m=ne(a.pts);m&&(!Number.isFinite(m.cx)||!Number.isFinite(m.cy)||E.push({x:m.cx,y:m.cy}))}let g=E.length>=2?(()=>{let a=E.map(x=>x.x).sort((x,C)=>x-C),m=E.map(x=>x.y).sort((x,C)=>x-C),S=Math.floor(E.length/2);return{cx:a[S],cy:m[S]}})():null;if(g){let a=A=>Math.hypot(A.x-g.cx,A.y-g.cy),m=1/0,S=-1/0,x=[];for(let A of i){let y=1/0,M=-1/0;for(let T of A.pts){let L=a(T);L<y&&(y=L),L>M&&(M=L)}x.push(M-y),y<m&&(m=y),M>S&&(S=M)}let C=S-m;x.sort((A,y)=>A-y);let B=x[Math.min(x.length-1,Math.floor(x.length*.9))];if(C>1e-9&&B/C<=Pt){let A=i.map(P=>{let j=0;for(let $ of P.pts)j+=a($);return{row:P,radius:j/P.pts.length}}),y=0,M=0;for(let P of A)y+=P.radius,M+=P.row.focalDistance;y/=A.length,M/=A.length;let T=0;for(let P of A)T+=(P.radius-y)*(P.row.focalDistance-M);if(T<0)for(let P of A)P.radius=-P.radius;let G=1/0;for(let P of A)P.radius<G&&(G=P.radius);A.sort((P,j)=>P.radius-j.radius);let z=-1,_=-1/0,V=C/Math.max(1,A.length)*.5,U=[];for(let P of A)P.radius-_>V&&(z++,_=P.radius),P.row.ordinal=z,P.row.blockDepth=P.radius-G,U.push(P.row);return{sectionId:e,rows:U,blockCount:O}}}let w=[];for(let[,a]of k){let m=At(a);if(m){let S=A=>{let y=0;for(let M of A.pts)y+=M.x*m.x+M.y*m.y;return y/A.pts.length};a.sort((A,y)=>S(A)-S(y)),a.length>=2&&a[0].focalDistance>a[a.length-1].focalDistance&&a.reverse();let x=[],C=h*.5;for(let A of a){let y=x[x.length-1];y&&Math.abs(S(A)-S(y[0]))<C?y.push(A):x.push([A])}let B=0;for(let A=0;A<x.length;A++){if(A>0){let y=1/0;for(let M of x[A-1])for(let T of x[A])y=Math.min(y,d(M,T));B+=y}for(let y of x[A])y.ordinal=A,y.blockDepth=B,w.push(y)}}else{let S=1/0;for(let x of a)x.focalDistance<S&&(S=x.focalDistance);a.sort((x,C)=>x.focalDistance-C.focalDistance);for(let x=0;x<a.length;x++)a[x].ordinal=x,a[x].blockDepth=Math.max(0,a[x].focalDistance-S),w.push(a[x])}}return{sectionId:e,rows:w,blockCount:O}}var Tt=Math.PI/180,N=96,_t=6,Nt=60,kt=150,Te=.2,Lt=.35;function _e(e,t){let n=Math.atan2(t.x-e.x,t.y-e.y)/Tt;return n<0?n+360:n}function oe(e){if(!e.length)return NaN;let t=[...e].sort((n,o)=>n-o);return t[Math.floor(t.length/2)]}function re(e,t,n=2){let o=e.length,r=new Float64Array(o);for(let i=0;i<o;i++){let s=0,u=0;for(let l=-n;l<=n;l++){let b=i+l;if(t)b=(b%o+o)%o;else if(b<0||b>=o)continue;s+=e[b],u++}r[i]=s/u}return r}function Dt(e,t){let n=e.filter(d=>d.rows.length>=1);if(n.length<1)return null;let o=[],r=0,i=0,s=0;for(let d of n)for(let f of d.rows){for(let h of f.pts)r+=h.x,i+=h.y,s++;if(f.pts.length>=4){let h=ne(f.pts);h&&Number.isFinite(h.cx)&&Number.isFinite(h.cy)&&o.push({x:h.cx,y:h.cy})}}if(!s)return null;let u={x:r/s,y:i/s},l=u;if(o.length>=8){let d=oe(o.map(O=>O.x)),f=oe(o.map(O=>O.y)),h=0;for(let O of n)for(let k of O.rows)for(let E of k.pts){let g=Math.hypot(E.x-u.x,E.y-u.y);g>h&&(h=g)}let R=0,I=h*.2;for(let O of n)for(let k of O.rows)for(let E of k.pts)Math.hypot(E.x-d,E.y-f)<I&&R++;Math.hypot(d-u.x,f-u.y)<=h&&R/s<.01&&(l={x:d,y:f})}let b=[];for(let d of n){let f={sectionId:d.sectionId,rMin:1/0,rMax:-1/0,samples:[]};for(let h of d.rows)for(let R of h.pts){let I=Math.hypot(R.x-l.x,R.y-l.y),O=Math.min(N-1,Math.floor(_e(l,R)/(360/N)));f.samples.push({r:I,bin:O,levelM:h.levelM}),I<f.rMin&&(f.rMin=I),I>f.rMax&&(f.rMax=I)}f.samples.length&&b.push(f)}if(!b.length)return null;b.sort((d,f)=>d.rMin+d.rMax-(f.rMin+f.rMax));let c=[];for(let d of b){let f=!1;for(let h of c){let R=Math.min(d.rMax,h.rMax)-Math.max(d.rMin,h.rMin),I=Math.min(d.rMax-d.rMin,h.rMax-h.rMin);if(I>1e-9&&R>=Lt*I){h.members.push(d),h.rMin=Math.min(h.rMin,d.rMin),h.rMax=Math.max(h.rMax,d.rMax),f=!0;break}}f||c.push({members:[d],rMin:d.rMin,rMax:d.rMax})}let p=[];for(let d of c){let f=new Array(N).fill(null);for(let y of d.members)for(let M of y.samples){let T=f[M.bin];T||(T={samples:[]},f[M.bin]=T),T.samples.push({r:M.r,levelM:M.levelM})}let h=f.map(y=>!!y);if(!h.filter(Boolean).length)continue;let I=[],O=[];for(let y of f){if(!y)continue;let M=1/0,T=-1/0;for(let L of y.samples)L.r<M&&(M=L.r),L.r>T&&(T=L.r);I.push(M),O.push(T)}let k=oe(I),E=oe(O);if(!(k>=Te*E)||!(E>0))continue;let g=[...I].sort((y,M)=>y-M);if(!(g[Math.floor(g.length*.1)]>=Te*E))continue;let a=f.map(y=>{if(!y)return null;let M=[...y.samples].sort((P,j)=>P.r-j.r),T=M[0].r,L=M[M.length-1].r,G=M[0].levelM,z=-1/0;for(let P of M)P.levelM>z&&(z=P.levelM);let _=[];for(let P of M){let j={r:P.r,l:P.levelM};for(;_.length&&Math.abs(_[_.length-1].r-j.r)<1e-9;){if(_[_.length-1].l<=j.l){j.skip=!0;break}_.pop()}if(!j.skip){for(;_.length>=2;){let $=_[_.length-2],K=_[_.length-1];if((K.r-$.r)*(j.l-$.l)-(K.l-$.l)*(j.r-$.r)<=0)_.pop();else break}_.push(j)}}let V=_.map(P=>P.r),U=_.map(P=>P.l);return{inner:T,outer:L,front:G,top:z,profile:{rs:V,ls:U}}}),m=h.slice();for(let y=0;y<N;y++){if(m[y])continue;let M=-1,T=-1,L=0;for(let v=1;v<=N;v++){let D=(y-v+N*2)%N;if(m[D]){M=D;break}}for(let v=1;v<=N;v++){let D=(y+v)%N;if(m[D]){T=D,L=v;break}}if(M<0||T<0)continue;let G=0;for(let v=1;v<=N;v++){let D=(y-v+N*2)%N;if(h[D]){G=v;break}}if(G-1+L>_t)continue;let _=a[M],V=a[T],U=G/(G+L),P=_.inner+(V.inner-_.inner)*U,j=_.outer+(V.outer-_.outer)*U,$=_.front+(V.front-_.front)*U,K=_.top+(V.top-_.top)*U;a[y]={inner:P,outer:j,front:$,top:K,profile:{rs:[P,j],ls:[$,K]}}}for(let y=0;y<N;y++)a[y]&&(m[y]=!0);let S=360/N,x=[],C=m.filter(Boolean).length,B=[];if(C===N)B.push({start:0,len:N});else{let y=0;for(;m[y];)y=(y+1)%N;let M=-1;for(let T=0;T<=N;T++){let L=(y+T)%N,G=T<N&&m[L];if(G&&M<0)M=L;else if(!G&&M>=0){let z=(L-M+N)%N||N;B.push({start:M,len:z}),M=-1}}}for(let y of B){if(y.len*S<Nt&&y.len<N)continue;let M=y.len===N,T=new Float64Array(y.len),L=new Float64Array(y.len),G=new Float64Array(y.len),z=new Float64Array(y.len),_=[];for(let v=0;v<y.len;v++){let D=a[(y.start+v)%N];T[v]=D.inner,L[v]=D.outer,G[v]=D.front,z[v]=D.top,_.push(D.profile??{rs:[D.inner,D.outer],ls:[D.front,D.top]})}let V=re(T,M),U=re(L,M),P=re(G,M),j=re(z,M);for(let v=0;v<y.len;v++)V[v]>T[v]&&(V[v]=T[v]),U[v]<L[v]&&(U[v]=L[v]),V[v]>U[v]-1e-6&&(V[v]=Math.max(0,U[v]-1e-6)),j[v]<P[v]&&(j[v]=P[v]);let $={startBin:y.start,binCount:y.len,closed:M,innerR:V,outerR:U,frontLevelM:P,topLevelM:j,profiles:_},K=(v,D,H)=>{let Z=_[v],X=Z.rs,W=Z.ls;if(D<=X[0]){W[0]>H&&(W[0]=H);return}if(D>=X[X.length-1]){W[W.length-1]>H&&(W[W.length-1]=H);return}for(let Y=0;Y+1<X.length;Y++)if(D<=X[Y+1]){W[Y]>H&&(W[Y]=H),W[Y+1]>H&&(W[Y+1]=H);return}};for(let v=0;v<y.len;v++){let D=f[(y.start+v)%N];if(D)for(let H of D.samples){K(v,H.r,H.levelM);let Z=M?(v-1+y.len)%y.len:v-1,X=M?(v+1)%y.len:v+1;Z>=0&&K(Z,H.r,H.levelM),X<y.len&&K(X,H.r,H.levelM)}}x.push($)}x.reduce((y,M)=>y+M.binCount*S,0)<kt||p.push({arcs:x,sectionIds:d.members.map(y=>y.sectionId),innerRMedian:k,outerRMedian:E})}if(!p.length)return null;if(p.sort((d,f)=>d.innerRMedian-f.innerRMedian),t){let d=p[p.length-1].outerRMedian;if(Math.hypot(t.x-l.x,t.y-l.y)>.9*d)return null}return{centre:l,binCount:N,binStepDeg:360/N,rings:p}}function jt(e,t,n,o){let r=e.binStepDeg,i=n/r-.5-t.startBin;i=(i%e.binCount+e.binCount)%e.binCount,i>t.binCount-1&&(t.closed?i=i-t.binCount<t.binCount-i?0:t.binCount-1:i=i-(t.binCount-1)<e.binCount-i?t.binCount-1:0);let s=Math.floor(i),u=t.closed?(s+1)%t.binCount:Math.min(t.binCount-1,s+1),l=i-s,b=c=>{let p=t.profiles[c],d=p.rs,f=p.ls;if(o<=d[0])return f[0];if(o>=d[d.length-1])return f[f.length-1];for(let h=0;h+1<d.length;h++)if(o<=d[h+1]){let R=d[h+1]-d[h],I=R>1e-9?(o-d[h])/R:0;return f[h]+(f[h+1]-f[h])*I}return f[f.length-1]};return b(s)*(1-l)+b(u)*l}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ft="ABCDEFGHJKLMNPQRSTUVWXYZ",Bt="abcdefghijklmnopqrstuvwxyz";function de(e,t){let n=t.length,o=e+1,r="";for(;o>0;){o-=1;let i=o%n;r=t[i]+r,o=Math.floor(o/n)}return r}function ke(e,t){let n=t.startAt-1,o=e+n;if(t.scheme==="numbers")return String(o+1);let r=t.skipAmbiguous?Ft:Ne;return de(o,r)}function q(e,t=!1){let n=t?Bt:Ne;return de(Math.max(0,Math.floor(e)-1),n)}var Gt=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];function pe(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Gt)for(;t>=o;)n+=r,t-=o;return n}function Ut(e,t){let n=e.length;return e.map((o,r)=>{let i=t.reverse?n-1-r:r;return{...o,label:ke(i,t)}})}function Ht(e){return{kind:"radial",rowCount:0,rows:[],nearestRow:()=>-1,depthAt:(t,n)=>Math.hypot(t-e.x,n-e.y),gradientAt:(t,n)=>{let o=t-e.x,r=n-e.y,i=Math.hypot(o,r);return i<1e-9?[0,0]:[o/i,r/i]}}}function Vt(e,t){if(!e.length)return null;let n=0,o=0,r=0;for(let f of e)n+=f.x,o+=f.y,r+=Math.hypot(f.x-t.x,f.y-t.y);let i=e.length;n/=i,o/=i,r/=i;let s=e[0],u=-1;for(let f of e){let h=Math.hypot(f.x-n,f.y-o);h>u&&(u=h,s=f)}let l=s.x-n,b=s.y-o,c=Math.hypot(l,b);c>1e-9?(l/=c,b/=c):(l=1,b=0);let p=[...e].sort((f,h)=>(f.x-n)*l+(f.y-o)*b-((h.x-n)*l+(h.y-o)*b)),d=0;for(let f of p){let h=Math.hypot(f.x-n,f.y-o);h>d&&(d=h)}return{pts:p,cx:n,cy:o,radius:d,depth:r}}function Le(e,t,n){let o=e.pts;if(o.length===1)return Math.hypot(t-o[0].x,n-o[0].y);let r=1/0;for(let i=0;i+1<o.length;i++){let s=o[i],u=o[i+1],l=u.x-s.x,b=u.y-s.y,c=l*l+b*b,p=c>1e-12?((t-s.x)*l+(n-s.y)*b)/c:0;p<0?p=0:p>1&&(p=1);let d=Math.hypot(t-(s.x+p*l),n-(s.y+p*b));d<r&&(r=d)}return r}var ie=8;function zt(e,t,n){let o=new Array(ie).fill(1/0),r=new Array(ie).fill(-1);for(let c=0;c<e.length;c++){let p=e[c],d=Math.hypot(t-p.cx,n-p.cy)-p.radius;for(let f=0;f<ie;f++)if(d<o[f]){for(let h=ie-1;h>f;h--)o[h]=o[h-1],r[h]=r[h-1];o[f]=d,r[f]=c;break}}let i=new Array(3).fill(1/0),s=new Array(3).fill(-1);for(let c of r){if(c<0)continue;let p=Le(e[c],t,n);for(let d=0;d<3;d++)if(p<i[d]){for(let f=2;f>d;f--)i[f]=i[f-1],s[f]=s[f-1];i[d]=p,s[d]=c;break}}if(s[0]<0)return 0;if(i[0]<1e-6)return e[s[0]].depth;let u=i[0]*2.2,l=0,b=0;for(let c=0;c<3;c++){let p=s[c];if(p<0||i[c]>u)continue;let d=1/(i[c]*i[c]);l+=d*e[p].depth,b+=d}return b>0?l/b:e[s[0]].depth}function $t(e){let t=(o,r)=>zt(e,o,r),n=(o,r)=>{let i=1/0,s=-1;for(let u=0;u<e.length;u++){let l=e[u];if(Math.hypot(o-l.cx,r-l.cy)-l.radius>=i)continue;let b=Le(l,o,r);b<i&&(i=b,s=u)}return s};return{kind:"rows",rowCount:e.length,rows:e,nearestRow:n,depthAt:t,gradientAt:(o,r)=>{let i=(t(o+.5,r)-t(o-.5,r))/1,s=(t(o,r+.5)-t(o,r-.5))/(2*.5),u=Math.hypot(i,s);return u<1e-9?[0,0]:[i/u,s/u]}}}function Wt(e,t){let n=[];for(let o of e){let r=Vt(o.points,t);r&&n.push(r)}return n.length<2?Ht(t):(n.sort((o,r)=>o.depth-r.depth),$t(n))}var Kt=/^\d{4}-\d{2}-\d{2}$/;function Xt(e){let t=Date.parse(e);return Number.isFinite(t)?Kt.test(e)?t+864e5:t:null}function De(e,t=Date.now()){if(e.validUntil===void 0){if(e.status!=="approved")return!0;let o=e.assessedAt?Date.parse(e.assessedAt):Number.NaN;return Number.isFinite(o)&&(t instanceof Date?t.getTime():t)<=o+366*864e5}let n=Xt(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function je(e){return e.status!=="draft"&&e.status!=="retracted"}function Yt(e){return e==="exact-seat"?"Exact seat in the model":e==="row-representative"?"Representative row evidence":e==="section-representative"?"Representative section evidence":e==="floor-representative"?"Representative floor evidence":"Representative venue evidence"}function qt(e){if(!e)return"No assessment date supplied";let t=new Date(e);return Number.isFinite(t.getTime())?`Assessed ${t.toISOString().slice(0,10)}`:"No assessment date supplied"}function Jt(){return{headline:"Generated view \xB7 unverified",model:"No geometry or event-configuration verification supplied",reality:"No real-world check supplied",coverage:"Selected chart seat",provenance:"Chart-derived model",freshness:"No current organizer-approved evidence matches this Event, venue revision, or renewal window",limitations:["Generated view is not surveyed sightline truth."]}}function Qt(e){let t=qt(e.assessedAt);if(!e.validUntil)return t;let n=Date.parse(e.validUntil);return Number.isFinite(n)?`${t} \xB7 valid until ${e.validUntil.slice(0,10)}`:t}function Zt(e,t={}){if(!e||!je(e)||!De(e,t.now))return Jt();let n=e.evidenceKind==="synthetic-model",o=e.modelLevel==="configuration-verified"?"Event configuration verified":e.modelLevel==="geometry-verified"?"Venue geometry verified":n?"Versioned synthetic model":"Generated model \xB7 not verified",r=e.realityLevel==="actual-build-checked"?"Actual event build reality checked":e.realityLevel==="comparable-build-reference"?"Comparable-build reference only":"No real-world check supplied",i=n?"Synthetic model evidence":e.modelLevel==="configuration-verified"?"Configuration verified":e.modelLevel==="geometry-verified"?"Geometry verified":"Generated view \xB7 unverified",s=[...e.limitations??[],...n?["Synthetic demo; not surveyed or venue-certified."]:[]],u=e.modeledTarget?`${e.modeledTarget.label} \xB7 ${e.modeledTarget.clearRayCount}/${e.modeledTarget.totalRayCount} target rays clear \xB7 ${e.modeledTarget.classification} in bounded model \xB7 ${e.modeledTarget.methodLabel}`+(e.modeledTarget.occluderLabels?.length?` \xB7 modeled occluders: ${e.modeledTarget.occluderLabels.join(", ")}`:""):void 0;return u&&s.push("Modeled target is not a percentage of the show visible."),{headline:i,model:o,reality:r,coverage:Yt(e.coverage),provenance:e.sourceLabel??e.approvedByRole??"Source not supplied",freshness:Qt(e),limitations:s,...u?{modeledTarget:u}:{}}}function en(e){let t=new Array(e);return Array.from({length:e},(n,o)=>o).sort((n,o)=>Math.abs(2*n-(e-1))-Math.abs(2*o-(e-1))||n-o).forEach((n,o)=>t[n]=o),t}function ee(e,t){let n=e.seatLabelStart??1,o=e.seatNumbering?.direction??"ltr",r=e.seatNumbering?.step??1,i=e.seatNumbering?.scheme??"decimal",s=e.seatNumbering?.prefix??"",u=e.seatNumbering?.endAt,l=e.seatCount;if(i==="updown"||i==="updown-descending"){let f=Math.ceil(l/2),h=i==="updown"?t<f?n+2*t:n-1+2*(l-t):t<f?n+2*(f-1-t):n+1+2*(t-f);return`${s}${h}`}let b=i==="odd"||i==="even"?2:r,c=u!=null&&Number.isFinite(u)?u-(l-1)*b:n,p=o==="center"?en(l)[t]:o==="rtl"?l-1-t:t,d;switch(i){case"odd":{let f=c%2===1?c:c+1;d=String(f+p*2);break}case"even":{let f=c%2===0?c:c+1;d=String(f+p*2);break}case"roman":d=pe(c+p*r);break;case"letters-upper":d=q(c+p*r,!1);break;case"letters-lower":d=q(c+p*r,!0);break;default:d=String(c+p*r);break}return`${s}${d}`}function Fe(e){return{...e.canonical,seatCount:e.totalSeats,label:e.displayLabel,displayLabel:e.displayLabel}}function he(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${ee(e,t)}`}function be(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return ee(e,t);if(!n)return`${e.displayLabel||e.label}-${ee(e,t)}`;let r=Fe(n),i=n.displayOffset+t;return`${n.displayLabel}-${ee(r,i)}`}function tn(e,t,n){return Math.max(t,Math.min(n,e))}function nn(e){return tn(e,0,1)}function Be(e){let t=nn(e);return t*t*(3-2*t)}var no=Math.PI/180;function F(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function me(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}var J=Math.PI*2;function Q(e){return Number.isFinite(e.x)&&Number.isFinite(e.y)}function on(e,t,n){let o=t-e;if(n){for(;o<0;)o+=J;for(;o>=J;)o-=J}else{for(;o>0;)o-=J;for(;o<=-J;)o+=J}return o}function rn(e){return e.end}function ge(e){if(e.version!==1||e.closed!==!0||!Q(e.start)||!Array.isArray(e.segments)||e.segments.length<2||e.segments.length>512)return!1;let t=e.start;for(let n of e.segments){if(!n||!Q(n.end))return!1;if(n.kind==="line"){if(F(t,n.end)<=1e-9)return!1}else if(n.kind==="bezier"){if(!Q(n.control1)||!Q(n.control2)||F(t,n.end)<=1e-9)return!1}else if(n.kind==="arc"){if(!Q(n.center)||!Number.isFinite(n.radius)||n.radius<=1e-6||Math.abs(F(t,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||Math.abs(F(n.end,n.center)-n.radius)>Math.max(1e-4,n.radius*1e-4)||F(t,n.end)<=1e-9)return!1}else return!1;t=n.end}return F(t,e.start)<=1e-4}function sn(e,t,n){let o=1-n;return{x:o**3*e.x+3*o**2*n*t.control1.x+3*o*n**2*t.control2.x+n**3*t.end.x,y:o**3*e.y+3*o**2*n*t.control1.y+3*o*n**2*t.control2.y+n**3*t.end.y}}function cn(e,t=2){if(!ge(e))throw new Error("Section outline path is invalid");let n=Math.max(.25,t),o=[{...e.start}],r=e.start;for(let i of e.segments){if(i.kind==="line")o.push({...i.end});else if(i.kind==="arc"){let s=Math.atan2(r.y-i.center.y,r.x-i.center.x),u=Math.atan2(i.end.y-i.center.y,i.end.x-i.center.x),l=on(s,u,i.clockwise),b=Math.max(2,Math.ceil(Math.abs(l)*i.radius/n));for(let c=1;c<=b;c+=1){let p=s+l*c/b;o.push({x:i.center.x+Math.cos(p)*i.radius,y:i.center.y+Math.sin(p)*i.radius})}}else{let s=F(r,i.control1)+F(i.control1,i.control2)+F(i.control2,i.end),u=Math.max(2,Math.ceil(s/n));for(let l=1;l<=u;l+=1)o.push(sn(r,i,l/u))}r=i.end}return F(o[o.length-1],o[0])<=1e-4&&o.pop(),o}function an(e,t,n){return He(e,r=>({x:r.x+t,y:r.y+n}))}function He(e,t,n=1,o=!1){return{...e,start:t(e.start),segments:e.segments.map(r=>r.kind==="line"?{...r,end:t(r.end)}:r.kind==="arc"?{...r,center:t(r.center),radius:r.radius*Math.abs(n),clockwise:o?!r.clockwise:r.clockwise,end:t(r.end)}:{...r,control1:t(r.control1),control2:t(r.control2),end:t(r.end)})}}function ln(e){return e.map(t=>t===0?0:-t)}var Ve=45,ye=150,un=60;function ze(e){let t=Ve/100;if(e<=t)return ye;let n=Math.min(1,(e-t)/(1-t));return ye-n*(ye-un)}var Ge=.5523;function Ue(e,t){return Math.abs(e.x-t.x)<=1e-6&&Math.abs(e.y-t.y)<=1e-6}function fn(e){let t=[],n=[];for(e.forEach((o,r)=>{Q(o)&&(t.length&&Ue(t[t.length-1],o)||(t.push({x:o.x,y:o.y}),n.push(r)))});t.length>1&&Ue(t[0],t[t.length-1]);)t.pop(),n.pop();return{points:t,sourceIndex:n}}function dn(e,t,n){return We(e,{cornerSmoothing:t,...n})}var $e=.5,pn=4/3;function hn(e,t,n){let o=t.x-e.x,r=t.y-e.y,i=Math.hypot(o,r);if(i<=1e-9)return{kind:"line",end:{...t}};let s=-r/i,u=o/i,l=n*pn;return{kind:"bezier",control1:{x:e.x+o/3+s*l,y:e.y+r/3+u*l},control2:{x:e.x+o*2/3+s*l,y:e.y+r*2/3+u*l},end:{...t}}}function We(e,t){let{points:n,sourceIndex:o}=fn(e),r=n.length;if(r<3)return null;let i=Math.min(100,Math.max(0,t.cornerSmoothing??0))/100,s=t.edgeCurvature,u=new Array(r).fill(0);if(s?.length)for(let g=0;g<r;g+=1){let w=s[o[g]];u[g]=Number.isFinite(w)?Math.min(100,Math.max(-100,w))/100:0}let l=u.some(g=>Math.abs(g)>1e-6);if(i<=0&&!l)return null;let b=t.wideAngleThresholdDeg??ze(i),c=[];for(let g=0;g<r;g+=1)c[g]=F(n[g],n[(g+1)%r]);let p=new Array(r).fill(0);for(let g=0;g<r;g+=1){let w=n[(g-1+r)%r],a=n[g],m=n[(g+1)%r],S={x:w.x-a.x,y:w.y-a.y},x={x:m.x-a.x,y:m.y-a.y},C=Math.hypot(S.x,S.y),B=Math.hypot(x.x,x.y);if(C<=1e-9||B<=1e-9)continue;let A=Math.min(1,Math.max(-1,(S.x*x.x+S.y*x.y)/(C*B))),y=Math.acos(A)*180/Math.PI;if(y<b)continue;let M=Be((y-b)/(180-b));p[g]=i*M*.5*Math.min(C,B)}for(let g=0;g<r;g+=1){let w=(g+1)%r,a=p[g]+p[w];if(a>c[g]&&a>1e-9){let m=c[g]/a;p[g]*=m,p[w]*=m}}let d=new Array(r),f=new Array(r);for(let g=0;g<r;g+=1){let w=n[(g-1+r)%r],a=n[g],m=n[(g+1)%r];if(p[g]<=1e-6){d[g]={...a},f[g]={...a};continue}let S=F(a,w)||1,x=F(a,m)||1;d[g]={x:a.x+(w.x-a.x)/S*p[g],y:a.y+(w.y-a.y)/S*p[g]},f[g]={x:a.x+(m.x-a.x)/x*p[g],y:a.y+(m.y-a.y)/x*p[g]}}if(p.every(g=>g<=1e-6)&&!l)return null;let h=[],R={...f[0]},I=R,O=(g,w)=>{if(F(I,g)<=1e-9)return;let a=u[w];Math.abs(a)>1e-6?h.push(hn(I,g,a*$e*c[w])):h.push({kind:"line",end:{...g}}),I=g};for(let g=1;g<=r;g+=1){let w=g%r,a=n[w];O(d[w],(g-1)%r),p[w]>1e-6&&F(d[w],f[w])>1e-9&&(h.push({kind:"bezier",control1:me(d[w],a,Ge),control2:me(f[w],a,Ge),end:{...f[w]}}),I=f[w])}if(!h.length)return null;let k=h[h.length-1];F(k.end,R)>1e-9&&(k.kind==="line"?k.end={...R}:h.push({kind:"line",end:{...R}}));let E={version:1,closed:!0,start:R,segments:h};return ge(E)?E:null}function bn(e){let t=[],n=e.start;for(let r of e.segments)t.push(n),n=r.end;let o=[];for(let r=e.segments.length-1;r>=0;r-=1){let i=e.segments[r],s=t[r];i.kind==="line"?o.push({kind:"line",end:{...s}}):i.kind==="arc"?o.push({kind:"arc",center:{...i.center},radius:i.radius,clockwise:!i.clockwise,end:{...s}}):o.push({kind:"bezier",control1:{...i.control2},control2:{...i.control1},end:{...s}})}return{version:1,closed:!0,start:{...e.start},segments:o}}function Ke(e,t){let n=1-t,o=n*n*n,r=3*n*n*t,i=3*n*t*t,s=t*t*t;return{x:o*e.start.x+r*e.control1.x+i*e.control2.x+s*e.end.x,y:o*e.start.y+r*e.control1.y+i*e.control2.y+s*e.end.y}}function Xe(e,t,n=192){if(!Number.isInteger(t)||t<1)throw new Error("Path point count must be a positive integer");if(t===1)return[Ke(e,.5)];let o=Array.from({length:n+1},(l,b)=>Ke(e,b/n)),r=new Float64Array(o.length);for(let l=1;l<o.length;l+=1){let b=o[l].x-o[l-1].x,c=o[l].y-o[l-1].y;r[l]=r[l-1]+Math.hypot(b,c)}let i=r[r.length-1];if(i<=1e-9)return Array.from({length:t},()=>({...e.start}));let s=[],u=1;for(let l=0;l<t;l+=1){let b=i*l/(t-1);for(;u<r.length-1&&r[u]<b;)u+=1;let c=r[u-1],p=r[u],d=p===c?0:(b-c)/(p-c);s.push({x:o[u-1].x+(o[u].x-o[u-1].x)*d,y:o[u-1].y+(o[u].y-o[u-1].y)*d})}return s}function Ye(e,t){return`${e.label}-${t+1}`}function mn(e,t,n){return e?.direction==="anticlockwise"?Math.max(0,t-1-n):n}function yn(e,t){let n=e.chairNumbering,o=n?.start??1,r=mn(n,Math.max(0,Math.round(e.seatCount)),t);return n?.format==="letter"?q(Math.max(1,o)+r):String(o+r)}function qe(e,t){let n=yn(e,t);return(e.chairNumbering?.format??"table-number")==="table-number"?`${e.displayLabel??e.label}-${n}`:n}var Qe=.02291666666666667,uo=1/Qe,gn=58,Me=gn*Qe;var xn=3,Je=0,xe=120,Sn=0,Mn=45,wn=7;function Se(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function vn(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=wn?e:xn}function Ze(e,t={}){let n=Se(t.floorBaseHeightM,Je,xe,0),o=Math.min(xe,n+vn(e.elevation)*Me),r=e.height===void 0?o:Se(e.height,Je,xe,o),i=Se(e.rake,Sn,Mn,0);return{height:r,rake:i}}function we(e){return e?e.accessibility?.length?e.wheelchairSpaceType&&!e.accessibility.includes("wheelchair")?["wheelchair",...e.accessibility]:e.accessibility:e.wheelchairSpaceType?["wheelchair"]:e.accessible?["wheelchair"]:[]:[]}var se=Math.PI/180;var te=16;function Ie(e,t,n,o){let r=n*se,i=Math.cos(r),s=Math.sin(r);return{x:o.x+e*i-t*s,y:o.y+e*s+t*i}}function ot(e){let{seatCount:t,seatSpacing:n,curve:o,rotation:r,origin:i}=e,s=[];if(e.path)return Xe(e.path,t);if(t<=1)return t===1&&s.push({x:i.x,y:i.y}),s;if(o===0){for(let b=0;b<t;b++)s.push(Ie(b*n,0,r,i));return s}let u=o/(t-1)*se,l=n/(2*Math.sin(Math.abs(u)/2));for(let b=0;b<t;b++){let c=b*u,p=l*Math.sin(c),d=-l+l*Math.cos(c);s.push(Ie(p,d,r,i))}return s}function rt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function In(e,t){let n=rt(e);return ot(e).map((o,r)=>{let i=n.get(r),s=we(i),u=he(e,r,i),l={...e.commercial,...i?.commercial};return{index:r,x:o.x+(i?.dx??0),y:o.y+(i?.dy??0),label:u,displayLabel:be(e,r,t,i),categoryKey:i?.categoryKey??e.categoryKey,skipped:!!i?.skip,accessible:s.length>0,accessibility:s,wheelchairSpaceType:i?.wheelchairSpaceType,commercial:Object.values(l).some(b=>b!==void 0&&b!==!1&&b!=="")?l:void 0,glyph:i?.glyph,viewUrl:i?.viewFromSeatUrl??e.viewFromSeatUrl,viewMeta:i?.viewFromSeatUrl?i.viewFromSeatMeta:e.viewFromSeatMeta,labelStyle:i?.labelStyle??e.seatLabelStyle}})}function it(e){let t=[];for(let n of In(e))n.skipped||t.push({id:`${e.id}:${n.index}`,label:n.label,displayLabel:n.displayLabel===n.label?void 0:n.displayLabel,x:n.x,y:n.y,rowId:e.id,categoryKey:n.categoryKey,accessible:n.accessible||void 0,accessibility:n.accessibility.length?n.accessibility:void 0,wheelchairSpaceType:n.wheelchairSpaceType,commercial:n.commercial,glyph:n.glyph,viewUrl:n.viewUrl,viewMeta:n.viewMeta,labelStyle:n.labelStyle});return t}function Pn(e){if(e.seatCountsBySide)return{...e.seatCountsBySide};let t=e.sides&&e.sides.length?e.sides:["top","bottom"],n=["top","bottom","left","right"].filter(i=>t.includes(i)),o={top:0,bottom:0,left:0,right:0};if(!n.length)return o;let r=Math.max(0,Math.round(e.seatCount));for(let i=0;i<r;i++)o[n[i%n.length]]+=1;return o}function An(e){let t=[],n=Math.max(0,Math.round(e.seatCount));if(n===0)return t;let o=new Map((e.overrides??[]).map(c=>[c.index,c])),r=(c,p,d,f)=>{let h=o.get(c),R=we(h),I=h?.label??Ye(e,c);return{index:c,label:I,displayLabel:h?.displayLabel??qe(e,c),x:p+(h?.dx??0),y:d+(h?.dy??0),categoryKey:h?.categoryKey??e.categoryKey,skipped:!!h?.skip,accessible:R.length>0,accessibility:R,wheelchairSpaceType:h?.wheelchairSpaceType,commercial:h?.commercial,glyph:h?.glyph,viewUrl:h?.viewFromSeatUrl,viewMeta:h?.viewFromSeatUrl?h.viewFromSeatMeta:void 0,labelStyle:h?.labelStyle,...f?{side:f}:{}}};if(e.shape==="round"){let c=(e.radius??40)+te,p=e.rotation*se,d=Math.max(0,Math.min(360,e.seatArc??360));if(d>=360||n===1){for(let I=0;I<n;I++){let O=p+I/n*2*Math.PI;t.push(r(I,e.center.x+c*Math.cos(O),e.center.y+c*Math.sin(O)))}return t}let f=d*se,h=(2*Math.PI-f)/2,R=p+h;for(let I=0;I<n;I++){let O=R+I/(n-1)*f;t.push(r(I,e.center.x+c*Math.cos(O),e.center.y+c*Math.sin(O)))}return t}let i=e.width??80,s=e.height??50,u=Pn(e),l=["top","bottom","left","right"],b=0;for(let c of l){let p=u[c];for(let d=0;d<p;d++){let f,h;c==="top"?(f=-i/2+(d+.5)*i/p,h=-s/2-te):c==="bottom"?(f=-i/2+(d+.5)*i/p,h=s/2+te):c==="left"?(f=-i/2-te,h=-s/2+(d+.5)*s/p):(f=i/2+te,h=-s/2+(d+.5)*s/p);let R=Ie(f,h,e.rotation,e.center);t.push(r(b++,R.x,R.y,c))}}return t}function st(e){return An(e).filter(t=>!t.skipped).map(t=>({id:`${e.id}:${t.index}`,label:t.label,...t.displayLabel!==t.label?{displayLabel:t.displayLabel}:{},x:t.x,y:t.y,rowId:e.id,categoryKey:t.categoryKey,...t.accessible?{accessible:!0}:{},...t.accessibility.length?{accessibility:t.accessibility}:{},...t.wheelchairSpaceType?{wheelchairSpaceType:t.wheelchairSpaceType}:{},...t.commercial?{commercial:t.commercial}:{},...t.glyph?{glyph:t.glyph}:{},...t.viewUrl?{viewUrl:t.viewUrl}:{},...t.viewUrl&&t.viewMeta?{viewMeta:t.viewMeta}:{},...t.labelStyle?{labelStyle:t.labelStyle}:{}}))}function ct(e){return[{id:`${e.id}:0`,label:e.label,...e.displayLabel&&e.displayLabel!==e.label?{displayLabel:e.displayLabel}:{},x:e.center.x,y:e.center.y,rowId:e.id,categoryKey:e.categoryKey,kind:"booth",...e.commercial?.note?{commercial:{note:e.commercial.note}}:{}}]}function et(e,t){let n=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){let i=t[o].x,s=t[o].y,u=t[r].x,l=t[r].y;s>e.y!=l>e.y&&e.x<(u-i)*(e.y-s)/(l-s)+i&&(n=!n)}return n}function Rn(e,t){return t.some((n,o)=>{let r=t[(o+1)%t.length],i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y);if(Math.abs(i)>1e-7)return!1;let s=(e.x-n.x)*(r.x-n.x)+(e.y-n.y)*(r.y-n.y),u=(r.x-n.x)**2+(r.y-n.y)**2;return s>=-1e-7&&s<=u+1e-7})}function Pe(e){return Array.isArray(e)?e.filter(t=>Array.isArray(t)&&t.length>=3):[]}function tt(e,t,n){return et(e,t)&&!Pe(n).some(o=>et(e,o)||Rn(e,o))}function ve(e){if(!e.length)return{x:0,y:0};let t=0,n=0;for(let o of e)t+=o.x,n+=o.y;return{x:t/e.length,y:n/e.length}}function Cn(e){switch(e.type){case"row":{let t=ot(e),n=rt(e),o=0,r=0,i=0;for(let s=0;s<t.length;s++){let u=n.get(s);u?.skip||(o+=t[s].x+(u?.dx??0),r+=t[s].y+(u?.dy??0),i++)}return i?{x:o/i,y:r/i}:{x:e.origin.x,y:e.origin.y}}case"table":case"booth":return{x:e.center.x,y:e.center.y};case"gaArea":return ve(e.points);case"section":return ve(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?ve(e.points):e.x!=null&&e.y!=null&&e.width!=null&&e.height!=null?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:e.x??0,y:e.y??0};case"decorImage":return{x:e.x+e.width/2,y:e.y+e.height/2}}}function nt(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function En(e,t){if(e.type!=="gaArea"||!nt(e.points,t.outline))return!1;let n=Pe(e.holes),o=Pe(t.holes);return n.length===o.length&&n.every((r,i)=>nt(r,o[i]))}function Ae(e,t,n=e.filter(r=>r.type==="section"),o=Cn(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(En(t,s)||tt(o,s.outline,s.holes))):void 0)??n.find(s=>tt(o,s.outline,s.holes))}function at(e){return e.floors&&e.floors.length?e.floors:[{id:"floor-0",name:"Main",objects:e.objects,focalPoint:e.focalPoint,referenceImage:e.referenceImage,backgroundImage:e.backgroundImage}]}function ce(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}var lt="__sl_ga__";var On=lt,Re=1e5;function Tn(e,t){return`${On}${encodeURIComponent(e)}__${t+1}`}function _n(e){let t=e.inventorySegments;if(t===void 0)return!0;if(!Array.isArray(t)||t.length<1||t.length>256)return!1;let n=0,o=new Map;for(let r of t){if(!r||typeof r.sourceAreaId!="string"||!r.sourceAreaId.trim()||r.sourceAreaId.length>160||!Number.isInteger(r.startIndex)||r.startIndex<0||!Number.isInteger(r.count)||r.count<1||r.startIndex+r.count>Re||(n+=r.count,n>Re))return!1;let i=o.get(r.sourceAreaId)??[],s=r.startIndex+r.count;if(i.some(u=>r.startIndex<u.end&&s>u.start))return!1;i.push({start:r.startIndex,end:s}),o.set(r.sourceAreaId,i)}return n===e.capacity}function Nn(e){let t=Math.min(Re,Math.max(0,Math.floor(e.capacity)));return e.inventorySegments===void 0?t?[{sourceAreaId:e.id,startIndex:0,count:t}]:[]:_n(e)?e.inventorySegments.map(n=>({...n})):[]}var kn=100,wo=`An area sold to one party holds at most ${kn} guests.`;function Ln(e){return e.variableOccupancy?"variable":e.bookAsWhole?"whole":null}function ut(e){return Dn(e,2)}function Dn(e,t){return t===2&&Ln(e)&&e.inventorySegments===void 0?e.label.trim()?[e.label]:[]:Nn(e).flatMap(n=>Array.from({length:n.count},(o,r)=>Tn(n.sourceAreaId,n.startIndex+r)))}var ae="__ungrouped__";function jn(e){return e.type==="row"?it(e).map(t=>t.label):e.type==="table"?st(e).map(t=>t.label):e.type==="booth"?ct(e).map(t=>t.label):e.type==="gaArea"?ut(e):[]}function ft(e){return e.type==="row"||e.type==="table"||e.type==="booth"||e.type==="gaArea"}function Fn(e){return e.displayLabel||e.label||"Section"}function Ce(e){let t=new Map;for(let n of ce(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id;t.has(o)||t.set(o,{id:o,label:Fn(n),zone:n.zone})}return t}function Bn(e){let t=new Map;for(let n of ce(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id,r=n.entrance?.trim();r&&!t.has(o)&&t.set(o,r)}return t}function Gn(e){let t=new Map;for(let[n,o]of Ce(e))t.set(n,o.label);return t}function dt(e){let t=new Map;for(let n of at(e)){let o=n.objects.filter(r=>r.type==="section");if(o.length)for(let r of n.objects){if(!ft(r))continue;let i=Ae(n.objects,r,o);i&&t.set(r.id,i.logicalSectionId??i.id)}}return t}function pt(e,t){let n=ce(e),o=n.filter(u=>u.type==="section"),r=new Map;for(let[u,l]of Ce(e))r.set(u,{id:u,label:l.label,zone:l.zone,seatCount:0,objectIds:[],seatLabels:[]});let i={id:ae,label:"Other seats",seatCount:0,objectIds:[],seatLabels:[]},s=new Map;for(let u of n){if(!ft(u))continue;let l=jn(u);if(l.length===0)continue;let b;if(t)b=t.get(u.id);else{let p=Ae(n,u,o);b=p?p.logicalSectionId??p.id:void 0}let c=b?r.get(b):i;c.seatCount+=l.length,c.objectIds.push(u.id),c.seatLabels.push(...l),s.set(u.id,c.id)}return{sections:[...r.values()],ungrouped:i.objectIds.length?i:null,objectToSection:s}}function Un(e){return pt(e,null)}function ht(e){return pt(e,dt(e))}function bt(e,t){return t.has(e.id)||!!e.logicalSectionId&&t.has(e.logicalSectionId)||!!e.zone&&t.has(e.zone)}function mt(e,t){let n=new Set;if(!t.size)return n;let{sections:o,ungrouped:r,objectToSection:i}=ht(e),s=new Set,u=new Map(o.map(b=>[b.id,b.zone]));for(let b of o){let c=u.get(b.id);(t.has(b.id)||c&&t.has(c))&&s.add(b.id)}let l=!!r&&t.has(ae);for(let[b,c]of i)(s.has(c)||l&&c===ae)&&n.add(b);return n}function Hn(e,t){if(!t.size)return e;let n=mt(e,t),o=t instanceof Set?t:new Set(t),r=s=>!(n.has(s.id)||s.type==="section"&&bt(s,o));if(e.floors&&e.floors.length){let s=!1,u=e.floors.map(l=>{let b=l.objects.filter(r);return b.length!==l.objects.length&&(s=!0),b.length===l.objects.length?l:{...l,objects:b}});return s?{...e,floors:u,objects:u[0].objects}:e}let i=e.objects.filter(r);return i.length===e.objects.length?e:{...e,objects:i}}0&&(module.exports={DEFAULT_SECTION_CORNER_SMOOTHING,MAX_EDGE_SAGITTA_RATIO,TIER_HEIGHT_M,UNGROUPED_ID,applyHidden,arcLevelAt,bearingDeg,buildSectionRake,computeSections,computeSectionsPerFloor,cornerSmoothingThresholdDeg,distanceToPolyline,fitBowlProfile,fitCircle,hiddenObjectIds,indexLabel,isSectionHidden,logicalNumberingRow,reflectEdgeCurvature,relabelRows,resolveSection,reverseSectionOutlinePath,sampleSectionOutlinePath,seatConfidenceDisclosure,seatDisplayLabel,seatInventoryLabel,seatLabelPart,sectionCornerSmoothingPath,sectionEntrancesById,sectionGeometry,sectionIdentitiesById,sectionLabelsById,sectionOutlinePathFrom,sectionOwnersByObject,sectionPathSegmentEnd,toBijectiveBase,toLetters,toRoman,transformSectionOutlinePath,translateSectionOutlinePath,validSectionOutlinePath});
@@ -1,9 +1,9 @@
1
- import { P as Point, R as RowObject, j as SeatOverride } from '../../types-DL7qIUrD.cjs';
2
- export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as reflectEdgeCurvature, a as relabelRows, b as reverseSectionOutlinePath, s as sampleSectionOutlinePath, d as sectionCornerSmoothingPath, e as sectionOutlinePathFrom, f as sectionPathSegmentEnd, t as toBijectiveBase, g as toLetters, h as toRoman, j as transformSectionOutlinePath, k as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-2A31f781.cjs';
1
+ import { P as Point, R as RowObject, j as SeatOverride } from '../../types-CB1llwVg.cjs';
2
+ export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as reflectEdgeCurvature, a as relabelRows, b as reverseSectionOutlinePath, s as sampleSectionOutlinePath, d as sectionCornerSmoothingPath, e as sectionOutlinePathFrom, f as sectionPathSegmentEnd, t as toBijectiveBase, g as toLetters, h as toRoman, j as transformSectionOutlinePath, k as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-B-FQz2d2.cjs';
3
3
  export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.cjs';
4
- import { S as SegmentedRowPlacement } from '../../segmentedRowModel-Ddx5ol8T.cjs';
5
- export { A as AvailabilityRule, S as SectionIdentity, a as SectionMembership, b as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, c as applyHidden, d as computeSections, e as computeSectionsPerFloor, h as hiddenObjectIds, i as isSectionHidden, s as sectionEntrancesById, f as sectionGeometry, g as sectionIdentitiesById, j as sectionLabelsById, k as sectionOwnersByObject } from '../../sections-CempT5a0.cjs';
6
- import { E as ExpandedSeat } from '../../renderer-D6ggv3bV.cjs';
4
+ import { S as SegmentedRowPlacement } from '../../segmentedRowModel-Dy_zNI1E.cjs';
5
+ export { A as AvailabilityRule, S as SectionIdentity, a as SectionMembership, b as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, c as applyHidden, d as computeSections, e as computeSectionsPerFloor, h as hiddenObjectIds, i as isSectionHidden, s as sectionEntrancesById, f as sectionGeometry, g as sectionIdentitiesById, j as sectionLabelsById, k as sectionOwnersByObject } from '../../sections-Cr6f5csG.cjs';
6
+ import { E as ExpandedSeat } from '../../renderer-BIR1jJrt.cjs';
7
7
 
8
8
  /**
9
9
  * THE bowl resolver — whether a floor's stands wrap a centre, and the smooth
@@ -1,9 +1,9 @@
1
- import { P as Point, R as RowObject, j as SeatOverride } from '../../types-DL7qIUrD.js';
2
- export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as reflectEdgeCurvature, a as relabelRows, b as reverseSectionOutlinePath, s as sampleSectionOutlinePath, d as sectionCornerSmoothingPath, e as sectionOutlinePathFrom, f as sectionPathSegmentEnd, t as toBijectiveBase, g as toLetters, h as toRoman, j as transformSectionOutlinePath, k as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-CDKZ9TO1.js';
1
+ import { P as Point, R as RowObject, j as SeatOverride } from '../../types-CB1llwVg.js';
2
+ export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as reflectEdgeCurvature, a as relabelRows, b as reverseSectionOutlinePath, s as sampleSectionOutlinePath, d as sectionCornerSmoothingPath, e as sectionOutlinePathFrom, f as sectionPathSegmentEnd, t as toBijectiveBase, g as toLetters, h as toRoman, j as transformSectionOutlinePath, k as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-DqyXzIgw.js';
3
3
  export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.js';
4
- import { S as SegmentedRowPlacement } from '../../segmentedRowModel-HwY4XuYa.js';
5
- export { A as AvailabilityRule, S as SectionIdentity, a as SectionMembership, b as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, c as applyHidden, d as computeSections, e as computeSectionsPerFloor, h as hiddenObjectIds, i as isSectionHidden, s as sectionEntrancesById, f as sectionGeometry, g as sectionIdentitiesById, j as sectionLabelsById, k as sectionOwnersByObject } from '../../sections-lpdfwSdO.js';
6
- import { E as ExpandedSeat } from '../../renderer-CdJx5l3B.js';
4
+ import { S as SegmentedRowPlacement } from '../../segmentedRowModel-BSXPftwU.js';
5
+ export { A as AvailabilityRule, S as SectionIdentity, a as SectionMembership, b as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, c as applyHidden, d as computeSections, e as computeSectionsPerFloor, h as hiddenObjectIds, i as isSectionHidden, s as sectionEntrancesById, f as sectionGeometry, g as sectionIdentitiesById, j as sectionLabelsById, k as sectionOwnersByObject } from '../../sections-dqlb491l.js';
6
+ import { E as ExpandedSeat } from '../../renderer-CiPst9uA.js';
7
7
 
8
8
  /**
9
9
  * THE bowl resolver — whether a floor's stands wrap a centre, and the smooth
@@ -1 +1 @@
1
- import{a as K}from"../../chunk-Y2J55NLS.js";import{a as L,b as M,c as N,d as O}from"../../chunk-GTRYL7YV.js";import{q as A,r as B,s as C,t as D,u as E,v as F,w as G,x as H,y as I,z as J}from"../../chunk-COECA63Q.js";import{O as o,P as r,Q as e,R as f,S as m,T as p,U as t,V as x,W as a,X as b,Y as c,Z as d,ea as u,oa as v,pa as w,qa as y,ra as z}from"../../chunk-EIV3CAGV.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s}from"../../chunk-KTMZ3QAO.js";import"../../chunk-CRCGO52K.js";export{t as DEFAULT_SECTION_CORNER_SMOOTHING,b as MAX_EDGE_SAGITTA_RATIO,u as TIER_HEIGHT_M,A as UNGROUPED_ID,J as applyHidden,O as arcLevelAt,M as bearingDeg,L as buildSectionRake,F as computeSections,G as computeSectionsPerFloor,x as cornerSmoothingThresholdDeg,w as distanceToPolyline,N as fitBowlProfile,y as fitCircle,I as hiddenObjectIds,h as indexLabel,H as isSectionHidden,n as logicalNumberingRow,p as reflectEdgeCurvature,k as relabelRows,z as resolveSection,d as reverseSectionOutlinePath,e as sampleSectionOutlinePath,K as seatConfidenceDisclosure,s as seatDisplayLabel,q as seatInventoryLabel,l as seatLabelPart,a as sectionCornerSmoothingPath,C as sectionEntrancesById,v as sectionGeometry,B as sectionIdentitiesById,D as sectionLabelsById,c as sectionOutlinePathFrom,E as sectionOwnersByObject,o as sectionPathSegmentEnd,g as toBijectiveBase,i as toLetters,j as toRoman,m as transformSectionOutlinePath,f as translateSectionOutlinePath,r as validSectionOutlinePath};
1
+ import{a as K}from"../../chunk-Y2J55NLS.js";import{a as L,b as M,c as N,d as O}from"../../chunk-O4ZAGGMP.js";import{q as A,r as B,s as C,t as D,u as E,v as F,w as G,x as H,y as I,z as J}from"../../chunk-UKODEMIM.js";import{P as o,Q as r,R as e,S as f,T as m,U as p,V as t,W as x,X as a,Y as b,Z as c,_ as d,ma as u,va as v,wa as w,xa as y,ya as z}from"../../chunk-HKVCBUON.js";import{a as g,b as h,c as i,d as j,e as k,f as l,g as n,h as q,i as s}from"../../chunk-KTMZ3QAO.js";import"../../chunk-CRCGO52K.js";export{t as DEFAULT_SECTION_CORNER_SMOOTHING,b as MAX_EDGE_SAGITTA_RATIO,u as TIER_HEIGHT_M,A as UNGROUPED_ID,J as applyHidden,O as arcLevelAt,M as bearingDeg,L as buildSectionRake,F as computeSections,G as computeSectionsPerFloor,x as cornerSmoothingThresholdDeg,w as distanceToPolyline,N as fitBowlProfile,y as fitCircle,I as hiddenObjectIds,h as indexLabel,H as isSectionHidden,n as logicalNumberingRow,p as reflectEdgeCurvature,k as relabelRows,z as resolveSection,d as reverseSectionOutlinePath,e as sampleSectionOutlinePath,K as seatConfidenceDisclosure,s as seatDisplayLabel,q as seatInventoryLabel,l as seatLabelPart,a as sectionCornerSmoothingPath,C as sectionEntrancesById,v as sectionGeometry,B as sectionIdentitiesById,D as sectionLabelsById,c as sectionOutlinePathFrom,E as sectionOwnersByObject,o as sectionPathSegmentEnd,g as toBijectiveBase,i as toLetters,j as toRoman,m as transformSectionOutlinePath,f as translateSectionOutlinePath,r as validSectionOutlinePath};