@seatlayer/core 0.97.0 → 0.99.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 (80) hide show
  1. package/dist/{categoryInventory-4XH7dMDH.d.ts → categoryInventory-DdJdJ4Og.d.ts} +1 -1
  2. package/dist/{categoryInventory-C-bfH2av.d.cts → categoryInventory-DuOez0-4.d.cts} +1 -1
  3. package/dist/{chunk-M5VINTGE.js → chunk-23OTKCJU.js} +1 -1
  4. package/dist/{chunk-CUACREZL.js → chunk-CTIGUXXK.js} +1 -1
  5. package/dist/{chunk-P4C24CIZ.js → chunk-D723OZEY.js} +1 -1
  6. package/dist/chunk-FYJJSWEM.js +1 -0
  7. package/dist/chunk-GLGXP5I7.js +1 -0
  8. package/dist/{chunk-FLMKHAUT.js → chunk-HO4MFTVX.js} +1 -1
  9. package/dist/chunk-HYEZPOZU.js +1 -0
  10. package/dist/chunk-K22SISYC.js +1 -0
  11. package/dist/{chunk-YPESNMTC.js → chunk-KFVUBZMK.js} +1 -1
  12. package/dist/{chunk-OLGPAFXW.js → chunk-L34T3APU.js} +1 -1
  13. package/dist/{chunk-IW7QZIMF.js → chunk-N4J4CT6P.js} +1 -1
  14. package/dist/{chunk-2P72QUJR.js → chunk-UIMDB6GZ.js} +1 -1
  15. package/dist/chunk-UISTXRO5.js +1 -0
  16. package/dist/{chunk-ASIIXY5M.js → chunk-VWT44HBR.js} +1 -1
  17. package/dist/core/chart-ops/index.cjs +1 -1
  18. package/dist/core/chart-ops/index.d.cts +6 -4
  19. package/dist/core/chart-ops/index.d.ts +6 -4
  20. package/dist/core/chart-ops/index.js +1 -1
  21. package/dist/core/inventory/index.cjs +1 -1
  22. package/dist/core/inventory/index.d.cts +4 -4
  23. package/dist/core/inventory/index.d.ts +4 -4
  24. package/dist/core/inventory/index.js +1 -1
  25. package/dist/core/layout/index.cjs +1 -1
  26. package/dist/core/layout/index.d.cts +5 -5
  27. package/dist/core/layout/index.d.ts +5 -5
  28. package/dist/core/layout/index.js +1 -1
  29. package/dist/core/quality/index.d.cts +3 -3
  30. package/dist/core/quality/index.d.ts +3 -3
  31. package/dist/core/quality/index.js +1 -1
  32. package/dist/core/render-assets/index.d.cts +2 -2
  33. package/dist/core/render-assets/index.d.ts +2 -2
  34. package/dist/core/seatConfidence.d.cts +1 -1
  35. package/dist/core/seatConfidence.d.ts +1 -1
  36. package/dist/core/sections/index.cjs +1 -1
  37. package/dist/core/sections/index.d.cts +5 -5
  38. package/dist/core/sections/index.d.ts +5 -5
  39. package/dist/core/sections/index.js +1 -1
  40. package/dist/{eventConfigurations-BEyHDxBT.d.ts → eventConfigurations-BISNREZL.d.ts} +1 -1
  41. package/dist/{eventConfigurations-BE0rFmbQ.d.cts → eventConfigurations-DYn5XP3J.d.cts} +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.d.cts +13 -13
  44. package/dist/index.d.ts +13 -13
  45. package/dist/index.js +1 -1
  46. package/dist/{labeling-HWSKKrX8.d.ts → labeling-CzuSxAkr.d.ts} +1 -1
  47. package/dist/{labeling-SURRJh5u.d.cts → labeling-owTTG6e0.d.cts} +1 -1
  48. package/dist/{openPanorama-6FMXAJ6O.js → openPanorama-VD6PE3YZ.js} +2 -2
  49. package/dist/{renderedQuality-CZNfpB1H.d.ts → renderedQuality-BMSbVkwu.d.ts} +1 -1
  50. package/dist/{renderedQuality-QWHMvOej.d.cts → renderedQuality-Bl1Kq_XO.d.cts} +1 -1
  51. package/dist/{renderer-DEnthjgs.d.cts → renderer-Ccv8ZDZS.d.cts} +1 -1
  52. package/dist/{renderer-CuXYGgR3.d.ts → renderer-njHDbIqI.d.ts} +1 -1
  53. package/dist/{seatTypeIcons-BAyWebjw.d.cts → seatTypeIcons-QwEebl3k.d.cts} +1 -1
  54. package/dist/{seatTypeIcons-CqLiEH9C.d.ts → seatTypeIcons-dy3XQVWN.d.ts} +1 -1
  55. package/dist/{sections-DOk8zxm5.d.ts → sections-C8VTe6BN.d.ts} +1 -1
  56. package/dist/{sections-BlCiPWJJ.d.cts → sections-DSIfnBJY.d.cts} +1 -1
  57. package/dist/{segmentedRowModel-BbHdWqJy.d.cts → segmentedRowModel-CDvvJJ4-.d.cts} +1 -1
  58. package/dist/{segmentedRowModel-oVUtwW87.d.ts → segmentedRowModel-I8eYUQft.d.ts} +1 -1
  59. package/dist/{tableSizing-ExOrUwtX.d.ts → tableSizing-BLtQ-KV0.d.ts} +20 -13
  60. package/dist/{tableSizing-DaEXRHYs.d.cts → tableSizing-CB8g2Fs0.d.cts} +20 -13
  61. package/dist/{ticketRestrictions-BvG_INSV.d.cts → ticketRestrictions-BvlWLw10.d.cts} +2 -2
  62. package/dist/{ticketRestrictions-BHUMet7N.d.ts → ticketRestrictions-DUjN2bZn.d.ts} +2 -2
  63. package/dist/{types-BbqhOJ5L.d.ts → types-DWx32xXH.d.cts} +10 -1
  64. package/dist/{types-BbqhOJ5L.d.cts → types-DWx32xXH.d.ts} +10 -1
  65. package/dist/view3d/crossfade/panorama.cjs +1 -1
  66. package/dist/view3d/crossfade/panorama.d.cts +1 -1
  67. package/dist/view3d/crossfade/panorama.d.ts +1 -1
  68. package/dist/view3d/crossfade/panorama.js +1 -1
  69. package/dist/view3d/index.cjs +144 -46
  70. package/dist/view3d/index.d.cts +27 -4
  71. package/dist/view3d/index.d.ts +27 -4
  72. package/dist/view3d/index.js +142 -44
  73. package/dist/view3d/scene/scene.worker.cjs +1 -1
  74. package/dist/view3d/scene/scene.worker.js +1 -1
  75. package/package.json +1 -1
  76. package/dist/chunk-NGZXKXOY.js +0 -1
  77. package/dist/chunk-QEPYNCBJ.js +0 -1
  78. package/dist/chunk-SPM2LMKI.js +0 -1
  79. package/dist/chunk-VAI2VDQR.js +0 -1
  80. package/dist/chunk-Z43H6AWN.js +0 -1
