1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[120,790,9435],{70790:function(e,t,n){n.d(t,{default:function(){return g}});var r=n(8711),a=n(96540),i=n(60134),o=n(6615),l=n(6054),u=n(12359),s=n(39435),c=n(98497),d=n(50120),m=n(133);const p=r.Ay.div.withConfig({displayName:"AreaCoveredMap__StyledTabbedListings",componentId:"sc-1h6jkif-0"})((e=>{let{waterways:t}=e;return[Boolean(t.length>10)&&{"& .grid__wrapper":{"@media (min-width: 768px)":{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},"& > div:first-child ul":{"@media (min-width: 768px)":{paddingRight:"1rem",borderRightWidth:"1px",borderColor:"var(--brand-towpath-300)"}},"& > div:last-child ul":{"@media (min-width: 768px)":{paddingLeft:"1rem"}},"& li:last-child":{borderBottomWidth:"0px"},"& a":{display:"block","& svg":{marginLeft:"1rem"}}}}]}));function f(e){let{region:t,waterways:n}=e;const[r,i]=function(e){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}(n),f=(0,a.useMemo)((()=>{const e=d.P[t];return e?a.createElement(c.Ay,{mapboxConfig:{center:e.mapCenter,maxBounds:e.mapBounds,maxZoom:18,minZoom:0,zoom:0},legendConfig:{useStaticLegend:!0,customColours:[(0,m.G)("region",o.mI.water)]}},a.createElement(s.default,{selectedRegion:e,waterwaysJson:n})):(console.error("No data found for",t),null)}),[t,n]);return a.createElement(p,{waterways:n},a.createElement(l.A,{invert:!0,listElement:a.createElement("div",{className:"grid__wrapper"},a.createElement(u.A,{listings:r}),a.createElement(u.A,{listings:i})),mapElement:f}))}function g(e){const t=window.ReactOnRails.getStore("store");return a.createElement(i.Provider,{store:t},a.createElement(f,e))}},39435:function(e,t,n){n.d(t,{default:function(){return c}});var r=n(96540),a=n(60842),i=n.n(a),o=n(60134),l=n(98497),u=n(2371),s=n(35571);function c(e){let{selectedRegion:t,waterwaysJson:n}=e;const[a,c]=(0,r.useState)(null),d=(0,r.useContext)(l.wZ),m=(0,r.useRef)(),p=(0,o.useSelector)(u.m),f=Object.values(n).map((e=>e.code));return(0,r.useEffect)((()=>{if(!d)return null;d.setMaxZoom(9),d.on("load",(e=>{d.addSource("source-regions",{type:"vector",url:p["mapbox.regions"]}),d.addLayer({id:"regions-data-fill",type:"fill",source:"source-regions","source-layer":p["mapbox.regions.layer"],paint:{"fill-color":"#1947F7","fill-opacity":.2}}),d.addLayer({id:"regions-data-line",type:"line",source:"source-regions","source-layer":p["mapbox.regions.layer"],paint:{"line-color":"#1e29f5","line-width":1}}),d.setFilter("regions-data-fill",["==",["get","name"],t.kmRegionName]),d.setFilter("regions-data-line",["==",["get","name"],t.kmRegionName]),d.addSource("source-canals-km",{type:"vector",url:p["mapbox.canals.km"]}),d.addLayer({id:"canals-km-data",type:"line",source:"source-canals-km","source-layer":p["mapbox.canals.km.layer"],filter:["all",["in",["get","sapcanalco"],["literal",f]],["in",["get","region"],["literal",t.regionName]]],paint:{"line-color":"#1e29f5","line-width":3}}),d.setPaintProperty("crt-waterways","line-opacity",.4),d.setPaintProperty("crt-waterways copy","line-opacity",.4)}))}),[d]),(0,r.useEffect)((()=>{if(!d)return null;const e=new(i().Popup);d.on("click","canals-km-data",(t=>{const r=t.features[0].properties.sapcanalco,a=n.find((e=>e.code===r));c(a),e.setLngLat(t.lngLat).setDOMContent(m.current).addTo(d)})),d.on("mouseenter","canals-km-data",(()=>{d.getCanvas().style.cursor="pointer"})),d.on("mouseleave","canals-km-data",(()=>{d.getCanvas().style.cursor=""}))}),[d]),r.createElement("div",{ref:m},r.createElement(s.A,{data:a}))}},50120:function(e,t,n){n.d(t,{P:function(){return r}});const r={"East Midlands":{regionName:"East Midlands",kmRegionName:"East Midlands",mapCenter:[0,52.5],mapBounds:[[-5,51.5],[3,54.5]]},"London & South East":{regionName:"London & South East",kmRegionName:"London and South East",mapCenter:[0,51.5],mapBounds:[[-2.5,49],[2.5,54.5]]},"North West":{regionName:"North West",kmRegionName:"North West",mapCenter:[0,56],mapBounds:[[-5,51.5],[-.5,56]]},"West Midlands":{regionName:"West Midlands",kmRegionName:"West Midlands",mapCenter:[0,53],mapBounds:[[-5,51.5],[.5,54.5]]},"Yorkshire & North East":{regionName:"Yorkshire & North East",kmRegionName:"Yorkshire and North East",mapCenter:[0,54],mapBounds:[[-4,50.5],[1.5,58.5]]},"Wales & South West":{regionName:"Wales & South West",kmRegionName:"Wales and South West",mapCenter:[-1,51],mapBounds:[[-7,49.5],[.5,54.5]]}}},2899:function(e,t,n){n.d(t,{A:function(){return s}});var r=n(8711),a=n(96540),i=n(41707),o=n(20982),l=n(79656);const u=r.Ay.div.withConfig({displayName:"ListMapTabs__StyledContainer",componentId:"sc-1km9ddh-0"})((e=>{let{}=e;return[{'& div[role="tablist"]':{display:"flex","@media (min-width: 360px)":{justifyContent:"space-between"},"@media (min-width: 640px)":{justifyContent:"flex-start"},"> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(0.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))"}},'& button[role="tab"]':{display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(1rem * var(--tw-space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--tw-space-x-reverse)))"},alignItems:"center",justifyContent:"center",borderRadius:"0.5rem",borderWidth:"1px",borderColor:"var(--brand-leaf-500)",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem","@media (min-width: 1180px)":{paddingLeft:"3.5rem",paddingRight:"3.5rem"},"& > svg":{color:"var(--brand-leaf-500)",height:"1.25rem",width:"1.25rem"},"& .tab__label":{display:"none",margin:"0px","@media (min-width: 360px)":{display:"inline"}}},'& button[aria-selected="false"]':{backgroundColor:"var(--brand-towpath-100)"}}]}));function s(e){let{invert:t=!1}=e;return a.createElement(u,null,a.createElement(i.o.List,null,t?a.createElement(a.Fragment,null,a.createElement(i.o,{"aria-label":"Map view"},a.createElement(o.g,{icon:l.gKm}),a.createElement("p",{className:"tab__label"},"Map view")),a.createElement(i.o,{"aria-label":"List view"},a.createElement(o.g,{icon:l.iaK}),a.createElement("p",{className:"tab__label"},"List view"))):a.createElement(a.Fragment,null,a.createElement(i.o,{"aria-label":"List view"},a.createElement(o.g,{icon:l.iaK}),a.createElement("p",{className:"tab__label"},"List view")),a.createElement(i.o,{"aria-label":"Map view"},a.createElement(o.g,{icon:l.gKm}),a.createElement("p",{className:"tab__label"},"Map view")))))}},35571:function(e,t,n){var r=n(8711),a=n(96540),i=n(64959);const o=r.Ay.div.withConfig({displayName:"Popup__StyledContainer",componentId:"sc-19t2qkv-0"})((()=>[{"& .popup__link":{display:"block",textDecorationLine:"none"},"& .popup__listing":{margin:"0px",padding:"0.5rem"},"& .popup__img":{margin:"0.5rem"}}]));t.A=e=>{let{data:t}=e;return a.createElement(o,null,t&&a.createElement("a",{className:"popup__link",href:t.link},a.createElement("div",{className:"popup__img"},a.createElement(i.Ay,{img:t.img??"",variant:i.eW})),a.createElement("h4",{className:"popup__listing"},t.listing)))}},133:function(e,t,n){function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{assetName:e,src:t,layers:n,static:r}}function a(e,t){return{name:e,value:t}}n.d(t,{G:function(){return a},i:function(){return r}})},64959:function(e,t,n){n.d(t,{Ay:function(){return x},Dv:function(){return u},Nh:function(){return g},RI:function(){return s},VT:function(){return f},XZ:function(){return p},eW:function(){return o},j7:function(){return d},k_:function(){return c},mH:function(){return m},qN:function(){return i},sY:function(){return l}});var r=n(8711),a=n(96540);const i=0,o=1,l=2,u=3,s=4,c=5,d=6,m=7,p=8,f="lazy",g="eager",h={[i]:{"& img":{borderRadius:"0 0 160px/30px 0",borderTopLeftRadius:"0.75rem",borderTopRightRadius:"0.75rem",objectFit:"cover"}},[o]:{"& img":{objectFit:"cover",maxHeight:"100vh"}},[l]:{"& img":{objectFit:"cover",borderRadius:"0.375rem"}},[u]:{"& img":{objectFit:"cover",objectPosition:"top",height:"35vh",minHeight:"200px",maxHeight:"220px","@media (min-width: 360px)":{height:"35vh",minHeight:"260px",maxHeight:"300px"},"@media (min-width: 640px)":{height:"45vh",minHeight:"350px",maxHeight:"400px"},"@media (min-width: 768px)":{maxHeight:"100vh"},"@media (min-width: 1024px)":{minHeight:"500px"},"@media (min-width: 1180px)":{height:"98vh",maxHeight:"98vh",minHeight:"720px"}}},[s]:{"& img":{objectFit:"cover",height:"30vh",minHeight:"250px",maxHeight:"350px","@media (min-width: 360px)":{height:"40vh",minHeight:"350px",maxHeight:"600px"},"@media (min-width: 640px)":{height:"45vh",minHeight:"500px",maxHeight:"800px"},"@media (min-width: 768px)":{height:"50vh",minHeight:"500px",maxHeight:"900px"},"@media (min-width: 1024px)":{height:"70vh",minHeight:"600px",maxHeight:"800vh"},"@media (min-width: 1180px)":{minHeight:"900px"}}},[c]:{"& img":{objectFit:"cover","@media (min-width: 1024px)":{height:"100vh",minHeight:"700px"},"@media (min-width: 1180px)":{minHeight:"1000px"}}},[d]:{"& img":{borderRadius:"9999px",aspectRatio:"1 / 1"}},[m]:{"& img":{aspectRatio:"1 / 1",borderRadius:"0.375rem"}},[p]:{"& img":{width:"100%",height:"auto",aspectRatio:"auto"}}},v=r.Ay.picture.withConfig({displayName:"Picture__StyledPicture",componentId:"sc-14i6hh6-0"})((e=>{let{variant:t}=e;return[{"& img":{display:"block",width:"100%",height:"auto",aspectRatio:"16/10",color:"var(--brand-darkslate-100)"},"& .picture-loading":{backgroundColor:"var(--brand-darkslate-100)"},"& .picture-loaded":{backgroundColor:"transparent"}},h[t]]})),b=(e,t)=>{};function x(e){let{img:t,size:n="100vw",sizeTablet:r="100vw",sizeDesktop:o="100vw",loading:l=f,variant:u=i,onLoad:s=b,isDecorative:c=!1}=e;const d=(0,a.useRef)(null),[m,p]=(0,a.useState)(!1),h=`(min-width: 1180px) ${o}, (min-width: 768px) ${r}, ${n}`;return(0,a.useEffect)((()=>{var e;null!=d&&null!==(e=d.current)&&void 0!==e&&e.complete&&p(!0)}),[]),a.createElement(v,{variant:u},a.createElement("source",{srcSet:t.srcset.avif,sizes:h,type:"image/avif"}),a.createElement("img",{ref:d,srcSet:t.srcset.default,sizes:h,alt:c?"":t.alt,loading:l,fetchpriority:l===g?"high":null,onLoad:e=>s(e,!1),onError:e=>s(e,!0),className:m?"picture-loaded":"picture-loading"}))}},12359:function(e,t,n){n.d(t,{A:function(){return u}});var r=n(8711),a=n(96540),i=n(20982),o=n(79656);const l=r.Ay.div.withConfig({displayName:"SimpleListing__StyledContainer",componentId:"sc-1c360eu-0"})((()=>[{padding:"0px","& h2":{paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"},"& ul":{padding:"0px",margin:"0px"},"& li":{borderTopWidth:"1px",borderColor:"var(--brand-towpath-300)",padding:"0px",margin:"0px","& a":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"0.5rem",margin:"0px",textDecorationLine:"none","& svg":{width:"1rem",he
1ight:"1rem"}}},"& li:last-child":{borderBottomWidth:"1px",borderColor:"var(--brand-towpath-300)"},"& a:hover":{color:"var(--p)"},"& .listing__date":{paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingBottom:"0.5rem","& svg":{width:"1rem",height:"1rem",marginRight:"0.5rem"}}}]));function u(e){let{title:t,listings:n}=e;return a.createElement(l,null,t&&a.createElement("h2",null,t),a.createElement("ul",null,n.map(((e,t)=>a.createElement("li",{key:t},a.createElement("a",{href:e.link},e.listing,a.createElement(i.g,{icon:o.vmR})))))))}},6054:function(e,t,n){n.d(t,{A:function(){return u}});var r=n(8711),a=n(96540),i=n(41707),o=n(2899);const l=r.Ay.div.withConfig({displayName:"TabbedMapContainer__StyledContainer",componentId:"sc-1kfdhp0-0"})((()=>[{'& div[role="tabpanel"]':{position:"relative",borderRadius:"0.5rem"},"& .listmap__list__panel":{marginTop:"0.5rem",padding:"0.5rem",borderWidth:"1px",borderColor:"var(--brand-leaf-500)"},"& .listmap__map__panel":{marginTop:"0.25rem",paddingTop:"0.25rem",paddingBottom:"0.25rem"}}]));function u(e){let{listElement:t,mapElement:n,invert:r=!1}=e;return a.createElement(l,{"data-testid":"tabbedMapContainer"},a.createElement(i.o.Group,null,a.createElement(o.A,{invert:r}),a.createElement(i.o.Panels,null,r?a.createElement(a.Fragment,null,a.createElement(i.o.Panel,{className:"listmap__map__panel"},n),a.createElement(i.o.Panel,{className:"listmap__list__panel"},t)):a.createElement(a.Fragment,null,a.createElement(i.o.Panel,{className:"listmap__list__panel"},t),a.createElement(i.o.Panel,{className:"listmap__map__panel"},n)))))}},44586:function(e,t,n){n.d(t,{D:function(){return a}});var r,a=((r=a||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},41707:function(e,t,n){n.d(t,{o:function(){return L}});var r=n(96540),a=n(66206),i=n(88860),o=n(85897),l=n(44586),u=n(64122),s=n(76339),c=n(98975),d=n(69821),m=n(34424),p=n(39528);function f({onFocus:e}){let[t,n]=(0,r.useState)(!0);return t?r.createElement(p.j,{as:"button",type:"button",features:p.O.Focusable,onFocus:t=>{t.preventDefault();let r,a=50;r=requestAnimationFrame((function t(){if(!(a--<=0))return e()?(n(!1),void cancelAnimationFrame(r)):void(r=requestAnimationFrame(t));r&&cancelAnimationFrame(r)}))}}):null}var g,h=n(95015),v=n(82924),b=((g=b||{})[g.SetSelectedIndex=0]="SetSelectedIndex",g[g.RegisterTab=1]="RegisterTab",g[g.UnregisterTab=2]="UnregisterTab",g[g.RegisterPanel=3]="RegisterPanel",g[g.UnregisterPanel=4]="UnregisterPanel",g[g.ForceRerender=5]="ForceRerender",g);let x={0(e,t){let n=e.tabs.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}));if(t.index<0)return{...e,selectedIndex:e.tabs.indexOf(n[0])};if(t.index>e.tabs.length)return{...e,selectedIndex:e.tabs.indexOf(n[n.length-1])};let r=e.tabs.slice(0,t.index),a=[...e.tabs.slice(t.index),...r].find((e=>n.includes(e)));return a?{...e,selectedIndex:e.tabs.indexOf(a)}:e},1(e,t){return e.tabs.includes(t.tab)?e:{...e,tabs:(0,u.wl)([...e.tabs,t.tab],(e=>e.current))}},2(e,t){return{...e,tabs:(0,u.wl)(e.tabs.filter((e=>e!==t.tab)),(e=>e.current))}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:[...e.panels,t.panel]}},4(e,t){return{...e,panels:e.panels.filter((e=>e!==t.panel))}},5(e){return{...e}}},w=(0,r.createContext)(null);function y(e){let t=(0,r.useContext)(w);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,y),t}return t}w.displayName="TabsSSRContext";let E=(0,r.createContext)(null);function P(e){let t=(0,r.useContext)(E);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,P),t}return t}E.displayName="TabsDataContext";let N=(0,r.createContext)(null);function _(e){let t=(0,r.useContext)(N);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function C(e,t){return(0,o.Y)(t.type,x,e,t)}N.displayName="TabsActionsContext";let k=r.Fragment,T=(0,a.FX)((function(e,t){let{defaultIndex:n=0,vertical:i=!1,manual:o=!1,onChange:l,selectedIndex:u=null,...d}=e;const p=i?"vertical":"horizontal",g=o?"manual":"auto";
1let h=null!==u,v=(0,c.P)(t),[b,x]=(0,r.useReducer)(C,{selectedIndex:null!=u?u:n,tabs:[],panels:[]}),y=(0,r.useMemo)((()=>({selectedIndex:b.selectedIndex})),[b.selectedIndex]),P=(0,m.Y)(l||(()=>{})),_=(0,m.Y)(b.tabs),T=(0,r.useMemo)((()=>({orientation:p,activation:g,...b})),[p,g,b]),R=(0,m.Y)(h?e.selectedIndex:b.selectedIndex),S=(0,r.useMemo)((()=>({registerTab(e){return x({type:1,tab:e}),()=>x({type:2,tab:e})},registerPanel(e){return x({type:3,panel:e}),()=>x({type:4,panel:e})},forceRerender(){x({type:5})},change(e){R.current!==e&&P.current(e),h||x({type:0,index:e})}})),[x,h]);(0,s.s)((()=>{x({type:0,index:null!=u?u:n})}),[u]);let A=(0,r.useRef)({tabs:[],panels:[]}),F={ref:v};return r.createElement(w.Provider,{value:A},r.createElement(N.Provider,{value:S},r.createElement(E.Provider,{value:T},T.tabs.length<=0&&r.createElement(f,{onFocus:()=>{var e,t;for(let n of _.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),(0,a.XX)({ourProps:F,theirProps:d,slot:y,defaultTag:k,name:"Tabs"}))))})),R=(0,a.FX)((function(e,t){let{orientation:n,selectedIndex:r}=P("Tab.List"),i=(0,c.P)(t);return(0,a.XX)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),S=(0,a.FX)((function(e,t){var n,m;let p=`headlessui-tabs-tab-${(0,i.B)()}`,{orientation:f,activation:g,selectedIndex:b,tabs:x,panels:w}=P("Tab"),E=_("Tab"),N=y("Tab"),C=(0,r.useRef)(null),k=(0,c.P)(C,t,(e=>{!e||requestAnimationFrame((()=>E.forceRerender()))}));(0,s.s)((()=>E.registerTab(C)),[E,C]);let T=N.current.tabs.indexOf(p);-1===T&&(T=N.current.tabs.push(p)-1);let R=x.indexOf(C);-1===R&&(R=T);let S=R===b,A=(0,h._)((e=>{let t=x.map((e=>e.current)).filter(Boolean);if(e.key===l.D.Space||e.key===l.D.Enter)return e.preventDefault(),e.stopPropagation(),void E.change(R);switch(e.key){case l.D.Home:case l.D.PageUp:return e.preventDefault(),e.stopPropagation(),(0,u.CU)(t,u.BD.First);case l.D.End:case l.D.PageDown:return e.preventDefault(),e.stopPropagation(),(0,u.CU)(t,u.BD.Last)}return(0,o.Y)(f,{vertical(){return e.key===l.D.ArrowUp?(0,u.CU)(t,u.BD.Previous|u.BD.WrapAround):e.key===l.D.ArrowDown?(0,u.CU)(t,u.BD.Next|u.BD.WrapAround):void 0},horizontal(){return e.key===l.D.ArrowLeft?(0,u.CU)(t,u.BD.Previous|u.BD.WrapAround):e.key===l.D.ArrowRight?(0,u.CU)(t,u.BD.Next|u.BD.WrapAround):void 0}})?e.preventDefault():void 0})),F=(0,h._)((()=>{var e;null==(e=C.current)||e.focus()})),D=(0,r.useRef)(!1),L=(0,h._)((()=>{var e;D.current||(D.current=!0,null==(e=C.current)||e.focus(),E.change(R),(0,v._)((()=>{D.current=!1})))})),O=(0,h._)((e=>{e.preventDefault()})),H=(0,r.useMemo)((()=>({selected:S})),[S]),I=e,j={ref:k,onKeyDown:A,onFocus:"manual"===g?F:L,onMouseDown:O,onClick:L,id:p,role:"tab",type:(0,d.c)(e,C),"aria-controls":null==(m=null==(n=w[R])?void 0:n.current)?void 0:m.id,"aria-selected":S,tabIndex:S?0:-1};return(0,a.XX)({ourProps:j,theirProps:I,slot:H,defaultTag:"button",name:"Tabs.Tab"})})),A=(0,a.FX)((function(e,t){let{selectedIndex:n}=P("Tab.Panels"),i=(0,c.P)(t),o=(0,r.useMemo)((()=>({selectedIndex:n})),[n]);return(0,a.XX)({ourProps:{ref:i},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})})),F=a.O5.RenderStrategy|a.O5.Static,D=(0,a.FX)((function(e,t){var n,o;let{selectedIndex:l,tabs:u,panels:d}=P("Tab.Panel"),m=_("Tab.Panel"),p=y("Tab.Panel"),f=`headlessui-tabs-panel-${(0,i.B)()}`,g=(0,r.useRef)(null),h=(0,c.P)(g,t,(e=>{!e||requestAnimationFrame((()=>m.forceRerender()))}));(0,s.s)((()=>m.registerPanel(g)),[m,g]);let v=p.current.panels.indexOf(f);-1===v&&(v=p.current.panels.push(f)-1);let b=d.indexOf(g);-1===b&&(b=v);let x=b===l,w=(0,r.useMemo)((()=>({selected:x})),[x]),E=e,N={ref:h,id:f,role:"tabpanel","aria-labelledby":null==(o=null==(n=u[b])?void 0:n.current)?void 0:o.id,tabIndex:x?0:-1};return(0,a.XX)({ourProps:N,theirProps:E,slot:w,defaultTag:"div",features:F,visible:x,name:"Tabs.Panel"})})),L=Object.assign(S,{Group:T,List:R,Panels:A,Panel:D})},95015:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(96540),a=n(34424);let i=function(e){let t=(0,a.Y)(e);return r.useCallback(((...e)=>t.current(...e)),[t])}},88860:function(e,t,n){n.d(t,{B:function(){return s}});var r=n(96540),a=n(76339);let i={serverHandoffComplete:!1};var o;let l=0;function u(){return++l}let s=null!=(o=r.useId)?o:function(){let e=function(){let[e,t]=(0,r.useState)(i.serverHandoffComplete);return(0,r.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,r.useEffect)((()=>{!1===i.serverHandoffComplete&&(i.serverHandoffComplete=!0)}),[]),e}(),[t,n]=r.useState(e?u:null);return(0,a.s)((()=>{null===t&&n(u())}),[t]),null!=t?""+t:void 0}},76339:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(96540);let a=n(26208).S?r.useEffect:r.useLayoutEffect},34424:function(e,t,n){n.d(t,{Y:function(){return i}});var r=n(96540),a=n(76339);function i(e){let t=(0,r.useRef)(e);return(0,a.s)((()=>{t.current=e}),[e]),t}},69821:function(e,t,n){n.d(t,{c:function(){return o}});var r=n(96540),a=n(76339);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function o(e,t){let[n,o]=(0,r.useState)((()=>i(e)));return(0,a.s)((()=>{o(i(e))}),[e.type,e.as]),(0,a.s)((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}},98975:function(e,t,n){n.d(t,{P:function(){return o}});var r=n(96540),a=n(95015);let i=Symbol();function o(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=(0,a._)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[i])))?void 0:n}},39528:function(e,t,n){n.d(t,{O:function(){return i},j:function(){return o}});var r=n(66206);var a,i=((a=i||{})[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a);let o=(0,r.FX)((function(e,t){let{features:n=1,...a}=e,i={ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}};return(0,r.XX)({ourProps:i,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})}))},64122:function(e,t,n){n.d(t,{BD:function(){return s},Bm:function(){return f},CU:function(){return v},MZ:function(){return p},Me:function(){return c},wl:function(){return h}});var r=n(85897),a=n(2211);let i=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var o,l,u,s=((u=s||{})[u.First=1]="First",u[u.Previous=2]="Previous",u[u.Next=4]="Next",u[u.Last=8]="Last",u[u.WrapAround=16]="WrapAround",u[u.NoScroll=32]="NoScroll",u),c=((l=c||{})[l.Error=0]="Error",l[l.Overflow=1]="Overflow",l[l.Success=2]="Success",l[l.Underflow=3]="Underflow",l),d=((o=d||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function m(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(i))}var p=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(p||{});function f(e,t=0){var n;return e!==(null==(n=(0,a.T)(e))?void 0:n.body)&&(0,r.Y)(t,{0(){return e.matches(i)},1(){let t=e;for(;null!==t;){if(t.matches(i))return!0;t=t.parentElement}return!1}})}let g=["textarea","input"].join(",");function h(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),a=t(n);if(null===r||null===a)return 0;let i=r.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function v(e,t,n=!0,r=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?h(e):e:m(e);r=null!=r?r:a.activeElement;let o,l=(()=>
1{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(r))-1;if(4&t)return Math.max(0,i.indexOf(r))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=32&t?{preventScroll:!0}:{},c=0,d=i.length;do{if(c>=d||c+d<=0)return 0;let e=u+c;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}o=i[e],null==o||o.focus(s),c+=l}while(o!==a.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,g))&&n}(o)&&o.select(),o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),2}},85897:function(e,t,n){function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}n.d(t,{Y:function(){return r}})},82924:function(e,t,n){function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}n.d(t,{_:function(){return r}})},2211:function(e,t,n){n.d(t,{T:function(){return a}});var r=n(26208);function a(e){return r.S?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},66206:function(e,t,n){n.d(t,{FX:function(){return m},O5:function(){return l},XX:function(){return s},oE:function(){return p}});var r,a,i=n(96540),o=n(85897),l=((a=l||{})[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a),u=((r=u||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function s({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:a,visible:i=!0,name:l}){let u=d(t,e);if(i)return c(u,n,r,l);let s=null!=a?a:0;if(2&s){let{static:e=!1,...t}=u;if(e)return c(t,n,r,l)}if(1&s){let{unmount:e=!0,...t}=u;return(0,o.Y)(e?0:1,{0(){return null},1(){return c({...t,hidden:!0,style:{display:"none"}},n,r,l)}})}return c(u,n,r,l)}function c(e,t={},n,r){let{as:a=n,children:o,refName:l="ref",...u}=f(e,["unmount","static"]),s=void 0!==e.ref?{[l]:e.ref}:{},c="function"==typeof o?o(t):o;u.className&&"function"==typeof u.className&&(u.className=u.className(t));let m={};if(t){let e=!1,n=[];for(let[r,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&n.push(r);e&&(m["data-headlessui-state"]=n.join(" "))}if(a===i.Fragment&&Object.keys(p(u)).length>0){if(!(0,i.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,i.cloneElement)(c,Object.assign({},d(c.props,p(f(u,["ref"]))),m,s,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(c.ref,s.ref)))}return(0,i.createElement)(a,Object.assign({},f(u,["ref"]),a!==i.Fragment&&s,a!==i.Fragment&&m),c)}function d(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let a=n[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},26208:function(e,t,n){n.d(t,{S:function(){return r}});const r="undefined"==typeof window||"undefined"==typeof document}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.