@@ -1 +1 @@
1
- "use strict";var ae=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var yt=Object.prototype.hasOwnProperty;var xt=(e,t)=>{for(var n in t)ae(e,n,{get:t[n],enumerable:!0})},gt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mt(t))!yt.call(e,r)&&r!==n&&ae(e,r,{get:()=>t[r],enumerable:!(o=bt(t,r))||o.enumerable});return e};var St=e=>gt(ae({},"__esModule",{value:!0}),e);var _n={};xt(_n,{DEFAULT_SECTION_CORNER_SMOOTHING:()=>He,MAX_EDGE_SAGITTA_RATIO:()=>$e,TIER_HEIGHT_M:()=>Se,UNGROUPED_ID:()=>ce,applyHidden:()=>Tn,arcLevelAt:()=>Lt,bearingDeg:()=>_e,buildSectionRake:()=>Vt,computeSections:()=>On,computeSectionsPerFloor:()=>dt,cornerSmoothingThresholdDeg:()=>ze,distanceToPolyline:()=>ue,fitBowlProfile:()=>_t,fitCircle:()=>te,hiddenObjectIds:()=>ht,indexLabel:()=>ke,isSectionHidden:()=>pt,logicalNumberingRow:()=>Fe,relabelRows:()=>jt,resolveSection:()=>At,reverseSectionOutlinePath:()=>un,sampleSectionOutlinePath:()=>nn,seatConfidenceDisclosure:()=>Yt,seatDisplayLabel:()=>he,seatInventoryLabel:()=>pe,seatLabelPart:()=>Z,sectionCornerSmoothingPath:()=>cn,sectionGeometry:()=>Je,sectionIdentitiesById:()=>Ce,sectionLabelsById:()=>En,sectionOutlinePathFrom:()=>Ke,sectionOwnersByObject:()=>ut,sectionPathSegmentEnd:()=>en,toBijectiveBase:()=>fe,toLetters:()=>re,toRoman:()=>de,transformSectionOutlinePath:()=>Ve,translateSectionOutlinePath:()=>on,validSectionOutlinePath:()=>ye});module.exports=St(_n);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 ue(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 wt(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 le(e,t){let n=1/0;for(let o of Ee(e)){let r=ue(t,o.x,o.y);r<n&&(n=r)}for(let o of Ee(t)){let r=ue(e,o.x,o.y);r<n&&(n=r)}return n}function Mt(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 te(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let E of e)n+=E.x,o+=E.y;n/=t,o/=t;let r=0,i=0,s=0,u=0,l=0,b=0,c=0;for(let E of e){let I=E.x-n,m=E.y-o;r+=I*I,s+=m*m,i+=I*m,u+=I*I*I,l+=m*m*m,b+=I*m*m,c+=m*I*I}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,v=h+n,T=R+o;return!Number.isFinite(v)||!Number.isFinite(T)?null:{cx:v,cy:T}}var vt=.15;function Pt(e){if(e.length<2)return null;let t=e.map(E=>{let I=0,m=0;for(let C of E.pts)I+=C.x,m+=C.y;return{x:I/E.pts.length,y:m/E.pts.length}}),n=0,o=0;for(let E of t)n+=E.x,o+=E.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let E of t){let I=E.x-n,m=E.y-o;r+=I*I,i+=I*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=1/0,h=-1/0,R=[];for(let E of e){let I=1/0,m=-1/0;for(let C of E.pts){let a=C.x*c+C.y*p;a<I&&(I=a),a>m&&(m=a),a<f&&(f=a),a>h&&(h=a)}R.push(m-I)}let v=h-f;return v>1e-9?(R.sort((E,I)=>E-I),R[Math.min(R.length-1,Math.floor(R.length*.9))]/v<=It?{x:c,y:p}:null):null}var It=.35;function At(e,t,n,o){let r=new Map;for(let a of n){let y=t[a],M=y.rowId||`__seat-${a}`,g=r.get(M);g||(g={pts:[],idx:[]},r.set(M,g)),g.pts.push({x:y.x,y:y.y}),g.idx.push(a)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[a,y]of r){let M=Mt(y.pts,y.idx),g=0;for(let A of M.pts)g+=Math.hypot(A.x-o.x,A.y-o.y);i.push({id:a,pts:M.pts,seatIndices:M.seatIndices,blockId:-1,ordinal:0,blockDepth:0,focalDistance:g/M.pts.length})}let s=i.map(a=>wt(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,y)=>[a,y])):null,c=(a,y)=>(a>y&&([a,y]=[y,a]),a*(2*i.length-a-1)/2+(y-a-1)),p=(a,y)=>{if(!l)return le(i[a].pts,i[y].pts);let M=c(a,y),g=l[M];if(!Number.isNaN(g))return g;let A=le(i[a].pts,i[y].pts);return l[M]=A,A},d=(a,y)=>b?p(b.get(a),b.get(y)):le(a.pts,y.pts),f=[];for(let a=0;a<i.length;a++){let y=1/0;for(let M=0;M<i.length;M++){if(a===M||Oe(s[a],s[M])>=y)continue;let g=p(a,M);g<y&&(y=g)}Number.isFinite(y)&&f.push(y)}f.sort((a,y)=>a-y);let h=f.length?f[Math.floor(f.length/2)]:1,R=Math.max(h*1.8,1e-6),v=i.map(()=>[]);for(let a=0;a<i.length;a++)for(let y=a+1;y<i.length;y++)Oe(s[a],s[y])>R||p(a,y)<=R&&(v[a].push(y),v[y].push(a));let T=0;for(let a=0;a<i.length;a++){if(i[a].blockId!==-1)continue;let y=T++,M=[a];for(i[a].blockId=y;M.length;){let g=M.pop();for(let A of v[g])i[A].blockId===-1&&(i[A].blockId=y,M.push(A))}}let E=new Map;for(let a of i){let y=E.get(a.blockId)??[];y.push(a),E.set(a.blockId,y)}let I=[];for(let a of i){if(a.pts.length<4)continue;let y=te(a.pts);y&&(!Number.isFinite(y.cx)||!Number.isFinite(y.cy)||I.push({x:y.cx,y:y.cy}))}let m=I.length>=2?(()=>{let a=I.map(g=>g.x).sort((g,A)=>g-A),y=I.map(g=>g.y).sort((g,A)=>g-A),M=Math.floor(I.length/2);return{cx:a[M],cy:y[M]}})():null;if(m){let a=N=>Math.hypot(N.x-m.cx,N.y-m.cy),y=1/0,M=-1/0,g=[];for(let N of i){let x=1/0,w=-1/0;for(let _ of N.pts){let k=a(_);k<x&&(x=k),k>w&&(w=k)}g.push(w-x),x<y&&(y=x),w>M&&(M=w)}let A=M-y;g.sort((N,x)=>N-x);let V=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(A>1e-9&&V/A<=vt){let N=i.map(P=>{let j=0;for(let $ of P.pts)j+=a($);return{row:P,radius:j/P.pts.length}}),x=0,w=0;for(let P of N)x+=P.radius,w+=P.row.focalDistance;x/=N.length,w/=N.length;let _=0;for(let P of N)_+=(P.radius-x)*(P.row.focalDistance-w);if(_<0)for(let P of N)P.radius=-P.radius;let B=1/0;for(let P of N)P.radius<B&&(B=P.radius);N.sort((P,j)=>P.radius-j.radius);let z=-1,O=-1/0,H=A/Math.max(1,N.length)*.5,G=[];for(let P of N)P.radius-O>H&&(z++,O=P.radius),P.row.ordinal=z,P.row.blockDepth=P.radius-B,G.push(P.row);return{sectionId:e,rows:G,blockCount:T}}}let C=[];for(let[,a]of E){let y=Pt(a);if(y){let M=A=>{let V=0;for(let N of A.pts)V+=N.x*y.x+N.y*y.y;return V/A.pts.length};a.sort((A,V)=>M(A)-M(V)),a.length>=2&&a[0].focalDistance>a[a.length-1].focalDistance&&a.reverse();let g=0;for(let A=0;A<a.length;A++)A>0&&(g+=d(a[A-1],a[A])),a[A].ordinal=A,a[A].blockDepth=g,C.push(a[A])}else{let M=1/0;for(let g of a)g.focalDistance<M&&(M=g.focalDistance);a.sort((g,A)=>g.focalDistance-A.focalDistance);for(let g=0;g<a.length;g++)a[g].ordinal=g,a[g].blockDepth=Math.max(0,a[g].focalDistance-M),C.push(a[g])}}return{sectionId:e,rows:C,blockCount:T}}var Rt=Math.PI/180,L=96,Ct=6,Et=60,Ot=150,Te=.2,Tt=.35;function _e(e,t){let n=Math.atan2(t.x-e.x,t.y-e.y)/Rt;return n<0?n+360:n}function ne(e){if(!e.length)return NaN;let t=[...e].sort((n,o)=>n-o);return t[Math.floor(t.length/2)]}function oe(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 _t(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=te(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=ne(o.map(T=>T.x)),f=ne(o.map(T=>T.y)),h=0;for(let T of n)for(let E of T.rows)for(let I of E.pts){let m=Math.hypot(I.x-u.x,I.y-u.y);m>h&&(h=m)}let R=0,v=h*.2;for(let T of n)for(let E of T.rows)for(let I of E.pts)Math.hypot(I.x-d,I.y-f)<v&&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 v=Math.hypot(R.x-l.x,R.y-l.y),T=Math.min(L-1,Math.floor(_e(l,R)/(360/L)));f.samples.push({r:v,bin:T,levelM:h.levelM}),v<f.rMin&&(f.rMin=v),v>f.rMax&&(f.rMax=v)}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),v=Math.min(d.rMax-d.rMin,h.rMax-h.rMin);if(v>1e-9&&R>=Tt*v){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(L).fill(null);for(let x of d.members)for(let w of x.samples){let _=f[w.bin];_||(_={samples:[]},f[w.bin]=_),_.samples.push({r:w.r,levelM:w.levelM})}let h=f.map(x=>!!x);if(!h.filter(Boolean).length)continue;let v=[],T=[];for(let x of f){if(!x)continue;let w=1/0,_=-1/0;for(let k of x.samples)k.r<w&&(w=k.r),k.r>_&&(_=k.r);v.push(w),T.push(_)}let E=ne(v),I=ne(T);if(!(E>=Te*I)||!(I>0))continue;let m=[...v].sort((x,w)=>x-w);if(!(m[Math.floor(m.length*.1)]>=Te*I))continue;let a=f.map(x=>{if(!x)return null;let w=[...x.samples].sort((P,j)=>P.r-j.r),_=w[0].r,k=w[w.length-1].r,B=w[0].levelM,z=-1/0;for(let P of w)P.levelM>z&&(z=P.levelM);let O=[];for(let P of w){let j={r:P.r,l:P.levelM};for(;O.length&&Math.abs(O[O.length-1].r-j.r)<1e-9;){if(O[O.length-1].l<=j.l){j.skip=!0;break}O.pop()}if(!j.skip){for(;O.length>=2;){let $=O[O.length-2],W=O[O.length-1];if((W.r-$.r)*(j.l-$.l)-(W.l-$.l)*(j.r-$.r)<=0)O.pop();else break}O.push(j)}}let H=O.map(P=>P.r),G=O.map(P=>P.l);return{inner:_,outer:k,front:B,top:z,profile:{rs:H,ls:G}}}),y=h.slice();for(let x=0;x<L;x++){if(y[x])continue;let w=-1,_=-1,k=0;for(let S=1;S<=L;S++){let D=(x-S+L*2)%L;if(y[D]){w=D;break}}for(let S=1;S<=L;S++){let D=(x+S)%L;if(y[D]){_=D,k=S;break}}if(w<0||_<0)continue;let B=0;for(let S=1;S<=L;S++){let D=(x-S+L*2)%L;if(h[D]){B=S;break}}if(B-1+k>Ct)continue;let O=a[w],H=a[_],G=B/(B+k),P=O.inner+(H.inner-O.inner)*G,j=O.outer+(H.outer-O.outer)*G,$=O.front+(H.front-O.front)*G,W=O.top+(H.top-O.top)*G;a[x]={inner:P,outer:j,front:$,top:W,profile:{rs:[P,j],ls:[$,W]}}}for(let x=0;x<L;x++)a[x]&&(y[x]=!0);let M=360/L,g=[],A=y.filter(Boolean).length,V=[];if(A===L)V.push({start:0,len:L});else{let x=0;for(;y[x];)x=(x+1)%L;let w=-1;for(let _=0;_<=L;_++){let k=(x+_)%L,B=_<L&&y[k];if(B&&w<0)w=k;else if(!B&&w>=0){let z=(k-w+L)%L||L;V.push({start:w,len:z}),w=-1}}}for(let x of V){if(x.len*M<Et&&x.len<L)continue;let w=x.len===L,_=new Float64Array(x.len),k=new Float64Array(x.len),B=new Float64Array(x.len),z=new Float64Array(x.len),O=[];for(let S=0;S<x.len;S++){let D=a[(x.start+S)%L];_[S]=D.inner,k[S]=D.outer,B[S]=D.front,z[S]=D.top,O.push(D.profile??{rs:[D.inner,D.outer],ls:[D.front,D.top]})}let H=oe(_,w),G=oe(k,w),P=oe(B,w),j=oe(z,w);for(let S=0;S<x.len;S++)H[S]>_[S]&&(H[S]=_[S]),G[S]<k[S]&&(G[S]=k[S]),H[S]>G[S]-1e-6&&(H[S]=Math.max(0,G[S]-1e-6)),j[S]<P[S]&&(j[S]=P[S]);let $={startBin:x.start,binCount:x.len,closed:w,innerR:H,outerR:G,frontLevelM:P,topLevelM:j,profiles:O},W=(S,D,U)=>{let Q=O[S],X=Q.rs,K=Q.ls;if(D<=X[0]){K[0]>U&&(K[0]=U);return}if(D>=X[X.length-1]){K[K.length-1]>U&&(K[K.length-1]=U);return}for(let Y=0;Y+1<X.length;Y++)if(D<=X[Y+1]){K[Y]>U&&(K[Y]=U),K[Y+1]>U&&(K[Y+1]=U);return}};for(let S=0;S<x.len;S++){let D=f[(x.start+S)%L];if(D)for(let U of D.samples){W(S,U.r,U.levelM);let Q=w?(S-1+x.len)%x.len:S-1,X=w?(S+1)%x.len:S+1;Q>=0&&W(Q,U.r,U.levelM),X<x.len&&W(X,U.r,U.levelM)}}g.push($)}g.reduce((x,w)=>x+w.binCount*M,0)<Ot||p.push({arcs:g,sectionIds:d.members.map(x=>x.sectionId),innerRMedian:E,outerRMedian:I})}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:L,binStepDeg:360/L,rings:p}}function Lt(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],v=R>1e-9?(o-d[h])/R:0;return f[h]+(f[h+1]-f[h])*v}return f[f.length-1]};return b(s)*(1-l)+b(u)*l}var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZ",kt="ABCDEFGHJKLMNPQRSTUVWXYZ",Dt="abcdefghijklmnopqrstuvwxyz";function fe(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?kt:Le;return fe(o,r)}function re(e,t=!1){let n=t?Dt:Le;return fe(Math.max(0,Math.floor(e)-1),n)}var Nt=[[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 de(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Nt)for(;t>=o;)n+=r,t-=o;return n}function jt(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 Ft(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 Bt(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 De(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 Gt(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=De(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 Ut(e){let t=(o,r)=>Gt(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=De(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 Vt(e,t){let n=[];for(let o of e){let r=Bt(o.points,t);r&&n.push(r)}return n.length<2?Ft(t):(n.sort((o,r)=>o.depth-r.depth),Ut(n))}var Ht=/^\d{4}-\d{2}-\d{2}$/;function zt(e){let t=Date.parse(e);return Number.isFinite(t)?Ht.test(e)?t+864e5:t:null}function Ne(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=zt(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function je(e){return e.status!=="draft"&&e.status!=="retracted"}function $t(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 Kt(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 Wt(){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 Xt(e){let t=Kt(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 Yt(e,t={}){if(!e||!je(e)||!Ne(e,t.now))return Wt();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:$t(e.coverage),provenance:e.sourceLabel??e.approvedByRole??"Source not supplied",freshness:Xt(e),limitations:s,...u?{modeledTarget:u}:{}}}function qt(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 Z(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"?qt(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=de(c+p*r);break;case"letters-upper":d=re(c+p*r,!1);break;case"letters-lower":d=re(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 pe(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${Z(e,t)}`}function he(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return Z(e,t);if(!n)return`${e.displayLabel||e.label}-${Z(e,t)}`;let r=Fe(n),i=n.displayOffset+t;return`${n.displayLabel}-${Z(r,i)}`}function Jt(e,t,n){return Math.max(t,Math.min(n,e))}function Qt(e){return Jt(e,0,1)}function Be(e){let t=Qt(e);return t*t*(3-2*t)}var $n=Math.PI/180;function F(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function be(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}var q=Math.PI*2;function J(e){return Number.isFinite(e.x)&&Number.isFinite(e.y)}function Zt(e,t,n){let o=t-e;if(n){for(;o<0;)o+=q;for(;o>=q;)o-=q}else{for(;o>0;)o-=q;for(;o<=-q;)o+=q}return o}function en(e){return e.end}function ye(e){if(e.version!==1||e.closed!==!0||!J(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||!J(n.end))return!1;if(n.kind==="line"){if(F(t,n.end)<=1e-9)return!1}else if(n.kind==="bezier"){if(!J(n.control1)||!J(n.control2)||F(t,n.end)<=1e-9)return!1}else if(n.kind==="arc"){if(!J(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 tn(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 nn(e,t=2){if(!ye(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=Zt(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(tn(r,i,l/u))}r=i.end}return F(o[o.length-1],o[0])<=1e-4&&o.pop(),o}function on(e,t,n){return Ve(e,r=>({x:r.x+t,y:r.y+n}))}function Ve(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)})}}var He=45,me=150,rn=60;function ze(e){let t=He/100;if(e<=t)return me;let n=Math.min(1,(e-t)/(1-t));return me-n*(me-rn)}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 sn(e){let t=[],n=[];for(e.forEach((o,r)=>{J(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 cn(e,t,n){return Ke(e,{cornerSmoothing:t,...n})}var $e=.5,an=4/3;function ln(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*an;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 Ke(e,t){let{points:n,sourceIndex:o}=sn(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 m=0;m<r;m+=1){let C=s[o[m]];u[m]=Number.isFinite(C)?Math.min(100,Math.max(-100,C))/100:0}let l=u.some(m=>Math.abs(m)>1e-6);if(i<=0&&!l)return null;let b=t.wideAngleThresholdDeg??ze(i),c=[];for(let m=0;m<r;m+=1)c[m]=F(n[m],n[(m+1)%r]);let p=new Array(r).fill(0);for(let m=0;m<r;m+=1){let C=n[(m-1+r)%r],a=n[m],y=n[(m+1)%r],M={x:C.x-a.x,y:C.y-a.y},g={x:y.x-a.x,y:y.y-a.y},A=Math.hypot(M.x,M.y),V=Math.hypot(g.x,g.y);if(A<=1e-9||V<=1e-9)continue;let N=Math.min(1,Math.max(-1,(M.x*g.x+M.y*g.y)/(A*V))),x=Math.acos(N)*180/Math.PI;if(x<b)continue;let w=Be((x-b)/(180-b));p[m]=i*w*.5*Math.min(A,V)}for(let m=0;m<r;m+=1){let C=(m+1)%r,a=p[m]+p[C];if(a>c[m]&&a>1e-9){let y=c[m]/a;p[m]*=y,p[C]*=y}}let d=new Array(r),f=new Array(r);for(let m=0;m<r;m+=1){let C=n[(m-1+r)%r],a=n[m],y=n[(m+1)%r];if(p[m]<=1e-6){d[m]={...a},f[m]={...a};continue}let M=F(a,C)||1,g=F(a,y)||1;d[m]={x:a.x+(C.x-a.x)/M*p[m],y:a.y+(C.y-a.y)/M*p[m]},f[m]={x:a.x+(y.x-a.x)/g*p[m],y:a.y+(y.y-a.y)/g*p[m]}}if(p.every(m=>m<=1e-6)&&!l)return null;let h=[],R={...f[0]},v=R,T=(m,C)=>{if(F(v,m)<=1e-9)return;let a=u[C];Math.abs(a)>1e-6?h.push(ln(v,m,a*$e*c[C])):h.push({kind:"line",end:{...m}}),v=m};for(let m=1;m<=r;m+=1){let C=m%r,a=n[C];T(d[C],(m-1)%r),p[C]>1e-6&&F(d[C],f[C])>1e-9&&(h.push({kind:"bezier",control1:be(d[C],a,Ge),control2:be(f[C],a,Ge),end:{...f[C]}}),v=f[C])}if(!h.length)return null;let E=h[h.length-1];F(E.end,R)>1e-9&&(E.kind==="line"?E.end={...R}:h.push({kind:"line",end:{...R}}));let I={version:1,closed:!0,start:R,segments:h};return ye(I)?I:null}function un(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 We(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[We(e,.5)];let o=Array.from({length:n+1},(l,b)=>We(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}var qe=.02291666666666667,Jn=1/qe,fn=58,Se=fn*qe;var dn=3,Ye=0,xe=120,pn=0,hn=45,bn=7;function ge(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function mn(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=bn?e:dn}function Je(e,t={}){let n=ge(t.floorBaseHeightM,Ye,xe,0),o=Math.min(xe,n+mn(e.elevation)*Se),r=e.height===void 0?o:ge(e.height,Ye,xe,o),i=ge(e.rake,pn,hn,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 ee=16;function ve(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 tt(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(ve(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(ve(p,d,r,i))}return s}function nt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function yn(e,t){let n=nt(e);return tt(e).map((o,r)=>{let i=n.get(r),s=we(i),u=pe(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(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 ot(e){let t=[];for(let n of yn(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 xn(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 gn(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),v=h?.label??`${e.label}-${c+1}`,T=e.displayLabel??e.label;return{index:c,label:v,displayLabel:h?.displayLabel??`${T}-${c+1}`,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)+ee,p=e.rotation*se,d=Math.max(0,Math.min(360,e.seatArc??360));if(d>=360||n===1){for(let v=0;v<n;v++){let T=p+v/n*2*Math.PI;t.push(r(v,e.center.x+c*Math.cos(T),e.center.y+c*Math.sin(T)))}return t}let f=d*se,h=(2*Math.PI-f)/2,R=p+h;for(let v=0;v<n;v++){let T=R+v/(n-1)*f;t.push(r(v,e.center.x+c*Math.cos(T),e.center.y+c*Math.sin(T)))}return t}let i=e.width??80,s=e.height??50,u=xn(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-ee):c==="bottom"?(f=-i/2+(d+.5)*i/p,h=s/2+ee):c==="left"?(f=-i/2-ee,h=-s/2+(d+.5)*s/p):(f=i/2+ee,h=-s/2+(d+.5)*s/p);let R=ve(f,h,e.rotation,e.center);t.push(r(b++,R.x,R.y,c))}}return t}function rt(e){return gn(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 it(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"}]}function Qe(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 Sn(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 Ze(e,t,n){return Qe(e,t)&&!Pe(n).some(o=>Qe(e,o)||Sn(e,o))}function Me(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 wn(e){switch(e.type){case"row":{let t=tt(e),n=nt(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 Me(e.points);case"section":return Me(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?Me(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 et(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function Mn(e,t){if(e.type!=="gaArea"||!et(e.points,t.outline))return!1;let n=Pe(e.holes),o=Pe(t.holes);return n.length===o.length&&n.every((r,i)=>et(r,o[i]))}function Ie(e,t,n=e.filter(r=>r.type==="section"),o=wn(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(Mn(t,s)||Ze(o,s.outline,s.holes))):void 0)??n.find(s=>Ze(o,s.outline,s.holes))}function st(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 Ae(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}var ct="__sl_ga__";var vn=ct,Re=1e5;function Pn(e,t){return`${vn}${encodeURIComponent(e)}__${t+1}`}function In(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 An(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}]:[]:In(e)?e.inventorySegments.map(n=>({...n})):[]}function at(e){return An(e).flatMap(t=>Array.from({length:t.count},(n,o)=>Pn(t.sourceAreaId,t.startIndex+o)))}var ce="__ungrouped__";function Rn(e){return e.type==="row"?ot(e).map(t=>t.label):e.type==="table"?rt(e).map(t=>t.label):e.type==="booth"?it(e).map(t=>t.label):e.type==="gaArea"?at(e):[]}function lt(e){return e.type==="row"||e.type==="table"||e.type==="booth"||e.type==="gaArea"}function Cn(e){return e.displayLabel||e.label||"Section"}function Ce(e){let t=new Map;for(let n of Ae(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id;t.has(o)||t.set(o,{id:o,label:Cn(n),zone:n.zone})}return t}function En(e){let t=new Map;for(let[n,o]of Ce(e))t.set(n,o.label);return t}function ut(e){let t=new Map;for(let n of st(e)){let o=n.objects.filter(r=>r.type==="section");if(o.length)for(let r of n.objects){if(!lt(r))continue;let i=Ie(n.objects,r,o);i&&t.set(r.id,i.logicalSectionId??i.id)}}return t}function ft(e,t){let n=Ae(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:ce,label:"Other seats",seatCount:0,objectIds:[],seatLabels:[]},s=new Map;for(let u of n){if(!lt(u))continue;let l=Rn(u);if(l.length===0)continue;let b;if(t)b=t.get(u.id);else{let p=Ie(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 On(e){return ft(e,null)}function dt(e){return ft(e,ut(e))}function pt(e,t){return t.has(e.id)||!!e.logicalSectionId&&t.has(e.logicalSectionId)||!!e.zone&&t.has(e.zone)}function ht(e,t){let n=new Set;if(!t.size)return n;let{sections:o,ungrouped:r,objectToSection:i}=dt(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(ce);for(let[b,c]of i)(s.has(c)||l&&c===ce)&&n.add(b);return n}function Tn(e,t){if(!t.size)return e;let n=ht(e,t),o=t instanceof Set?t:new Set(t),r=s=>!(n.has(s.id)||s.type==="section"&&pt(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,relabelRows,resolveSection,reverseSectionOutlinePath,sampleSectionOutlinePath,seatConfidenceDisclosure,seatDisplayLabel,seatInventoryLabel,seatLabelPart,sectionCornerSmoothingPath,sectionGeometry,sectionIdentitiesById,sectionLabelsById,sectionOutlinePathFrom,sectionOwnersByObject,sectionPathSegmentEnd,toBijectiveBase,toLetters,toRoman,transformSectionOutlinePath,translateSectionOutlinePath,validSectionOutlinePath});
1
+ "use strict";var ae=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var yt=Object.prototype.hasOwnProperty;var xt=(e,t)=>{for(var n in t)ae(e,n,{get:t[n],enumerable:!0})},gt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mt(t))!yt.call(e,r)&&r!==n&&ae(e,r,{get:()=>t[r],enumerable:!(o=bt(t,r))||o.enumerable});return e};var St=e=>gt(ae({},"__esModule",{value:!0}),e);var Dn={};xt(Dn,{DEFAULT_SECTION_CORNER_SMOOTHING:()=>He,MAX_EDGE_SAGITTA_RATIO:()=>$e,TIER_HEIGHT_M:()=>Se,UNGROUPED_ID:()=>ce,applyHidden:()=>Ln,arcLevelAt:()=>kt,bearingDeg:()=>_e,buildSectionRake:()=>zt,computeSections:()=>_n,computeSectionsPerFloor:()=>dt,cornerSmoothingThresholdDeg:()=>ze,distanceToPolyline:()=>ue,fitBowlProfile:()=>Dt,fitCircle:()=>te,hiddenObjectIds:()=>ht,indexLabel:()=>De,isSectionHidden:()=>pt,logicalNumberingRow:()=>Fe,relabelRows:()=>Bt,resolveSection:()=>Ct,reverseSectionOutlinePath:()=>dn,sampleSectionOutlinePath:()=>rn,seatConfidenceDisclosure:()=>Jt,seatDisplayLabel:()=>he,seatInventoryLabel:()=>pe,seatLabelPart:()=>Z,sectionCornerSmoothingPath:()=>ln,sectionGeometry:()=>Je,sectionIdentitiesById:()=>Ce,sectionLabelsById:()=>Tn,sectionOutlinePathFrom:()=>Ke,sectionOwnersByObject:()=>ut,sectionPathSegmentEnd:()=>nn,toBijectiveBase:()=>fe,toLetters:()=>re,toRoman:()=>de,transformSectionOutlinePath:()=>Ve,translateSectionOutlinePath:()=>sn,validSectionOutlinePath:()=>ye});module.exports=St(Dn);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 ue(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 wt(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 le(e,t){let n=1/0;for(let o of Ee(e)){let r=ue(t,o.x,o.y);r<n&&(n=r)}for(let o of Ee(t)){let r=ue(e,o.x,o.y);r<n&&(n=r)}return n}function Mt(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 te(e){let t=e.length;if(t<3)return null;let n=0,o=0;for(let D of e)n+=D.x,o+=D.y;n/=t,o/=t;let r=0,i=0,s=0,u=0,l=0,b=0,c=0;for(let D of e){let O=D.x-n,x=D.y-o;r+=O*O,s+=x*x,i+=O*x,u+=O*O*O,l+=x*x*x,b+=O*x*x,c+=x*O*O}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,P=h+n,E=R+o;return!Number.isFinite(P)||!Number.isFinite(E)?null:{cx:P,cy:E}}var vt=.15;function Pt(e){if(e.length<2)return null;let t=e.map(M=>{let a=0,m=0;for(let S of M.pts)a+=S.x,m+=S.y;return{x:a/M.pts.length,y:m/M.pts.length}}),n=0,o=0;for(let M of t)n+=M.x,o+=M.y;n/=t.length,o/=t.length;let r=0,i=0,s=0;for(let M of t){let a=M.x-n,m=M.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 M of e){if(M.pts.length<2)continue;let a=M.pts[0],m=M.pts[M.pts.length-1],S=m.x-a.x,g=m.y-a.y,C=Math.hypot(S,g);if(!(C>1e-9))continue;let B=S/C,A=g/C;f+=(B*B-A*A)*C,h+=2*B*A*C,R+=C}if(R>0&&Math.hypot(f,h)>=At*R){let M=Math.atan2(h,f)/2,a=Math.cos(M),m=Math.sin(M);Math.abs(c*a+p*m)>Rt&&(c=-m,p=a)}let P=1/0,E=-1/0,D=[];for(let M of e){let a=1/0,m=-1/0;for(let S of M.pts){let g=S.x*c+S.y*p;g<a&&(a=g),g>m&&(m=g),g<P&&(P=g),g>E&&(E=g)}D.push(m-a)}let O=E-P;return O>1e-9?(D.sort((M,a)=>M-a),D[Math.min(D.length-1,Math.floor(D.length*.9))]/O<=It?{x:c,y:p}:null):null}var It=.35,At=.8,Rt=.7;function Ct(e,t,n,o){let r=new Map;for(let a of n){let m=t[a],S=m.rowId||`__seat-${a}`,g=r.get(S);g||(g={pts:[],idx:[]},r.set(S,g)),g.pts.push({x:m.x,y:m.y}),g.idx.push(a)}if(!r.size)return{sectionId:e,rows:[],blockCount:0};let i=[];for(let[a,m]of r){let S=Mt(m.pts,m.idx),g=0;for(let C of S.pts)g+=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:g/S.pts.length})}let s=i.map(a=>wt(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 le(i[a].pts,i[m].pts);let S=c(a,m),g=l[S];if(!Number.isNaN(g))return g;let C=le(i[a].pts,i[m].pts);return l[S]=C,C},d=(a,m)=>b?p(b.get(a),b.get(m)):le(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 g=p(a,S);g<m&&(m=g)}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),P=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&&(P[a].push(m),P[m].push(a));let E=0;for(let a=0;a<i.length;a++){if(i[a].blockId!==-1)continue;let m=E++,S=[a];for(i[a].blockId=m;S.length;){let g=S.pop();for(let C of P[g])i[C].blockId===-1&&(i[C].blockId=m,S.push(C))}}let D=new Map;for(let a of i){let m=D.get(a.blockId)??[];m.push(a),D.set(a.blockId,m)}let O=[];for(let a of i){if(a.pts.length<4)continue;let m=te(a.pts);m&&(!Number.isFinite(m.cx)||!Number.isFinite(m.cy)||O.push({x:m.cx,y:m.cy}))}let x=O.length>=2?(()=>{let a=O.map(g=>g.x).sort((g,C)=>g-C),m=O.map(g=>g.y).sort((g,C)=>g-C),S=Math.floor(O.length/2);return{cx:a[S],cy:m[S]}})():null;if(x){let a=A=>Math.hypot(A.x-x.cx,A.y-x.cy),m=1/0,S=-1/0,g=[];for(let A of i){let y=1/0,w=-1/0;for(let T of A.pts){let k=a(T);k<y&&(y=k),k>w&&(w=k)}g.push(w-y),y<m&&(m=y),w>S&&(S=w)}let C=S-m;g.sort((A,y)=>A-y);let B=g[Math.min(g.length-1,Math.floor(g.length*.9))];if(C>1e-9&&B/C<=vt){let A=i.map(I=>{let j=0;for(let $ of I.pts)j+=a($);return{row:I,radius:j/I.pts.length}}),y=0,w=0;for(let I of A)y+=I.radius,w+=I.row.focalDistance;y/=A.length,w/=A.length;let T=0;for(let I of A)T+=(I.radius-y)*(I.row.focalDistance-w);if(T<0)for(let I of A)I.radius=-I.radius;let G=1/0;for(let I of A)I.radius<G&&(G=I.radius);A.sort((I,j)=>I.radius-j.radius);let z=-1,_=-1/0,H=C/Math.max(1,A.length)*.5,U=[];for(let I of A)I.radius-_>H&&(z++,_=I.radius),I.row.ordinal=z,I.row.blockDepth=I.radius-G,U.push(I.row);return{sectionId:e,rows:U,blockCount:E}}}let M=[];for(let[,a]of D){let m=Pt(a);if(m){let S=A=>{let y=0;for(let w of A.pts)y+=w.x*m.x+w.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 g=[],C=h*.5;for(let A of a){let y=g[g.length-1];y&&Math.abs(S(A)-S(y[0]))<C?y.push(A):g.push([A])}let B=0;for(let A=0;A<g.length;A++){if(A>0){let y=1/0;for(let w of g[A-1])for(let T of g[A])y=Math.min(y,d(w,T));B+=y}for(let y of g[A])y.ordinal=A,y.blockDepth=B,M.push(y)}}else{let S=1/0;for(let g of a)g.focalDistance<S&&(S=g.focalDistance);a.sort((g,C)=>g.focalDistance-C.focalDistance);for(let g=0;g<a.length;g++)a[g].ordinal=g,a[g].blockDepth=Math.max(0,a[g].focalDistance-S),M.push(a[g])}}return{sectionId:e,rows:M,blockCount:E}}var Et=Math.PI/180,L=96,Ot=6,Tt=60,_t=150,Te=.2,Lt=.35;function _e(e,t){let n=Math.atan2(t.x-e.x,t.y-e.y)/Et;return n<0?n+360:n}function ne(e){if(!e.length)return NaN;let t=[...e].sort((n,o)=>n-o);return t[Math.floor(t.length/2)]}function oe(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=te(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=ne(o.map(E=>E.x)),f=ne(o.map(E=>E.y)),h=0;for(let E of n)for(let D of E.rows)for(let O of D.pts){let x=Math.hypot(O.x-u.x,O.y-u.y);x>h&&(h=x)}let R=0,P=h*.2;for(let E of n)for(let D of E.rows)for(let O of D.pts)Math.hypot(O.x-d,O.y-f)<P&&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 P=Math.hypot(R.x-l.x,R.y-l.y),E=Math.min(L-1,Math.floor(_e(l,R)/(360/L)));f.samples.push({r:P,bin:E,levelM:h.levelM}),P<f.rMin&&(f.rMin=P),P>f.rMax&&(f.rMax=P)}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),P=Math.min(d.rMax-d.rMin,h.rMax-h.rMin);if(P>1e-9&&R>=Lt*P){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(L).fill(null);for(let y of d.members)for(let w of y.samples){let T=f[w.bin];T||(T={samples:[]},f[w.bin]=T),T.samples.push({r:w.r,levelM:w.levelM})}let h=f.map(y=>!!y);if(!h.filter(Boolean).length)continue;let P=[],E=[];for(let y of f){if(!y)continue;let w=1/0,T=-1/0;for(let k of y.samples)k.r<w&&(w=k.r),k.r>T&&(T=k.r);P.push(w),E.push(T)}let D=ne(P),O=ne(E);if(!(D>=Te*O)||!(O>0))continue;let x=[...P].sort((y,w)=>y-w);if(!(x[Math.floor(x.length*.1)]>=Te*O))continue;let a=f.map(y=>{if(!y)return null;let w=[...y.samples].sort((I,j)=>I.r-j.r),T=w[0].r,k=w[w.length-1].r,G=w[0].levelM,z=-1/0;for(let I of w)I.levelM>z&&(z=I.levelM);let _=[];for(let I of w){let j={r:I.r,l:I.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],W=_[_.length-1];if((W.r-$.r)*(j.l-$.l)-(W.l-$.l)*(j.r-$.r)<=0)_.pop();else break}_.push(j)}}let H=_.map(I=>I.r),U=_.map(I=>I.l);return{inner:T,outer:k,front:G,top:z,profile:{rs:H,ls:U}}}),m=h.slice();for(let y=0;y<L;y++){if(m[y])continue;let w=-1,T=-1,k=0;for(let v=1;v<=L;v++){let N=(y-v+L*2)%L;if(m[N]){w=N;break}}for(let v=1;v<=L;v++){let N=(y+v)%L;if(m[N]){T=N,k=v;break}}if(w<0||T<0)continue;let G=0;for(let v=1;v<=L;v++){let N=(y-v+L*2)%L;if(h[N]){G=v;break}}if(G-1+k>Ot)continue;let _=a[w],H=a[T],U=G/(G+k),I=_.inner+(H.inner-_.inner)*U,j=_.outer+(H.outer-_.outer)*U,$=_.front+(H.front-_.front)*U,W=_.top+(H.top-_.top)*U;a[y]={inner:I,outer:j,front:$,top:W,profile:{rs:[I,j],ls:[$,W]}}}for(let y=0;y<L;y++)a[y]&&(m[y]=!0);let S=360/L,g=[],C=m.filter(Boolean).length,B=[];if(C===L)B.push({start:0,len:L});else{let y=0;for(;m[y];)y=(y+1)%L;let w=-1;for(let T=0;T<=L;T++){let k=(y+T)%L,G=T<L&&m[k];if(G&&w<0)w=k;else if(!G&&w>=0){let z=(k-w+L)%L||L;B.push({start:w,len:z}),w=-1}}}for(let y of B){if(y.len*S<Tt&&y.len<L)continue;let w=y.len===L,T=new Float64Array(y.len),k=new Float64Array(y.len),G=new Float64Array(y.len),z=new Float64Array(y.len),_=[];for(let v=0;v<y.len;v++){let N=a[(y.start+v)%L];T[v]=N.inner,k[v]=N.outer,G[v]=N.front,z[v]=N.top,_.push(N.profile??{rs:[N.inner,N.outer],ls:[N.front,N.top]})}let H=oe(T,w),U=oe(k,w),I=oe(G,w),j=oe(z,w);for(let v=0;v<y.len;v++)H[v]>T[v]&&(H[v]=T[v]),U[v]<k[v]&&(U[v]=k[v]),H[v]>U[v]-1e-6&&(H[v]=Math.max(0,U[v]-1e-6)),j[v]<I[v]&&(j[v]=I[v]);let $={startBin:y.start,binCount:y.len,closed:w,innerR:H,outerR:U,frontLevelM:I,topLevelM:j,profiles:_},W=(v,N,V)=>{let Q=_[v],X=Q.rs,K=Q.ls;if(N<=X[0]){K[0]>V&&(K[0]=V);return}if(N>=X[X.length-1]){K[K.length-1]>V&&(K[K.length-1]=V);return}for(let Y=0;Y+1<X.length;Y++)if(N<=X[Y+1]){K[Y]>V&&(K[Y]=V),K[Y+1]>V&&(K[Y+1]=V);return}};for(let v=0;v<y.len;v++){let N=f[(y.start+v)%L];if(N)for(let V of N.samples){W(v,V.r,V.levelM);let Q=w?(v-1+y.len)%y.len:v-1,X=w?(v+1)%y.len:v+1;Q>=0&&W(Q,V.r,V.levelM),X<y.len&&W(X,V.r,V.levelM)}}g.push($)}g.reduce((y,w)=>y+w.binCount*S,0)<_t||p.push({arcs:g,sectionIds:d.members.map(y=>y.sectionId),innerRMedian:D,outerRMedian:O})}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:L,binStepDeg:360/L,rings:p}}function kt(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],P=R>1e-9?(o-d[h])/R:0;return f[h]+(f[h+1]-f[h])*P}return f[f.length-1]};return b(s)*(1-l)+b(u)*l}var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Nt="ABCDEFGHJKLMNPQRSTUVWXYZ",jt="abcdefghijklmnopqrstuvwxyz";function fe(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 De(e,t){let n=t.startAt-1,o=e+n;if(t.scheme==="numbers")return String(o+1);let r=t.skipAmbiguous?Nt:Le;return fe(o,r)}function re(e,t=!1){let n=t?jt:Le;return fe(Math.max(0,Math.floor(e)-1),n)}var Ft=[[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 de(e){if(!Number.isFinite(e)||e<=0)return String(e);let t=Math.floor(e),n="";for(let[o,r]of Ft)for(;t>=o;)n+=r,t-=o;return n}function Bt(e,t){let n=e.length;return e.map((o,r)=>{let i=t.reverse?n-1-r:r;return{...o,label:De(i,t)}})}function Gt(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 Ut(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 ke(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 Vt(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=ke(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 Ht(e){let t=(o,r)=>Vt(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=ke(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 zt(e,t){let n=[];for(let o of e){let r=Ut(o.points,t);r&&n.push(r)}return n.length<2?Gt(t):(n.sort((o,r)=>o.depth-r.depth),Ht(n))}var $t=/^\d{4}-\d{2}-\d{2}$/;function Kt(e){let t=Date.parse(e);return Number.isFinite(t)?$t.test(e)?t+864e5:t:null}function Ne(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=Kt(e.validUntil);return n===null?!1:(t instanceof Date?t.getTime():t)<n}function je(e){return e.status!=="draft"&&e.status!=="retracted"}function Wt(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 Xt(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 Yt(){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=Xt(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 Jt(e,t={}){if(!e||!je(e)||!Ne(e,t.now))return Yt();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:Wt(e.coverage),provenance:e.sourceLabel??e.approvedByRole??"Source not supplied",freshness:qt(e),limitations:s,...u?{modeledTarget:u}:{}}}function Qt(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 Z(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"?Qt(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=de(c+p*r);break;case"letters-upper":d=re(c+p*r,!1);break;case"letters-lower":d=re(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 pe(e,t,n){return n?.label??`${e.seatLabelBase??e.label}-${Z(e,t)}`}function he(e,t,n,o){if(o?.displayLabel)return o.displayLabel;if(e.seatDisplayLabelMode==="number")return Z(e,t);if(!n)return`${e.displayLabel||e.label}-${Z(e,t)}`;let r=Fe(n),i=n.displayOffset+t;return`${n.displayLabel}-${Z(r,i)}`}function Zt(e,t,n){return Math.max(t,Math.min(n,e))}function en(e){return Zt(e,0,1)}function Be(e){let t=en(e);return t*t*(3-2*t)}var Wn=Math.PI/180;function F(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function be(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}var q=Math.PI*2;function J(e){return Number.isFinite(e.x)&&Number.isFinite(e.y)}function tn(e,t,n){let o=t-e;if(n){for(;o<0;)o+=q;for(;o>=q;)o-=q}else{for(;o>0;)o-=q;for(;o<=-q;)o+=q}return o}function nn(e){return e.end}function ye(e){if(e.version!==1||e.closed!==!0||!J(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||!J(n.end))return!1;if(n.kind==="line"){if(F(t,n.end)<=1e-9)return!1}else if(n.kind==="bezier"){if(!J(n.control1)||!J(n.control2)||F(t,n.end)<=1e-9)return!1}else if(n.kind==="arc"){if(!J(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 on(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 rn(e,t=2){if(!ye(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=tn(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(on(r,i,l/u))}r=i.end}return F(o[o.length-1],o[0])<=1e-4&&o.pop(),o}function sn(e,t,n){return Ve(e,r=>({x:r.x+t,y:r.y+n}))}function Ve(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)})}}var He=45,me=150,cn=60;function ze(e){let t=He/100;if(e<=t)return me;let n=Math.min(1,(e-t)/(1-t));return me-n*(me-cn)}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 an(e){let t=[],n=[];for(e.forEach((o,r)=>{J(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 ln(e,t,n){return Ke(e,{cornerSmoothing:t,...n})}var $e=.5,un=4/3;function fn(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*un;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 Ke(e,t){let{points:n,sourceIndex:o}=an(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 x=0;x<r;x+=1){let M=s[o[x]];u[x]=Number.isFinite(M)?Math.min(100,Math.max(-100,M))/100:0}let l=u.some(x=>Math.abs(x)>1e-6);if(i<=0&&!l)return null;let b=t.wideAngleThresholdDeg??ze(i),c=[];for(let x=0;x<r;x+=1)c[x]=F(n[x],n[(x+1)%r]);let p=new Array(r).fill(0);for(let x=0;x<r;x+=1){let M=n[(x-1+r)%r],a=n[x],m=n[(x+1)%r],S={x:M.x-a.x,y:M.y-a.y},g={x:m.x-a.x,y:m.y-a.y},C=Math.hypot(S.x,S.y),B=Math.hypot(g.x,g.y);if(C<=1e-9||B<=1e-9)continue;let A=Math.min(1,Math.max(-1,(S.x*g.x+S.y*g.y)/(C*B))),y=Math.acos(A)*180/Math.PI;if(y<b)continue;let w=Be((y-b)/(180-b));p[x]=i*w*.5*Math.min(C,B)}for(let x=0;x<r;x+=1){let M=(x+1)%r,a=p[x]+p[M];if(a>c[x]&&a>1e-9){let m=c[x]/a;p[x]*=m,p[M]*=m}}let d=new Array(r),f=new Array(r);for(let x=0;x<r;x+=1){let M=n[(x-1+r)%r],a=n[x],m=n[(x+1)%r];if(p[x]<=1e-6){d[x]={...a},f[x]={...a};continue}let S=F(a,M)||1,g=F(a,m)||1;d[x]={x:a.x+(M.x-a.x)/S*p[x],y:a.y+(M.y-a.y)/S*p[x]},f[x]={x:a.x+(m.x-a.x)/g*p[x],y:a.y+(m.y-a.y)/g*p[x]}}if(p.every(x=>x<=1e-6)&&!l)return null;let h=[],R={...f[0]},P=R,E=(x,M)=>{if(F(P,x)<=1e-9)return;let a=u[M];Math.abs(a)>1e-6?h.push(fn(P,x,a*$e*c[M])):h.push({kind:"line",end:{...x}}),P=x};for(let x=1;x<=r;x+=1){let M=x%r,a=n[M];E(d[M],(x-1)%r),p[M]>1e-6&&F(d[M],f[M])>1e-9&&(h.push({kind:"bezier",control1:be(d[M],a,Ge),control2:be(f[M],a,Ge),end:{...f[M]}}),P=f[M])}if(!h.length)return null;let D=h[h.length-1];F(D.end,R)>1e-9&&(D.kind==="line"?D.end={...R}:h.push({kind:"line",end:{...R}}));let O={version:1,closed:!0,start:R,segments:h};return ye(O)?O:null}function dn(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 We(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[We(e,.5)];let o=Array.from({length:n+1},(l,b)=>We(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}var qe=.02291666666666667,Zn=1/qe,pn=58,Se=pn*qe;var hn=3,Ye=0,xe=120,bn=0,mn=45,yn=7;function ge(e,t,n,o){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):o}function xn(e){return!Number.isFinite(e)||!Number.isInteger(e)||e<0?0:e<=yn?e:hn}function Je(e,t={}){let n=ge(t.floorBaseHeightM,Ye,xe,0),o=Math.min(xe,n+xn(e.elevation)*Se),r=e.height===void 0?o:ge(e.height,Ye,xe,o),i=ge(e.rake,bn,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 ee=16;function ve(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 tt(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(ve(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(ve(p,d,r,i))}return s}function nt(e){let t=new Map;if(e.overrides)for(let n of e.overrides)t.set(n.index,n);return t}function gn(e,t){let n=nt(e);return tt(e).map((o,r)=>{let i=n.get(r),s=we(i),u=pe(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(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 ot(e){let t=[];for(let n of gn(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 Sn(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 wn(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),P=h?.label??`${e.label}-${c+1}`,E=e.displayLabel??e.label;return{index:c,label:P,displayLabel:h?.displayLabel??`${E}-${c+1}`,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)+ee,p=e.rotation*se,d=Math.max(0,Math.min(360,e.seatArc??360));if(d>=360||n===1){for(let P=0;P<n;P++){let E=p+P/n*2*Math.PI;t.push(r(P,e.center.x+c*Math.cos(E),e.center.y+c*Math.sin(E)))}return t}let f=d*se,h=(2*Math.PI-f)/2,R=p+h;for(let P=0;P<n;P++){let E=R+P/(n-1)*f;t.push(r(P,e.center.x+c*Math.cos(E),e.center.y+c*Math.sin(E)))}return t}let i=e.width??80,s=e.height??50,u=Sn(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-ee):c==="bottom"?(f=-i/2+(d+.5)*i/p,h=s/2+ee):c==="left"?(f=-i/2-ee,h=-s/2+(d+.5)*s/p):(f=i/2+ee,h=-s/2+(d+.5)*s/p);let R=ve(f,h,e.rotation,e.center);t.push(r(b++,R.x,R.y,c))}}return t}function rt(e){return wn(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 it(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"}]}function Qe(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 Mn(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 Ze(e,t,n){return Qe(e,t)&&!Pe(n).some(o=>Qe(e,o)||Mn(e,o))}function Me(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 vn(e){switch(e.type){case"row":{let t=tt(e),n=nt(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 Me(e.points);case"section":return Me(e.outline);case"text":return{x:e.position.x,y:e.position.y};case"shape":return e.points&&e.points.length?Me(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 et(e,t){return e.length===t.length&&e.every((n,o)=>n.x===t[o].x&&n.y===t[o].y)}function Pn(e,t){if(e.type!=="gaArea"||!et(e.points,t.outline))return!1;let n=Pe(e.holes),o=Pe(t.holes);return n.length===o.length&&n.every((r,i)=>et(r,o[i]))}function Ie(e,t,n=e.filter(r=>r.type==="section"),o=vn(t)){let r="referenceInventorySource"in t?t.referenceInventorySource?.logicalSectionId:void 0;return(r?n.find(s=>(s.logicalSectionId??s.id)===r&&(Pn(t,s)||Ze(o,s.outline,s.holes))):void 0)??n.find(s=>Ze(o,s.outline,s.holes))}function st(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 Ae(e){return e.floors&&e.floors.length?e.floors.flatMap(t=>t.objects):e.objects}var ct="__sl_ga__";var In=ct,Re=1e5;function An(e,t){return`${In}${encodeURIComponent(e)}__${t+1}`}function Rn(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 Cn(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}]:[]:Rn(e)?e.inventorySegments.map(n=>({...n})):[]}function at(e){return Cn(e).flatMap(t=>Array.from({length:t.count},(n,o)=>An(t.sourceAreaId,t.startIndex+o)))}var ce="__ungrouped__";function En(e){return e.type==="row"?ot(e).map(t=>t.label):e.type==="table"?rt(e).map(t=>t.label):e.type==="booth"?it(e).map(t=>t.label):e.type==="gaArea"?at(e):[]}function lt(e){return e.type==="row"||e.type==="table"||e.type==="booth"||e.type==="gaArea"}function On(e){return e.displayLabel||e.label||"Section"}function Ce(e){let t=new Map;for(let n of Ae(e)){if(n.type!=="section")continue;let o=n.logicalSectionId??n.id;t.has(o)||t.set(o,{id:o,label:On(n),zone:n.zone})}return t}function Tn(e){let t=new Map;for(let[n,o]of Ce(e))t.set(n,o.label);return t}function ut(e){let t=new Map;for(let n of st(e)){let o=n.objects.filter(r=>r.type==="section");if(o.length)for(let r of n.objects){if(!lt(r))continue;let i=Ie(n.objects,r,o);i&&t.set(r.id,i.logicalSectionId??i.id)}}return t}function ft(e,t){let n=Ae(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:ce,label:"Other seats",seatCount:0,objectIds:[],seatLabels:[]},s=new Map;for(let u of n){if(!lt(u))continue;let l=En(u);if(l.length===0)continue;let b;if(t)b=t.get(u.id);else{let p=Ie(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 _n(e){return ft(e,null)}function dt(e){return ft(e,ut(e))}function pt(e,t){return t.has(e.id)||!!e.logicalSectionId&&t.has(e.logicalSectionId)||!!e.zone&&t.has(e.zone)}function ht(e,t){let n=new Set;if(!t.size)return n;let{sections:o,ungrouped:r,objectToSection:i}=dt(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(ce);for(let[b,c]of i)(s.has(c)||l&&c===ce)&&n.add(b);return n}function Ln(e,t){if(!t.size)return e;let n=ht(e,t),o=t instanceof Set?t:new Set(t),r=s=>!(n.has(s.id)||s.type==="section"&&pt(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,relabelRows,resolveSection,reverseSectionOutlinePath,sampleSectionOutlinePath,seatConfidenceDisclosure,seatDisplayLabel,seatInventoryLabel,seatLabelPart,sectionCornerSmoothingPath,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-BbqhOJ5L.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 relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-SURRJh5u.cjs';
1
+ import { P as Point, R as RowObject, j as SeatOverride } from '../../types-DWx32xXH.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 relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-owTTG6e0.cjs';
3
3
  export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.cjs';
4
- import { S as SegmentedRowPlacement } from '../../segmentedRowModel-BbHdWqJy.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 sectionGeometry, f as sectionIdentitiesById, g as sectionLabelsById, j as sectionOwnersByObject } from '../../sections-BlCiPWJJ.cjs';
6
- import { E as ExpandedSeat } from '../../renderer-DEnthjgs.cjs';
4
+ import { S as SegmentedRowPlacement } from '../../segmentedRowModel-CDvvJJ4-.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 sectionGeometry, f as sectionIdentitiesById, g as sectionLabelsById, j as sectionOwnersByObject } from '../../sections-DSIfnBJY.cjs';
6
+ import { E as ExpandedSeat } from '../../renderer-Ccv8ZDZS.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-BbqhOJ5L.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 relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-HWSKKrX8.js';
1
+ import { P as Point, R as RowObject, j as SeatOverride } from '../../types-DWx32xXH.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 relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-CzuSxAkr.js';
3
3
  export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.js';
4
- import { S as SegmentedRowPlacement } from '../../segmentedRowModel-oVUtwW87.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 sectionGeometry, f as sectionIdentitiesById, g as sectionLabelsById, j as sectionOwnersByObject } from '../../sections-DOk8zxm5.js';
6
- import { E as ExpandedSeat } from '../../renderer-CuXYGgR3.js';
4
+ import { S as SegmentedRowPlacement } from '../../segmentedRowModel-I8eYUQft.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 sectionGeometry, f as sectionIdentitiesById, g as sectionLabelsById, j as sectionOwnersByObject } from '../../sections-C8VTe6BN.js';
6
+ import { E as ExpandedSeat } from '../../renderer-njHDbIqI.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 I}from"../../chunk-Y2J55NLS.js";import{a as J,b as K,c as L,d as M}from"../../chunk-OLGPAFXW.js";import{j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H}from"../../chunk-FLMKHAUT.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,da as s,na as u,oa as v,pa as w,qa as y}from"../../chunk-VAI2VDQR.js";import{a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q}from"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{p as DEFAULT_SECTION_CORNER_SMOOTHING,a as MAX_EDGE_SAGITTA_RATIO,s as TIER_HEIGHT_M,z as UNGROUPED_ID,H as applyHidden,M as arcLevelAt,K as bearingDeg,J as buildSectionRake,D as computeSections,E as computeSectionsPerFloor,t as cornerSmoothingThresholdDeg,v as distanceToPolyline,L as fitBowlProfile,w as fitCircle,G as hiddenObjectIds,g as indexLabel,F as isSectionHidden,l as logicalNumberingRow,j as relabelRows,y as resolveSection,c as reverseSectionOutlinePath,e as sampleSectionOutlinePath,I as seatConfidenceDisclosure,q as seatDisplayLabel,n as seatInventoryLabel,k as seatLabelPart,x as sectionCornerSmoothingPath,u as sectionGeometry,A as sectionIdentitiesById,B as sectionLabelsById,b as sectionOutlinePathFrom,C as sectionOwnersByObject,o as sectionPathSegmentEnd,d as toBijectiveBase,h as toLetters,i as toRoman,m as transformSectionOutlinePath,f as translateSectionOutlinePath,r as validSectionOutlinePath};
1
+ import{a as I}from"../../chunk-Y2J55NLS.js";import{a as J,b as K,c as L,d as M}from"../../chunk-L34T3APU.js";import{j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H}from"../../chunk-HO4MFTVX.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,da as s,na as u,oa as v,pa as w,qa as y}from"../../chunk-UISTXRO5.js";import{a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q}from"../../chunk-5ITK5236.js";import"../../chunk-CRCGO52K.js";export{p as DEFAULT_SECTION_CORNER_SMOOTHING,a as MAX_EDGE_SAGITTA_RATIO,s as TIER_HEIGHT_M,z as UNGROUPED_ID,H as applyHidden,M as arcLevelAt,K as bearingDeg,J as buildSectionRake,D as computeSections,E as computeSectionsPerFloor,t as cornerSmoothingThresholdDeg,v as distanceToPolyline,L as fitBowlProfile,w as fitCircle,G as hiddenObjectIds,g as indexLabel,F as isSectionHidden,l as logicalNumberingRow,j as relabelRows,y as resolveSection,c as reverseSectionOutlinePath,e as sampleSectionOutlinePath,I as seatConfidenceDisclosure,q as seatDisplayLabel,n as seatInventoryLabel,k as seatLabelPart,x as sectionCornerSmoothingPath,u as sectionGeometry,A as sectionIdentitiesById,B as sectionLabelsById,b as sectionOutlinePathFrom,C as sectionOwnersByObject,o as sectionPathSegmentEnd,d as toBijectiveBase,h as toLetters,i as toRoman,m as transformSectionOutlinePath,f as translateSectionOutlinePath,r as validSectionOutlinePath};
@@ -1,4 +1,4 @@
1
- import { a as ChartObject, C as ChartDoc } from './types-BbqhOJ5L.js';
1
+ import { a as ChartObject, C as ChartDoc } from './types-DWx32xXH.js';
2
2
 
3
3
  declare const EVENT_CONFIGURATION_SCHEMA: "seatlayer.event-configuration/1";
4
4
  declare const EVENT_CONFIGURATION_EXPORT_SCHEMA: "seatlayer.event-configuration-export/1";
@@ -1,4 +1,4 @@
1
- import { a as ChartObject, C as ChartDoc } from './types-BbqhOJ5L.cjs';
1
+ import { a as ChartObject, C as ChartDoc } from './types-DWx32xXH.cjs';
2
2
 
3
3
  declare const EVENT_CONFIGURATION_SCHEMA: "seatlayer.event-configuration/1";
4
4
  declare const EVENT_CONFIGURATION_EXPORT_SCHEMA: "seatlayer.event-configuration-export/1";